agentctx
Star on GitHub

Security

A threat model, not a trust badge.

agentctx sits between your agent and your project, so it is fair to ask what it can touch and what could go wrong. Here is our honest answer, including the parts that are your responsibility.

Where it runsYour machine

agentctx is a local MCP server started by your agent. No hosted service is required.

Who it talks toYour agent

Over the local MCP connection. It is not designed to open network connections for its core function.

What it storesProject understanding

Structured notes about architecture, decisions and active work, kept on disk in your environment.

What we receiveNothing

No source code, prompts or transcripts reach us. See the privacy page for the full statement.

What can go wrong

  • Secrets ending up in stored context

    Context is built from your agent sessions, and sessions sometimes contain secrets. Anything the agent sees could in principle be summarized into the stored understanding.

    What to do: Keep secrets in your environment or a secrets manager rather than pasting them into sessions, and treat the context directory with the same care as your working tree.

  • Committing context to a public repository

    The stored understanding describes your project. If you commit or publish it, you are publishing that description.

    What to do: Decide deliberately whether the context directory is shared, and add it to your ignore rules if it should stay private.

  • Prompt injection through project content

    Text inside files, issues or dependencies can try to steer an agent. Anything that reaches the stored context could be read back into a later session.

    What to do: Review what your context says about the project, especially after working with untrusted code, and prune entries you do not recognize.

  • A malicious or tampered package

    agentctx is installed from npm like any dependency, so the usual supply chain risks apply.

    What to do: Install the official @agentctxhq/agentctx package, pin the version you have reviewed, and read the source, which is public.

  • Shared machines and permissions

    Local files are only as private as the account that owns them. agentctx does not add its own access control on top of your operating system.

    What to do: Rely on normal file permissions and disk encryption, and avoid running it on machines you do not control.

How we approach it

  1. 01The client is open source, so every claim on this page can be checked against the code.
  2. 02Local-first is a design constraint: changes that would send project data off the machine by default are not accepted.
  3. 03We say plainly when something is unfinished. This is early software and has not had an independent security audit.

Found a vulnerability?

Please do not post it in a public issue. Use GitHub's private vulnerability reporting on the repository, and include steps to reproduce. We will acknowledge reports and keep you updated.