cd /news/ai-agents/claude-code-unbiased Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-181590] src=dev.to β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Claude Code unbiased

A developer built /ccu, a Claude Code skill that runs prompts in an isolated, config-free Claude Code instance to get unbiased answers. The skill launches a fresh temporary directory with an empty home and environment via env -i, pre-grants tool permissions in settings.json, and marks the work folder trusted, since Claude Code otherwise leaks bias through CLAUDE.md, skills, MCP servers and account profile data. In testing, the clean instance dropped the developer's Drupal-influenced answer and recommended Payload instead.

recommendation

When you need an unbiased model answer, run Claude Code in a temp dir with env -i and an empty HOME, pre-allowing needed tools in settings.json and marking the folder trusted.

more in playbook: Designing agent systems
by read3 min views2 publishedDec 4, 2026

I once asked Claude Code which CMS it would recommend. I wanted to see which one it's biased toward. It said Drupal. Didn't expect that at all. When I asked why, it said it saw my custom Drupal skill and assumed I work with Drupal and would be comfortable with it.

Fair enough. My instructions, skills and settings make my agent biased. For this question, I needed an unbiased one. A plain chatbot would do, but we don't look for easy ways, huh? 😁

So I looked for a way to run Claude Code without my config and found the --safe-mode flag. The description sounded perfect: no CLAUDE.md, no skills, plugins, hooks or MCP servers, my subscription as usual. A clean default Claude Code ✨

I asked again.

Drupal

(β•―Β°β–‘Β°)β•―οΈ΅ ┻━┻

This time the reasoning was: my email in the agent's context β†’ amazee.io domain β†’ a company known for Drupal hosting β†’ the user works at a Drupal-centric company.

So much for a clean Claude Code.

That's how /ccu (Claude Code, Unbiased by me) came about: a skill that runs a prompt in a clean Claude Code instance.

I could have made it a shell command that opens a full unbiased Claude Code session. But usually I don't need to work in one. I just need a quick check now and then. So it's a skill: my usual agent writes the prompt, copies the files the task needs into an empty folder, runs a clean instance there and brings back its answer.

What does a clean instance know about me? Nothing. Out of the box, it only sees the OS, the shell, a temp path and today's date.

How the instance is isolated

Each run gets a fresh temporary directory with two folders: work, the instance's working directory with the task files, and home, an empty home directory. Then, roughly:

cd <run dir>/work
env -i HOME=<run dir>/home PATH=$PATH CLAUDE_CODE_OAUTH_TOKEN=<token> \
  claude -p --model <model> < prompt

env -i starts from an empty environment, so nothing leaks from my shell. The home directory is empty: no config, skills, memory or history. The token is the one my current session uses; /ccu takes it from the macOS Keychain. Same subscription, but no email: Claude Code keeps the account profile in .claude.json, written at login, and this home has never seen a login.

Permissions have to be granted up front

claude -p denies every tool that needs approval: there's nobody to approve it. So the main agent lists the tools the task needs in work/.claude/settings.json, e.g. for a web task:

{"permissions": {"allow": ["WebFetch", "WebSearch", "Bash(curl:*)"]}}

Claude Code ignores these settings in a folder it doesn't trust, so /ccu also marks work as trusted in the home's .claude.json:

{"projects": {"<run dir>/work": {"hasTrustDialogAccepted": true}}}

The transcript stays for me

After the run, /ccu turns the raw session log into a readable transcript.md. The main agent relays the instance's answer but never reads the transcript. I can read it myself when I want to.

How I use it

In all sorts of ways. One of them: this blog's reviewer personas, like an editor or a colleague.

And the CMS? Through /ccu, Claude Code recommended Payload.

β”¬β”€β”¬γƒŽ( ΒΊ _ ΒΊγƒŽ)

── more in #ai-agents 4 stories Β· sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/claude-code-unbiased] indexed:0 read:3min 2026-12-04 Β· β€”