Keep one project brief every AI tool can read
Switching tools at every limit means re-explaining the project · X · @aditiitwt · Oct 2026
What happened
Rotating between Codex, Claude Code and Cursor to dodge limits meant repeating the same project explanation in each one.
The lesson
Keep one plain project notes file (stack, where things live, what not to touch) in the repo and point every tool at it.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I keep losing context with Codex (it forgets rules, re-asks about my project, or a model switch undoes work). 1) Create a short project brief file for the repo (e.g. AGENTS.md or CLAUDE.md): stack, how to run it, key files, files never to touch, and coding rules. 2) Tell me which rules should be enforced by tools instead of prompts (git hooks, linters, tests, ignore files) and set those up after I approve. 3) Remind me to commit working steps with clear messages, and show me how to roll back. Keep the brief under 60 lines.
Why this keeps happening: losing project context
AI tools forget decisions between chats and across tools. Without a shared project brief, each session re-invents conventions, undoes earlier fixes or ignores rules you set before.
A quick checklist before you ship
- Keep one short project brief in the repository that every AI tool reads.
- Enforce important rules with linters, tests and types, not only prompts.
- Commit after each working step with a clear message.
- Start new chats with the brief and the exact files involved.
More on this: every losing project context story and our related guide.
Tools involved
Codex stories, Claude Code stories, Cursor stories
Related stories
- Add your agent's log folders (.claude/, .codex/, .gemini/, .specstory/, .continue/) to each repo's own .gitignore and rotate any secret that ever appeared in a pushed log
Backslash: one in ten public GitHub repos holding AI coding agent chat logs exposed secrets, mostly put there by the agent itself - Search your MCP configs for archived @modelcontextprotocol reference servers and replace them with the service owner's maintained server
MCPhantom: coding agents install deprecated Anthropic MCP servers that will never be patched - Protect the AI tool tokens saved on your laptop
Aoki infostealer now steals Claude, Codex, Cursor and Copilot credentials
Source: original post on X ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.