ctxrs

    ctxrs/ctx

    Instant recall for coding agents. Search the history already on your machine. Git blame, but for agent sessions.

    ai-agents
    ai
    developer-tools
    agent
    agent-skills
    agentic
    agentic-ai
    agentic-workflow
    Rust
    Apache-2.0
    1.2K stars
    76 forks
    1.2K GitHub watchers
    Updated Oct 30, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest 5 days ago, with 20 contributors on GitHub.

    Use Cases & Benefits

    • Provides a CLI tool for fast local search across past coding agent sessions by indexing session logs into a local SQLite database.
    • Enables instant, token-efficient recall of detailed agent session history without relying on cloud services or external APIs.
    • Use for recovering context from previous coding agent decisions, commands, and failed attempts to avoid redundant work.
    • Use for integrating with AI coding agents like Codex, Claude Code, or Cursor to enhance their memory with searchable session history.
    • Use for auditing and inspecting detailed local agent session transcripts and metadata securely on your machine without data leakage.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    ctx is an open-source CLI for fast local search across your past coding agent sessions.

    Coding agents usually start from zero. They can inspect the current repo, but they often cannot recover the discussions, decisions, failed attempts, commands, and test results from earlier work.

    Those sessions are full of useful context:

    ctx indexes those logs into SQLite on your machine, then gives current and future agents a CLI for finding the prior discussion, command, or failed attempt before they repeat it.

    Optional but recommended for agent sessions:

    For marketplace/plugin installs in Codex, Claude Code, Cursor, and raw Agent Skills, see Agent Skill Install.

    By structuring agent history into sessions, events, metadata, and indexed fields, then returning ranked cited matches, agents can access meaningful history with far fewer tokens than raw search. Results vary by query and corpus, but raw search is often so token-heavy that it can be effectively the same as not having usable history.

    Excerpt from the ctxrs/ctx README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    76+20

    Open issues

    13+11

    Compared with peers in AI Agents

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    ctxrs/ctx compared with AI Agents repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    vercel-labs/agent-desktop17.0K+13.3K33today
    thedotmack/claude-mem113.6K+8.8K35today
    stablyai/orca116.8K+6.6K40today
    milind-soni/OpenMausBot13.5K+6.0K45today
    HKUDS/DeepTutor55.5K+5.5K655 days ago
    ctxrs/ctx1.2K—405 days ago
    Category median55.5K+6.6K40—

    Discover Repositories

    Search across tracked repositories by name or description