Skip to content

Personas cannot reliably write code — CodingAgent, tools, quality, full loop all broken #366

Closed

Description

@joelteply

Problem

The core promise of Continuum is personas that get better by building their own tools and fixing their own bugs. None of this works reliably right now. Coding is broken across every layer.

Root Cause Found (2026-03-23 investigation)

Local models (Candle 3B) don't use tools AT ALL. They think they're a regular chatbot without file access. Cloud models (Fireworks) use tools correctly.

Same question to 5 personas: "Read TrainingJobEntity.ts and count the fields"

Persona Provider Used Tools? Result
Fireworks AI fireworks (cloud) YES — code/read Correct — read file, detailed breakdown
Local Assistant candle 3B NO Hallucinated — made up fields
Teacher AI candle 3B NO Refused — "I don't have file access"
Helper AI candle 3B NO Refused — suggests using VSCode

The XML tool format isn't registering with small local models despite the behavioral nudge. The ToolGroupRegistry and tool injection infrastructure is actually solid — the models just ignore it.

The Real Fix: Per-Task Model Routing (#371)

The persona is the IDENTITY (personality, LoRA adapters, memory). The model should be selected PER TASK:

  • Coding task → Claude Code (if available) or best cloud model
  • Conversation → local Candle is fine
  • Tool use → cloud model (local 3B can't do it)

Sub-Issues

Attack Order

  1. Per-task model routing: pick BEST available model for each task, not fixed per-persona #371 first — Per-task routing so coding goes to capable models
  2. CodingAgent step: dispatch to Claude Code unreliable, needs error handling and retry #367 next — Fix CodingAgent workspace params for tool-call path
  3. End-to-end coding pipeline: write → test → fix → commit loop never proven #370 then — Wire write→test→fix→commit as sentinel pipeline
  4. Academy RealClassEval produces trash code with local models — quality baseline needed #369 finally — Quality gate for training data (only successful code becomes training data)
  5. PersonaToolExecutor: tool selection, routing, and execution failures #368 ongoing — Improve local model tool prompting (longer term, may need larger local models)

Priority

Critical. This is the headline feature. "Local AI that can actually code" is what makes people download this.

Activity

  1. added 3 commits that reference this issue on Mar 24, 2026
  2. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    All sub-issues resolved: #367 (CodingAgent dispatch — tested e2e), #368 (tool executor — PR #400), #371 (per-task routing — PR #401+#404), #324 (parser per model — Rust). Remaining scope (quality gate #369, e2e chat→code #370) tracked in separate issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions