Agent skill · AI & Agents

ctx-agent-history-search

Use ctx to search local coding-agent history before acting. Use when prior agent sessions may contain relevant insights, decisions, attempts, or transcript context.

ctxrsgithub.com/ctxrsGitHub ↗
claude-codecodexcursorApache-2.0
Install
npx skills add ctxrs/ctx --skill ctx-agent-history-search --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/ctx-agent-history-search/SKILL.md
Open the folder on GitHub →
Where it comes from
Source: ctxrs/ctx
Stars: 1,004
Language: Rust

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# ctx Agent History Search Use ctx whenever you need to reference previous coding-agent sessions. Those transcripts can contain user intent, decisions, previous work timelines, past attempts, and what worked or failed. Use this skill in two modes: - retrieval before work, when prior sessions may contain decisions, commands, failures, or citations that affect the current task; - history research reports, when the user asks an agent or read-only subagent to research a historical topic across prior local agent sessions. ## Prerequisites - Require the `ctx` CLI to be installed and set up. If it is missing and installing tools is appropriate for the task, install it with: ```bash curl -fsSL https://ctx.rs/install | sh ``` - First setup can take time while ctx indexes past sessions. If needed, keep it running in the background or in tmux, or wait for it to finish. - If ctx remains unavailable, say local history search is unavailable and do not invent results. ## Workflow 1. Confirm ctx is ready when starting from a cold context: ```bash ctx status ctx sources ``` Use `ctx status --format json` or `ctx sources --format json` only when a script needs exact fields. 2. Search with normal lan

What's inside
Steps it walks through
  1. Prerequisites
  2. Workflow
  3. When Search Needs Narrowing
  4. History Research Reports
  5. Citation Rules
  6. Safety Rules
Commands it runs
curl -fsSL https://ctx.rs/install | sh
ctx status
ctx sources
ctx search "<query>"
ctx search "<query>" --refresh off
ctx search "<query>" --provider codex
ctx search "<query>" --workspace <workspace>
ctx search "<query>" --file <path>
ctx search "<query>" --since 30d
ctx search "<query>" --term "<related term>" --term "<error text>"
About this skill
What does the ctx-agent-history-search skill do?

Use ctx to search local coding-agent history before acting. Use when prior agent sessions may contain relevant insights, decisions, attempts, or transcript context.

How do I install it?

Run `npx skills add ctxrs/ctx --skill ctx-agent-history-search --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ctxrs/ctx, a repository with 1,004 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going