- Write your .gitignore first. A secret committed once stays in git history forever, even after you delete it.
- A commit holds your code. A tag is only a readable name for one commit. Don't move approval tags afterward; record changes in a new commit.
- Write ADRs (Architecture Decision Records). Context, options, decision, consequences. In six months you'll forget why you chose something. The ADR won't.
- Give your AI assistant standing rules in a file it reads every session. Rules written once beat instructions repeated in every prompt.
- Read the AI's plan before it builds. Mine had a miscounted file list and a .gitignore that quietly assumed a framework I hadn't chosen.
5 Things to Set Up Before You Write Any Code
A developer outlined five setup practices to complete before writing any code, including writing a .gitignore first to keep secrets out of git history, using tags only as readable names for commits rather than moving approval tags, and maintaining Architecture Decision Records that capture context, options, decision and consequences. The engineer also recommended giving AI coding assistants standing rules in a file they read every session, and reviewing the AI's plan before it builds — noting that one plan contained a miscounted file list and a .gitignore that assumed a framework the developer had not chosen.
Put persistent rules in a file your coding agent reads every session and review its plan before execution, since one plan miscounted files and assumed an unchosen framework.
more in playbook: Working with AI coding agents
Run your AI side-project on zahid.host
EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.