ccs

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

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.

agentmods
npx agentmods add skills/mblode/claude-code-search/ccs
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.

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. Scan, not verified.
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 $0.00044 $0.00377
Opus 5 $0.00022 $0.00188
Sonnet 5 $0.00009 $0.00075
Haiku 4.5 $0.00004 $0.00038

Measured 2d ago against content hash 2524ed89880d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 12d ago), licensed MIT. It adds 44 tokens to every session and 377 once invoked, about $0.0002 per session on Opus 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

status-card-query

Create and maintain agent-authored Paperclip status cards, or compile a prose interest prompt into bounded CompanySearchQuery objects and write the first summary from the assigned Summarizer run.

paperclipai/paperclip · 40 tokens

bilibili_search

Search for videos on Bilibili using keyword queries generated from user interests.

whiteguo233/OpenBiliClaw · 20 tokens

ddgs

Use when an agent needs to search the web, find images/news/videos/books, or extract content from a URL. Covers the ddgs Python library, CLI, and MCP server integration.

deedy5/ddgs · 40 tokens

vs-search-tuning-specify-policy-direction

Viking Search tuning for specified policy directions. Use this when the user provides specific queries, a type of query, or a business policy direction, and asks to boost, suppress, or fix a class of search results through request-parameter passthrough. You must only perform read-only baseline evaluation and…

volcengine/SearchCLI · 93 tokens

vs-search-tuning-partial-case

Use when the user provides 1-50 concrete bad-case search queries for one Viking Search app and wants local deterministic fixes. This skill only verifies request-level fine-operation interventions against a read-only baseline scene and delivers a console-ready configuration sheet, validated payloads, and a replay…

volcengine/SearchCLI · 85 tokens

ketch

Research skill for ketch — a fast stateless CLI for web search, OSS code search, curated library docs, page scraping, and site crawling; an optional MCP server exists for operators who want it, but the CLI is the primary interface. Use when a question needs live sources: 'research X', 'what are people saying about Y'…

1broseidon/ketch · 148 tokens