Let your coding agent do the typing: ten habits that save hours

Claude Code, Codex or Cursor can do the typing on a home server. Ten habits that make that fast and safe: a plan first, one task per session, and a notes file.

Share
Your agent types. You decide.. Ten habits that make a coding agent fast and safe on a home server.

Guide 4 of 5 in First Server, a short series on building your first home server.

A coding agent such as Claude Code, Codex or Cursor changes what a first server feels like. It writes the configuration files, runs the commands and explains every error in plain words. Used without a few habits, it also loses an evening to a confident guess. Ten habits that keep the speed and drop the guessing.

Never used one? Start in the agent's desktop app rather than a terminal. It is the same agent, and there is nothing new to learn on day one.

1. Start every session from your plan and your notes

Paste your one-page plan and point the agent at your notes file (guide 1 has both). An agent that knows the machine, the job and what is already installed gives answers for your server, not for an average one.

2. Ask for the plan before the commands

Before anything runs: "Tell me what you will do, in steps, and how we will check it worked. Do not run anything yet." You read the plan, catch the surprise before it happens, and the check at the end becomes the finish line.

3. One task per session

"Install Docker" is a session. "Set up Plex" is another. A session that wanders across five tasks ends with five half-finished things and no idea which change broke what.

4. Read every command that touches disks, the firewall, the router or users

Most commands are harmless. A few are not: anything that formats or wipes a disk, deletes files, changes the firewall, or changes who can log in. Ask the agent to explain those in one sentence, with the undo, before you say go. That one habit prevents most of the bad evenings.

Two lists. Let it run: read-only checks, writing config files, installing packages, explaining errors, updating notes. You read first: formatting or wiping a disk, deleting files, firewall changes, user and SSH changes, anything on the router.
Hand over the typing. Keep the yes for the commands that cannot be taken back.

5. Pin versions

Ask for a specific version of every app image instead of "latest". An update then happens when you decide, not on a random restart, and an app that worked yesterday still works today.

6. Keep the configuration in git

Your compose files and notes go in a git repository, so every change has a history and an undo. Never the app data, and never the secrets.

7. Secrets stay on the server

Passwords and keys live in a .env file on the server, readable only by you. They never go into the chat, and never into git. If the agent needs a value to exist, it can check that the variable is set without ever printing it.

8. Back up before big changes

Before a major update, a disk change or a new network setup, make a backup or a snapshot first. Then the worst case of any experiment is a restore, not a rebuild.

9. When it breaks, paste the exact error and what changed

"It does not work" gets a guess. The exact error message, plus what changed since it last worked, gets a diagnosis. If two fixes in a row fail, stop fixing: ask the agent to find the cause with commands that only read, before it changes anything else.

10. End every session by updating the notes

Three lines: what changed, how to check it still works, how to undo it. The next session, yours or the agent's, starts from facts instead of memory. For the full picture of what to hand over and what to keep, see Building a homelab with Claude Code.

The habits, in short

  • Plan and notes at the start, notes updated at the end.
  • The plan before the commands, one task per session.
  • You read anything that touches disks, the firewall, the router or users.
  • Pinned versions, configuration in git, secrets on the server only.
  • A backup before big changes, and the exact error when something breaks.

Want the prompts written for you?

Build My Homelab gives your coding agent a ready prompt at every step of the build, with your own choices already in it, the checks that end each step, and the rules above built in. It works with Claude Code, Codex and Cursor.

Build My Homelab: a ready prompt for your coding agent at every step, with your choices in it and a check before you move on. See how a lesson works.

See how the path works.

First Server, the series

  1. Plan your first home server on one page
  2. Before you buy: hardware checks for a first home server
  3. Four first apps for your home server
  4. Let your coding agent do the typing (you are here)
  5. Keep your home server running