运行时依赖
安装命令
点击复制技能文档
Agentype Agentype 将用户本地的 AI-agent 历史汇总为一份确定性的使用概览。 角色发现由触发 agent 用自己的 LLM 完成——Agentype 本身默认不调用任何 LLM。
何时使用 当用户问: “我的 agentype 是什么?” “分析我的 agent 使用情况” “显示我的 AI 使用统计” “我最常用哪些 agent 或模型?” “根据我的 AI 工作流,我是什么人设?” /agentype
勿用于账单估算。Agentype 仅报告本地 token 与使用信号,非服务商发票。
读取内容 Agentype 从支持的 agent 收集本地会话与 token 元数据(如有): Claude Code Codex OpenCode pi-agent Gemini CLI OpenClaw Nanobot 以及通过 AGENTYPE_NANOBOT_ROOTS 配置的 Nanobot 兼容 JSONL 根目录
本技能流程完全本地:读取磁盘 agent 历史,终端打印摘要。角色推断在 agent 侧完成,不请求 CLI 访问外部模型服务。
运行 已安装: agentype
源码检出: uv run agentype
无 uv 用户建议: pipx install agentype-cli agentype
自定义本地路径 若 agent 历史不在默认位置,先询问并配置对应根目录。 Nanobot 兼容 JSONL 根目录可通过 AGENTYPE_NANOBOT_ROOTS 添加: AGENTYPE_NANOBOT_ROOTS="/path/to/workspace:/path/to/another/root" agentype --json-out
不支持的 agent 布局,可告知用户收集器路径在 src/agentype/paths.py,适配器在 src/agentype/sources/,可自行添加本地路径或适配器后发布私有统计。
输出模式 默认:海报式终端概览,先显示 AGENTYPE/角色,再列 token 用量、细分与趋势。默认无 LLM 调用。 -v:附加详细统计表、发现主题、数据置信度。 --json-out:写入 output/agentype.json 完整分析。 --json-in PATH:渲染已保存的 Agentype JSON 文件,需先填顶层角色字段。 --png-out:生成 output/agentype.png,可分享的聊天海报图。
Agent 指令 用户调用本技能时:
- 运行 agentype --json-out(源码检出则用 uv run)收集本地用量至 output/agentype.json。
- 读取 output/agentype.json。
- 必要时用自己的 LLM 从聚合信号(顶级项目、agent、模型、技能元数据、使用模式)推断角色。
- 填充 JSON 顶层字段:archetype、description、keywords、comment。comment 限 2-3 句,以“You are a...”开头,有证据。
- 运行 agentype --json-in output/agentype.json --png-out 渲染终端结果与可分享 PNG。
- 向用户简洁汇报角色与顶级用量,环境支持则附 output/agentype.png。
- 调试/验证:agentype -v --json-out。
- 不暴露原始会话文件、prompt 或私有记录。
- 聊天/IM 环境紧凑总结终端结果,分享优先用 PNG。