Structured output
Force the agent to produce validated JSON conforming to a user-provided schema. See the full structured output guide for schema compatibility details across providers.Schema extraction via REST
Schema extraction via REST
Schema extraction via JSON-RPC
Schema extraction via JSON-RPC
MCP tools
Connect external MCP servers so the agent can call their tools. See the MCP reference for full configuration.Adding an MCP server via CLI
Adding an MCP server via CLI
Hooks
Lifecycle hooks run custom logic before/after tool execution or at turn boundaries. See the full hooks guide.Observer and audit logging
Observer and audit logging
- REST
- JSON-RPC
Guardrail (blocking pre-tool hook)
Guardrail (blocking pre-tool hook)
A blocking
pre_tool_execution hook that must approve every tool call before it runs. A non-zero exit code causes a hook_denied error.Memory and compaction
Semantic memory indexes past conversation content so the agent can recall it later. See the full memory guide.Long conversation with recall
Long conversation with recall
Enable memory when creating a session, then query past context in later turns:The agent calls the
memory_search tool internally to retrieve relevant indexed content from earlier compacted turns.Sub-agents
Spawn child agents for parallel work. See the full sub-agents guide.Parallel research via JSON-RPC
Parallel research via JSON-RPC
fork, spawn) and can delegate subtasks. Results are collected back into the parent session.Multi-agent comms
Two completely separate agent instances communicating over TCP using encrypted channels. See the full comms guide.Two agents exchanging messages (comms_verbose.rs)
Two agents exchanging messages (comms_verbose.rs)
Location: Each agent has a cryptographic identity (Ed25519 keypair). Messages are signed and encrypted. The LLM uses
meerkat/examples/comms_verbose.rsArchitecture:send_message and list_peers tools to communicate.Execution flow:Building your own
Example template
Example template
Error handling best practices
Error handling best practices
Testing your agent
Testing your agent
