Commit db6fcd2
committed
release: v0.10.1 — SLM-optimized prompts, context budgets, E2E tests, docs
## SLM Prompt Optimization (pkg/agents/prompts.go)
- All 19 prompts restructured with bullet lists, explicit JSON examples
- Anti-hallucination rules added to 14/19 prompts
- Worker/Tester/Reviewer/Corrector/Splitter/Planner fully optimized:
HARD SCOPE, TOOL INVARIANTS, ANTI-HALLUCINATION, COMMON SLM FAILURES sections
## Context Budget for SLMs (pkg/context/, pkg/config/, pkg/compact/)
- DefaultMaxContextKB: 32→16 (safe for 7B-30B models)
- SafetyMarginPercent=80: reserves 20% for system prompt+response
- MaxLeanPackBytes=12KB (was 16KB)
- MaxSkillFraction=15% (skills limited to 15% of remaining budget)
- File-first ordering for coding agents
- All compaction fallbacks aligned to SLM-safe defaults
## E2E Tests (test/e2e/blocks_test.go)
- 9 comprehensive tests: go/python pack apply, list/show, validate, materialize agents,
nil config handling, pipeline preset, round-trip, QA gate resolution
## Docs
- changelog: SLM optimization details
- studio.md: File Inspector + HITL popup documentation
- testing.md: enhanced smoke test
## All tests passing
- 35/35 packages pass (including new e2e tests)1 parent 5ec6842 commit db6fcd2
13 files changed
Lines changed: 1140 additions & 166 deletions
File tree
- docs
- pkg
- agents
- compact
- config
- context
- orchestrator
- test/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
17 | 49 | | |
18 | 50 | | |
19 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
59 | 85 | | |
60 | 86 | | |
61 | 87 | | |
| |||
82 | 108 | | |
83 | 109 | | |
84 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
85 | 129 | | |
86 | 130 | | |
87 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments