gh:sessions
Search and ask questions about your coding agent session history. Use when asking what you worked on, what was tried before, how a problem was investigated across sessions, what happened recently, or any question about past agent sessions. Also use when the user references prior sessions, previous attempts, or past investigations — even without saying 'sessions' explicitly.
- License 许可
- MIT
- 最近更新
- 2026-05-19
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- gh:sessions
- description
- Search and ask questions about your coding agent session history. Use when asking what you worked on, what was tried before, how a problem was investigated across sessions, what happened recently, or any question about past agent sessions. Also use when the user references prior sessions, previous attempts, or past investigations — even without saying 'sessions' explicitly.
02 资源文件 1
- 脚本scripts/resolve-repo-name.sh369 B
03 SKILL.md 正文
/gh:sessions
Search your session history.
Usage
/gh:sessions [question or topic]
/gh:sessions
Pre-resolved context
Repo name (pre-resolved): !bash scripts/resolve-repo-name.sh
Git branch (pre-resolved): !git rev-parse --abbrev-ref HEAD 2>/dev/null || true
If the lines above resolved to plain values (a folder name like my-repo and a branch name like feat/my-branch), pass them into the Session Historian dispatch so the agent does not waste a turn deriving them. If they still contain backtick command strings or are empty, omit them from the dispatch and let the agent derive them at runtime.
Execution
If no argument is provided, ask what the user wants to know about their session history. Use the platform's blocking question tool (AskUserQuestion in Claude Code, request_user_input in Codex, ask_user in Gemini, ask_user in Pi (requires the pi-ask-user extension)). If no question tool is available, ask in plain text and wait for a reply.
Dispatch galeharness-cli:session-historian with the user's question as the task prompt. Omit the mode parameter so the user's configured permission settings apply. Include in the dispatch prompt:
- The user's question
- The current working directory
- The repo name and git branch from pre-resolved context (only if they resolved to plain values — do not pass literal command strings)
04 同仓库更多 Skills
skill-one
Sample skill
disabled-skill
A skill with model invocation disabled
claude-only-skill
A skill restricted to Claude Code only
default-skill
暂无简介
custom-skill
暂无简介
test-xcode
Build and test iOS apps on simulator using XcodeBuildMCP. Use after making iOS code changes, before creating a PR, or when verifying app behavior and checking for crashes on simulator.