Skip to content

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

CSS

gen-cli sheds host-session env so child auth works in a logged-in terminal

Youssef526288230537
diff --git a/eval/gen-cli.mjs b/eval/gen-cli.mjs
index 9454115..df50dbb 100644
--- a/eval/gen-cli.mjs
+++ b/eval/gen-cli.mjs
@@ -138,6 +138,8 @@ async function runCell(brief, armId) {
const env = { ...process.env };
delete env.ANTHROPIC_API_KEY; // never spend the API key; use the subscription
+ delete env.ANTHROPIC_BASE_URL; // a host session (e.g. running inside Claude Code) exports this and breaks child auth
+ for (const k of Object.keys(env)) if (/^CLAUDE(CODE$|_CODE_|_)/.test(k)) delete env[k]; // shed host-session vars
if (arm.base) {
env.ANTHROPIC_BASE_URL = arm.base;
env.ANTHROPIC_MODEL = arm.model;