ccs

ccs is a skill for Claude Code, Codex from mblode/claude-code-search. It costs 44 tokens per session (377 once invoked), scanned A, original, MIT.

A read-only command-line search tool for past prompts from Claude Code, Codex CLI, and Cursor, which are coding-agent tools.

In plain words
What is it for?
Use it to search prompt history by text, filter by coding agent, or return matching sessions as JSON.
Why use it?
It avoids manually opening old session files when you need to find a previous request or piece of reasoning.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

Good fit Use it to search prompt history by text, filter by coding agent, or return matching sessions as JSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mblode/claude-code-search/ccs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mblode/claude-code-search --skill ccs
Clone the repo
git clone --depth 1 https://github.com/mblode/claude-code-search

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ccs

README.md
[![agentmods](https://agentmods.dev/badge/skills/mblode/claude-code-search/ccs/github.svg)](https://agentmods.dev/skills/mblode/claude-code-search/ccs)
Your own site
<a href="https://agentmods.dev/skills/mblode/claude-code-search/ccs"><img src="https://agentmods.dev/badge/skills/mblode/claude-code-search/ccs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ccs

Your own site · 80×15
<a href="https://agentmods.dev/skills/mblode/claude-code-search/ccs"><img src="https://agentmods.dev/badge/skills/mblode/claude-code-search/ccs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00377
Opus 5.5 $0.00018 $0.00151
Sonnet 5.5 $0.00009 $0.00075
Haiku 4.5 $0.00004 $0.00038

Measured 1mo ago against content hash 2524ed89880d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ccs/SKILL.md · 45 lines

What it actually says

ccs

Terminal search over your Claude Code, Codex CLI, and Cursor prompts. Never writes session files.

Install

npm install -g claude-code-search

Node >= 24.11.

Agent usage

Prefer non-interactive flags. stdout is data; stderr is logs.

ccs --no-input --output json -s "<query>" -n 20
ccs --no-input --output json -l -n 50 --source claude
ccs schema

--source is claude, codex, cursor, or all (repeatable). -j is an alias for --output json. -s / -l remain valid.

JSON objects include content, cwd, project, projectPath, source, sessionId, timestamp.

Errors in json mode:

{ "error": true, "code": "NO_RESULTS", "message": "...", "details": {} }

Do not launch the TUI (ccs with no flags) unless the user is at a TTY and asked for it.

Paths (read-only)

  • Claude: ~/.claude/projects/ (override --projects-dir / CCS_PROJECT_DIR)
  • Codex: ~/.codex/sessions/ (skips .jsonl.zst)
  • Cursor: Cursor User/globalStorage/state.vscdb (cwd-scoped unless --source cursor alone)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 45 lines · 44 tokens per session scan A 2524ed89880d

Subscribe to this mod's changes

ccs is a skill published in the GitHub repository mblode/claude-code-search (5 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 377 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

save-learning

Saves user instructions as persistent learnings for future sessions. Use when the user says 'remember this', 'always do X', 'from now on', 'never do Y', or gives any instruction they want persisted across sessions. Proactively suggest when the user states a preference, convention, or rule they clearly want followed in…

caliber-ai-org/ai-setup · 71 tokens

memory

Persistent, token-efficient project memory. When ON, maintains a .shob/memory/ folder of structured .md files so the full context of the project is NEVER lost across responses, sessions, or context compaction. Uses progressive disclosure — routes through a lightweight INDEX and loads only the files a task needs…

shobcoder/shob · 146 tokens

atomic-wiki

Conversational wiki and capture-bucket routing. Fires when the user wants a place, space, or folder for notes, research, tickets, raw dumps, or knowledge capture — checks the block in /.claude/CLAUDE.md; if the cwd is under a registered realm, creates the folder as a bucket via atomic wiki bucket add rather than a…

damusix/atomic-claude · 204 tokens

ai-session-search

Search, recover, inspect, export, and analyze local AI session history with AI Session Search (aise) across Claude Code, Claude Desktop local agent, Codex, Cursor, Antigravity, Pi coding agent, Prime Agent, Google AI Studio, and Gemini CLI. Use when asked to "find prior AI work", "recover context after compaction"…

ahundt/ai-session-search · 108 tokens

context-mode

Use context-mode tools (ctxexecute, ctxexecutefile) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process data", "parse JSON", "filter results", "extract errors", "check build output", "analyze dependencies", "process API response", "large file analysis", "page…

opencue/cuecards · 225 tokens

memory-management

A project-memory manager that stores information in HOT, WARM, and COLD tiers. These tiers keep frequently needed context close at hand while archiving older information for later retrieval.

opencue/cuecards · 41 tokens