honcho-integration
Skill này làm gì
Skill này hướng dẫn lập trình viên thêm bộ phát triển phần mềm (SDK) của Honcho vào một dự án Python hoặc TypeScript có sẵn. Skill giải thích cách thiết lập người tham gia, cuộc trò chuyện và đọc bộ nhớ được lưu về họ.
Khi nào nên dùng
- ✓Khi bạn muốn thêm bộ nhớ người dùng bền vững vào một ứng dụng Python có sẵn.
- ✓Khi bạn muốn thêm Honcho vào một dự án TypeScript dùng SDK.
- ✓Khi bạn cần thiết lập peer và phiên cho một ứng dụng chat.
Liên kết skill
https://github.com/plastic-labs/honcho/blob/main/skills/honcho-integration/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thêm bộ nhớ Honcho vào chatbot Python của tôi để nó nhớ từng người dùng giữa các phiên.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill giải thích các ý tưởng cốt lõi. Peer là người tham gia, session là cuộc trò chuyện, và các tin nhắn đi vào một tiến trình nền để xây dựng bộ nhớ. Sau đó trợ lý kết nối các ý tưởng này với code của bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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" -
Câu hỏi thường gặp
Honcho là gì?
Đó là một thư viện bộ nhớ mã nguồn mở để xây dựng agent AI có trạng thái, hoạt động với mọi mô hình hoặc framework.
Bộ nhớ có hình thành mà không có tin nhắn không?
Không. Honcho chỉ suy luận từ các tin nhắn bạn gửi, nên không có tin nhắn thì không có bộ nhớ.
Làm sao để hỏi Honcho về một người dùng?
Bạn có thể đặt câu hỏi bằng ngôn ngữ tự nhiên qua phương thức chat, và nó trả lời dựa trên bộ nhớ đã lưu.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.9k
- Vị trí xếp hạng
- #12749
- Giấy phép
- AGPL-3.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
honcho-grok-bot
7.9kGiúp Grok Bot của bạn dùng bộ nhớ Honcho nhất quán, bằng cách đặt tên danh tính và phiên chat giống các Bot khác trên cùng tài khoản.
honcho-memory
7.9kGiúp agent của bạn nhớ bạn qua các cuộc trò chuyện, bằng cách kiểm tra bộ nhớ Honcho trước khi trả lời và lưu lại mỗi trao đổi sau đó để học sở thích của bạn.
honcho-setup
7.9kGiúp agent của bạn kết nối với bộ nhớ Honcho, đăng nhập, chọn không gian làm việc bộ nhớ và kiểm tra xem kết nối có hoạt động không.
honcho-memory
7.9kGiúp agent của bạn kiểm tra bộ nhớ đã lưu về bạn và dự án trước khi bắt đầu công việc, và lưu các kết luận hữu ích cho những phiên sau.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.