Purpose
vidbyte-memory solves the problem of coding agents "repeatedly correcting the same mistake and making it again next time." It solidifies each human correction into loadable facts, executable tests, and traceable commits, so that after a single correction, tests guarantee the mistake does not recur.
Key capabilities
- Corrections become memory: each correction triggers three parallel sub-agents—the fact sub-agent judges whether the feedback is worth becoming a long-term fact or rule and writes it; the test sub-agent turns it into a deterministic test or verification agent; the update sub-agent revises existing memories that the feedback negates or confirms.
- Test enforcement: tests are the preferred verification method because they are low-cost and deterministic; a verification agent is created only when a test cannot encode the judgment.
- On-demand loading: AGENTS.md serves as the index; each memory file declares its content and "when to load" in its frontmatter, and the agent opens only matching files.
- Audit trail: at the end of each request, scripts/footprint.py --commit regenerates memory/footprint.md, the commit message includes the memory change delta, and it is pushed to origin.
- Admission checks: each fact must pass five checks (the model would err without the fact, it cannot be derived from the repository, it will remain important later, it was raised by a human, it can be narrowed in wording and verified).
- Entry permanence: each memory has a unique, never-reused id, source, status, and verification method; entries are not deleted, only superseded or retired.
Usage
- Create a repository via GitHub's Use this template, or run gh repo create my-task --template cerredz/vidbyte-memory --private --clone.
- Replace the ## Task block in AGENTS.md with the repetitive task this repository serves.
- Run python -m pytest -q tests; the empty template should pass.
- Make a request to the agent, correct it when it errs, and watch memory/ and tests/ grow; memory/run-log.md records the footprint of each request.
- It can also be installed in an existing repository: run scripts/install.py, which overwrites no files, merges the existing AGENTS.md into the new ## Task block (keeping it as AGENTS.previous.md if too long), backs up edited files, wires a Stop hook for each detected agent, and lists what was written in .vidbyte-memory/install.json. To uninstall, run python scripts/install.py uninstall.
- On Windows PowerShell, you can use irm https://raw.githubusercontent.com/cerredz/vidbyte-memory/main/scripts/install.py | python -, add --dry-run to view the plan first.
Requirements: Python 3.9 or later, pytest, git, and a remote repository named origin (used for pushing at the end of each request); the scripts use only the standard library.
Use cases
One person is responsible for a repetitive task, such as weekly reports, reviewing PRs according to internal rules, maintaining data tables, or release notes; their corrections recur; they want to see in git what the agent has learned.
Limitations
- Not a memory service: no server, API, database, vector index, or account; memory is Markdown in the repository.
- Not automatic memory: it is not extracted from conversations; it is written only when a human corrects something or asks it to be remembered, and it must pass five admission checks.
- Not shared memory: one repository carries one owner's memory for one repetitive task; multi-user or cross-application memory should use a memory service.
- Not a framework: no imports needed, just a repository layout, a protocol in AGENTS.md, two standard-library scripts, and a set of pytest tests.
- Learns only from corrections: a new repository starts empty and improves gradually with corrections.
- Verification consumes time and tokens: each generation step runs 3 to 5 rounds of testing and verification.
- Enforcement requires hooks or plugins: agents with neither must manually maintain the end-of-request checklist.
- Memory grows: typed entries are retired or superseded via skills/update-memory/SKILL.md and are not automatically pruned.
- It commits and pushes: each request ends with a commit and push to origin; --no-push can be used to keep only the local commit.
Compatibility
Memory itself is files, so any agent that reads AGENTS.md can use it; the difference lies in enforcement. In agents with a blocking Stop hook, scripts/guard.py prevents the turn from ending when tests fail, feedback is pending, or memory is uncommitted; other environments rely on manual maintenance via the checklist in AGENTS.md. According to the materials, Claude Code has been verified end to end; the plugin can be installed in Codex, Gemini CLI, and Antigravity; the OpenCode, Kilo, Pi, and Hermes plugins have actually run in their respective agents. The Stop hook blocks consecutively at most 5 times per session, after which it allows the session to end and notes the unfinished items; deleting .claude/settings.json can be disabled. No telemetry, no proprietary network calls; the only data leaving the local machine is what git push sends to the configured origin.