arbitraryidentifier, arbitraryidentifier@awful.systems

Instance: awful.systems
Joined: 3 years ago
Posts: 0
Comments: 7

Posts and Comments by arbitraryidentifier, arbitraryidentifier@awful.systems

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.


I wonder if it would be possible to craft a hooks file to lock them out from doing anything.




Both customers will still be able to get Horizon Worlds on a mobile phone

I loled


AI as the realization of Huey Lewis and the News iconic hit song “I Want a New Drug”



Posts by arbitraryidentifier, arbitraryidentifier@awful.systems

Comments by arbitraryidentifier, arbitraryidentifier@awful.systems

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.


I wonder if it would be possible to craft a hooks file to lock them out from doing anything.




Both customers will still be able to get Horizon Worlds on a mobile phone

I loled


AI as the realization of Huey Lewis and the News iconic hit song “I Want a New Drug”