mcp-missioncache

v1.0.50
mcp-missioncache Checked 3 days ago Published 2 days ago

MCP 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…

ParameterTypeDescription
include_timebooleanInclude time tracking info
prioritize_by_repobooleanWhen repo_path is set, return repo tasks in 'tasks' and non-repo tasks in 'other_tasks' instead of filtering
repo_pathFilter by repo path (optional)
task_typeFilter by type: 'coding' or 'non-coding'

list_completed_tasks

List recently completed tasks.

ParameterTypeDescription
daysintegerNumber of days to look back
limitintegerMaximum 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…

ParameterTypeDescription
include_subtasksbooleanInclude subtask details
include_updatesbooleanInclude recent updates for non-coding tasks
project_nameProject name (alternative to ID)
session_idClaude 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_idTask 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.

ParameterTypeDescription
directory *stringDirectory path to find task for
session_idClaude 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.

ParameterTypeDescription
name *stringTask name (e.g., 'kafka-consumer-fix')
categoryProject 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_keyJIRA ticket ID (e.g., 'PROJ-12345')
repo_pathRepository path (required for coding tasks)
session_idClaude 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_typestringType: 'coding' or 'non-coding'

complete_task

Mark a task as completed. For coding tasks, optionally moves MissionCache files from active/ to completed/.

ParameterTypeDescription
move_filesbooleanMove MissionCache files to completed/
project_nameProject name (alternative to ID)
task_idTask ID

reopen_task

Reopen a completed task. For coding tasks, optionally moves MissionCache files from completed/ back to active/.

ParameterTypeDescription
move_filesbooleanMove MissionCache files from completed/ to active/
project_nameProject name (alternative to ID)
task_idTask 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…

ParameterTypeDescription
new_name *stringNew project name (kebab-case, e.g. 'my-project')
project_nameCurrent project name (alternative to ID)
task_idTask 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.

ParameterTypeDescription
categoryProject 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_keyJIRA ticket ID to set (e.g. 'PROJ-12345'). Pass the literal string 'none' to clear. Omit to leave unchanged.
project_nameProject name (alternative to ID)
task_idTask ID

add_task_update

Add a timestamped update to a task. Primarily for non-coding tasks to track progress notes.

ParameterTypeDescription
note *stringUpdate note
task_id *integerTask ID

get_task_updates

Get updates for a task.

ParameterTypeDescription
task_id *integerTask ID
limitintegerMaximum 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…

ParameterTypeDescription
project_name *stringProject name (kebab-case)
repo_path *stringRepository path
branchGit branch name
categoryProject 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…
descriptionstringShort description (max 12 words)
forcebooleanOverwrite existing MissionCache files. Default False raises ALREADY_EXISTS to prevent silent data loss.
fork_ofParent 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_keyJIRA ticket ID
planPlan content: {summary, goals, approach, etc.}
resolve_git_rootbooleanWalk 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_idClaude 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…
tasksList 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/.

ParameterTypeDescription
project_nameProject name
task_idTask 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…

ParameterTypeDescription
context_file *stringPath to context.md file
bullets_removeSingle 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…
gotchasGotchas to add
hubVault 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_eventA 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_decisionsKey decisions to add
key_filesKey files to add: {path: description}
next_stepsThe 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_addSteps to append to the existing Next Steps, keeping every step already there.
recent_changesRecent changes to add
sections_removeWhole '## ' 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_addWaiting-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_resolveWaiting-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…

ParameterTypeDescription
project_name *stringProject name
seen_mtimeFor 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_idClaude 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.

ParameterTypeDescription
tasks_file *stringPath to tasks.md file
completed_tasksTasks 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_tasksNew tasks to add
notesNotes to add
remaining_summaryNew Remaining summary (max 15 words)
tasks_removeTasks 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.

ParameterTypeDescription
task_idTask ID
tasks_fileDirect 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…

ParameterTypeDescription
source_project *stringProject the content is moving OUT of
target_project *stringProject the content is moving INTO
bulletsSingle 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.
noteOptional why, appended to both Recent Changes lines
sectionsWhole '## ' 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.
tasksChecklist 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_onWaiting-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.

ParameterTypeDescription
contextOptional context data
directoryDirectory to auto-detect task from
session_idClaude session ID
task_idTask 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.

ParameterTypeDescription
task_id *integerTask ID
periodstringPeriod: 'all', 'today', or 'week'

list_repos

List tracked repositories.

ParameterTypeDescription
active_onlybooleanOnly show active repos

add_repo

Add a repository to track.

ParameterTypeDescription
path *stringRepository path
short_nameShort 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.

ParameterTypeDescription
repo_path *stringNew repository path for the task
resolve_git_rootbooleanWalk 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_idTask ID
task_nameTask name (alternative to task_id)

scan_repos

Scan repositories for MissionCache tasks and sync with database. Discovers tasks from ~/.missioncache/ directories.

ParameterTypeDescription
repo_idSpecific 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.

ParameterTypeDescription
error_detailsError details if FAILED
files_modifiedFiles modified
iterationintegerIteration number
next_stepsSuggested next steps if FAILED
project_nameProject name (if task_id not known)
statusstringStatus: SUCCESS, FAILED, or BLOCKED
task_idTask ID
task_titleTitle of the task being worked on
validationValidation results {test: PASS, etc.}
what_doneWhat was done/attempted

log_iteration_completion

Log completion or timeout to the iteration log.

ParameterTypeDescription
duration_secondsintegerTotal duration in seconds
project_nameProject name
task_idTask ID
timed_outbooleanWhether loop timed out
total_iterationsintegerTotal 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.

ParameterTypeDescription
project_nameProject name
task_idTask 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.

ParameterTypeDescription
name *stringPlan name/description
metadataOptional JSON metadata string
task_idOptional 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.

ParameterTypeDescription
agent_id *stringAgent identifier (e.g., '01', '02')
agent_name *stringHuman-readable agent name
plan_id *integerPlan ID to register agent with
prompt *stringThe prompt/task for this agent
dependenciesList of agent_ids this agent depends on
max_attemptsintegerMaximum 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.

ParameterTypeDescription
agent_id *stringAgent identifier (e.g., '01', '02')
plan_id *integerPlan ID
status *stringNew status: pending, running, completed, failed
error_messageError message (for failed status)
resultResult 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).

ParameterTypeDescription
plan_id *integerPlan 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.

ParameterTypeDescription
plan_id *integerPlan 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

ParameterTypeDescription
plan_id *integerPlan ID to spawn agents for
subagent_typestringTask 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).

ParameterTypeDescription
plan_id *integerPlan ID
statusstringFinal 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…

ParameterTypeDescription
project_name *stringMissionCache project name (kebab-case)
task_numbers *arrayChecklist 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_idClaude 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.

ParameterTypeDescription
session_idClaude 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.

ParameterTypeDescription
project_name *stringProject name
what *stringThe action item text
assigneestringWho owns it: 'me' or a person's name
due_dateDue date YYYY-MM-DD (omit if none was agreed)
notesFree-text notes
requested_byWho asked for it (person, or e.g. 'AIP weekly 2026-07-24')
sourceProvenance: 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.

ParameterTypeDescription
item_id *integerAction item id (the <n> of AI-<n>)
assigneeNew owner ('me' or a name)
due_dateNew due date YYYY-MM-DD; pass 'none' to clear it
notesNotes/outcome (e.g. how it was resolved when marking done)
requested_byWho asked for it
statusNew status: open, done, or dropped. Marking done stamps completed_at.
whatRewritten 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.

ParameterTypeDescription
assigneeFilter by owner ('me' or a name, case-insensitive)
due_within_daysOnly open items due within N days
overdue_onlybooleanOnly open items past their due date
project_nameProject name; omit to list across ALL active/paused projects
statusFilter: 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).

ParameterTypeDescription
name *stringPerson's name
project_name *stringProject name
notesFree-text notes
removebooleanRemove this stakeholder instead
roleTheir 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.

ParameterTypeDescription
label *stringTicket label as displayed (e.g. 'PROJ-1234', 'MON-45')
project_name *stringProject name
notesFree-text notes
removebooleanRemove this ticket reference instead
statusFree-text status cache (e.g. 'In Progress'); MissionCache never fetches it
systemDisplay hint only: jira, monday, github, ... (never branched on)
urlFull 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.

ParameterTypeDescription
project_name *stringProject name
due_dateTarget 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.

ParameterTypeDescription
max_projectsintegerCap on projects and on waiting-on groups returned
max_rows_per_projectintegerCap on waiting-on rows per project
recent_daysintegerRecency window for the 'focus' scope, in days
scopestring'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.

ParameterTypeDescription
after_idOnly events newer than this id: pass the highest id you have already seen to read exactly what is new
kindsOnly these kinds: recent_change, waiting_added, waiting_resolved, task_done, action_item, due_date, moved, renamed, completed, reopened, relayed
limitintegerMost 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
projectOnly this project's events
sinceOnly 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.

ParameterTypeDescription
state *stringworking, idle, needs_you or compacting
compactedbooleanThe context was compacted this turn
context_pctContext window used, 0-100
cost_usdSession cost so far
last_answerStart of the last answer
last_turn_msHow long the last turn took
needs_reasonWhy the session needs the person, in words, e.g. 'approve a command'
nowThe tool running long right now
promptWhat the person asked this turn
turns_todayTurns 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.

ParameterTypeDescription
after_idFeed cursor: the last_event_id of the previous answer
scopestring'focus': a live session or a change in the last 12 hours. 'all': every active project
watermarkThe 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.

ParameterTypeDescription
session_id *stringThe 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.

ParameterTypeDescription
picks *arrayUp 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.

ParameterTypeDescription
project_name *stringThe project whose live session gets the instruction
text *stringThe 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.

ParameterTypeDescription
outcome *string'ran', 'dropped', or 'failed' (Run was picked but the prompt could not be submitted)
text *stringThe relayed instruction