Skip to content
Back to skills

Ccs

ASecurity

Search local Claude Code, Codex, and Cursor user-prompt history (read-only). Use when you need a past prompt, want to grep coding-agent session text, or pipe prompt history as JSON.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 5, 2026
ai-agentsbashnode

Works with

  • claude code
  • cursor
  • terminal
  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 5, 2026

npx -y skills add mblode/claude-code-search --skill ccs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ccs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ccs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mblode-ccs/badge)](https://www.skillsdirectory.com/skills/mblode-ccs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ccs
description: Search local Claude Code, Codex, and Cursor user-prompt history (read-only). Use when you need a past prompt, want to grep coding-agent session text, or pipe prompt history as JSON.
---

# ccs

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

## Install

```bash
npm install -g claude-code-search
```

Node >= 24.11.

## Agent usage

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

```bash
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:

```json
{ "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)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.