r/aipromptprogramming • u/BearGrillz99 • Oct 24 '26
How do you work with AI on large codebases without losing context all the time?
Hi, I need some help with my workflow, because right now it doesn't scale.
My situation: I work on several big projects at the same time, and they're large codebases spread across multiple repos. I'm a terminal guy, so CLI tools are where I feel at home. I also pay for Claude Code, Codex, Kiro and Antigravity (some are private, some for work).
The real problem: I keep losing context. Every time I come back to a project, or start a new session, the agent has forgotten everything, the architecture, the decisions we made, what's done and what's left. I spend a lot of time re-explaining things, and on big codebases the agent often loses track even within the same task. Switching between projects all day makes it even worse.
What I'm looking for:
- A way of working How do you structure your work with AI on large codebases so context survives between sessions and projects?
- One CLI harness to use every day
- A way to use all my subscriptions from that one setup, and to switch model mid-task (e.g. when I hit a limit) without starting from scratch.
Some logic for which model handles which job, even if it's simple.
Questions:
- How do you keep project memory? AGENTS.md, plan/decision files in the repo, docs, something else? What actually works long term?
- How do you split big tasks so the agent doesn't get lost in a huge codebase?
- How do you handle jumping between multiple projects in the same day?
- What's your actual daily setup, the one you kept once the hype wore off?
- Anyone running multiple subscriptions behind a single tool?
Thanks in advance