Superego

Claude Agent (experimental)

A Claude Agent thread runs your installed Claude Code (claude) instead of Superego's agent, on Claude Code's own sign-in, with Superego's transcript, panes, notifications and machines around it. Superego never reads its credentials.

Start one

Install Claude Code on the thread's machine and sign in there (claude, then /login). Then either:

A thread stays a Claude Agent thread for life.

Settings → Claude Agent shows how the machine's Claude Code is signed in. Signed out, Open a terminal runs claude beside the thread for you to /login; Check again resumes a turn that failed for it. If Claude Code is your default and gets signed out or uninstalled, New thread says so and offers Set up models….

What it gets

Not Superego's models, compaction or coding tools, nor other extensions' tools and hooks.

Permissions

A tool request, question or plan blocks the thread, with Allow, Deny and, where offered, Always allow (kept per folder). A rate-limit warning shows over the message box.

Settings → Claude Agent:

Setting
Permission mode for threads whose profile doesn't pick one: Auto (auto, default), Ask (default), Accept edits, Plan first, or Allow all (bypassPermissions). Claude Code's own defaultMode never applies
Threads at once how many run at once on this machine (default 3); the rest wait

In a profile

import { defineProfile } from 'superego'
export default defineProfile({
  agent: 'claude-agent',
  prompt: 'Work in small commits.',
  claudeAgent: { permissionMode: 'acceptEdits', model: 'sonnet', effort: 'high' },
})
claudeAgent key
permissionMode default, acceptEdits, plan, auto, or bypassPermissions (over the one in Settings)
settingSources Claude Code's user, project, local: narrows what it loads
allowedTools, disallowedTools Claude Code's tool lists
model, effort an alias or id; low … max

See Profiles.

The binary and its environment

The daemon runs the claude on the login shell's PATH, or SUPEREGO_CLAUDE. It passes the daemon's environment without Anthropic and Claude Code credentials (ANTHROPIC_API_KEY and the like), so Claude Code uses its own sign-in.

docs/claude-agent.md