Clean-Context
v1.2.0Multi-agent context control, handoff inheritance, and herdr worker management for MCP clients.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_context_status
Reads the current agent/session statusline telemetry and compares used context % against the configured limit for the agent's role (orchestrator/solo vs worker).
| Parameter | Type | Description |
|---|---|---|
client | string | |
cwd | string | |
role | string | |
sessionId | string |
get_config
Returns the active Clean-Context configuration (merged global + optional project override) and config file paths.
| Parameter | Type | Description |
|---|---|---|
cwd | string |
update_config
Updates Clean-Context configuration (maxContextPercent, models, handoffDir) globally or for the current project.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
handoffDir | string | |
orchestratorMaxContextPercent | number | |
orchestratorModel | string | |
scope | string | |
workerKind | string | |
workerMaxContextPercent | number | |
workerModel | string | |
workerModelFlag | string |
herdr_spawn
Spawns a worker in a split Herdr pane using the configured worker.model and worker.kind, injecting CLEAN_CONTEXT_ROLE=worker.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
cwd | string | |
direction | string | |
kind | string | |
model | string | |
paneId | string | |
prompt | string | |
timeoutMs | integer | |
wait | boolean |
herdr_status
Lists live Herdr panes, agents, and tracked Clean-Context workers.
| Parameter | Type | Description |
|---|---|---|
name | string | |
workspaceId | string |
herdr_stop
Cleanly stops a worker by closing its Herdr pane and removing it from tracked workers.
| Parameter | Type | Description |
|---|---|---|
name | string | |
paneId | string |
herdr_cleanup
Detects and closes orphaned, dead, or completed worker panes in Herdr, and prunes stale worker records.
| Parameter | Type | Description |
|---|---|---|
dryRun | boolean | |
force | boolean | |
includeIdle | boolean |
create_handoff
Generates a structured Markdown handoff file in handoffDir (plus LATEST.md) capturing summary, decisions, files touched, active workers, and the exact next step.
| Parameter | Type | Description |
|---|---|---|
nextStep * | string | |
summary * | string | |
activeWorkers | array | |
contextUsedPercent | number | |
cwd | string | |
decisions | array | |
filesTouched | array | |
notes | string | |
role | string |
read_handoff
Reads the latest handoff Markdown file (or a specific handoff file) from handoffDir.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
fileName | string |