跳到正文
Skillpedia
通用编程70k · #3130

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/coding-agent-sessions/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. IF the user names a platform, load its reference first.

    Platform Read
    Codex / OpenAI Codex CLI references/codex.md
    Claude Code / Claude Desktop histories references/claude.md
    OMO / Senpi / pi coding-agent logs references/senpi.md
    oh-my-pi (omp, ~/.omp) and gajae-code (gjc, ~/.gjc) logs references/senpi.md
    OpenCode / oh-my-openagent (formerly oh-my-opencode) storage references/opencode.md
    OpenClaw, Droid, Amp, Gemini, Kimi, Qwen, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Kiro, Goose, Hermes, Crush, Zed, Aside references/all-platforms.md
    Unknown / "any session" / cross-agent search references/all-platforms.md
  2. Run 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.

  1. 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.

  1. Read details from search results before ad hoc digging. Search results include detail_hint; run that read <session-id> --platform <platform> command to see the first user prompt, last user prompt, events, and child sessions together.

  2. Verify by opening raw transcripts for claims. The finder normalizes formats; the raw path remains 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.

repo: code-yeongyu/oh-my-openagent

热度

GitHub 星标
70k
排名
#3130
许可证
NOASSERTION
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能