/ctx:ctx-rememberfrom ctx
Recalls project context by loading context packet, reading key files, handovers, and closeouts, and checking knowledge health. Presents structured readback. Use for memory questions or session start.
Ships in ctx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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:
Load context packet:
ctx agent
Read the files listed in the packet's "Read These Files" section (TASKS.md, DECISIONS.md, LEARNINGS.md, etc.)
List recent sessions:
ctx journal source --limit 3
Read the latest handover. Look under
.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.
Read postdated closeouts, if any. When
.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.
Check knowledge health (read-only). Run:
ctx system check-knowledge --report
It prints nothing when every canonical root is within limits.
When it prints findings, surface them in the readback's
Knowledge health line: a foldable root suggests
/ctx-digest (fold the staging zone into themes); a heavy
page suggests splitting the theme or extracting it to tooling.
Suggest only — never run /ctx-digest or edit a file here.
If it prints nothing, omit the line.
Present the structured readback (see format below)
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.
Knowledge health (only when ctx system check-knowledge --report printed findings): name the foldable roots and/or heavy
pages it reported and the suggested remedy (/ctx-digest, or
split/extract). Suggestion only; omit the line entirely when the
report was empty.
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: reindex with the repo's own entry point — a
make gitnexus-indextarget, an indexing script, or the steps in itsGITNEXUS.md— if it has one; otherwise rungitnexus analyze. (On hosts where the npm binary can't build, the repo-local Docker path is the reliable runner.)"
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:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub activememory/ctx --plugin ctx54 skills in this plugin
/ctx-agentLoad full context packet. Use at session start or when context seems stale or incomplete./ctx-architectureBuild and maintain architecture maps. Use to create or refresh ARCHITECTURE.md and DETAILED_DESIGN.md. Supports principal mode for deeper analysis: vision, future direction, bottlenecks, implementation alternatives, gaps, upstream proposals, and intervention points./ctx-architecture-enrichEnrich architecture artifacts with code intelligence data. Takes existing /ctx-architecture output as baseline, verifies and quantifies with GitNexus MCP (blast radius, execution flows, domain clustering, registration sites). Run after /ctx-architecture, not instead of it./ctx-archiveArchive completed tasks. Use when TASKS.md has many completed items cluttering the view.Other plugins' skills for the same job