Agents & tools

Filesystem

The filesystem is the set of files an agent can read and write. It is its main source of truth and its main way to make durable changes.

James Phoenix
Understanding Data Updated July 2, 2026

The filesystem is the set of files an agent can read and write, and it is the most important part of its environment. For a coding agent, files are both where it learns what is true and where it makes changes that last. Almost everything an agent does meaningfully touches the filesystem at some point.

Source of truth and workbench at once

The filesystem plays two roles. First, it is the agent's best source of ground truth. Reading the actual code, the real config, and the current types beats anything the model can recall from training, because the files are reality and its memory is a guess. Pulling a file into context with a read tool is how an agent replaces assumption with fact.

Second, it is where durable work happens. A model can produce text all day, but until something is written to disk nothing has really changed. Editing a file is the agent making a change the rest of your toolchain (the compiler, the tests, git) can actually see.

Why it sits at the centre:

  • Reads ground the agent in what your project really contains.
  • Writes are the actual deliverable, the edits you keep.
  • It persists across turns and sessions in a way the conversation does not.

A file read is not free

Every file the agent reads becomes tokens in the window. Dumping a whole directory in "just in case" crowds out room and attention. The skill is reading the right files, not all of them, and letting the agent go back for more when it needs them.

Tip
Point the agent at specific files rather than hoping it guesses. A precise read is cheaper, faster, and far more accurate than letting it work from memory.

Related terms

Building with AI agents?

This dictionary is part of how I think about agentic engineering. If you want the same thinking applied to your codebase, that is what I do.

See how I can help