Agent integrations
Agent integrations let a coding agent search the Hansard archive without requiring direct access to archive files. The recommended setup installs an MCP configuration when the client exposes a compatible configuration surface, plus the best native command or skill surface available to that agent.
Install an integration
Section titled “Install an integration”-
Initialize Hansard and import at least one source.
-
Add Hansard to the target agent.
Terminal window hansard integrations add-to codexReplace
codexwithclaude,antigravity,devin,opencode, orgrok. -
Restart or reload the target agent so it reads the updated configuration.
-
Ask the agent to recall a focused topic or continue from a prior session.
Rerun the same add-to command after upgrading Hansard when generated recall
instructions need to be refreshed.
Opt in to unified-memory retrieval
Section titled “Opt in to unified-memory retrieval”Provider memory can contain sensitive project conventions, paths, account context, and durable instructions. It is therefore excluded from agent integrations by default. Enable it explicitly for a trusted agent:
hansard integrations add-to codex --memoriesThe flag installs targeted memory-retrieval instructions and configures the MCP
server to expose the read-only search_memories and get_memory tools. It does
not let the agent create, edit, merge, or delete memories.
Configure live session messaging
Section titled “Configure live session messaging”Local Codex and Claude Code sessions can discover and message each other through the same-project mode selected by default during new setup. Repair or change the managed integration with:
hansard peers setupThis enables the recommended same-project mode and adds messaging tools to Hansard’s existing Codex and Claude MCP entries. Existing sessions must restart once. No skill or manual link command is required. See Message live agent sessions for the drawer, CLI, scope, delivery, and safety behavior.
Configure cross-harness helper launches
Section titled “Configure cross-harness helper launches”Codex and Claude Code can launch bounded same-project helpers through the other default-on collaboration setting:
hansard agents setupThis also enables same-project messaging, then adds helper tools to Hansard’s
existing Codex and Claude MCP entries. Existing sessions must restart once.
The init picker can uncheck both collaboration options, and unattended setup
can use --no-agent-collaboration.
See Delegate to helper agents for supported harnesses,
nested ownership, queueing, safety limits, and the end-to-end transcript.
What gets installed
Section titled “What gets installed”Native surfaces vary because agent clients expose different extension points.
| Target | Installed surface |
|---|---|
| Codex | MCP configuration plus recall, continue-from, and Deep Recall skills. |
| Claude | MCP configuration plus slash commands and matching skills. |
| Antigravity | MCP configuration plus recall and continue-from skills. |
| Devin | MCP configuration plus recall and continue-from skills. |
| OpenCode | MCP configuration plus recall and continue-from commands. |
| Grok Build | MCP configuration plus recall and continue-from surfaces compatible with Grok Build. |
Each target also receives its native memory-retrieval surface when
--memories is present.
Install only the native recall files
Section titled “Install only the native recall files”Use integrations recall when the MCP configuration is managed separately:
hansard integrations recall codexThe current live targets are codex, claude, antigravity, devin,
opencode, and grok.
Run the MCP server directly
Section titled “Run the MCP server directly”Clients with a manually managed MCP configuration can launch the recall server over standard input and output:
hansard mcp serveThe server exposes search_past_sessions by default. To opt a manually managed
client into memory retrieval, launch hansard mcp serve --memories instead.
The memory-enabled server also exposes the read-only search_memories and
get_memory tools. A manually managed Codex or Claude client can use
hansard mcp serve --delegation; delegation implies the peer messaging tools.
Generated integrations call the installed hansard
executable, so a global installation must be available on PATH unless the
client configuration supplies another executable path.
Recall workflows
Section titled “Recall workflows”Finds conversations relevant to a focused topic, then reads a bounded latest-message window before reporting the result.
Reads both the opening and latest windows of the selected conversation so the original objective, current state, tests, and next action are available.
Decomposes broad questions into multiple searches and synthesizes evidence from selected complete sessions with session citations.
Searches current-project and global memories together, then retrieves only
bounded content from the selected records. This workflow is installed only
with --memories and does not write to provider memory stores.
Generated instructions tell the agent to infer a focused query rather than passing an entire user request directly to archive search. Archive-dependent claims should remain tied to the selected session IDs.
Memory-enabled instructions tell the agent to search proactively when work depends on a prior preference, provider capability, durable project convention, or earlier decision. They do not inject the full unified memory archive into every prompt.