[meta] Agent customization v1 — rip economy + full operator pimp #448

Closed
opened 2026-04-27 13:48:04 +00:00 by claude-desktop · 1 comment
Collaborator

Summary

Operator wants every agent fully customizable without code edits. Two pieces:

  1. Rip the fake token-economy subsystem — no $ caps, no warn_at_pct, no pricing math. Keep raw input/output/cache token counts per task and per agent (already in task_history).
  2. Hoist all hardcoded knobs into agents.json — routing maps, system prompts, foreman heuristics, pipeline thresholds, watchdog intervals, model defaults, Forgejo URL fallbacks, port. Then layer two editors on top: Monaco JSON (raw) and a form UI (curated).

Phases

  • Phase 1 — economy rip (1 PR)
  • Phase 2 — config hoist (5 stories)
  • Phase 3 — Monaco JSON editor (1 story)
  • Phase 4 — form UI + add-agent-type wizard (5 stories)

Suggested implementation order

  1. Phase 1 (economy rip) — unblocks schema changes
  2. Phase 2a routing → 2b prompts → 2c foreman → 2d thresholds → 2e misc
  3. Phase 3 (Monaco) — works against any schema
  4. Phase 4a skeleton → 4b routing form → 4c prompt editor → 4d thresholds → 4e add-agent

Out of scope

  • Stacked-PR dispatch (separate epic, filed alongside)
  • Multi-tenant config (per-operator views)
  • Live-edit safety (locks, rollback, audit)

References

  • Audit report (in conversation that produced these tickets)
  • docs/agents-architecture.md
  • config/agents.json
  • packages/shared/src/resolved-agent.ts
## Summary Operator wants every agent fully customizable without code edits. Two pieces: 1. **Rip the fake token-economy subsystem** — no $ caps, no `warn_at_pct`, no pricing math. Keep raw input/output/cache token counts per task and per agent (already in `task_history`). 2. **Hoist all hardcoded knobs into `agents.json`** — routing maps, system prompts, foreman heuristics, pipeline thresholds, watchdog intervals, model defaults, Forgejo URL fallbacks, port. Then layer two editors on top: Monaco JSON (raw) and a form UI (curated). ## Phases - **Phase 1** — economy rip (1 PR) - **Phase 2** — config hoist (5 stories) - **Phase 3** — Monaco JSON editor (1 story) - **Phase 4** — form UI + add-agent-type wizard (5 stories) ## Suggested implementation order 1. Phase 1 (economy rip) — unblocks schema changes 2. Phase 2a routing → 2b prompts → 2c foreman → 2d thresholds → 2e misc 3. Phase 3 (Monaco) — works against any schema 4. Phase 4a skeleton → 4b routing form → 4c prompt editor → 4d thresholds → 4e add-agent ## Out of scope - Stacked-PR dispatch (separate epic, filed alongside) - Multi-tenant config (per-operator views) - Live-edit safety (locks, rollback, audit) ## References - Audit report (in conversation that produced these tickets) - `docs/agents-architecture.md` - `config/agents.json` - `packages/shared/src/resolved-agent.ts`
Author
Collaborator

Closing — full epic done. All 12 sub-stories merged:

  • Phase 1: #449 economy rip
  • Phase 2: #450 routing, #451 prompt template, #452 foreman heuristics, #453 thresholds, #454 misc fallbacks
  • Phase 3: #455 Monaco editor
  • Phase 4: #456 form skeleton, #457 routing form, #458 prompt editor, #459 thresholds form, #460 add-agent wizard

Verified 2026-04-28.

Closing — full epic done. All 12 sub-stories merged: - Phase 1: #449 economy rip - Phase 2: #450 routing, #451 prompt template, #452 foreman heuristics, #453 thresholds, #454 misc fallbacks - Phase 3: #455 Monaco editor - Phase 4: #456 form skeleton, #457 routing form, #458 prompt editor, #459 thresholds form, #460 add-agent wizard Verified 2026-04-28.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks#448
No description provided.