honcho-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHoncho CLI
Honcho CLI
honchohonchoOutput & config
输出与配置
- TTY: human-readable tables (default when interactive)
- Piped / : JSON — collection commands emit arrays, single-resource commands emit objects
--json - Exit codes: success ·
0client error (bad input, not found) ·1server error ·2auth error3 - Config: (shared with other Honcho tools). The CLI owns
~/.honcho/config.jsonandapiKeyat the top level; runenvironmentUrlto confirm or set them. Per-command scope (workspace / peer / session) is viahoncho init/-w/-pflags or-senv vars.HONCHO_*
- TTY:人类可读的表格(交互模式下默认)
- 管道输出 / :JSON格式——集合类命令返回数组,单资源命令返回对象
--json - 退出码:成功 ·
0客户端错误(输入无效、未找到资源) ·1服务端错误 ·2认证错误3 - 配置:(与其他Honcho工具共享)。CLI使用顶层的
~/.honcho/config.json和apiKey;运行environmentUrl可确认或设置这些参数。每个命令的作用域(工作区/peer/会话)可通过honcho init/-w/-p标志或-s环境变量指定。HONCHO_*
Command groups
命令组
- — CLI configuration
honcho config - — inspect, delete, search
honcho workspace - — inspect, card, chat, search
honcho peer - — inspect, messages, context, summaries
honcho session - — list and get
honcho message - — list, search, create, delete
honcho conclusion
- — CLI配置
honcho config - — 检查、删除、搜索
honcho workspace - — 检查、查看卡片、聊天、搜索
honcho peer - — 检查、查看消息、上下文、摘要
honcho session - — 列出和获取消息
honcho message - — 列出、搜索、创建、删除
honcho conclusion
Rules
规则
- Always pass when processing output programmatically.
--json - Run before
honcho peer inspectto understand context.honcho peer chat - Use to see exactly what an agent receives.
honcho session context - Never run without
honcho workspace deletefirst.honcho workspace inspect - Check queue status when derivation seems stalled.
- Compare peer card with conclusions to understand memory state.
- 程序化处理输出时,务必传递参数。
--json - 在运行之前,先运行
honcho peer chat以了解上下文。honcho peer inspect - 使用查看Agent接收的完整内容。
honcho session context - 未先运行时,切勿执行
honcho workspace inspect。honcho workspace delete - 当推导似乎停滞时,检查队列状态。
- 对比peer卡片与结论以了解内存状态。
Inspection tour
检查流程
When orienting to a Honcho deployment, walk outside-in:
当熟悉Honcho部署时,从外到内逐步操作:
1. Understand the workspace
1. 了解工作区
bash
honcho workspace inspect --jsonbash
honcho workspace inspect --json2. Find the peer
2. 找到目标peer
bash
honcho peer list --json
honcho peer inspect <peer_id> --jsonbash
honcho peer list --json
honcho peer inspect <peer_id> --json3. Check peer's memory
3. 检查peer的内存
bash
honcho peer card <peer_id> --json
honcho conclusion list --observer <peer_id> --json
honcho conclusion search "topic" --observer <peer_id> --jsonbash
honcho peer card <peer_id> --json
honcho conclusion list --observer <peer_id> --json
honcho conclusion search "topic" --observer <peer_id> --json4. Debug a session
4. 调试会话
bash
honcho session inspect <session_id> --json
honcho message list <session_id> --last 20 --json
honcho session context <session_id> --json
honcho session summaries <session_id> --jsonbash
honcho session inspect <session_id> --json
honcho message list <session_id> --last 20 --json
honcho session context <session_id> --json
honcho session summaries <session_id> --json5. Search across workspace
5. 跨工作区搜索
bash
honcho workspace search "query" --json
honcho peer search <peer_id> "query" --jsonbash
honcho workspace search "query" --json
honcho peer search <peer_id> "query" --jsonDebugging playbook
调试指南
Peer not learning?
Peer无法学习?
bash
undefinedbash
undefinedIs observation enabled?
观察功能是否启用?
honcho peer inspect <peer_id> --json | jq '.configuration'
honcho peer inspect <peer_id> --json | jq '.configuration'
Is the deriver queue processing messages?
推导队列是否在处理消息?
honcho workspace queue-status --json
honcho workspace queue-status --json
What conclusions exist?
存在哪些结论?
honcho conclusion list --observer <peer_id> --json
honcho conclusion search "expected topic" --observer <peer_id> --json
undefinedhoncho conclusion list --observer <peer_id> --json
honcho conclusion search "expected topic" --observer <peer_id> --json
undefinedSession context looks wrong?
会话上下文异常?
bash
undefinedbash
undefinedRaw context an agent would receive
Agent接收的原始上下文
honcho session context <session_id> --json
honcho session context <session_id> --json
Summaries feeding the context
提供上下文的摘要
honcho session summaries <session_id> --json
honcho session summaries <session_id> --json
Recent message history
近期消息历史
honcho message list <session_id> --last 50 --json
undefinedhoncho message list <session_id> --last 50 --json
undefinedDialectic giving bad answers?
辩证逻辑给出错误答案?
bash
undefinedbash
undefinedWhat the peer card says
peer卡片的内容
honcho peer card <peer_id> --json
honcho peer card <peer_id> --json
Conclusions on the specific topic
特定主题的结论
honcho conclusion search "topic" --observer <peer_id> --json
honcho conclusion search "topic" --observer <peer_id> --json
Exercise the dialectic directly
直接测试辩证逻辑
honcho peer chat <peer_id> "what do you know about X?" --json
undefinedhoncho peer chat <peer_id> "what do you know about X?" --json
undefined