Session tools
ctx_* tools are in-session recovery over the DAG (LCD) context engine’s lossless store — they are distinct from the cross-session recall tools (memory_search, session_search). See Context expansion tools below.
For DAG-style multi-agent workflows (debate, vote, refine, map-reduce, etc.), see Pipelines — the pipeline tool is the canonical entry point.
Session tools
The four session tools (session_search, session_status, sessions_history, sessions_list) let agents inspect conversations and discover active sessions.
session_status -- View current session
session_status -- View current session
sessions_list -- List active sessions
sessions_list -- List active sessions
sessions_history -- Browse conversation history
sessions_history -- Browse conversation history
session_search -- Search/browse conversation history
session_search -- Search/browse conversation history
Cross-Agent Coordination
sessions_send -- Send a message to another session
sessions_send -- Send a message to another session
sessions_spawn -- Spawn a sub-agent session
sessions_spawn -- Spawn a sub-agent session
async is false (the default), the parent agent blocks until the sub-agent completes and returns its result. When async is true, the sub-agent runs in the background and the parent continues working. Use subagents to check on background sub-agents.Sub-agent results are automatically condensed (if over the token threshold) and formatted with metadata tags before being returned to the parent. See Subagent Context Lifecycle for the full pipeline.Example — Spawn a coding agent (sync):subagents -- Manage running sub-agents
subagents -- Manage running sub-agents
sessions_spawn. You can list running sub-agents, terminate them, or steer them with a new task.Parameters:pipeline -- multi-agent execution graphs
pipeline -- multi-agent execution graphs
pipeline tool. It has its own page with the full schema, the 7 built-in node type drivers, and worked examples.See Pipelines.Memory tools — Long-term Memory
Agents have access to long-term memory that persists across conversations. Four dedicated tools cover the full memory lifecycle:memory_search for hybrid text and vector search, memory_get for reading entries by path, memory_store for persisting new information, and memory_manage for admin CRUD operations. Memory uses hybrid text and vector search, so agents can find relevant information even when the wording differs from the original.
memory_search -- Search long-term memory
memory_search -- Search long-term memory
memory_get -- Read a memory entry
memory_get -- Read a memory entry
memory_store -- Store a memory entry
memory_store -- Store a memory entry
memory_manage -- Admin CRUD
memory_manage -- Admin CRUD
delete and flush sub-actions require user approval. pin/unpin mark a single entry as always-injected in recall.Parameters:Context expansion tools
These three tools recover detail from the current conversation when the agent runs in DAG mode (contextEngine.version: "dag"). As a long, tool-heavy session
grows past its token budget, the DAG (LCD) context engine compresses old turns into
a zoomable summary hierarchy. The ctx_* tools let the agent zoom back in:
search the compressed history, inspect a summary’s coverage, and rehydrate a
compressed region back to its underlying messages.
ctx_* tools operate only on the
current conversation’s lossless store and share no code with the long-term recall
tools. Use memory_search / session_search to recall information from other
sessions; use ctx_* to recover detail the summarizer compressed away within
this session. The ctx_* tools are DAG-mode-only — active by default (DAG is
the default engine) and inactive only in the opt-in pipeline mode — never-export
(never reachable via the Comis MCP server), and
read-only — they never reach another session or tenant.ctx_search -- Search this conversation's compressed history
ctx_search -- Search this conversation's compressed history
LIKE scan otherwise — it never hard-fails. Returns matching snippets, which
are treated as untrusted recovered content.Parameters:ctx_inspect -- Inspect a compressed summary's metadata
ctx_inspect -- Inspect a compressed summary's metadata
ctx_expand -- Recover a compressed region to its messages
ctx_expand -- Recover a compressed region to its messages
tool-results/
directory and returned as a file handle, which you can then open with the file
tools (read). Recovered content is treated as untrusted.Parameters:Sub-Agent Patterns
Sub-agents are one of the most powerful features in Comis. Here are common patterns for using them effectively:Delegation
Spawn a specialist agent for a specific task. For example, a general-purpose assistant can spawn a coding agent to fix a bug, wait for the result, and report back to the user.Parallel Work
Spawn multiple sub-agents to work on different parts of a problem simultaneously. Each sub-agent runs independently, and the parent collects results when they finish.When to use sessions_spawn vs. pipeline
Related
Agent Sessions
Pipelines
pipeline tool