# "Agent memory resolved?"
<!--
ref: @content/youtube/ai-jason/agent-memory-resolved
tags: [agent memory, context management, Git Context Controller, OneContext, coding agents, shared memory, Claude Code]
version: 2
updated_at: 2026-11-22T13:43:37.307Z
-->
**[Watch on YouTube](https://www.youtube.com/watch?v=pAIF7vZm5k0)**
# Agent memory resolved?
*Synthesized from Jason on AI Jason, 2026-02-18.*
Jason (first name only, given in a demo where he tells the agent "my name is Jason") presents alone and demonstrates a memory tool for coding agents. Product names are phonetically garbled in the transcript ("Align" and "Aline" appear for the company behind OneContext).
## Core Thesis
Jason argues that coding agents get worse on long tasks because the effective context window is about 120k to 200k tokens despite 1M-token claims, and that a simple file-based memory modelled on git, shared across any agent and session, is a practical fix. He presents the Git Context Controller method and the OneContext tool built on it as an easy-to-adopt example, with the caveat that the demo was imperfect.
## Key Insights
- **Why built-in memory falls short.** Claude Code's memory keeps a memory file per project, which can bloat on complex projects and is specific to that tool. He wants knowledge shared across any agent so a team's knowledge accumulates.
- **Reported gains.** The method is said to make Claude Code about 13% better on software engineering tasks (he also says 14% later) and let a smaller model such as GLM 4.5 Air approach frontier-model results.
- **Git Context Controller structure.** A `main.md` holds global project context and roadmap. Each approach gets a branch folder with `commit.md` (milestone summaries), `log.md` (the raw conversation and actions) and metadata. Four actions: branch (try an alternative strategy), commit (milestone or subtask done), merge (fold a branch's commit and log back into main and update the summary), plus context retrieval, which proceeds progressively from main to branch commits to raw logs.
- **Worked example.** A LinkedIn scraper task: branch a "playwright" approach, commit when a v1 script is tested, then branch an "API" approach if playwright proves wrong, and merge results into main.md.
- **OneContext setup.** Install with `npm i -g onecontext-ai`, run `onecontext`, add a context (a named group of memory, easiest as one per project), then add sessions for Claude Code or Codex in a workspace. A watcher service and a stop hook save each session into a local database and trigger a summary call to a small model (GPT-4 mini by default). A skill file tells agents to do a broad search in the context, then narrow by session or turn. Memory is shared across different folders and agents.
- **Demo.** He told the agent his name, had it remove Claude's own memory entry, and a new session in another folder still answered correctly through OneContext search. In a three-session research test (OpenClaw, Letta context repositories and OneContext memory), a fourth session produced a pros-and-cons comparison but made a retrieval error about OpenClaw, which he thinks relates to Claude Code's own memory interfering.
- **Sharing.** A share button generates a URL with a simple chatbot loaded with the context; his answer about Letta's context repositories there looked correct.
- **Related.** He says Letta introduced a similar "context repositories" feature the same week, using the file system for multi-level memory.
## Actionable Takeaways
1. Keep one memory context per project and open every agent session inside it.
2. Structure memory as main summary, per-approach branch folders, commit summaries and raw logs, so agents retrieve progressively.
3. Run summaries through a stop hook so each session is captured automatically.
4. Disable or clear the agent's native memory when testing an external memory tool, to avoid contamination.
## Notable Quotes
> "Only by doing that your team's knowledge is actually accumulating and agent is getting better the more you use it." — Jason
> "the actual effective context window is somewhere between 120 to 200k" — Jason
---
*Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/youtube/ai-jason/how-to-build-proactive-agents-self-improving-company-fully-explained` · `@content/youtube/sean-kochel/opus-4-7-is-insanely-powerful-and-insanely-expensive` · `@content/youtube/yifan-bth/how-to-prompt-cursor-windsurf-copilot-to-get-reliable-output` · `@content/youtube/yifan-bth/i-reverse-engineered-claude-code-learn-these-agent-tricks`*
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*