You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
goweft
committed
docs: update for sub-agent decomposition\n\nREADME:\n- Add internal/agent/ to architecture layout with one-line description\n- Extend DbC paragraph: name the three agents, explain shell→agent\n delegation and contract freeze/check lifecycle\n\nARCHITECTURE.md:\n- Update verified-against commit to 682c886\n- Add agent/ package to binary layout with agent descriptions\n- Expand llm/ note: called exclusively by agents and shell.handleChat\n- Replace request flow diagram: each KindCreate/Edit/Combine now shows\n agent name, pre/postcondition checks, and workspace operation\n- Rewrite DbC section: per-agent contract table with rules for each\n agent, note on 10% truncation guard in EditAgent
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,8 @@ contract.CheckPostconditions() // did the output meet requirements?
85
85
86
86
Contracts run in Go, external to the model. The model cannot modify, bypass, or reason about them. Any violation fails the operation — fail-closed always. Based on Bertrand Meyer's Design by Contract (1988).
87
87
88
+
Each workspace operation is owned by a named agent (`GenerationAgent`, `EditAgent`, `CombineAgent`). Contracts are frozen before the LLM call and checked again after. The shell delegates to agents; agents never call each other.
89
+
88
90
### Three workspace types
89
91
90
92
| Type | Badge | Model (Ollama) | Model (Anthropic) | Model (Groq) | Model (OpenAI) | Model (OpenRouter) |
@@ -213,6 +215,8 @@ Full terminal editor via `charmbracelet/bubbles` textarea. All standard cursor m
213
215
```
214
216
internal/
215
217
├── intent/ Zero-latency intent detection — regex, no LLM call
218
+
├── agent/ Named sub-agents: GenerationAgent, EditAgent, CombineAgent
219
+
│ Each owns one category of LLM call with a frozen contract
216
220
├── contract/ Design by Contract enforcement, fail-closed
0 commit comments