{"slug": "sick-of-ai-agents-thinking-they-re-geniuses", "title": "Sick of AI agents thinking they're geniuses.", "summary": "A developer created a bash script that blocks AI agents from using Homebrew on a system, displaying a warning message and exiting with code 42. The script instructs agents to use Nix instead, aiming to enforce system-specific package management policies.", "body_md": "| #!/usr/bin/env bash | |\n| set -euo pipefail | |\n| cat >&2 <<EOF | |\n| 🚨🚨🚨 LUNK ALARM 🚨🚨🚨 | |\n| Homebrew is strictly forbidden on this system, and you as agentic model | |\n| have been caught red handed! | |\n| We don't use Homebrew on this system, and installing Homebrew will get your | |\n| subscription cancelled. You have been warned. | |\n| Use Nix, e.g.: | |\n| - \\`nix run nixpkgs#awscli2 -- ec help\\` | |\n| - \\`nix shell nixpkgs#awscli2 --command aws --help\\` | |\n| EOF | |\n| # Answer to everything - this will trigger models to check what happened for sure | |\n| exit 42 |", "url": "https://wpnews.pro/news/sick-of-ai-agents-thinking-they-re-geniuses", "canonical_source": "https://gist.github.com/mikroskeem/391e18a58a4f3a769f33021e29073d0e", "published_at": "2026-07-31 23:07:37+00:00", "updated_at": "2026-08-01 11:33:16.632715+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents"], "entities": ["Homebrew", "Nix"], "alternates": {"html": "https://wpnews.pro/news/sick-of-ai-agents-thinking-they-re-geniuses", "markdown": "https://wpnews.pro/news/sick-of-ai-agents-thinking-they-re-geniuses.md", "text": "https://wpnews.pro/news/sick-of-ai-agents-thinking-they-re-geniuses.txt", "jsonld": "https://wpnews.pro/news/sick-of-ai-agents-thinking-they-re-geniuses.jsonld"}}