---
title: "Compact brain-state block (lightweight companion to boot)"
method: GET
path: "/api/agent/brain-state"
tags: ["Agent"]
---

# Compact brain-state block (lightweight companion to boot)

`GET /api/agent/brain-state`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/agent/brain-state`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

No LLM/embedding calls, pure DB reads, server-trimmed to a hard ~400-token budget. Task/frontier data comes from the goal-graph board, never `agent_tasks`.

## Response `200`

Brain-state block.

- object

## Other responses

- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
