Superego

Claude Agent (experimental)

A Claude Agent thread runs your own installed Claude Code (claude) instead of Superego's agent, on Claude Code's own sign-in. Superego keeps the rest: the transcript, status, panes, notifications, phone and web access, and other machines. Superego doesn't install, update or sign in to Claude Code, and never reads its credentials.

Starting one

You need Claude Code installed on the thread's machine and signed in there (claude, then /login). Then either:

A thread stays a Claude Agent thread for its whole life: the two kinds keep different histories.

Settings → Claude Agent shows the machine's Claude Code and how it's signed in. Signed out, Open a terminal runs claude beside the thread for you to /login; a thread whose turn failed for it goes on once Check again finds it signed in.

What it gets

What it doesn't get: Superego's models, its compaction, its coding tools (Claude Code has its own), and other extensions' tools and hooks. Its MCP servers are Claude Code's, not the ones in Settings → MCP servers.

Permissions

When Claude Code asks to use a tool, the thread shows as blocked, with Allow, Deny and, where Claude Code offers one, Always allow. Always allow is kept per folder by Superego. Claude Code's questions and plans show the same way.

Settings → Claude Agent:

When Claude Code warns of a plan's rate limit, a line over the message box says how much is used and when it resets.

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 takes permissionMode (also bypassPermissions, only from a profile), settingSources (Claude Code's user, project, local, to narrow what it loads), allowedTools, disallowedTools, model and effort. See Profiles.

The binary and its environment

The daemon runs the claude on the machine's login shell's PATH, or SUPEREGO_CLAUDE. It passes Claude Code the daemon's environment without Anthropic and Claude Code credentials (ANTHROPIC_API_KEY and the like), so it uses its own sign-in and doesn't bill an API key you didn't pick.

docs/claude-agent.md