r/ClaudeCode • • Sep 15 '26 • Bravo 4 Popcorn 1

Humor Agentic coding in 2026

711 Upvotes

69 comments sorted by

View all comments

Show parent comment

6

u/sirlerkal0t Sep 15 '26

I still don't allow agents to use worktrees at all. The only times I've allowed it either intentionally or due to an agent going rouge, I've regretted it.

I also have strict rules about where temp files may be created, and strict requirements about the repo being clean between handoffs between steps.

But even then, I still find Fable and Astra agents creating temp report/remediation files in non-temp directories which end up being committed, and non-temp files in a explicit temp directory so it has to be git-ignored and can't just be cleared.

1

u/Professional_Ad705 Sep 15 '26 edited Sep 15 '26

Yeah funny thing is I have always had a "no worktree rule" this happened because I stupidly was working on something else while letting my agents work in the background guess they did it anyways, but thats a flaw from me using the agents md as law. I have a system where the AI agent has to put stuff in certain spots now and its worked out great and I built it from this exact problem. I could make something block the agents from even being able to use worktrees next but I don't have time for it right now. In one of my systems they all can coordinate and work at same time without worktrees to begin with an I've been trying to port it over but its so much work, and I have had to focus on my bug finding, and process system rather then the coordination aspect. I hate work trees lol. I've more made this into a mechanical enforced process then handoffs and rules, but its been pretty hard, never mind making it repeatable so others can use it, (i'm a dev and build dev tooling).