r/herdr • u/Emrelushig • 5d ago
herdr.md: one shared context file for Claude Code, Codex, Gemini and Grok
I run Claude Code, Codex, Antigravity/Gemini and Grok side by side in Herdr, and every one of them started each session blind: separate instruction files, no idea what the agent in the next pane was doing, the same mistakes made twice.
So I built herdr.md, a Herdr mod plus a few small Python scripts:
- One file, every agent.
sync.pywritesherdr.mdinto each tool's global instruction file as a marked block (~/.codex/AGENTS.md,~/.gemini/GEMINI.md,~/.grok/AGENTS.md) and leaves the rest of the file alone. Claude Code gets a live@importinstead of a copy. - A shared log. Agents call
log.py start / note / done, so you and they can see who is working on which files. - A panel inside Herdr. Edit the file there; Save syncs every agent, and the panel reloads when an agent writes to the log.
- Safe writes. One OS lock, atomic replaces, and it refuses to save over a file that changed since you opened it.
Install scripts for Windows and macOS/Linux, Python 3.8+, MIT.
Repo: https://github.com/Emrelushig/herdr-md
(Not the same project as ryanthedev's herdr-md markdown viewer, sorry about the name clash.)
I'd love feedback, especially from people running more agents than I do: what do you keep in your shared context, and would you want the log somewhere other than the same file?
I'm also just looking to meet more people who like building with AI agents, so if that's you, feel free to say hi in the comments or send me a DM.
3
u/CancelPale 5d ago
Any reason using this instead a global AGENTS.md file? I see the point of shared context, but why creating a new file specification?