coding-agent-sessions
它能做什么
这个工具可以帮你查找和回顾你过去与编写代码的 AI 助手的对话记录。它可以搜索这些对话保存在不同平台上的记录。
适用场景
- ✓当你想回忆之前某个项目里做过的事情时。
- ✓当你需要找到 AI 助手给出过的某段代码或解释时。
- ✓当你想查看某个编程问题是如何一步步解决的历史过程时。
技能链接
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/coding-agent-sessions/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在项目 X 中搜索我之前关于修复登录 bug 的对话。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会查看保存 AI 助手对话的日志文件。你可以按平台(比如 Codex 或 Claude)和日期进行筛选,从而找到对应的那段对话。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Coding Agent Sessions
Find local coding-agent sessions across agent products before answering from memory. Prefer the bundled finder for broad cross-platform search, then read the selected session or raw file when you need exact evidence.
PHASE 0 - PLATFORM ROUTER
IF the user names a platform, load its reference first.
Platform Read Codex / OpenAI Codex CLI references/codex.mdClaude Code / Claude Desktop histories references/claude.mdOMO / Senpi / pi coding-agent logs references/senpi.mdoh-my-pi ( omp,~/.omp) and gajae-code (gjc,~/.gjc) logsreferences/senpi.mdOpenCode / oh-my-openagent (formerly oh-my-opencode) storage references/opencode.mdOpenClaw, Droid, Amp, Gemini, Kimi, Qwen, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Kiro, Goose, Hermes, Crush, Zed, Aside references/all-platforms.mdUnknown / "any session" / cross-agent search references/all-platforms.mdRun the broad finder first unless the user gave an exact file path. For fuzzy recall, expand the query first.
When the user remembers a task vaguely ("that OpenCode bug", "the dashboard PR", "when did we fix X"), derive 3-6 short query lanes before searching: product/tool aliases, repo/package names, exact error text, issue/PR/session IDs, English/Korean phrasing, and likely verbs such as fix, review, plan, deploy, or merge. Run the lanes together with repeated --query so match_reasons shows which wording found the hit.
python3 scripts/find-agent-sessions.py list --limit 20
python3 scripts/find-agent-sessions.py find "commit" --from 7d --platform senpi --platform opencode
python3 scripts/find-agent-sessions.py find "proxy" --platform openclaw --platform droid --platform amp
python3 scripts/find-agent-sessions.py find "refactor" --platform oh-my-pi --platform gajae-code
python3 scripts/find-agent-sessions.py find --query "deploy" --query "token usage" --workers 64
python3 scripts/find-agent-sessions.py find --query "opencode bug" --query "fix opencode" --query "OpenCode parent session" --include-subagents --workers 64
python3 scripts/find-agent-sessions.py read <session-id>
Use python instead of python3 on systems where that is the available executable.
- Use explorer-style parallel lanes when one query batch is not enough.
If scope is broad (multi-month, many repos/platforms, or a vague "what happened with X"), split independent searches by names/errors, repos/cwds, platforms/models, and time windows. Use available subagent/delegation tools for these lanes when they exist; otherwise run the finder calls in parallel. Merge candidates by id/path, then read the most likely sessions.
Read details from search results before ad hoc digging. Search results include
detail_hint; run thatread <session-id> --platform <platform>command to see the first user prompt, last user prompt, events, and child sessions together.Verify by opening raw transcripts for claims. The finder normalizes formats; the raw
pathremains the source of truth.
Output Contract
The finder prints JSON for stdout and jq. Every result includes:
| Field | Meaning |
|---|---|
platform |
Registered platform key such as codex, claude, senpi, oh-my-pi, gajae-code, opencode, openclaw, droid, amp, kodu, cursor-cli, aider, roo-code, kilo-code, kilo-cli, kiro, or aside |
id |
Session ID or stable file-derived ID |
path |
Raw transcript/index file |
cwd |
Working directory when recoverable |
created_at, updated_at |
ISO-like timestamps when recoverable |
provider, model |
Model metadata when recoverable |
first_user_message |
First user prompt preview (for subagents: task description + delegated prompt) |
last_user_message |
Last user prompt preview when recoverable |
usage |
Token/cost clues when present in the platform log |
parent_id |
Parent session/thread ID when this is a subagent or child session, else null |
agent |
Subagent label (Claude agentType, Codex nickname (role), OpenCode agent name) |
subagent_count |
Number of child sessions spawned by this session |
detail_hint |
Ready-to-run read command for detailed inspection |
match_reasons |
Search-only array explaining which field/content matched each query |
…
常见问题
“coding-agent sessions”是什么?
这些是你与帮助编写或调试代码的 AI 助手之间的对话记录。
支持哪些平台?
它支持 Codex、Claude、OpenCode、OMO/Senpi 等多种平台,也支持本地日志。
它是如何找到对话的?
它会运行一个脚本,搜索存放日志的特定目录,你可以按平台名称、日期,甚至对话中的关键词进行筛选。
详情
作者的原始描述
Finds, reads, and reconstructs coding-agent sessions across Codex, Claude, OpenCode, OMO/Senpi, and other local agent logs. Use when asked to find or search past sessions, transcripts, or subagent runs, or to recover what an earlier session did.
热度
- GitHub 星标
- 70k
- 排名
- #3130
- 许可证
- NOASSERTION
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
comment-checker
70k帮你的智能体理解并回应自动代码检查工具的反馈。适用于处理自动化代码或内容审查的结果。
lcx-contribute-bug-fix
70k帮你的智能体为 LazyCodex 相关项目贡献错误修复。它会创建 issue 或 pull request,保障代码质量。
lcx-doctor
70k让你的智能体检查 LazyCodex 和 Codex CLI 安装的健康状况。当系统在更新或改动后表现异常时很有用。
lcx-report-bug
70k帮你的智能体为 LazyCodex 项目详细报告 bug。它会创建包含有用信息的 issue,方便开发者定位并修复问题。