New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@honcho-ai/pi-honcho

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honcho-ai/pi-honcho

Official Honcho memory extension for the pi coding agent

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
26
23.81%
Maintainers
3
Weekly downloads
 
Created
Source

pi-honcho

Persistent memory for pi using Honcho. Requires pi 1.0 or later.

NPM Version

Honcho learns from your pi conversations and brings that context back:

  • Session start: your peer card and the session summary are added to the system prompt. A collapsible ◆ honcho entry shows what was loaded.
  • Each turn: before pi answers, Honcho is asked about your message (chat, the default) or returns the most relevant conclusions (context). The answer is added under your message, also as a collapsible ◆ honcho entry.
  • Saving: your messages and pi's replies are saved to Honcho after every run.
  • Tools: honcho_chat asks Honcho 1-5 questions in parallel, each with its own reasoning level. honcho_search searches past messages and saved conclusions.

The footer shows the connection state: ● honcho aakash@pi · aakash-demo · 1,284 conclusions.

Install

pi install npm:@honcho-ai/pi-honcho

Or from git:

pi install git:github.com/plastic-labs/pi-honcho

Sign in

Run /honcho login inside pi and pick a method:

  • Browser: approve in your browser and pi receives the callback on 127.0.0.1. Over SSH or inside a container, press p and paste the URL the browser was redirected to.
  • Device code: for SSH and headless machines. Enter the code on any device.
  • API key: paste a key from your Honcho dashboard. It is checked before it is saved.

Browser and device sign-in are offered when the endpoint serves OAuth metadata (Honcho's managed service does). Self-hosted Honcho uses API keys.

Credentials live in ~/.honcho/config.json, shared with other Honcho tools:

LoginSaved asShared with
Browser or deviceroot oauththe honcho CLI
API keyhosts.pi.apiKeypi only

HONCHO_API_KEY in your environment takes precedence over any saved login. When nothing pi-specific is saved, pi uses a root apiKey written by another tool.

Commands

CommandWhat it does
/honchoStatus: connection, account, workspace, peers, session, memory counts, queue, injection settings
/honcho login [browser|device|key]Sign in
/honcho logoutSign out. Revoking the shared OAuth sign-in asks first because it also signs out the honcho CLI. A root apiKey is never removed.
/honcho configSettings. Every change is saved immediately.
/honcho on, /honcho offTurn Honcho on or off for pi. While off, nothing is injected or saved.

Press ctrl+o to expand or collapse the ◆ honcho entries and tool results.

Configuration

/honcho config edits ~/.honcho/config.json. Settings marked "shared" apply to every Honcho harness; "pi only" settings live under hosts.pi.

SettingKeyScopeDefault
Honcho on/offhosts.pi.enabledpi onlytrue
EndpointenvironmentUrl, endpoint.baseUrlsharedhttps://api.honcho.dev
Workspacehosts.pi.workspacepi onlypi
Your peerpeerNameshared$USER
Agent peerhosts.pi.aiPeerpi onlypi
Session mappinghosts.pi.sessionStrategypi onlyper-directory
Session starthosts.pi.injection.sessionStartpi only["summary", "peerCard"]
Each turnhosts.pi.injection.perTurnpi only["dialectic"] (chat)
Reasoning (chat)hosts.pi.injection.dialecticReasoningpi onlymedium
Chat prompthosts.pi.injection.dialecticTemplatepi onlybuilt-in template
Max conclusions (context)hosts.pi.injection.maxConclusionspi only15
Show in chathosts.pi.injection.showInChatpi only["sessionStart", "perTurn"]
Toolshosts.pi.tools.honcho_chat, hosts.pi.tools.honcho_searchpi onlytrue
Save messageshosts.pi.saveMessagespi onlytrue

perTurn uses the Claude Code plugin's names: ["dialectic"] is chat, ["userContext"] is context, [] is off.

Session mapping:

  • per-directory: one session per directory, named <peer>-<folder> like the Claude Code plugin, so a repo maps to the same session name in both. Linked git worktrees share the main checkout's session. The root sessions map ({"/abs/path": "name"}) overrides the name.
  • git-branch: one session per branch, <peer>-<folder>-<branch>.
  • chat-instance: one session per pi session.

The per-turn memory check waits at most 30 seconds, then the turn continues without it.

Environment variables

Environment variables win over the config file. /honcho config names the variable when one is shadowing a saved value.

VariableOverrides
HONCHO_API_KEYthe saved login
HONCHO_BASE_URL, HONCHO_URL, HONCHO_ENDPOINTendpoint
HONCHO_WORKSPACE, HONCHO_WORKSPACE_IDworkspace
HONCHO_PEER_NAMEyour peer
HONCHO_AI_PEERagent peer
HONCHO_SESSION_STRATEGYsession mapping
HONCHO_ENABLED=falseturns Honcho off
HONCHO_CONFIG_PATHconfig file location

Trying a local checkout

Load only the checkout, without your installed extensions, and keep its config separate from your real one:

pnpm install
HONCHO_CONFIG_PATH=/tmp/pi-honcho/config.json pi -ne -e .

-ne (--no-extensions) skips discovered and configured extensions; explicit -e paths still load.

Contributing

See CONTRIBUTING.md.

Credits

pi-honcho started as pi-honcho-memory by Agney Menon. Thanks to Agney for the original extension.

License

MIT

Keywords

honcho

FAQs

Package last updated on 06 Oct 2026

Related posts