Skip to main content
Give Claude Code long-term memory that survives context wipes, session restarts, and ctrl+c. Claude remembers what you’re working on, your preferences, and what it was doing across all your projects.

Quick Start

Step 1: Get Your Honcho API Key

  1. Go to app.honcho.dev
  2. Sign up or log in
  3. Copy your API key (starts with hch-)

Step 2: Set Environment Variables

Add these to your shell config (~/.zshrc, ~/.bashrc, or ~/.profile):
Then reload your shell:

Step 3: Install the Plugin

This plugin requires Node.js on your PATH.
Open Claude Code and run:
Then install:

Step 4: Restart Claude Code

That’s it! You should see the Honcho pixel art and memory loading on startup.

Step 5: (Optional) Kickstart with an Interview

Claude will interview you about your personal preferences to kickstart a representation of you. What it learns will be saved in Honcho and remembered forever. The interview is specific to the peer name you chose — it carries across different projects!

What You Get

  • Persistent Memory — Claude remembers your preferences, projects, and context across sessions
  • Survives Context Wipes — Even when Claude’s context window resets, memory persists
  • Configurable Memory Injection — Choose exactly what context is injected at session start and per turn
  • Git Awareness — Detects branch switches, commits, and changes made outside Claude
  • Flexible Sessions — Map sessions per directory, per git branch, or per chat instance
  • AI Self-Awareness — Claude knows what it was working on, even after restarts
  • Secret Redaction — Built-in patterns (plus your own) scrub secrets from tool summaries before upload
  • Team Support — Multiple people can share a workspace and build context together
  • MCP Tools — Search memory, query knowledge about you, and save insights

Configuration

All configuration lives in a single global file at ~/.honcho/config.json. You can edit it directly, use the /honcho:config skill interactively, or use the set_config MCP tool. Environment variables work for initial setup but the config file takes precedence once it exists.

Memory Injection

The injection config block controls exactly what memory is injected into Claude’s context, on two surfaces: once at session start and per prompt. Each surface selects zero or more components; retrieval knobs shape what those components emit. Configure it interactively with /honcho:config (under the memory injection settings), by asking Claude to use set_config, or by editing ~/.honcho/config.json directly.

Session-Start Components

Injected once when a session opens. Default: ["directives", "summary", "peerCard"].

Per-Turn Components

Injected with each non-trivial prompt. Default: ["userContext"].

Retrieval Knobs

If injected context feels off-topic, lower searchMaxDistance (stricter relevance); if it feels too sparse, raise it or bump searchTopK.

Injection Visibility

By default, per-turn components report a one-line summary in the terminal instead of printing their full contents. To see exactly what a component injects, list it in showContents:
Components not listed still inject — they just stay quiet about it.

The honcho_remember Tool

An experimental on-demand recall tool. When enabled, Claude gets a honcho_remember MCP tool that fans out up to 5 parallel dialectic queries about you and returns per-question answers — useful before starting a task, when catching up (“where were we?”), or whenever your history could shape the response. To enable it, just ask Claude: “Set my Honcho rememberTool config to true” (it uses the set_config tool). Or set it in ~/.honcho/config.json:
Then restart Claude Code — MCP tools register at startup. When it’s on, the injected session-start directives steer Claude to use it proactively as the primary recall path.

Session Strategies

Session strategy controls how Honcho maps your conversations to sessions: Session names are prefixed with your peerName by default (e.g., alice-my-project). Set sessionPeerPrefix: false if you’re the only user and want shorter names. Linked git worktrees resolve to their main repository’s session, so a worktree shares memory with the repo it belongs to.

Observation Mode

Controls how Honcho stores and retrieves conclusions about you. Change it via set_config or edit config.json directly. Requires a Claude Code restart. Switching modes doesn’t automatically migrate existing conclusions — each mode reads from a different collection. The plugin repository ships a migrate-observations.py script to copy conclusions between collections.

Host-Aware Configuration

The plugin auto-detects which tool is running it (Claude Code, Cursor, etc.) and reads the matching block from hosts. Each host gets its own workspace and AI peer name, so data stays separated by default. Host detection priority:
  1. HONCHO_HOST env var (explicit override)
  2. cursor_version in hook stdin (Cursor detected)
  3. CURSOR_PROJECT_DIR env var (Cursor child process)
  4. Default: claude_code
Each host block can also carry its own apiKey (useful when different tools authenticate against different Honcho orgs) and override most settings — sessionStrategy, injection, rememberTool, observationMode, and more.

Global Override

If you want all hosts to share a single workspace (instead of per-host isolation), set globalOverride: true and a flat workspace field:
All tools will read and write to the shared workspace. Each tool still uses its own AI peer name.

Building with Teammates

Multiple people can share context by pointing to the same workspace. Each person uses their own peerName as identity, and sessions are automatically prefixed with it to avoid collisions. Person A (~/.honcho/config.json):
Person B (~/.honcho/config.json):
Both Alice and Bob write to the team-acme workspace. Their sessions are namespaced (e.g., alice-my-project, bob-my-project) so data doesn’t collide, but Honcho’s dialectic reasoning can draw on context from both users.

Secret Redaction

Tool-capture summaries are scrubbed against built-in secret patterns (API keys, tokens, credentials) before upload. Add your own patterns with redactPatterns — an array of regexes applied on top of the defaults:

Logging

The plugin logs activity to ~/.honcho/ and to Claude Code’s verbose mode, so you can see exactly how Honcho is being used — what context is loaded at session start, what messages are saved, and what context is injected into Claude’s prompts. Set logging to false in your config (or HONCHO_LOGGING=false) to disable file logging.

MCP Tools

The plugin provides these tools via MCP:

Skills (Slash Commands)

The Interview

The /honcho:interview skill conducts a short interview to learn stable, cross-project aspects about you:
  • Communication style — Concise answers, detailed explanations, or a mix
  • Tone — Direct and professional or conversational
  • Structure — Bullet points, step-by-step, or narrative
  • Technical depth — Beginner, intermediate, or expert
  • Code quality focus — Clarity, performance, tests, or minimal changes
  • Collaboration style — Make changes directly, propose options, or ask first
Each answer is saved as a conclusion in Honcho memory and persists across all your projects.

Environment Variables

Environment variables work for initial bootstrap (before a config file exists). Once ~/.honcho/config.json is written, the config file takes precedence for host-specific fields like workspace.

Using a local Honcho instance

Via config file:
Or via env var:

Using Honcho with Claude Desktop

You can also use Honcho with the Claude Desktop app via MCP. This lets Claude manage its own memory in the native desktop experience.

Step 1: Get Your API Key

Get an API key from app.honcho.dev.

Step 2: Configure Claude Desktop

This requires Node.js. Claude Desktop or Claude Code can help you install it!
Navigate to Claude Desktop’s custom MCP servers settings and add Honcho:
Optional customization — You can also set a custom assistant name and workspace ID:

Step 3: Restart Claude Desktop

Upon relaunch, Honcho should start and the tools will be available.

Step 4: Add Instructions

The Desktop app doesn’t allow system prompts directly, but you can create a project and paste these instructions into the “Project Instructions” field. Claude will then query for insights before responding and write your messages to storage!

Next Steps

GitHub Repository

Source code, issues, and README.

Honcho Architecture

Learn about peers, sessions, and dialectic reasoning.