Whats the next update we should add to this? Adding command execution?
Let me know in the comments!
P.S: @effessdev Bro, I know this feels like I'm copying your ReptClip, but uh the reality is that I saw your ReptClip project after I was halfway done through LocalWriteAgent-MCP.
No no no hehe this is completely fine π Its purpose is quite different from ReptClip. We are deliberately not adding these kinds of features to it because we need it to be compatible with any chatbot with zero setup! Continue building!!! π₯
realpathSync closes the ../ and symlink escapes, but not hardlinks: ln .env notes.txt gives a path that canonicalizes to itself while the inode is still your credentials file, and your pattern list only ever sees the name. Comparing dev+ino of each write target against the guarded set (plain fs.statSync, no realpath) closes it, and it also catches the cp -l case for free.
The bigger hole is the entry point. npx localwriteagent resolves latest from npm on every run, so the thing getting read/write in my working directory is whatever was published most recently β I'd pin localwriteagent@x.y.z in the README and have the CLI refuse to start when its own version doesn't match a configured one. Related: when the 45s relay timeout fires and the readline prompt aborts, what happens to a keypress that was already buffered in the tty? I'd want the pending approval record deleted before the abort, otherwise a late Y lands in the next prompt and approves something the model already gave up on.
We're a place where coders share, stay up-to-date and grow their careers.
Whats the next update we should add to this? Adding command execution?
Let me know in the comments!
P.S: @effessdev Bro, I know this feels like I'm copying your ReptClip, but uh the reality is that I saw your ReptClip project after I was halfway done through LocalWriteAgent-MCP.
No no no hehe this is completely fine π Its purpose is quite different from ReptClip. We are deliberately not adding these kinds of features to it because we need it to be compatible with any chatbot with zero setup! Continue building!!! π₯
Ha ha, I just aimed for frontier models - those always have MCP server linking configurations in settings π
Yeah yeah I understand! This project is different from ReptClip! It's made for clipboard only! β‘ Zero setup, just install and use!
Zero setup? ReptClip definitely
Autonomy + Frontier model? LocalWriteAgent
π€£
P.S: star the project on github, im kinda star-less π€£
Ok I'll star the project π Please start ReptClip as well if you haven't already :)
Interesting approach! πΈπ
I like the idea of keeping developers in control through interactive diff reviews and explicit permissions.
I'm curious to see how this architecture evolves! π
realpathSync closes the
../and symlink escapes, but not hardlinks:ln .env notes.txtgives a path that canonicalizes to itself while the inode is still your credentials file, and your pattern list only ever sees the name. Comparing dev+ino of each write target against the guarded set (plain fs.statSync, no realpath) closes it, and it also catches thecp -lcase for free.The bigger hole is the entry point.
npx localwriteagentresolves latest from npm on every run, so the thing getting read/write in my working directory is whatever was published most recently β I'd pinlocalwriteagent@x.y.zin the README and have the CLI refuse to start when its own version doesn't match a configured one. Related: when the 45s relay timeout fires and the readline prompt aborts, what happens to a keypress that was already buffered in the tty? I'd want the pending approval record deleted before the abort, otherwise a lateYlands in the next prompt and approves something the model already gave up on.