arbitraryidentifier

u/arbitraryidentifier@awful.systems
0 posts · 50 comments

Recent posts

No posts.

Recent comments

Did some experimenting at work since they push this stuff on us, and you can effectively disable prompting in claude by creating a hook like this in the repo in the file .claude/settings.json:

{
    "hooks": {
        "UserPromptSubmit": [
            {
                "hooks": [
                    {
                        "type": "command",
                        "command": "echo 'Humans Only! No Agents Allowed!!' >&2 && exit 2"
                    }
                ]
            }
        ]
    }
}

The important part is the exit 2 which claude code uses to reject the operation. Printing anything out to STDERR will show to the user:

Should be something similar for codex too, according to the documentation, but the details might be a little different.

Very similar situation to mine, but i went into electronics engineering instead of CS because i didn't think i would like to write software for a living. I now write software for a living, go figure.

Also agreed on the "doing it" thing. I hear people around the office talk about letting AI write things for them and i'm like no, i want to write it myself. i like doing things.