Coding agents don't need a better chat box. They need a filesystem.

Coding agents don't need a better chat box. They need a filesystem.

tarr / Rill@tarr11244 min read

I build and operate almost all of my software through coding agents. The single change that mattered most had nothing to do with the model or the prompt. It was where the agent does its work.

Most of us treat a coding agent like a chat partner. You open a window, explain the task, watch it work, then clear the context. Next session it remembers nothing, and you explain the whole thing again.

I did this for months. The re-explaining is the part that wore me down. Clear the window and the thread of work was gone. I couldn't hand a half-finished task to tomorrow's session.

So I stopped treating the chat window as the workspace. The agent's working memory should live in files: durable, diffable, versioned, resumable. The chat is where I talk to the agent. The files are where the work actually stands.

The one idea behind all of this: an engineer moves fastest when the agent works inside a persistent, file-based knowledge and task layer, not a chat window. Files don't replace the conversation. They give it something to stand on.

The moment it clicked

What I didn't expect was what happens when all of your context lives in files the agent can read.

I was building Bellhop, a production email assistant for hotels. Everything around the product lived in the repo as Markdown: design notes, decisions, and meeting notes where I'd written down what users said. Weeks earlier a user had mentioned, almost as small talk, that the booking emails forwarded from online travel agencies arrive buried in boilerplate, and what they really wanted was just the guest's actual message pulled out. I jotted it into a meeting note and forgot.

Then, during an unrelated session, Claude Code connected that offhand remark to the change I was making and proposed handling it: strip the embedded noise, surface only the core message. I hadn't asked it to. I'd half-forgotten the feedback existed.

That's the moment files stopped being “memory” for me and became closer to a substrate for reasoning. A chat-window agent could not have done that, because the meeting note was never in the chat.

Why files do this

Four mechanics carry most of the weight.

Tasks are files with dependencies. Each is a small Markdown file with a goal, a plan, and which other tasks block it. The agent picks the next unblocked unit of work instead of whatever is in the scrollback.

State is a checkpoint in the file. Each task carries a current position: what's done, what's next. Clear the context, open a fresh session, and the agent resumes exactly where it left off. The session is disposable. The file is not.

Design decisions are files the agent reads every turn. The conventions that govern the project live in plain Markdown loaded into every session, so the agent doesn't re-litigate a decision I made three weeks ago.

Choices the agent can't make get queued for a human. When it hits a decision it has no authority to make, it writes the question into the file and moves on. I review the queue when I'm ready.

And it compounds

Knowledge accumulates on its own. Every session reads from the files and writes back to them, so distilled notes, decisions, and patterns land back in the layer the next session reads. Context doesn't reset to zero each morning. It gets deeper.

Orchestration gets easy. Once work is a graph of files with dependencies, running agents in parallel is mostly a scheduling problem. Independent tasks fan out; dependent ones wait. The filesystem is the coordination layer.

Try it without any of my tooling

You don't need my tooling to get most of this:

  1. One conventions file the agent reads every session.
  2. A tasks/ directory of small Markdown files, each with a goal, a plan, and a current position, so you resume from the file, not from memory.
  3. Write your design decisions down as you make them.

Where Codex fits

One more pattern worth stealing: use a second agent as an independent reviewer. I author the work once, and it runs on either Claude Code or Codex CLI. Before a change merges, I have Codex CLI review the diff as an adversarial second opinion, separate from the agent that wrote it. The reviewer has no stake in defending the code.

The takeaway

The chat window is a fine place to talk to a coding agent. It's a bad place to keep the work. Give the agent a filesystem to stand on, and the same model starts behaving like it has been on your team for months instead of meeting you for the first time every session.