agentctx
Star on GitHub

Compare

Four ways to give an agent context.

Every developer using a coding agent has already picked one, often by default. Here is how they stack up, and where a dedicated context layer fits.

Comparison of approaches to agent context
CapabilityRe-explain each sessionHand-written notes fileLog-based memoryagentctx
Survives across sessionsDoes the next session start informed?NoYesYesYes
Updates without youOr does someone have to remember to maintain it?NoNoYesYes
Structured, not just recalledArchitecture and decisions, rather than a pile of past events.PartlyPartlyNoYes
Captures why, not only whatThe reasoning behind past decisions.PartlyPartlyNoYes
Stays on your machineNo project data sent to a hosted service.YesYesPartlyYes
Zero change to your workflowInstall once, then keep working as usual.YesPartlyPartlyYes

● yes   ◐ partly   ○ no — a general comparison of approaches, not of specific products.

The trade-offs

  • Re-explaining each session

    It works, and it is free. It also costs the first ten minutes of every session, and the explanation is only as good as what you remember to say that day. Nothing accumulates.

  • A hand-written notes file

    A notes file is the right instinct and a fine place to keep standing rules. The weakness is upkeep: it goes stale the moment the code moves, and nobody enjoys documenting the half-finished feature they are in the middle of.

  • Log-based memory

    Capturing tool calls and conversations and retrieving them later is useful, and it keeps itself current. But a log answers "what happened". It does not tell the agent which parts are stable, which are risky, or what the current bet is.

  • agentctx

    A context layer builds a structured model from your own sessions: the shape of the system, the decisions behind it, and the work in flight. It is local-first and open source, and it is early work. Today it targets Claude Code.

They are not mutually exclusive.

Keep your standing rules in a notes file. Let the context layer handle everything that changes.