원클릭으로
ctx-history
Browse session history. Use when referencing past discussions or finding context from previous work.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Browse session history. Use when referencing past discussions or finding context from previous work.
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-history |
| description | Browse session history. Use when referencing past discussions or finding context from previous work. |
| allowed-tools | Bash(ctx:*) |
Browse, inspect, and import AI session history.
/ctx-status
or /ctx-agent instead)/ctx-history
/ctx-history list --limit 5
/ctx-history show <slug-or-id>
/ctx-history import --all
ctx journal sourceList recent sessions, newest first.
| Flag | Short | Default | Purpose |
|---|---|---|---|
--limit | -n | 20 | Maximum sessions to show |
--project | -p | "" | Filter by project name |
--tool | -t | "" | Filter by tool (e.g., "claude-code") |
--all-projects | false | Include all projects | |
--show | "" | Show details of a specific session | |
--latest | false | Show the most recent session | |
--full | false | Full conversation (not preview) |
Output per session: slug, short ID, project, branch, time, duration, turn count, token count, first message preview.
Use --show <id> to inspect a specific session. Accepts a
full UUID, partial UUID prefix, or slug name. Use --latest
if no ID is given.
Default output shows metadata and the first 5 user messages.
Use --full for the complete conversation.
ctx journal importImport sessions to the journal directory as Markdown.
| Flag | Default | Purpose |
|---|---|---|
--all | false | Import all sessions (only new files by default) |
--all-projects | false | Include all projects |
--regenerate | false | Re-import existing files (preserves frontmatter) |
--keep-frontmatter | true | Preserve enriched YAML frontmatter during regen |
--yes, -y | false | Skip confirmation prompt |
--dry-run | false | Preview what would be imported |
Accepts a session ID (always writes), or --all to import
everything (safe by default: only new sessions, existing
files skipped). Use --regenerate with --all to re-import
existing files; YAML frontmatter is preserved by default.
Use --keep-frontmatter=false to discard enriched frontmatter.
Locked entries (via ctx journal lock) are always skipped.
Large sessions (>200 messages) are automatically split into parts with navigation links between them.
ctx journal lockProtect journal entries from import regeneration.
ctx journal lock <pattern> # Lock matching entries
ctx journal lock --all # Lock all entries
ctx journal unlockRemove lock protection from journal entries.
ctx journal unlock <pattern> # Unlock matching entries
ctx journal unlock --all # Unlock all entries
ctx journal syncSync lock state from journal frontmatter to .state.json.
ctx journal sync
Scans all journal markdowns and updates .state.json to match
each file's frontmatter. Files with locked: true in frontmatter
are marked locked in state; files without a locked: line have
their lock cleared. This is the inverse of ctx journal lock:
frontmatter drives state instead of state driving frontmatter.
Useful after batch enrichment where you add locked: true to
frontmatter manually.
Sessions are read from ~/.claude/projects/ (Claude Code
JSONL files). The system auto-detects and parses session files;
only the current project's sessions are shown by default.
list, highlight notable sessions;
for show, summarize key points; for import, report what
was written and suggest next steps (normalize, enrich)"What did we work on recently?"
ctx journal source --limit 5
"Show me that session about authentication"
ctx journal source --project auth
# then with the slug or ID from the list:
ctx journal source --show <slug>
"Import everything to the journal"
ctx journal import --all
This only imports new sessions: existing files are skipped.
If the user asks what to do next, mention that /ctx-journal-enrich-all
can enrich the imported journals.
"Re-import sessions after a format improvement"
ctx journal import --all --regenerate -y
Before reporting results, verify:
--all for bulk import (safe: only new sessions)--dry-run when user seems uncertain--regenerate when explicitly needed