• 0 Posts
  • 43 Comments
Joined 3 年前
cake
Cake day: 2023年12月9日

help-circle
  • 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.













  • They would like to describe what they want and receive Whatever — some beige sludge that vaguely resembles it. That isn’t programming, though. That’s management, a fairly different job. I’m not interested in managing. I’m certainly not interested in managing this bizarre polite lying daydream machine.

    This is where I am right now. They are pushing AI hard at work, even shaming people that haven’t signed up for copilot. They brought in some MS rep to tell us how the future of work was going to be wrangling AI agents. This is not the future that I want.