一键导入
ctx-remember
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
EXPERIMENTAL (discardable). Hand a loose intent spec (.context/specs/intent-<slug>.md) off to spec-kit's /speckit-specify with a prose synopsis. Optional and graceful — warns and continues if spec-kit is not installed; the intent spec stands either way. Third step of the experimental chain.
EXPERIMENTAL (discardable). Stress-test a plan through adversarial interview, then write a debated brief to .context/briefs/<TS>-<slug>.md. First step of the experimental spec-kit delegation chain: /ctx-experimental-plan → /ctx-experimental-spec → /ctx-experimental-handoff.
EXPERIMENTAL (discardable). Turn a debated brief into a LOOSE intent spec at .context/specs/intent-<slug>.md — deliberately not pre-shaped into spec-kit's template. Second step of the experimental chain: /ctx-experimental-plan → /ctx-experimental-spec → /ctx-experimental-handoff.
Run a disciplined "dream" triage pass over the gitignored ideas/ folder — classify each idea against the codebase and specs, and emit gated, provenance-bearing disposition proposals into the dreams/ notebook for human review. NEVER writes canonical memory and NEVER acts on a proposal. Use when invoked headlessly by the scheduler (cron `claude -p`) or when the user says "run the dream" / "dream over my ideas". The human reviews via /ctx-serendipity.
The human review "garden walk" over ctx-dream proposals. Reads pending proposals from the dreams/ notebook and walks the human through accept / reject / amend / skip, one at a time, substance-forward. Mechanical dispositions apply instantly; generative ones (merge, promote) are done here by reading the full source. Use when the user says "serendipity round", "review my dreams", "walk the garden", or "what did the dream find?". The dream proposes; serendipity disposes.
Record architectural decision. Use when a trade-off is resolved or a non-obvious design choice is made that future sessions need to know.
| name | ctx-remember |
| description | Recall project context and present structured readback. Use when the user asks 'do you remember?', at session start, or when context seems lost. |
| allowed-tools | Bash(ctx:*), Read |
Recall project context and present a structured readback as if remembering, not searching.
Check that the context directory exists. If it does not, tell the
user: "No context directory found. Run ctx init to set up context
tracking, then there will be something to remember."
/ctx-agent: don't
re-fetch what you already have/ctx-history instead, which has list/show/export
subcommandsDo all of this silently: narrating the steps makes the readback feel like a file search rather than genuine recall:
ctx agent
ctx journal source --limit 3
.context/handovers/, sort by filename (timestamped
<TS>-<slug>.md; the newest is the lexicographically
last), and read its ## Summary and ## Next Session
sections as the authoritative recall surface. The
handover is the previous session's note to this one.
Skip only if .context/handovers/ is empty or absent..context/ingest/closeouts/ exists, list closeouts whose
generated-at postdates the handover's generated-at
and read their ## What Changed sections. These are
per-pass audit notes the previous wrap-up did not get a
chance to fold into a handover. This step is read-only:
/ctx-remember does not run any editorial pass. If the
directory does not exist or holds no postdated entries,
skip the step.Present your findings as a structured readback with these sections:
Last session: Topic, date, and what was accomplished. Cite the most recent session from the session list.
Active work: Pending and in-progress tasks from TASKS.md. Use a brief list: one line per task with its status.
Recent context: 1-2 recent decisions or learnings that are relevant. Pick the most recent or most impactful.
Next step: Suggest what to work on next based on the active tasks, or ask the user for direction if priorities are unclear.
Last session (2026-02-07): We implemented the cooldown mechanism for
ctx agentto prevent redundant context loads.Active work:
- Add
--format jsonflag toctx status(pending)- Implement session cooldown (done)
- Write integration tests for journal import (in progress)
Recent context:
- Decided to use file-based cooldown tokens instead of environment variables (simpler, works across shells)
- Learned that Claude Code hooks run in a subprocess, so env vars set in hooks don't persist to the main session
Next step: The integration tests for journal import are partially done. Want to continue those, or shift to the JSON status flag?
"I don't have persistent memory, but let me check if there are any context files..."
"Let me look at the context files to see what's there. I found TASKS.md, let me read it..."
"I found some session files. Here's what they contain..."
After presenting the readback, check companion tool availability.
Skip this section entirely if companion_check: false is set in
.ctxrc: check by running ctx config status and looking for
the field value.
Companion tools enhance ctx skills with web search and code intelligence. They are optional but recommended. ctx names canonical implementations below; if your MCP toolchain provides equivalent capabilities through different servers (e.g. Firecrawl / Exa / Tavily for web search; sourcegraph-cody for code graph), use whatever you have connected.
| Capability | Canonical example | Smoke test for the canonical example |
|---|---|---|
| Web search with citations | Gemini Search | Call mcp__gemini-search__search_with_grounding with a simple query |
| Code knowledge graph | GitNexus | Call mcp__gitnexus__list_repos |
Check procedure:
"GitNexus index is stale: run
npx gitnexus analyzeto rehydrate."
Present companion status as a one-line note after the readback only when there's something actionable (stale index). Absent tools produce no output; the agent uses its built-in capabilities transparently.
Before presenting the readback, verify: