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-sessions

Pre-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")"; fi
Git branch (pre-resolved): !
git rev-parse --abbrev-ref HEAD 2>/dev/null
If the lines above resolved to plain values (a folder name like
my-repo
and a branch name like
feat/my-branch
), 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.
仓库名(预解析): !
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")"; fi
Git分支(预解析): !
git rev-parse --abbrev-ref HEAD 2>/dev/null
如果上述行解析为普通值(例如类似
my-repo
的文件夹名和类似
feat/my-branch
的分支名),即可直接传递给Agent。如果它们仍包含反引号命令字符串或者为空,说明解析失败——请在调度时省略这些参数,让Agent在运行时自行推导。

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). If no question tool is available, ask in plain text and wait for a reply.
Dispatch
compound-engineering:research: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)
如果未提供任何参数,询问用户想要了解会话历史的哪些内容。使用平台的阻塞式提问工具(Claude Code中为
AskUserQuestion
,Codex中为
request_user_input
,Gemini中为
ask_user
)。如果没有可用的提问工具,就用纯文本提问并等待用户回复。
调度
compound-engineering:research:session-historian
,将用户的问题作为任务提示词。省略
mode
参数,以便应用用户已配置的权限设置。调度提示词中需包含:
  • 用户的问题
  • 当前工作目录
  • 预解析上下文中的仓库名和Git分支(仅当它们解析为普通值时才包含,不要传递字面命令字符串)