honcho-grok-bot
Conventions for using Honcho memory as a Grok Bot. Apply whenever you are a Grok Bot (an xAI or Cursor Bot with its own cloud…
Integrate Honcho memory into existing Python or TypeScript codebases. Use when adding Honcho SDK, setting up peers, configuring sessions, and accessing Honcho's representation.
Claude Code
$ npx -y skills add plastic-labs/honcho --skill honcho-integration --agent claude-code
Codex
$ npx skills add plastic-labs/honcho --skill honcho-integration -a codex -y
Cursor
$ npx skills add plastic-labs/honcho --skill honcho-integration -a cursor -y
Gemini CLI
$ npx skills add plastic-labs/honcho --skill honcho-integration -a gemini-cli -y
GitHub Copilot
$ npx skills add plastic-labs/honcho --skill honcho-integration -a github-copilot -y
OpenCode
$ npx skills add plastic-labs/honcho --skill honcho-integration -a opencode -y
Windsurf
$ npx skills add plastic-labs/honcho --skill honcho-integration -a windsurf -y
name: honcho-integration description: Integrate Honcho memory into existing Python or TypeScript codebases. Use when adding Honcho SDK, setting up peers, configuring sessions, and accessing Honcho's representation. allowed-tools: Read, Glob, Grep, Bash(uv:*), Bash(bun:*), Bash(npm:*), Edit, Write, WebFetch, AskUserQuestion
Honcho is an open source memory library for building stateful agents. It works with any model, framework, or architecture. You send Honcho the messages from your conversations, and custom reasoning models process them in the background — extracting premises, drawing conclusions, and building rich representations of each participant over time. Your agent can then query those representations on-demand ("What does this user care about?", "How technical is this person?") and get grounded, reasoned answers.
The key mental model: **Peers** are any participant — human or AI. Both are represented the same way. `observe_me` is a peer-level flag (`PeerConfig`) controlling whether Honcho forms a representation of *that* peer; typically you want Honcho to model your users (`observe_me=True`) but not anything with deterministic behavior (`observe_me=False`). `observe_others` is a separate per-peer `SessionPeerConfig` setting that controls whether that peer forms representations of the *other* participants in a session. **Sessions** scope conversations between peers. **Messages** are the raw data you feed in — Honcho reasons about them asynchronously and stores the results as the peer's **representation**. No messages means no reasoning means no memory.
Your agent accesses this memory through `peer.chat(query)` (ask a natural language question, get a reasoned answer — a few seconds of live reasoning) or `session.context()` (near-instant read of formatted history + representation). Prefer `context()` for per-turn grounding; use `chat()` when you need a reasoned answer.
Follow the workflow below. Read a reference file only when you reach the step that needs it:
| When you're… | Read | | --- | --- | | Writing the client/peer/session setup (init, peers, sessions, add messages) | `references/core-patterns.md` | | Wiring how the AI reads context (tool call, pre-fetch, `context()`, streaming) | `references/agent-patterns.md` | | Integrating into a bot framework (nanobot, openclaw, picoclaw, …) | `references/bot-frameworks.md` + `references/bot-frameworks/<framework>/` |
Follow these phases in order:
Before asking the user anything, explore the codebase to understand:
1. **Language & Framework**: Is this Python or TypeScript? What frameworks are used (FastAPI, Express, Next.js, etc.)? 2. **Existing AI/LLM code**: Search for existing LLM integrations (OpenAI, Anthropic, LangChain, etc.) 3. **Entity structure**: Identify users, agents, bots, or other entities that interact 4. **Session/conversation handling**: How does the app currently manage conversations? 5. **Message flow**: Where are messages sent/received? What's the request/response cycle?
Use Glob and Grep to find:
> **Bot framework detected?** If the codebase is built around an agent loop, tool registry, session manager, and message bus (e.g., nanobot, openclaw, picoclaw), read `references/bot-frameworks.md` for framework-specific integration guidance and check `references/bot-frameworks/<framework>/` for concrete reference implementations.
After exploring the codebase, use the **AskUserQuestion** tool to clarify integration requirements. Ask these questions (adapt based on what you learned in Phase 1):
Ask about which entities should be Honcho peers:
Ask how they want to use Honcho context (see `references/agent-patterns.md` for the implementation of each):
Ask about conversation structure:
If they chose pre-fetch, ask what context matters:
Based on interview responses, implement the integration:
1. Install the SDK (see [Installation](#installation)) 2. Create Honcho client initialization — `references/core-patterns.md` §1 3. Set up peer creation for identified entities — `references/core-patterns.md` §2–3 4. Implement the chosen integration pattern(s) — `references/agent-patterns.md` 5. Add message storage after exchanges — `references/core-patter
Conventions for using Honcho memory as a Grok Bot. Apply whenever you are a Grok Bot (an xAI or Cursor Bot with its own cloud…
Concepts and strategy for using a connected Honcho as persistent memory of the user — the recall/record loop and session and peer…
First-run setup and health check for Honcho memory in Cursor or Grok Bot. Use when the user asks to set up, connect, sign in to,…
Inspect and debug Honcho workspaces via the `honcho` CLI. Use when investigating peer representations, memory state, session…
Prepare a Honcho change for a pull request to plastic-labs/honcho. Invoke before opening a PR, when drafting a PR body, when…
Reproduce a reported Honcho API bug (a 5xx, a wrong status code, data that doesn't round-trip) as a failing…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…