mcp-missioncache
v1.0.50MCP server for the MissionCache Claude Code plugin: project management with time tracking
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_active_tasks
List all active tasks with time tracking and progress info. Returns tasks sorted by last worked on (most recent first). Much faster than multiple tool calls - single DB query with batch time lookup. When prioritize_by_repo=True and repo_path is set, returns two lists: - tasks: projects belonging to the given repo (shown first) - other_tasks: all other active projects repo_path is looked up as given first, then falls back to its containing git root, so a cwd inside a repo matches the repo registered at its root. If repo_path resolves to no registered repo…
| Parameter | Type | Description |
|---|---|---|
include_time | boolean | Include time tracking info |
prioritize_by_repo | boolean | When repo_path is set, return repo tasks in 'tasks' and non-repo tasks in 'other_tasks' instead of filtering |
repo_path | Filter by repo path (optional) | |
task_type | Filter by type: 'coding' or 'non-coding' |
list_completed_tasks
List recently completed tasks.
| Parameter | Type | Description |
|---|---|---|
days | integer | Number of days to look back |
limit | integer | Maximum tasks to return |
get_task
Get full task details including progress, time, and prompt config. Provide either task_id OR project_name (not both). Returns all information needed for /continue-task in a single call. When a session id is available - passed explicitly, or resolved from the CLAUDE_CODE_SESSION_ID env var on Claude Code 2.1.154+ - also writes the project_state row + the ``~/.claude/hooks/state/projects/<sid>.json`` pointer so the statusline reflects this project immediately, without needing the slash-command bash step to fire. Returns a ``session_bound`` field indicating…
| Parameter | Type | Description |
|---|---|---|
include_subtasks | boolean | Include subtask details |
include_updates | boolean | Include recent updates for non-coding tasks |
project_name | Project name (alternative to ID) | |
session_id | Claude Code session ID; binds this session to the project so the statusline shows it. Auto-resolved from CLAUDE_CODE_SESSION_ID on Claude Code 2.1.154+; pass explicitly for older or non-Claude clients… | |
task_id | Task ID |
find_task_for_directory
Find the active task for a given directory. Lookup priority (see missioncache_db.find_task_for_cwd): 1. pending-project.json (cwd match) 2. projects/<session_id>.json - requires session_id arg 3. cwd under ~/.missioncache/active/<task>/ Priority 2 needs a session id. Without the arg, the server's own CLAUDE_CODE_SESSION_ID is used, as get_task does.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Directory path to find task for |
session_id | Claude session ID. Strongly recommended: without it, matching falls through to cwd-pattern only, which fails when cwd is the repo root. In Claude Code, pass $CLAUDE_CODE_SESSION_ID. |
create_task
Create a new task in the database. For coding tasks, also creates the missioncache/active/<name>/ directory. For non-coding tasks, no directory is created. When ``session_id`` is provided, also writes the project_state row + per-session pointer that the statusline reads, atomically with task creation. Eliminates the prior failure mode where /missioncache:new's non-coding branch left the statusline blank because no binding step existed for it.
| Parameter | Type | Description |
|---|---|---|
name * | string | Task name (e.g., 'kafka-consumer-fix') |
category | Project category, derived from the project description at creation time. One of: bug, feature, refactor, test, docs, infra, ui, api, database, security, perf, coding, noncoding, or an existing custom… | |
jira_key | JIRA ticket ID (e.g., 'PROJ-12345') | |
repo_path | Repository path (required for coding tasks) | |
session_id | Claude Code session ID; binds this session to the new task so the statusline shows it. Auto-resolved from CLAUDE_CODE_SESSION_ID on Claude Code 2.1.154+; pass explicitly for older or non-Claude client… | |
task_type | string | Type: 'coding' or 'non-coding' |
complete_task
Mark a task as completed. For coding tasks, optionally moves MissionCache files from active/ to completed/.
| Parameter | Type | Description |
|---|---|---|
move_files | boolean | Move MissionCache files to completed/ |
project_name | Project name (alternative to ID) | |
task_id | Task ID |
reopen_task
Reopen a completed task. For coding tasks, optionally moves MissionCache files from completed/ back to active/.
| Parameter | Type | Description |
|---|---|---|
move_files | boolean | Move MissionCache files from completed/ to active/ |
project_name | Project name (alternative to ID) | |
task_id | Task ID |
rename_task
Rename a project / task. Updates the DB row, moves the MissionCache directory, renames files inside, and rewrites template H1 titles. Time tracking, heartbeats, sessions, and JIRA links survive because they're keyed by task_id (integer FK), not by name. Inputs are normalized (trim + lowercase) before validation. The response always reports the canonical stored name in ``name`` - callers should display that, not the user-typed input. The ``normalized`` flag tells callers whether normalization changed the input so they can prefix their confirmation acco…
| Parameter | Type | Description |
|---|---|---|
new_name * | string | New project name (kebab-case, e.g. 'my-project') |
project_name | Current project name (alternative to ID) | |
task_id | Task ID |
update_task
Update a task's JIRA key and/or category after creation. Provide either task_id OR project_name to identify the task, and at least one of jira_key / category. The literal string 'none' (any case) clears a field, matching the CLI's set-category convention. An empty/whitespace jira_key is rejected (pass 'none' to clear). All input validation runs BEFORE any write, so invalid input never leaves a half-applied update (e.g. jira_key written, category rejected). The two writes themselves are separate transactions, not one atomic unit.
| Parameter | Type | Description |
|---|---|---|
category | Project category to set. One of: bug, feature, refactor, test, docs, infra, ui, api, database, security, perf, coding, noncoding, or an existing custom category. Pass the literal string 'none' to clea… | |
jira_key | JIRA ticket ID to set (e.g. 'PROJ-12345'). Pass the literal string 'none' to clear. Omit to leave unchanged. | |
project_name | Project name (alternative to ID) | |
task_id | Task ID |
add_task_update
Add a timestamped update to a task. Primarily for non-coding tasks to track progress notes.
| Parameter | Type | Description |
|---|---|---|
note * | string | Update note |
task_id * | integer | Task ID |
get_task_updates
Get updates for a task.
| Parameter | Type | Description |
|---|---|---|
task_id * | integer | Task ID |
limit | integer | Maximum updates to return |
create_missioncache_files
Create MissionCache files for a new task. Creates files under ~/.missioncache/active/<task-name>/. The repo_path is used to register the repository in the DB. By default, repo_path is resolved to its containing git root before registration so /missioncache:new captures the same path regardless of which subdirectory the user invoked it from. Pass resolve_git_root=False to opt out (e.g., when each sub-package in a monorepo is its own MissionCache project). When ``session_id`` is provided, also writes the project_state row + per-session pointer that the stat…
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Project name (kebab-case) |
repo_path * | string | Repository path |
branch | Git branch name | |
category | Project category, derived from the project description at creation time. One of: bug, feature, refactor, test, docs, infra, ui, api, database, security, perf, coding, noncoding, or an existing custom… | |
description | string | Short description (max 12 words) |
force | boolean | Overwrite existing MissionCache files. Default False raises ALREADY_EXISTS to prevent silent data loss. |
fork_of | Parent project name to fork from. Writes a '**Fork of:**' header into the new context file; the parent's context file becomes this project's shared knowledge layer. The parent should already exist (ac… | |
jira_key | JIRA ticket ID | |
plan | Plan content: {summary, goals, approach, etc.} | |
resolve_git_root | boolean | Walk parents of repo_path to the containing git root before registering. Default True so any cwd inside a repo lands at the same registered path. Pass False when a sub-package within a monorepo is the… |
session_id | Claude Code session ID; binds this session to the new project so the statusline shows it. Auto-resolved from CLAUDE_CODE_SESSION_ID on Claude Code 2.1.154+; pass explicitly for older or non-Claude cli… | |
tasks | List of task descriptions |
get_missioncache_files
Get paths to MissionCache files for a task. Returns existing file paths (plan.md, context.md, tasks.md, prompts/). Files are resolved under ~/.missioncache/.
| Parameter | Type | Description |
|---|---|---|
project_name | Project name | |
task_id | Task ID |
update_context_file
Update a context.md file atomically. Updates timestamp and specified sections. Much faster than multiple Read/Edit calls. Maintains the '## Waiting on' table via waiting_on_add / waiting_on_resolve, removes stale content via sections_remove / bullets_remove, writes cross-project events via imported_event, and enforces the Recent Changes cap (overflow rolls into the per-project journal file automatically). Removals run before additions, so one call can replace a section. Every free-form string you pass is sanitized first: a pasted block carrying its ow…
| Parameter | Type | Description |
|---|---|---|
context_file * | string | Path to context.md file |
bullets_remove | Single items to delete, each {"section": <section name>, "match": <substring of the item>}. Removes the first list item or table row in that section containing 'match', with its continuation lines - u… | |
gotchas | Gotchas to add | |
hub | Vault hub note name (bare, e.g. 'api-release-check'). Writes or replaces the 'Hub: [[name]]' header line that /missioncache:load follows to the Obsidian hub, in the canonical header position (after Fo… | |
imported_event | A cross-project event that changes THIS project's reality, as {"heading": ..., "body": ..., "related_project": ..., "related_note": ...}. Writes a self-contained "## <heading>" section above Waiting o… | |
key_decisions | Key decisions to add | |
key_files | Key files to add: {path: description} | |
next_steps | The WHOLE new Next Steps list. Replaces the section: any existing step left out is deleted (and listed in next_steps_dropped). To add steps, use next_steps_add. | |
next_steps_add | Steps to append to the existing Next Steps, keeping every step already there. | |
recent_changes | Recent changes to add | |
sections_remove | Whole '## ' sections to delete, by their EXACT heading text as get_context_digest's section_index reports it (including any date suffix). Use when a section's subject moved to another project or is de… | |
waiting_on_add | Waiting-on rows to append, each {"what": ..., "who": ..., "since": "YYYY-MM-DD", "gates": ...}. 'since' defaults to today. Creates the '## Waiting on' section before Next Steps if the file does not ha… | |
waiting_on_resolve | Waiting-on rows to resolve, each {"match": <substring of the What cell>, "outcome": <what happened>, "kind": <how it ended>}. The first matching row is removed and the outcome is recorded in today's R… |
get_context_digest
Resume digest of a project's context file - read this INSTEAD of the full file on /missioncache:load. Parses server-side (no file-size limit; works on context files past the 256KB Read-tool cap) and returns the resume-critical slices: Last Updated, Hub / Related-projects header lines, the Waiting on section verbatim, Next Steps verbatim, the newest 3 Recent Changes subsections, a section index (name + line number) for targeted follow-up reads, the file size, and per-project health warnings. Also carries the PM layer (DB-side, best-effort): ``due_date`` (t…
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Project name |
seen_mtime | For forks: the parent-context mtime this session last saw (from its shared-seen marker). When passed, parent_digest.changed_since_seen reports whether a parallel session updated the shared layer since… | |
session_id | Claude session id; lets a fork session's direct read of its parent's digest restamp the shared-seen marker. Auto-resolved from CLAUDE_CODE_SESSION_ID on Claude Code 2.1.154+; pass explicitly for older… |
update_tasks_file
Update a tasks.md file. Marks tasks as completed, adds new tasks, removes superseded or moved tasks, updates Remaining summary. Returns progress info.
| Parameter | Type | Description |
|---|---|---|
tasks_file * | string | Path to tasks.md file |
completed_tasks | Tasks to mark as [x]. Lead each entry with the checklist number for a reliable match (e.g. '7' or '7. Implement X'); trailing prose is ignored. Entries matching no item come back in the 'unmatched' fi… | |
new_tasks | New tasks to add | |
notes | Notes to add | |
remaining_summary | New Remaining summary (max 15 words) | |
tasks_remove | Tasks to REMOVE, each {"match": <number or substring>, "reason": <why>}. Use this for a task that is superseded or that moved to another project - marking it [x] would claim work that never happened,… |
get_missioncache_progress
Get progress info from a tasks.md file. Returns completion percentage, completed/total items, and remaining summary.
| Parameter | Type | Description |
|---|---|---|
task_id | Task ID | |
tasks_file | Direct path to tasks.md |
move_to_project
Move context sections, items, waiting-on rows and tasks between two projects. Use this when splitting a project or moving a topic that belongs somewhere else. Splitting is a MOVE: doing it as a remove call plus an add call can half-fail and leave content in both files or neither. This holds every affected file's lock for the whole operation and records the move in both projects' Recent Changes. Anything that matched nothing comes back in 'unmatched' - check it, a move never silently drops part of its payload. Live sessions on EITHER project are returned…
| Parameter | Type | Description |
|---|---|---|
source_project * | string | Project the content is moving OUT of |
target_project * | string | Project the content is moving INTO |
bullets | Single items to move, each {"section": <section name>, "match": <substring of the item>}. The item is appended to the same-named section on the target side. | |
note | Optional why, appended to both Recent Changes lines | |
sections | Whole '## ' sections to move, by their EXACT heading text as get_context_digest's section_index reports it. Refused when the target already has a section with that heading. | |
tasks | Checklist items to move, each {"match": <number or substring>}. The task keeps its text and its [ ]/[x] state but takes a NEW number on the target side, because numbers are per-file. The source keeps… | |
waiting_on | Waiting-on rows to move, each a substring of the What cell. The row moves with its Who/Since/Gates intact - use this rather than waiting_on_resolve, which would record an answer that never came. |
record_heartbeat
Record a heartbeat for time tracking. Provide either task_id OR directory for auto-detection. This is called automatically by hooks, but can be called manually.
| Parameter | Type | Description |
|---|---|---|
context | Optional context data | |
directory | Directory to auto-detect task from | |
session_id | Claude session ID | |
task_id | Task ID (if known) |
process_heartbeats
Aggregate unprocessed heartbeats into sessions. Call this periodically to update time tracking. Normally called automatically by the update hook.
get_task_time
Get time spent on a task. Returns total time and formatted string.
| Parameter | Type | Description |
|---|---|---|
task_id * | integer | Task ID |
period | string | Period: 'all', 'today', or 'week' |
list_repos
List tracked repositories.
| Parameter | Type | Description |
|---|---|---|
active_only | boolean | Only show active repos |
add_repo
Add a repository to track.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository path |
short_name | Short name for display |
set_task_repo
Reassign a task to a different repository. Use this when a task was created with the wrong repo (for example, when /missioncache:new captured the wrong working directory) or when the project's source of truth has moved. The repo at `repo_path` must already be registered - call add_repo first if it is not. By default, repo_path is resolved to its containing git root before looking up the registered repo, mirroring create_missioncache_files. Pass resolve_git_root=False to opt out. Provide either task_id OR task_name.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | New repository path for the task |
resolve_git_root | boolean | Walk parents of repo_path to the containing git root before rebinding. Default True mirrors create_missioncache_files. Pass False when a sub-package within a monorepo is the actual project boundary. |
task_id | Task ID | |
task_name | Task name (alternative to task_id) |
scan_repos
Scan repositories for MissionCache tasks and sync with database. Discovers tasks from ~/.missioncache/ directories.
| Parameter | Type | Description |
|---|---|---|
repo_id | Specific repo ID to scan (or all if None) |
log_iteration
Log an iteration to the iteration log file. Used by the iteration loop for tracking progress and debugging.
| Parameter | Type | Description |
|---|---|---|
error_details | Error details if FAILED | |
files_modified | Files modified | |
iteration | integer | Iteration number |
next_steps | Suggested next steps if FAILED | |
project_name | Project name (if task_id not known) | |
status | string | Status: SUCCESS, FAILED, or BLOCKED |
task_id | Task ID | |
task_title | Title of the task being worked on | |
validation | Validation results {test: PASS, etc.} | |
what_done | What was done/attempted |
log_iteration_completion
Log completion or timeout to the iteration log.
| Parameter | Type | Description |
|---|---|---|
duration_seconds | integer | Total duration in seconds |
project_name | Project name | |
task_id | Task ID | |
timed_out | boolean | Whether loop timed out |
total_iterations | integer | Total iterations completed |
get_iteration_status
Get the current iteration loop status for a task. Returns iteration count, last status, completion/timeout state, and prompt status if optimized prompts exist.
| Parameter | Type | Description |
|---|---|---|
project_name | Project name | |
task_id | Task ID |
create_plan
Create a new execution plan for parallel agents. Plans are containers for agent executions. Create a plan first, then register agents with register_agent_execution.
| Parameter | Type | Description |
|---|---|---|
name * | string | Plan name/description |
metadata | Optional JSON metadata string | |
task_id | Optional associated task ID |
register_agent_execution
Register an agent for execution in a plan. Agents are executed in parallel unless they have dependencies. Dependencies are specified as a list of agent_ids that must complete first.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Agent identifier (e.g., '01', '02') |
agent_name * | string | Human-readable agent name |
plan_id * | integer | Plan ID to register agent with |
prompt * | string | The prompt/task for this agent |
dependencies | List of agent_ids this agent depends on | |
max_attempts | integer | Maximum retry attempts |
update_agent_status
Update agent execution status. Called by subagents to report progress. Status transitions: pending -> running -> completed|failed Timestamps are set automatically on status transitions. Plan counters are updated after each status change.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Agent identifier (e.g., '01', '02') |
plan_id * | integer | Plan ID |
status * | string | New status: pending, running, completed, failed |
error_message | Error message (for failed status) | |
result | Result text (for completed status) |
get_plan_status
Get plan status with agent breakdown. Returns the plan details, all agent executions, and a summary with counts by status (pending, running, completed, failed).
| Parameter | Type | Description |
|---|---|---|
plan_id * | integer | Plan ID |
get_ready_agents
Get agents ready to execute (pending with all dependencies completed). An agent is ready if: - Its status is "pending" - It has no dependencies, OR all its dependencies are "completed" Note: Failed dependencies do NOT block - the plan may still complete partially.
| Parameter | Type | Description |
|---|---|---|
plan_id * | integer | Plan ID |
spawn_parallel_agents
Get instructions for spawning ready agents in parallel using Task tool. Returns task_calls array that can be used to invoke multiple Task tools in a SINGLE message for parallel execution. Each agent prompt includes the update_agent_status callback for reporting completion. The orchestrating Claude should: 1. Call this tool to get task_calls 2. Invoke all Task tools in ONE message (enables parallel execution) 3. Each subagent will report back via update_agent_status when done
| Parameter | Type | Description |
|---|---|---|
plan_id * | integer | Plan ID to spawn agents for |
subagent_type | string | Task tool subagent_type to use |
complete_plan
Mark a plan as completed or failed. Sets the plan status and completed_at timestamp. Use this when all agents have finished (successfully or not).
| Parameter | Type | Description |
|---|---|---|
plan_id * | integer | Plan ID |
status | string | Final status: 'completed' or 'failed' |
set_active_missioncache_tasks
Set the active checklist tasks for this session. Replaces the prior pointer for the session (idempotent). Validates that each task number exists as an unchecked ``[ ]`` line in the project's tasks.md. Returns the validated set on success. Statusline display rules driven by the result: - 1 number: ``Task: 54a. <text>`` - 2-3 numbers sharing a parent: parent line text + ``(N active)`` - 2-3 numbers without shared parent: ``Tasks: 54a, 56, 57`` - 4+ numbers: first 3 + ``(+N)`` Call ``clear_active_missioncache_tasks`` to clear focus, or pass an empty…
| Parameter | Type | Description |
|---|---|---|
project_name * | string | MissionCache project name (kebab-case) |
task_numbers * | array | Checklist task numbers to mark as in-progress, e.g. ['54a'] or ['56', '57']. Numbers must match unchecked items in the project's tasks.md. |
session_id | Claude Code session ID; the pointer is per-session so concurrent sessions don't clobber each other. Auto-resolved from CLAUDE_CODE_SESSION_ID on Claude Code 2.1.154+; pass explicitly for older or non-… |
clear_active_missioncache_tasks
Clear the active MissionCache-task pointer for this session. Statusline ``Task:`` field hides until ``set_active_missioncache_tasks`` is called again.
| Parameter | Type | Description |
|---|---|---|
session_id | Claude Code session ID. Auto-resolved from CLAUDE_CODE_SESSION_ID on Claude Code 2.1.154+; pass explicitly for older or non-Claude clients. |
add_action_item
Record an action item on a project (commitments ledger). Use when a meeting transcript or conversation produces a commitment - yours or a colleague's. The item gets a stable id (AI-<n>), lands in the DB, renders into the context file's '## Action Items' section, and surfaces on every /missioncache:load with an overdue flag. Blocking dependencies belong in 'Waiting on' instead - an action item is a commitment, not a blocker.
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Project name |
what * | string | The action item text |
assignee | string | Who owns it: 'me' or a person's name |
due_date | Due date YYYY-MM-DD (omit if none was agreed) | |
notes | Free-text notes | |
requested_by | Who asked for it (person, or e.g. 'AIP weekly 2026-07-24') | |
source | Provenance: meeting name + date, transcript path, 'conversation' |
update_action_item
Update an action item - complete it (status='done'), reopen, reassign, change the due date, or record the outcome. Only the fields passed change. Prefer recording the outcome in `notes` when completing, so the ledger says how it was resolved.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | Action item id (the <n> of AI-<n>) |
assignee | New owner ('me' or a name) | |
due_date | New due date YYYY-MM-DD; pass 'none' to clear it | |
notes | Notes/outcome (e.g. how it was resolved when marking done) | |
requested_by | Who asked for it | |
status | New status: open, done, or dropped. Marking done stamps completed_at. | |
what | Rewritten item text |
list_action_items
List action items for one project or across every active project. The cross-project scope (no project_name) answers "what's due this week, anywhere" from any session; each item carries its project name and an overdue flag.
| Parameter | Type | Description |
|---|---|---|
assignee | Filter by owner ('me' or a name, case-insensitive) | |
due_within_days | Only open items due within N days | |
overdue_only | boolean | Only open items past their due date |
project_name | Project name; omit to list across ALL active/paused projects | |
status | Filter: open, done, or dropped |
set_stakeholder
Add, update, or remove a project stakeholder. Upserts on (project, name): calling again with a new role updates in place. Stakeholders render into the context file's '## Stakeholders' section (the structured successor of the Key People convention).
| Parameter | Type | Description |
|---|---|---|
name * | string | Person's name |
project_name * | string | Project name |
notes | Free-text notes | |
remove | boolean | Remove this stakeholder instead |
role | Their role for THIS project (e.g. 'Manager', 'Centra QA') |
set_ticket
Link, update, or remove an external ticket reference on a project. Ticket-system agnostic: label + url is the whole contract. Upserts on (project, label) - call again to update the cached status. Renders into the context file's '## Tickets' section.
| Parameter | Type | Description |
|---|---|---|
label * | string | Ticket label as displayed (e.g. 'PROJ-1234', 'MON-45') |
project_name * | string | Project name |
notes | Free-text notes | |
remove | boolean | Remove this ticket reference instead |
status | Free-text status cache (e.g. 'In Progress'); MissionCache never fetches it | |
system | Display hint only: jira, monday, github, ... (never branched on) | |
url | Full ticket URL; omitted JIRA-style keys get a URL from the user's prefix map when one matches |
set_project_due_date
Set or clear the project-level due date. Renders as a '**Due:** <date>' header line in the context file and surfaces on the /missioncache:load digest; health flags it when it is within 7 days or past. Per the estimation discipline, set one only for committed work - never fabricate a date onto uncommitted backlog.
| Parameter | Type | Description |
|---|---|---|
project_name * | string | Project name |
due_date | Target date YYYY-MM-DD; pass 'none' (or omit) to clear |
get_portfolio
Cross-project state in one call: what is urgent, what is waiting on you, what is waiting on others, which projects have a live session, and which session is the designated lead. Same ranking and counts as the dashboard's Attention view - both come from missioncache_db.portfolio - clipped to a chat-sized payload. Read-only and session-neutral: it never binds the calling session to a project, because a project-manager session is not a project.
| Parameter | Type | Description |
|---|---|---|
max_projects | integer | Cap on projects and on waiting-on groups returned |
max_rows_per_project | integer | Cap on waiting-on rows per project |
recent_days | integer | Recency window for the 'focus' scope, in days |
scope | string | 'focus' (default): projects with a live session or worked in the last recent_days. 'all': every project with something outstanding. |
get_events
The event log: what changed in MissionCache projects, newest first. Recorded: each Recent Changes line, Waiting-on row added or resolved and task ticked through update_context_file / update_tasks_file, a move between projects, and every action-item, due-date, complete, reopen and rename write, whether it came from a session, the dashboard or the CLI. Next Steps, Gotchas, decisions, removals, stakeholders and tickets are not recorded. Read-only.
| Parameter | Type | Description |
|---|---|---|
after_id | Only events newer than this id: pass the highest id you have already seen to read exactly what is new | |
kinds | Only these kinds: recent_change, waiting_added, waiting_resolved, task_done, action_item, due_date, moved, renamed, completed, reopened, relayed | |
limit | integer | Most events to return (max 1000). With after_id the page is the oldest events after the cursor, so stamping the newest id returned never skips one; has_more says the log goes on |
project | Only this project's events | |
since | Only events at or after this local time, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM[:SS]' (an ISO 'T' is accepted) |
report_session_status
Record this session's state for the lead board. The MissionCache mod calls it on each state change; there is no reason to call it by hand. Writes only the local hooks-state.db: no event, no context file, and no live_sessions in the response.
| Parameter | Type | Description |
|---|---|---|
state * | string | working, idle, needs_you or compacting |
compacted | boolean | The context was compacted this turn |
context_pct | Context window used, 0-100 | |
cost_usd | Session cost so far | |
last_answer | Start of the last answer | |
last_turn_ms | How long the last turn took | |
needs_reason | Why the session needs the person, in words, e.g. 'approve a command' | |
now | The tool running long right now | |
prompt | What the person asked this turn | |
turns_today | Turns this session ran today |
get_lead_board
Where every project stands, for the lead board: progress, the active task, the last significant change, the last save, what waits on others, what is next, and the live session's state. Plus what needs the person and the change feed since the cursor. Pass back the previous watermark to poll cheaply: when nothing changed the answer is only {changed: false, watermark}. Read-only.
| Parameter | Type | Description |
|---|---|---|
after_id | Feed cursor: the last_event_id of the previous answer | |
scope | string | 'focus': a live session or a change in the last 12 hours. 'all': every active project |
watermark | The watermark of the previous answer; unchanged means changed=false |
focus_terminal
Bring the iTerm2 tab of a live session to the front (macOS). Only the lead session may call it. On failure the answer says why, and the caller can fall back to copying a resume command.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The session whose terminal tab to bring forward |
set_lead_picks
Write today's picks for the dashboard's Lead view. Only the lead session may call it, at the end of each brief. They replace the previous picks.
| Parameter | Type | Description |
|---|---|---|
picks * | array | Up to 3 suggestions for what to work on today, most important first. Each is {what, project, why}: 'what' is the action, 'why' the one reason. An empty list clears them. |
prepare_relay
Build a relay to a project's live session. Only the lead session may call it. Send the returned 'envelope' unchanged with SendMessage to 'title'. Nothing runs on arrival: the session there shows the text to the person, and it runs only when they pick Run.
| Parameter | Type | Description |
|---|---|---|
project_name * | string | The project whose live session gets the instruction |
text * | string | The instruction as a command, as the person would type it there: one line, up to 500 characters, not starting with '!'. A longer text is refused, never cut |
record_relay
Log what became of a relay in this session, as a 'relayed' event on this session's project. The MissionCache mod calls it. There is no reason to call it by hand.
| Parameter | Type | Description |
|---|---|---|
outcome * | string | 'ran', 'dropped', or 'failed' (Run was picked but the prompt could not be submitted) |
text * | string | The relayed instruction |