ctx
Use or bootstrap the `ctx` CLI to search, start, resume, rename, delete, branch, and inspect saved coding workstreams.
- License 许可
- MIT
- 所属仓库
- dchu917/ctx
- 最近更新
- 2026-04-22
- Stars
- ★ 128
- Forks
- 10
01 前言 Front Matter
- name
- ctx
- description
- Use or bootstrap the `ctx` CLI to search, start, resume, rename, delete, branch, and inspect saved coding workstreams.
02 资源文件 2
- 脚本scripts/ctx.sh724 B
- 脚本scripts/install_ctx.sh3.5 KB
03 SKILL.md 正文
Use this skill when the user wants to recover prior coding context, continue a named workstream, create a new workstream, rename or delete a workstream, branch context, or open the local browser UI.
Requirements:
- If
ctxis missing, use the bundled wrapperscripts/ctx.sh. scripts/ctx.sh installbootstraps the global install into~/.contextfun.- Any other
scripts/ctx.sh ...invocation can also auto-install first, then retry the requested command.
Use the single ctx entrypoint:
ctx install(skill bootstrap helper; installs the global CLI and bundled skills when needed)ctxctx list [--this-repo]ctx search <query> [--this-repo]ctx start <workstream> [--pull]ctx resume <workstream> [--compress] [--allow-other-repo]ctx rename <new-name> [--from <existing-workstream>]ctx delete <workstream>orctx delete --session-id <id>ctx branch <source-workstream> <target-workstream> [--allow-other-repo]ctx web --open
The bundled wrapper is available as scripts/ctx.sh <subcommand> ....
Behavior:
- If
ctxis missing, bootstrap it withscripts/ctx.sh installor let the wrapper auto-install on first use. startcreates a new workstream. If the name already exists, ctx automatically createsname (1),name (2), and so on.resumeonly continues an existing workstream. If there is no match, say so plainly instead of silently creating a new one.- When resuming, summarize the workstream briefly, mention the last task and latest relevant activity, and ask how the user wants to proceed.
- Make it explicit that new context from the current conversation will be appended to the resumed workstream.
- If the user wants to explore without changing the source workstream, branch first.
- Use
--this-repowhen the user is asking about context related to the current repository.
04 同仓库更多 Skills
ctx-start
Create a new ContextFun workstream and its first session, then print a markdown pack.
ctx-resume
Resume a ContextFun workstream and print a markdown pack.
ctx-list
Compatibility alias for listing available ContextFun workstreams
ctx-delete
Delete the latest session in a ContextFun workstream, or delete a specific session id.
ctx-branch
Branch one workstream into a new workstream with a frozen starting snapshot.
ctx
Show the current workstream, or dispatch ctx subcommands like list, start, resume, delete, and branch.