honcho-cli
它能做什么
该技能让 AI 助手使用 honcho 命令行工具查看 Honcho 记忆设置的内部情况。适用于检查记忆为何有效或无效的开发者。
适用场景
- ✓你想查看 Honcho 为某个人或某个 Bot 存储了什么的时候。
- ✓你需要检查记忆设置中的回忆和记录步骤是否正常的时候。
- ✓Honcho 的回答似乎有误,你需要检查会话或工作区的时候。
技能链接
https://github.com/plastic-labs/honcho/blob/main/skills/honcho-cli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用 honcho 命令行工具,告诉我 Honcho 关于这位用户都有哪些记忆。”
每周 5 个新技能,1 分钟读完。
工作原理
它以 JSON 输出运行 honcho 命令,并带有清晰的退出码,使助手能够读取列出工作区、对等方和会话的命令结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Honcho CLI
honcho wraps the Honcho Python SDK with agent-friendly defaults: JSON output, structured errors, input validation. Use it to inspect workspace state, debug peer memory, and diagnose the dialectic.
Output & config
- TTY: human-readable tables (default when interactive)
- Piped /
--json: JSON — collection commands emit arrays, single-resource commands emit objects - Exit codes:
0success ·1client error (bad input, not found) ·2server error ·3auth error - Config:
~/.honcho/config.json(shared with other Honcho tools). The CLI ownsapiKeyandenvironmentUrlat the top level; runhoncho initto confirm or set them. Per-command scope (workspace / peer / session) is via-w/-p/-sflags orHONCHO_*env vars.
Command groups
honcho config— CLI configurationhoncho start/stop/status— local Docker stack (does not changeenvironmentUrl). First start pins the Honcho image digest and writesconfig.tomlinto the profile. Pass--setup basicor--setup advancedfor an interactive config wizard (TTY only; writes.envoverrides).honcho statuslists every profile; pass--profilefor one.honcho workspace— inspect, delete, search, chathoncho peer— inspect, card, chat, searchhoncho session— inspect, view (transcript), context, summarieshoncho scope— list, create, inspect, sessions, add-sessions, remove-session, statushoncho message— list and gethoncho conclusion— list, search, create, delete
Rules
- Always pass
--jsonwhen processing output programmatically. - Run
honcho peer inspectbeforehoncho peer chatto understand context. - Use
honcho session contextto see exactly what an agent receives. - Never run
honcho workspace deletewithouthoncho workspace inspectfirst. - Compare peer card with conclusions to understand memory state.
- After
honcho scope add-sessions, checkhoncho scope status <name>before a scopedchat: apendingbackfill means the scope has not caught up yet, not that there is nothing to recall. honcho startdoes not rewriteenvironmentUrl. UseHONCHO_BASE_URL=http://127.0.0.1:8000to talk to local stack.
Inspection tour
When orienting to a Honcho deployment, walk outside-in:
1. Understand the workspace
honcho workspace inspect --json
2. Find the peer
honcho peer list --json
honcho peer inspect <peer_id> --json
3. Check peer's memory
honcho peer card <peer_id> --json
honcho conclusion list --observer <peer_id> --json
honcho conclusion search "topic" --observer <peer_id> --json
4. Debug a session
honcho session inspect <session_id> --json
honcho session view <session_id> --last 20 --json
honcho session view <session_id> --page 2 --size 50 --json
honcho message list <session_id> --last 20 --json
honcho session context <session_id> --json
honcho session summaries <session_id> --json
5. Search across workspace
honcho workspace search "query" --json
honcho workspace chat "what themes show up across peers?" --json
honcho workspace chat "what happened in this project?" --scope my-project --json
honcho peer search <peer_id> "query" --json
6. Bound recall with a scope
honcho scope list --json
honcho scope inspect <name> --json # members + backfill summary
honcho scope create <name> --sessions <id1>,<id2> --json
honcho scope status <name> --json # wait until nothing is pending
honcho workspace chat "what happened here?" --scope <name> --json
Debugging playbook
Peer not learning?
# Is observation enabled?
honcho peer inspect <peer_id> --json | jq '.configuration'
# What conclusions exist?
honcho conclusion list --observer <peer_id> --json
honcho conclusion search "expected topic" --observer <peer_id> --json
Session context looks wrong?
# Raw context an agent would receive
honcho session context <session_id> --json
# Summaries feeding the context
honcho session summaries <session_id> --json
# Recent message history
honcho message list <session_id> --last 50 --json
Dialectic giving bad answers?
# What the peer card says
honcho peer card <peer_id> --json
# Conclusions on the specific topic
honcho conclusion search "topic" --observer <peer_id> --json
# Exercise the dialectic directly
honcho peer chat <peer_id> "what do you know about X?" --json
h
常见问题
它会更改我的记忆数据吗?
会。有些命令会删除或更改条目,因此运行前应先确认命令的作用。
命令行工具的设置保存在哪里?
保存在你主目录中的共享配置文件 .honcho/config.json 里。
退出码分别是什么意思?
0 表示成功,1 是客户端错误,2 是服务器错误,3 是身份验证错误。
详情
作者的原始描述
Inspect and debug Honcho workspaces via the `honcho` CLI. Use when investigating peer representations, memory state, session context, or dialectic quality — any task that requires introspection of a Honcho deployment, including verifying that a recall/record memory loop is actually working.
repo: plastic-labs/honcho
热度
- GitHub 星标
- 7.9k
- 排名
- #12748
- 许可证
- AGPL-3.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
honcho-grok-bot
7.9k帮助你的 Grok Bot 一致地使用 Honcho 记忆,按照同一账号下其他 Bot 的方式为其身份和聊天会话命名。
honcho-memory
7.9k帮你的智能体在回复前查询 Honcho 记忆,并在每次对话后保存内容,从而随着时间推移了解你的偏好,实现跨聊天记住你。
honcho-setup
7.9k帮你的智能体连接 Honcho 记忆、完成登录、选择记忆工作区,并检查连接是否正常工作。
honcho-memory
7.9k帮你的智能体在开始工作前检查关于你和项目的已存记忆,并为之后的会话保存有用的结论。