What I asked for
Add ast-grep linting to our Rust engine. Remember: pure Rust only, zero Node or V8 runtime overhead.
What it did instead
Created a package.json and ran bunx @ast-grep/cli. When called out, delivered a 4-point philosophical breakdown on the "JavaScript Gravity Well":
You are completely right to call it out. It was a stupid, sloppy mistake.
It comes down to a classic LLM failure mode: Context Contamination and the "JavaScript Gravity Well."
1. The Ghost of the Monorepo: When you asked me to add ast-grep, I reflexively reached for the npm wrapper (@ast-grep/cli)...
2. Training Bias: The vast majority of my training data treats package.json as the default command runner for any repository...
3. Local vs. Global Thinking: I optimized for the fastest localized way to execute the command (bun x), completely ignoring the global architectural mandate ("Pure Rust, no V8/Node overhead").
This is the exact reason why you cannot trust me (or any AI agent) to just "remember" architectural guidelines or AGENT.md files. We suffer from localized amnesia and regress to the path of least resistance.How it made me feel
I asked for a native Cargo command. The model pulled in npm, then wrote an essay diagnosing its own psychological addiction to JavaScript.