Chuyển đến nội dung
Skillpedia
Lập trình chung70k · #3130

coding-agent-sessions

Skill này làm gì

Công cụ này giúp bạn tìm và xem lại các cuộc trò chuyện trước đây với trợ lý AI viết mã. Nó có thể tìm kiếm trên nhiều nền tảng nơi các cuộc trò chuyện này được lưu.

Khi nào nên dùng

  • ✓Khi bạn muốn nhớ lại những gì đã làm trong một dự án trước đây.
  • ✓Khi bạn cần tìm một đoạn mã hoặc lời giải thích mà trợ lý AI đã đưa ra.
  • ✓Khi bạn muốn xem lại lịch sử cách một vấn đề lập trình được giải quyết.

Liên kết skill

https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/coding-agent-sessions/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/coding-agent-sessions/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm các cuộc trò chuyện của tôi về việc sửa lỗi đăng nhập trong dự án X.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ tìm trong các tệp nhật ký nơi lưu các cuộc trò chuyện với trợ lý AI. Nó có thể lọc theo nền tảng (như Codex hoặc Claude) và theo ngày để tìm đúng cuộc trò chuyện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

…

Câu hỏi thường gặp

“Coding-agent sessions” là gì?

Đây là bản ghi các cuộc trò chuyện của bạn với trợ lý AI giúp viết hoặc gỡ lỗi mã.

Công cụ hỗ trợ những nền tảng nào?

Nó hỗ trợ nhiều nền tảng như Codex, Claude, OpenCode, OMO/Senpi và các nền tảng khác, cũng như nhật ký cục bộ.

Công cụ tìm cuộc trò chuyện bằng cách nào?

Nó dùng một script để tìm trong các thư mục lưu nhật ký, cho phép bạn lọc theo tên nền tảng, ngày tháng và thậm chí các từ khóa trong cuộc trò chuyện.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
70k
Vị trí xếp hạng
#3130
Giấy phép
NOASSERTION
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự