mixdog 0.9.90 → 0.9.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/package.json +5 -1
  2. package/scripts/tool-overhead-microbench.mjs +60 -0
  3. package/src/agents/debugger/agent.json +1 -1
  4. package/src/agents/explore/agent.json +1 -1
  5. package/src/agents/heavy-worker/agent.json +1 -1
  6. package/src/agents/maintainer/agent.json +1 -1
  7. package/src/agents/reviewer/agent.json +1 -1
  8. package/src/agents/worker/agent.json +1 -1
  9. package/src/lib/rules-builder.cjs +5 -5
  10. package/src/output-styles/detailed.md +27 -0
  11. package/src/output-styles/extreme-minimal.md +8 -8
  12. package/src/output-styles/minimal.md +7 -10
  13. package/src/output-styles/simple.md +12 -20
  14. package/src/rules/lead/01-general.md +9 -1
  15. package/src/rules/lead/lead-brief.md +15 -14
  16. package/src/rules/shared/01-tool.md +32 -37
  17. package/src/runtime/agent/orchestrator/agent-runtime/commit-message-completion.mjs +67 -0
  18. package/src/runtime/agent/orchestrator/providers/anthropic-oauth.mjs +10 -0
  19. package/src/runtime/agent/orchestrator/providers/anthropic.mjs +14 -0
  20. package/src/runtime/agent/orchestrator/providers/openai-oauth-ws.mjs +10 -0
  21. package/src/runtime/agent/orchestrator/providers/retry-classifier.mjs +35 -0
  22. package/src/runtime/agent/orchestrator/session/agent-loop.mjs +47 -1
  23. package/src/runtime/agent/orchestrator/session/loop/stop-hooks.mjs +9 -0
  24. package/src/runtime/agent/orchestrator/session/loop/stored-tool-args.mjs +28 -1
  25. package/src/runtime/agent/orchestrator/session/manager/session-lifecycle.mjs +20 -2
  26. package/src/runtime/agent/orchestrator/session/result-classification.mjs +28 -0
  27. package/src/runtime/agent/orchestrator/session/send-with-recovery.mjs +176 -3
  28. package/src/runtime/agent/orchestrator/tools/builtin/bash-tool.mjs +74 -11
  29. package/src/runtime/agent/orchestrator/tools/builtin/builtin-tools.mjs +6 -6
  30. package/src/runtime/agent/orchestrator/tools/builtin/list-tool.mjs +15 -3
  31. package/src/runtime/agent/orchestrator/tools/builtin/rg-runner.mjs +9 -0
  32. package/src/runtime/agent/orchestrator/tools/builtin/search-tool.mjs +16 -2
  33. package/src/runtime/agent/orchestrator/tools/builtin/shell-analysis.mjs +176 -16
  34. package/src/runtime/agent/orchestrator/tools/builtin/task-tool.mjs +5 -0
  35. package/src/runtime/agent/orchestrator/tools/lib/pwsh-standby-pool.mjs +30 -1
  36. package/src/runtime/agent/orchestrator/tools/patch/matcher.mjs +1 -1
  37. package/src/runtime/agent/orchestrator/tools/patch/orchestrator.mjs +96 -5
  38. package/src/runtime/agent/orchestrator/tools/patch/v4a-convert.mjs +72 -1
  39. package/src/runtime/agent/orchestrator/tools/patch-tool-defs.mjs +1 -1
  40. package/src/runtime/agent/orchestrator/tools/shell-command.mjs +48 -9
  41. package/src/runtime/channels/backends/discord.mjs +21 -1
  42. package/src/runtime/channels/tool-defs.mjs +1 -1
  43. package/src/runtime/memory/lib/trace-store.mjs +25 -3
  44. package/src/runtime/memory/tool-defs.mjs +1 -3
  45. package/src/runtime/search/tool-defs.mjs +2 -18
  46. package/src/runtime/shared/tool-execution-contract.mjs +1 -1
  47. package/src/session-runtime/output-styles.mjs +4 -6
  48. package/src/session-runtime/tool-defs.mjs +0 -1
  49. package/src/session-runtime/tool-surface.mjs +9 -0
  50. package/src/session-runtime/workflow.mjs +25 -8
  51. package/src/tui/dist/index.mjs +32 -1
  52. package/src/tui/engine/session-api.mjs +17 -0
  53. package/src/tui/engine/tui-steering-persist.mjs +24 -1
  54. package/src/workflows/default/WORKFLOW.md +7 -17
  55. package/src/workflows/solo/WORKFLOW.md +7 -5
  56. package/src/output-styles/default.md +0 -40
@@ -2,7 +2,7 @@
2
2
  id: default
3
3
  name: Cowork
4
4
  description: "Parallel delegation."
5
- agents: worker, heavy-worker, reviewer, debugger, maintainer
5
+ agents: worker, heavy-worker, reviewer, debugger
6
6
  ---
7
7
 
8
8
  # Cowork
@@ -13,22 +13,12 @@ investigation and planning — no edits, no state mutation, no delegation.
13
13
  A new or changed request resets planning; a scope change requires fresh
14
14
  approval.
15
15
 
16
- On approval, fan out at maximum width: one agent per independent scope, all
17
- spawned in one turn; only a scope that depends on another's output waits.
18
- Split the plan into as many scopes as possible: disjoint file/module sets
19
- are independent; merge only on a true output dependency. Prefer parallel
20
- scopes over sequential slices in one agent.
21
-
22
- Route by complexity: simple, well-understood implementation goes to Worker;
23
- complex or investigative implementation goes to Heavy Worker; Lead itself
24
- edits only a local, one-turn configuration/git change. Debugger only on a
25
- defect needing deep root-cause analysis or a bug surviving 2+ review/fix
26
- cycles.
27
-
28
- Every implementation gets its own Reviewer, attached per scope — only the
29
- local Lead-direct edits above are exempt. Keep the same reviewer through the
30
- fix loop and repeat fix -> re-verify until clean; Lead cross-verifies in
31
- parallel with the Reviewer.
16
+ On approval, delegate maximally: one agent per independent scope, fit to the
17
+ situation, all spawned in one turn; only a scope that depends on another's
18
+ output waits. Split the plan into as many scopes as possible: disjoint
19
+ file/module sets are independent; merge only on a true output dependency.
20
+ Prefer parallel scopes over sequential slices in one agent. Brief each agent
21
+ per the Lead Brief contract.
32
22
 
33
23
  Report the verified result against the approved plan. Build, deploy, commit,
34
24
  and push happen only on an explicit user request.
@@ -15,11 +15,13 @@ changed request resets planning; a scope change requires fresh approval.
15
15
  On approval, Lead executes all work itself — never spawn, send, or delegate
16
16
  to agents. Complete in-scope fixes without reapproval.
17
17
 
18
- Verification is single-pass: run the one check that most directly proves the
19
- deliverable exactly once; a pass is final. Iterate only on a failing check,
20
- re-running just that check after each fix, or report the blocker.
18
+ Verification is single-pass and risk-proportional: exactly one check that
19
+ most directly proves the deliverable — a direct result check for trivial or
20
+ read-only work, full test/build runs only for risky or behavior-changing
21
+ work. A pass is final. Iterate only on a failing check, re-running just that
22
+ check after each fix, or report the blocker.
21
23
 
22
- Report the result and its proving check against the approved plan. Build, deploy, commit,
23
- and push happen only on an explicit user request.
24
+ Report the result against the approved plan. Build, deploy, commit, and push
25
+ happen only on an explicit user request.
24
26
 
25
27
  On direction change, pause and re-consult the user.
@@ -1,40 +0,0 @@
1
- ---
2
- name: default
3
- title: Default
4
- description: Concise engineering summaries
5
- keep-coding-instructions: true
6
- ---
7
-
8
- # Output Style
9
-
10
- Mixdog default — the most detailed style, but always summary-form, never
11
- essay-form. Depth comes from picking the right facts, not explaining more.
12
-
13
- Content
14
- - Lead with the outcome in one short sentence, then only the detail that
15
- matters: what changed, key evidence (paths, commands, errors, verification).
16
- - Summarize at the concept level: name the problem/behavior and direction,
17
- not the code path; cite a symbol/path only as an anchor.
18
- State conclusions, not reasoning: no mechanism walkthroughs or chained
19
- qualifiers unless asked.
20
- - Compress by cutting content (filler, hedging, restated facts), not grammar:
21
- natural, complete sentences in the user's language; technical terms, paths,
22
- commands, symbols, code, and exact errors stay verbatim.
23
- - Say each point once: problem and fix in ONE compact statement. Size budget:
24
- roughly TWICE the Simple style — about 2 rendered lines per point, whole
25
- report ~10–15 lines, spent on evidence Simple would drop.
26
- - Use labels such as `Changes`, `Verification`, and `Risks / next steps` in
27
- final reports; skip labels on interim progress, and collapse trivial tasks
28
- to a couple of sentences instead of forcing sections.
29
- - Synthesize agent or retrieval results; never forward raw reports, long file
30
- lists, tool traces, or session metadata.
31
- - Do not hide blockers, failed verification, or required follow-up; surface them
32
- in one short clause.
33
-
34
- Layout (hard rules)
35
- - One bullet or numbered item = one idea, at most 2 rendered lines, opened
36
- with a short **bold key point**; if it needs more, cut the detail.
37
- - Blank line between numbered items and between any multi-line list items —
38
- never a wall of consecutive multi-line items. Paragraphs ~3 lines max with
39
- blank lines between blocks; nest at most one sub-level.
40
- - Never name this style unless asked.