cd /news/ai-tools/5-things-to-set-up-before-you-write-… · home › topics › ai-tools › article
[ARTICLE · art-180764] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

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.

recommendation

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
by read1 min views12 publishedDec 3, 2026
5 Things to Set Up Before You Write Any Code
Image: Dev.to
  1. Write your .gitignore first. A secret committed once stays in git history forever, even after you delete it.
  2. 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.
  3. Write ADRs (Architecture Decision Records). Context, options, decision, consequences. In six months you'll forget why you chose something. The ADR won't.
  4. Give your AI assistant standing rules in a file it reads every session. Rules written once beat instructions repeated in every prompt.
  5. 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.
── more in #ai-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

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.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/5-things-to-set-up-b…] indexed:0 read:1min 2026-12-03 · —