ce-sessions
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/ce-sessions
/ce-sessions
Search your session history.
搜索你的会话历史。
Usage
用法
/ce-sessions [question or topic]
/ce-sessions/ce-sessions [question or topic]
/ce-sessionsPre-resolved context
预解析上下文
Repo name (pre-resolved): !
common=$(git rev-parse --git-common-dir 2>/dev/null); if [ "$common" = ".git" ]; then basename "$(git rev-parse --show-toplevel 2>/dev/null)"; else basename "$(dirname "$common")"; fiGit branch (pre-resolved): !
git rev-parse --abbrev-ref HEAD 2>/dev/nullIf the lines above resolved to plain values (a folder name like and a branch name like ), they are ready to pass to the agent. If they still contain backtick command strings or are empty, they did not resolve — omit them from the dispatch and let the agent derive them at runtime.
my-repofeat/my-branch仓库名(预解析): !
common=$(git rev-parse --git-common-dir 2>/dev/null); if [ "$common" = ".git" ]; then basename "$(git rev-parse --show-toplevel 2>/dev/null)"; else basename "$(dirname "$common")"; fiGit分支(预解析): !
git rev-parse --abbrev-ref HEAD 2>/dev/null如果上述行解析为普通值(例如类似的文件夹名和类似的分支名),即可直接传递给Agent。如果它们仍包含反引号命令字符串或者为空,说明解析失败——请在调度时省略这些参数,让Agent在运行时自行推导。
my-repofeat/my-branchExecution
执行
If no argument is provided, ask what the user wants to know about their session history. Use the platform's blocking question tool ( in Claude Code, in Codex, in Gemini). If no question tool is available, ask in plain text and wait for a reply.
AskUserQuestionrequest_user_inputask_userDispatch with the user's question as the task prompt. Omit the parameter so the user's configured permission settings apply. Include in the dispatch prompt:
compound-engineering:research:session-historianmode- 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)
如果未提供任何参数,询问用户想要了解会话历史的哪些内容。使用平台的阻塞式提问工具(Claude Code中为,Codex中为,Gemini中为)。如果没有可用的提问工具,就用纯文本提问并等待用户回复。
AskUserQuestionrequest_user_inputask_user调度,将用户的问题作为任务提示词。省略参数,以便应用用户已配置的权限设置。调度提示词中需包含:
compound-engineering:research:session-historianmode- 用户的问题
- 当前工作目录
- 预解析上下文中的仓库名和Git分支(仅当它们解析为普通值时才包含,不要传递字面命令字符串)