agentctx
Star on GitHub
Work in progress

The context layer for AI coding agents.

Open source. Local-first. Persistent understanding that scales with your codebase.

Quick start

One install, then it remembers.

The client runs on your machine. Nothing leaves it.

bash
# Install global client
npm install -g @agentctxhq/agentctx

The friction

Every session starts from zero.

  • Your agent forgets the codebase between runs.
  • Logs pile up as noise, never as understanding.
  • Each tool keeps its own project layer, alone.

The agentctx way

Context is not a log. Structured understanding for the agent that picks up where you left off.

project_schema.json
Active context: auth workflow

The cost of starting over

How much of your week goes to re-explaining?

Set your own numbers. This is simple arithmetic, not a benchmark.

6 sessions
5 min each
5 days
Re-explaining, per year120hAbout 15.0 full working days, or 2.5 hours every week.

6 × 5 min × 5 days × 48 weeks

Roadmap

What we're building.

One surface at a time, ending in a standard anyone can implement.

  1. 1

    Claude Code

    MCP server, local storage, fully open source context injection for the Claude CLI.

    Available now
  2. 2

    Cursor

    The same persistent context layer, running as a background service for IDE surfaces.

    In progress
  3. 3

    Open protocol

    Context as shared infrastructure. One standard every agent can read and write.

    Planned

See the difference

Same task. Very different second session.

  • youAdd rate limiting to the upload endpoint.
  • agentWhich framework is this? Where do routes live?
  • youExpress, routes are in src/api. We use Redis already.
  • agentAdded an in-memory limiter to src/api/upload.ts.
  • youIt runs on 4 instances. That won't work. Use Redis.

Five turns, and half of them re-explain the project.

No context available

The agent starts from a blank page.

Illustrative example, not a recorded session.

How it works

  1. 01

    Install

    Add the client from npm with a single command.

  2. 02

    Work as usual

    Run your coding agent the way you always do.

  3. 03

    Context builds itself

    agentctx learns from your sessions locally, in the background.

Who it's for

  • Solo builders

    Stop re-explaining your stack every time you open a new session.

  • Growing teams

    Keep conventions and past decisions in front of the agent, not buried in chat history.

  • Long-running projects

    Pick a project back up after weeks away and your agent already knows where you left off.

Your context stays on your machine.

Principles

  1. 01

    Local-first

    Context is built and stored on your machine, from your own sessions.

  2. 02

    Open source

    The source is on GitHub and the client installs from npm. Read it, fork it.

  3. 03

    Zero ceremony

    Run your agent as usual. The context layer builds itself in the background.

FAQ

Which agents does agentctx work with?

It is built for Claude Code today, with support for other coding agents on the roadmap.

Where does my context live?

Context is stored locally and built from your own sessions.

Do I have to change how I work?

No. Install the client, run your agent as usual, and the context layer builds itself in the background.

Is agentctx open source?

Yes. The source is on GitHub, and the client installs from npm.

Does it send my code anywhere?

No. Context is stored and built locally from your own sessions.

Get started

Start with Claude Code today.

Install the client, run your agent, and let the context layer build itself.

Star on GitHubOr install from npm