cd /news/developer-tools/onemind-md-give-your-repo-a-memory-w… · home topics developer-tools article
[ARTICLE · art-56084] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Onemind.md – give your repo a memory without any extra tooling

Onemind.md introduces a single-file protocol that stores project decisions, rejected ideas, and context as hidden git commits on a dedicated ref, enabling AI agents and developers to retrieve and record reasoning without external databases or services.

read3 min views1 publishedJul 12, 2026
Onemind.md – give your repo a memory without any extra tooling
Image: source

Give your repo a memory.

Most projects forget everything between sessions — decisions, rejected ideas, context. ONEMIND.md fixes that. It's a single file you drop into any git repo, and suddenly your project remembers: why you chose X over Y, what you tried and abandoned, what you learned.

No database. No service. No new dependencies. Just git.

"Why did we do it this way?"— answered, forever, ingit log

."What did we try and reject?"— recorded so nobody re-litigates dead ends."What did the last agent figure out?"— the next agent picks up where it left off.** Decisions with reasoning**, not just code diffs.- It travels with the repo. Clone it, you get the mind. Delete it, the mind goes with it.

curl -sO https://raw.githubusercontent.com/lazardanlucian/onemind.md/main/ONEMIND.md

That drops the spec into your repo. Tell your agent to read it.

When your agent first reads ONEMIND.md

, it checks whether the mind exists. If not, it initializes it — one git command, no files on disk, no config changes. From that point on, every session starts by reading the mind and ends by recording what was learned.

Add the linker line to your AGENTS.md

so the agent remembers to do this every session:

This project's learning memory is an in-repo git mind on `refs/mind/main`
— read `ONEMIND.md` and follow its protocol.

Once the mind is set up, your AI agents (or you) can:

Ask about past decisions:

"Why did we pick PostgreSQL over SQLite?" "What did we decide about authentication?" "What approaches did we reject for the caching layer?"

The agent searches the mind with git log --grep

and git grep

, finds the reasoning, and gives you the answer with full context.

Record new learnings in real time:

"The rate limiter breaks under 10k concurrent connections — found during load testing."

This gets committed to the mind immediately, so the next session (or the next agent) knows about it without re-discovering it.

Track what didn't work:

"Tried Redis for session storage. Too much ops overhead for our scale. Status: dead."

Dead ideas stay recorded so nobody wastes time on them again.

Follow threads of thinking:

"What's the current thinking on the deployment pipeline?"

The agent traces a series of related mind commits tagged with the same thread, giving you the full evolution of an idea.

Everything lives on a hidden git ref (refs/mind/main

) — not a branch, never checked out, invisible to git status

. Thoughts are plain git commits. No files are written to your working directory.

Two kinds of thoughts:

Message-only(default) — the commit messageisthe content. Quick notes, decisions, observations.Blob thoughts— structured documents (like ADRs) stored as git blobs. Searchable viagit grep

.

Optional trailers give thoughts machine-readable structure:

mind: chose Tailwind over CSS modules

Faster prototyping, consistent design tokens, no naming debates.

Tags: styling, design
Decision: accepted
Confidence: high

Read the full spec in ONEMIND.md for all the details — threads, notes, ADR templates, sync, multi-person workflows.

git push origin refs/mind/main                # push the mind
git fetch origin refs/mind/main:refs/mind/main  # pull the mind

The mind lives on the same remote as your code. CI pipelines should ignore refs/mind/*

, so pushing the mind should not trigger a build, etc.

  • ONEMIND.md instructs agents not to save PII/TOKENS, sensitive data in the mind.
  • Nothing leaks into your working tree — no mind/

folder, no.gitignore

edits. - Never commit secrets, tokens, or PII to the mind.

  • Append only. Use git notes

to correct past thoughts without rewriting history.

── more in #developer-tools 4 stories · sorted by recency
── more on @onemind.md 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/onemind-md-give-your…] indexed:0 read:3min 2026-07-12 ·