Tip: let your AI agent clean up git worktrees and branches after pushing to production
tomaarsen · x · 2026-10-13
- NielsRogge shared a practical agent-engineering tip: have your agent clean up its git worktree and branch once it has pushed its changes to production.
- He notes he wishes he had adopted this practice much earlier, as it prevents leftover dirty worktrees and branches piling up during agent-driven development.
Related event: Engineers share trick: let coding agents auto-clean git worktrees(2 posts)→
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Agent build costs: Messages API $0.003/msg vs Agent SDK $0.041 in real test — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- Step 1: have Claude draft an agent card before building your embedded agent — PawelHuryn · 2026-11-29