| ▲ | ttoinou 3 hours ago | ||||||||||||||||||||||
Something I never see mention is that all agents / CLI tools seem to modify local files. Which makes editing current files, working with the git, asking to only modify some parts of the files etc. cumbersome, as the agent is constantly reading and writing to files that we are also accessing. This is usually solved by using git worktree but this solution requires 1 new folder name and branch for each new agent, and each folder will have its own unique name and others issues. While it can be super powerful, I wish there was a quicker "in memory" agent solution where each agent keeps in its own RAM the list of files modifications ("patch") it recommends to apply to solve current issue. Then we could apply that patch depending on what we're doing, if we have others patches to apply before etc. Also even if agents can work in parallel, sometimes we only have 1 of them in front of us and if we already know what's the next thing we're gonna ask, we'll still wait for the previous task to be completed before sending the new prompt. I'm not sure how to improve this async problem, I guess I could launch multiple agents in parallel but I wouldn't get sharing of the chat history between the different agents, and when I work I usually work on related issues that depend on each others, thus I do need some kind of global or shared context between agents analyzing codebases and creating patches. Anyone has ideas over how to improve those AI coding agents workflows ? Maybe latest versions of GitButler https://gitbutler.com/ but I'm not sure, and it does use git worktree behind the hood | |||||||||||||||||||||||
| ▲ | _pdp_ 21 minutes ago | parent | next [-] | ||||||||||||||||||||||
Given that all of these agents are written in javascript I have always wondered why they cannot simply use https://isomorphic-git.org/ and do everything in memory. | |||||||||||||||||||||||
| ▲ | IanCal 3 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
This is a good point. Docker? I typically want other kinds of isolation for services and things anyway - it’s got its own file system, you could have N versions on the same branch working without conflict (at least the conflict you’d have with work trees). There is some more plumbing involved but…not much? Edit - task boards are my first thought for the comms side for agents sharing info. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | Maxious 2 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
Cursor has a "Shadow workspace" option like this https://cursor.com/blog/shadow-workspace | |||||||||||||||||||||||
| ▲ | Jhsto 2 hours ago | parent | prev [-] | ||||||||||||||||||||||
What about using CoW file system snapshots and then mounting it on overlayfs as the lowerdir while having the agent's working directory be the upper directory? I wonder how the agent reacts to finding some files being immutable. | |||||||||||||||||||||||