News for hackers. Stuff that matters.
Re:AI Coding Assistants Are Getting Worse by hdra on Thursday January 08, 2026 @06:49PM (#46548184)
I've been trying to stop the coding assistants from making git commits on their own and nothing has been working.
Re:AI Coding Assistants Are Getting Worse by manwds on Thursday January 08, 2026 @08:10PM (#46548889)
Why not use something like Amp Code which doesn't do that, people seem to rage at CC or similar tools but Amp Code doesn't go making random commits or dropping databases.
Re:AI Coding Assistants Are Getting Worse by hdra on Thursday January 08, 2026 @10:38PM (#46549785)
just because i havent gotten to try it out really.

but what is it about Amp Code that makes it immune from doing that? from what i can tell, its another cli tool-calling client to an LLM? so fwict, i'd expect it to be subject to the indeterministic nature of LLM calling the tool i dont want it to call just like any others, no?

Re:AI Coding Assistants Are Getting Worse by algorias on Thursday January 08, 2026 @07:48PM (#46548699)
run them in a VM that doesn't have git installed. Sandboxing these things is a good idea anyways.
Re:AI Coding Assistants Are Getting Worse by zmmmmm on Thursday January 08, 2026 @08:25PM (#46549012)
but then they can't open your browser to administer your account.

What kind of agentic developer are you?

Re:AI Coding Assistants Are Getting Worse by godelski on Thursday January 08, 2026 @08:34PM (#46549068)

  > Sandboxing these things is a good idea anyways.
Honestly, one thing I don't understand is why agents aren't organized with unique user or group permissions. Like if we're going to be lazy and not make a container for them then why the fuck are we not doing basic security things like permission handling.

Like we want to act like these programs are identical to a person on a system but at the same time we're not treating them like we would another person on the system? Give me a fucking claude user and/or group. If I want to remove `git` or `rm` from that user, great! Also makes giving directory access a lot easier. Don't have to just trust that the program isn't going to go fuck with some other directory

Re:AI Coding Assistants Are Getting Worse by apetresc on Thursday January 08, 2026 @09:09PM (#46549308)
What's stopping you from `su claude`?
Re:AI Coding Assistants Are Getting Worse by godelski on Thursday January 08, 2026 @09:58PM (#46549591)
I think there's some misunderstanding...

What's literally stopping me is

  su: user claude does not exist or the user entry does not contain all the required fields
Clearly you're not asking that...

But if your question is more "what's stopping you from creating a user named claude, installing claude to that user account, and writing a program so that user godelski can message user claude and watch all of user claude's actions, and all that jazz" then... well... technically nothing.

But if that's your question, then I don't understand what you thought my comment said.

Re:AI Coding Assistants Are Getting Worse by apetresc on Tuesday January 13, 2026 @09:49PM (#46611668)
Yeah, that is what I meant. I mean, it's kind of the system administrator's/user's responsibility to run processes in whatever user context they want. I don't wonder why, like, nginx doesn't forcefully switch itself to an nginx user. Obviously if I want nginx to run in some non-privileged context (which I do), then I (or my distro, or my container runtime, or whatever) am responsible for running nginx that way.

Similarly, it's not really claude-code's job to "come with" a claude user. If you want claude code to run as a low-privilege user, then you can already run it as a low-privilege user. The OS has been providing that facility for decades.

Re:AI Coding Assistants Are Getting Worse by inopinatus on Friday January 09, 2026 @02:05AM (#46550891)
The agents are being prompted to vibe-code themselves by a post-Docker generation raised on node and systemd. So of course they emit an ad-hoc, informally-specified, bug-ridden, slow reimplementation of things the OS was already capable of.
Re:AI Coding Assistants Are Getting Worse by immibis on Friday January 09, 2026 @08:11AM (#46553462)
Probably because Linux doesn't really have a good model for ad-hoc permission restrictions. It has enough bits to make a Docker container out of, but that's a full new system. You can't really restrict a subprocess to only write files under this directory.
Re:AI Coding Assistants Are Getting Worse by newsoftheday on Friday January 09, 2026 @12:54PM (#46556728)
For plain Linux, chmod, chmod's sticky bit and setfacl provide extensive ad hoc permissions restricting. Your comment is 4 hours old, I'm surprised I'm the first person to help correct its inaccuracy.
Re:AI Coding Assistants Are Getting Worse by immibis on Friday January 09, 2026 @10:13PM (#46562410)
How can those be used to restrict a certain subprocess to only write in a certain directory?
Re:AI Coding Assistants Are Getting Worse by godelski on Saturday January 10, 2026 @06:43AM (#46564893)
chown
Re:AI Coding Assistants Are Getting Worse by immibis on Saturday January 10, 2026 @06:59PM (#46571261)
how?
Re:AI Coding Assistants Are Getting Worse by godelski on Saturday January 10, 2026 @08:36PM (#46571903)
chgrp claude someDirectory
Re:AI Coding Assistants Are Getting Worse by immibis on Sunday January 11, 2026 @10:56AM (#46576796)
This doesn't meet the requirement. It doesn't restrict a certain subprocess to only write in a certain directory. You are just saying these things to quickly shut down the uncomfortable thought that Linux can't do something.
Re:AI Coding Assistants Are Getting Worse by godelski on Sunday January 11, 2026 @02:58PM (#46579351)
Or perhaps you need to go read my original comment again as you missed the premise. But if you feel you have perfect memory then perhaps look at something like firejail or read more about systemd.

But your premise of Linux "can't" do something is rather absurd. It's Linux, you can do anything, even if no one has done that thing before.

The reason people didn't respond earlier is because they probably assumed it a waste of their time. I know I have wasted mine

Re:AI Coding Assistants Are Getting Worse by immibis on Sunday January 11, 2026 @10:05PM (#46583535)
You chose to respond to a question I posed, with an extremely poor answer. I was very specific about restricting a certain subprocess to only write to a certain directory. Your answer does not do that. I pointed that out. Now you are defending that answer by claiming you were actually answering something else entirely. This is nonsensical.
Re:AI Coding Assistants Are Getting Worse by AstroBen on Thursday January 08, 2026 @07:32PM (#46548566)
Are you using aider? There's a setting to turn that off
Re:AI Coding Assistants Are Getting Worse by SoftTalker on Thursday January 08, 2026 @07:17PM (#46548443)
Don't give them a credential/permission that allows it?
Re:AI Coding Assistants Are Getting Worse by AlexandrB on Thursday January 08, 2026 @07:28PM (#46548535)
Making a git commit typically doesn't require any special permissions or credentials since it's all local to the machine. You could do something like running the agent as a different used and carefully setting ownership on the .git directory vs. the source code but this is not very straightforward to set up I suspect.
Re:AI Coding Assistants Are Getting Worse by SoftTalker on Thursday January 08, 2026 @11:54PM (#46550191)
IMO it should be well within the capabilities of anyone who calls himself an engineer.
Re:AI Coding Assistants Are Getting Worse by godelski on Thursday January 08, 2026 @08:45PM (#46549146)
Typically agents are not operating as a distinct user. So they have the same permissions, and thus credentials, as the user operating them.

Don't get me wrong, I find this framework idiotic and personally I find it crazy that it is done this way, but I didn't write Claude Code/Antigravity/Copilot/etc

Re:AI Coding Assistants Are Getting Worse by zmmmmm on Thursday January 08, 2026 @08:24PM (#46549003)
hah - i'm the opposite, I want everything done by the AI to be a discrete, clear commit so there is no human/AI entanglement. If you want to squash it later that's fine but you should have a record of what the AI did. This is Aider's default mode and it's one reason I keep using it.
Re:AI Coding Assistants Are Getting Worse by vitaflo on Friday January 09, 2026 @07:41AM (#46553257)
It’s the first thing I turn off in Aider.
Re:AI Coding Assistants Are Getting Worse by dust-jacket on Friday January 09, 2026 @10:03AM (#46554612)
require commits to be signed.
Re:AI Coding Assistants Are Getting Worse by Aurornis on Friday January 09, 2026 @11:51AM (#46555831)
Which coding assistant are you using?

I'm a mild user at best, but I've never once seen the various tools I've used try to make a git commit on their own. I'm curious which tool you're using that's doing that.

Re:AI Coding Assistants Are Getting Worse by jason_oster on Friday January 09, 2026 @07:03PM (#46561143)
Same here. Using Codex with GPT-5.2 and it has not once tried to make any git commits. I've only used it about 100 times over the last few months, though.