One AGENTS.md, Everything an Object: A Cross-Session Memory Convention for Coding Agents
Honest-Papaya-5196 · reddit · 2026-11-25
A developer shared their "Everything is an Object" convention built with Claude Code and Codex: a single AGENTS.md instructs agents to store work as linked objects in a folder they own — questions, decisions, attempts, and results each get an identity, type, links, and history, so context survives across sessions.
Snapshot of their own use:
- 542 objects, including 40 decisions, 55 deliverables, and 42 reviews
- 2,327 commits; 77% of commits touching objects revise existing ones
- 101 objects referenced from two or more projects
- 119 of the repo's first 120 commits were co-authored by Claude
Design: agents look for an existing object or type first, and only define new local types by asking explicitly — so you don't have to get the structure right upfront. The author likens it to Unix's file interface: many kinds of things, one common way to work with them.
Honest costs:
- Codex trials with the convention used 2.5x as many input tokens as the control, including cached input
- Filing a whole message into every type passed only 2 of 40 trial runs; you still review what agents file
- When Claude credits ran low, they switched to Codex on the same folder seamlessly
More from coding & agent
- How to Give AI Agents Customer Data Access Without Breaking Permissions — Fit-Western-2099 · 2026-11-25
- Netlify Ships a JSON Schema for netlify.toml, So Editors and Agents Catch Errors Pre-Deploy — thisiskp_ · 2026-11-25
- Does code reusability still matter in the shift to agentic engineering? — AlexTensor · 2026-11-25
- Open-source karpo-browser hits 89% on Browserbase v2 at ~1/13 the cost of Fable + Claude Code — HeyNayeem · 2026-11-25
- Surge AI: frontier coding agents jump from 8% to ~65% on sudo L7, early signs of RSI — echen · 2026-11-25
- YC founder: risk-ops agents now clear 91% of fraud alerts, signed first fintech client in under 4 weeks — ycombinator · 2026-11-25