honcho-integration
できること
既存のPythonまたはTypeScriptのプロジェクトに、Honchoのソフトウェア開発キットを追加する開発者を案内します。参加者と会話の設定や、それらについて保存されたメモリの読み取り方を説明します。
使う場面
- ✓既存のPythonアプリに、セッションをまたいで続くユーザーのメモリを追加したいとき。
- ✓SDKを使ってTypeScriptプロジェクトにHonchoを追加したいとき。
- ✓チャットアプリのためにピアとセッションを設定する必要があるとき。
スキルのリンク
https://github.com/plastic-labs/honcho/blob/main/skills/honcho-integration/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のPythonのチャットボットにHonchoのメモリを追加して、各ユーザーをセッションをまたいで覚えられるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは中心となる考え方を説明します。ピアは参加者、セッションは会話で、メッセージはバックグラウンドで動いてメモリを作るプロセスに渡されます。アシスタントはそれらの考えを、あなたのコードに結び付けます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Honcho Integration Guide
What is Honcho
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.
Reference map
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>/ |
Integration Workflow
Follow these phases in order:
Phase 1: Codebase Exploration
Before asking the user anything, explore the codebase to understand:
- Language & Framework: Is this Python or TypeScript? What frameworks are used (FastAPI, Express, Next.js, etc.)?
- Existing AI/LLM code: Search for existing LLM integrations (OpenAI, Anthropic, LangChain, etc.)
- Entity structure: Identify users, agents, bots, or other entities that interact
- Session/conversation handling: How does the app currently manage conversations?
- Message flow: Where are messages sent/received? What's the request/response cycle?
Use Glob and Grep to find:
**/*.pyor**/*.tsfiles with "openai", "anthropic", "llm", "chat", "message"- User/session models or types
- API routes handling chat or conversation endpoints
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.mdfor framework-specific integration guidance and checkreferences/bot-frameworks/<framework>/for concrete reference implementations.
Phase 2: Interview (REQUIRED)
After exploring the codebase, use the AskUserQuestion tool to clarify integration requirements. Ask these questions (adapt based on what you learned in Phase 1):
Question Set 1 - Entities & Peers
Ask about which entities should be Honcho peers:
- header: "Peers"
- question: "Which entities should Honcho track and build representations for?"
- options based on what you found (e.g., "End users only", "Users + AI assistant", "Users + multiple AI agents", "All participants including third-party services")
- Include a follow-up if they have multiple AI agents: should any AI peers be observed?
Question Set 2 - Integration Pattern
Ask how they want to use Honcho context (see references/agent-patterns.md for the implementation of each):
- header: "Pattern"
- question: "How should your AI access Honcho's user context?"
- options:
- "Tool call (Recommended)" - "Agent queries Honcho on-demand via function calling"
- "Pre-fetch" - "Fetch user context before each LLM call with predefined queries"
- "context()" - "Include conversation history and representations in prompt"
- "Multiple patterns" -
よくある質問
Honchoとは何ですか?
ステートフルなAIエージェントを作るためのオープンソースのメモリライブラリで、どのモデルやフレームワークとも使えます。
メッセージがなくてもメモリはできますか?
いいえ。Honchoは送られたメッセージだけを推論するため、メッセージがなければメモリはできません。
ユーザーについてHonchoにどう尋ねますか?
チャットのメソッドを通じて平易な言葉で質問でき、保存されたメモリに基づいた答えが返ります。
詳細
作者による元の説明
Integrate Honcho memory into existing Python or TypeScript codebases. Use when adding Honcho SDK, setting up peers, configuring sessions, and accessing Honcho's representation.
repo: plastic-labs/honcho
人気
- GitHubのスター
- 7.9k
- ランキング
- #12749
- ライセンス
- AGPL-3.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
honcho-grok-bot
7.9kGrok Botが、同じアカウントの他のBotと同じ方法でアイデンティティとチャットのセッションに名前を付けて、Honchoのメモリを一貫して使えるよう支援します。
honcho-memory
7.9kエージェントが、返信の前にHonchoのメモリを確認し、各やり取りの後に保存することで、あなたの好みを時間とともに学べるよう支援します。
honcho-setup
7.9kエージェントが、Honchoのメモリに接続し、サインインして、メモリのワークスペースを選び、接続が機能するかを確認できるよう支援します。
honcho-memory
7.9kエージェントが、作業を始める前にあなたとプロジェクトについて保存されたメモリを確認し、後で役立つ確かな結論を保存できるよう支援します。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。