User Archon AI Client
──── ────── ─────────
configures Pi ───────▶ DEFAULT_AI_ASSISTANT=pi
registers project ───▶ detects no .codex/.claude folder
falls back to first built-in provider
stores ai_assistant_type=claude [X]
opens Web chat ──────▶ builds orchestrator prompt
injects "AI Provider: claude"
sends prompt ───────────▶ believes project uses Claude
asks config question ◀────────────────────────── says Claude is configured
Example visible symptom from chat output:
Configuration Assessment
The project is registered in Archon with:
Directory: <project path>
AI Provider: claude
When challenged, the agent attributed this to the Registered Projects section of its prompt rather than anything found in the repository.
Summary
claudeas the project AI provider even when the intended/default provider ispi. The orchestrator then injectsAI Provider: claudeinto the project context, causing the chat agent to believe Claude is configured for the project.majorSteps to Reproduce
pi..codex/or.claude/provider-specific directories.AI Provider: claude.Expected vs Actual
ai_assistant_type = pi, or project registration should explicitly ask/select a provider instead of silently falling back to Claude.ai_assistant_type = claude. The orchestrator prompt includesAI Provider: claude, and the chat agent treats that as authoritative project configuration.User Flow
Environment
NoLogs
Impact
remote_agent_codebases.ai_assistant_type..codex/or.claude/and the intended provider is Pi.remote_agent_codebases.ai_assistant_typetopi, then reset/recreate affected conversations/sessions so stale provider state is not reused.NoScope
core|server|webcore:handlers/clone,core:db/codebases,core:orchestrator/prompt-builder,providers:registry