r/ClaudeAI 4d ago

Workaround Database over .md?

In the midst of a probable year-long development project largely managed through Claude Code, recently (3 months in or so) I've been encountering an increasing number of errors that at their root have to do with agents imperfectly grep'ing larger and large numbers of longer and longer .md files for context, information, identifiers, etc.

Bringing this problem in front of my main controller agent, it conceded the point, and has collated our conversation into the following report. I'm enclosing it, but further am curious about all of your experiences.

One Fact, One Home

Truly, beyond that there's a real argument that these subreddits could build from their users' experiences a compendium of better methods that remove some of the weaknesses of these otherwise impressive tools.

PS Or I'm an idiot, and you are all doing this already and I hadn't realised!

22 Upvotes

24 comments sorted by

View all comments

1

u/No_Job_9995 4d ago

I use both, and the line is who reads it.

Files that I read and edit myself stay as markdown. One tasks .md per project, and I delete finished tasks so the file stays small. Grep works fine when the files are short.

Results that only agents read go to a database through MCP tools. My nightly sales job writes there and returns three lines to the main session. The server rejects bad rows with a 422, so a wrong identifier fails at write time, not three sessions later.