minicode-ai 0.11.1 → 0.13.0

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 (221) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/LICENSE +21 -21
  3. package/README.md +4 -4
  4. package/cli/args.ts +46 -0
  5. package/cli/commands/acp.ts +163 -10
  6. package/cli/commands/config.ts +33 -18
  7. package/cli/commands/daemon.ts +515 -0
  8. package/cli/commands/exec.ts +145 -53
  9. package/cli/commands/openwork.ts +986 -0
  10. package/cli/commands/sessions.ts +4 -1
  11. package/cli/commands/stats.ts +34 -4
  12. package/cli/commands.ts +217 -2
  13. package/cli/index.ts +146 -14
  14. package/cli/recovery-warning.ts +115 -0
  15. package/cli/router.ts +32 -1
  16. package/cli/setup.ts +2332 -171
  17. package/cli/tui.ts +113 -7
  18. package/docs/OUTPUT_ARCHITECTURE_AUDIT.md +489 -0
  19. package/docs/OUTPUT_EVENT_MODEL.md +289 -0
  20. package/docs/OUTPUT_IMPLEMENTATION_PLAN.md +391 -0
  21. package/docs/OUTPUT_PROTOCOL_SPEC.md +285 -0
  22. package/docs/OUTPUT_RENDERING_SPEC.md +248 -0
  23. package/docs/OUTPUT_UX_RULES.md +449 -0
  24. package/docs/PLAN_UIUX_V6.md +2 -2
  25. package/docs/README.md +4 -3
  26. package/docs/TERMINAL_CONTRACT.md +278 -71
  27. package/docs/architecture.md +89 -7
  28. package/docs/changelog.md +1 -1
  29. package/docs/choosing-mode.md +2 -2
  30. package/docs/cli.md +9 -5
  31. package/docs/concepts.md +1 -1
  32. package/docs/contributing.md +9 -2
  33. package/docs/environment.md +6 -2
  34. package/docs/exec.md +46 -5
  35. package/docs/memory-sessions.md +2 -0
  36. package/docs/policy-sandbox.md +1 -1
  37. package/docs/pricing-budget.md +1 -1
  38. package/docs/quickstart.md +2 -2
  39. package/docs/repl.md +6 -2
  40. package/docs/security-model.md +1 -1
  41. package/docs/security.md +1 -1
  42. package/docs/skills.md +2 -2
  43. package/docs/terminal.md +9 -5
  44. package/docs/tools.md +1 -1
  45. package/package.json +35 -5
  46. package/src/app/session.ts +261 -15
  47. package/src/app/tool-layer.ts +94 -7
  48. package/src/daemon/approvals.ts +361 -0
  49. package/src/daemon/capability.ts +145 -0
  50. package/src/daemon/children.ts +142 -0
  51. package/src/daemon/client.ts +267 -0
  52. package/src/daemon/control.ts +350 -0
  53. package/src/daemon/discovery.ts +234 -0
  54. package/src/daemon/feed.ts +155 -0
  55. package/src/daemon/framing.ts +94 -0
  56. package/src/daemon/host.ts +316 -0
  57. package/src/daemon/protocol.ts +217 -0
  58. package/src/daemon/resource.ts +170 -0
  59. package/src/daemon/sanitize.ts +57 -0
  60. package/src/daemon/server.ts +627 -0
  61. package/src/daemon/store.ts +317 -0
  62. package/src/daemon/subscription.ts +270 -0
  63. package/src/daemon/telemetry.ts +81 -0
  64. package/src/hooks/run.ts +12 -1
  65. package/src/lib/atomic-write.ts +29 -3
  66. package/src/lib/db-path.ts +26 -0
  67. package/src/lib/keystore.ts +544 -42
  68. package/src/lib/net.ts +43 -1
  69. package/src/lib/safe-open.ts +116 -1
  70. package/src/lib/session-id.ts +15 -0
  71. package/src/lsp/client.ts +123 -5
  72. package/src/mcp/client.ts +139 -17
  73. package/src/mcp/server.ts +177 -50
  74. package/src/mcp/transport.ts +16 -19
  75. package/src/memory/vector.ts +770 -55
  76. package/src/policy/allowlist.ts +14 -2
  77. package/src/policy/bash-guard.ts +105 -10
  78. package/src/policy/compaction.ts +82 -5
  79. package/src/policy/consequence-engine.ts +220 -0
  80. package/src/policy/context.ts +132 -0
  81. package/src/policy/executor.ts +187 -121
  82. package/src/policy/no-progress.ts +559 -0
  83. package/src/policy/permission.ts +4 -8
  84. package/src/policy/pricing.ts +17 -3
  85. package/src/policy/scrub.ts +69 -2
  86. package/src/policy/tool-contract.ts +515 -0
  87. package/src/policy/usage.ts +310 -24
  88. package/src/policy/verifier.ts +6 -3
  89. package/src/policy/work-mode.ts +182 -0
  90. package/src/presentation/adapter.ts +533 -26
  91. package/src/presentation/events.ts +151 -0
  92. package/src/presentation/model.ts +180 -27
  93. package/src/presentation/projection.ts +858 -0
  94. package/src/presentation/reducer.ts +645 -310
  95. package/src/presentation/store.ts +12 -7
  96. package/src/providers/anthropic.ts +18 -10
  97. package/src/providers/responses.ts +2 -2
  98. package/src/runtime/capability.ts +409 -0
  99. package/src/runtime/child-execution.ts +274 -0
  100. package/src/runtime/composition.ts +958 -0
  101. package/src/runtime/dispatch.ts +591 -0
  102. package/src/runtime/execution-backend.ts +632 -0
  103. package/src/runtime/execution-events.ts +272 -0
  104. package/src/runtime/execution-id.ts +230 -0
  105. package/src/runtime/execution-journal.ts +926 -0
  106. package/src/runtime/execution-kernel.ts +456 -0
  107. package/src/runtime/execution-registry.ts +379 -0
  108. package/src/runtime/process-supervision.ts +276 -0
  109. package/src/runtime/production-execution.ts +551 -0
  110. package/src/runtime/production-runtime.ts +217 -0
  111. package/src/runtime/recovery-safety.ts +70 -0
  112. package/src/runtime/recovery.ts +477 -0
  113. package/src/runtime/runtime-capabilities.ts +179 -0
  114. package/src/runtime/runtime-diagnostics.ts +141 -0
  115. package/src/runtime/runtime-host.ts +365 -0
  116. package/src/runtime/runtime-status-facts.ts +222 -0
  117. package/src/runtime/runtime-status-provider.ts +74 -0
  118. package/src/runtime/runtime-status.ts +459 -0
  119. package/src/runtime/runtime-task-admission.ts +101 -0
  120. package/src/runtime/supervisor.ts +444 -0
  121. package/src/session/authority.ts +168 -0
  122. package/src/session/checkpoint.ts +88 -1
  123. package/src/session/context-adapter.ts +251 -0
  124. package/src/session/context-assembly.ts +242 -0
  125. package/src/session/context-identity.ts +389 -0
  126. package/src/session/context-projection.ts +248 -0
  127. package/src/session/context-selector.ts +500 -0
  128. package/src/session/cross-session-adoption.ts +249 -0
  129. package/src/session/full-history-fold.ts +171 -0
  130. package/src/session/identity.ts +192 -0
  131. package/src/session/journal.ts +805 -102
  132. package/src/session/open-work-intent.ts +732 -0
  133. package/src/session/open-work.ts +767 -0
  134. package/src/session/pending-tools.ts +94 -0
  135. package/src/session/persistence.ts +3569 -127
  136. package/src/session/runtime-header.ts +208 -0
  137. package/src/session/shadow-git.ts +13 -5
  138. package/src/session/verification.ts +1623 -0
  139. package/src/task/assignment.ts +136 -0
  140. package/src/task/autonomous-adapter.ts +168 -0
  141. package/src/task/autonomous-context.ts +630 -0
  142. package/src/task/autonomous-policy.ts +490 -0
  143. package/src/task/continuity.ts +179 -0
  144. package/src/task/execution-cancellation.ts +165 -0
  145. package/src/task/graph-validate.ts +379 -0
  146. package/src/task/graph.ts +305 -0
  147. package/src/task/identity.ts +230 -0
  148. package/src/task/model.ts +417 -0
  149. package/src/task/production-scheduler.ts +293 -0
  150. package/src/task/readiness.ts +229 -0
  151. package/src/task/scheduler-observability.ts +387 -0
  152. package/src/task/scheduler.ts +1197 -0
  153. package/src/task/scheduling-policy.ts +165 -0
  154. package/src/task/session-authority.ts +148 -0
  155. package/src/task/session-ownership.ts +211 -0
  156. package/src/task/store.ts +2887 -0
  157. package/src/task/sync.ts +343 -0
  158. package/src/task/trigger.ts +260 -0
  159. package/src/tools/bash.ts +377 -211
  160. package/src/tools/code_run.ts +1 -1
  161. package/src/tools/delete_file.ts +1 -1
  162. package/src/tools/edit.ts +33 -6
  163. package/src/tools/evidence.ts +30 -0
  164. package/src/tools/git.ts +4 -4
  165. package/src/tools/glob.ts +12 -3
  166. package/src/tools/grep.ts +1 -1
  167. package/src/tools/lsp.ts +4 -4
  168. package/src/tools/mcp_call.ts +11 -4
  169. package/src/tools/memory.ts +153 -18
  170. package/src/tools/move_file.ts +1 -1
  171. package/src/tools/patch.ts +1 -1
  172. package/src/tools/read_file.ts +1 -1
  173. package/src/tools/read_image.ts +1 -1
  174. package/src/tools/submit_result.ts +1 -1
  175. package/src/tools/task.ts +437 -41
  176. package/src/tools/todo.ts +662 -35
  177. package/src/tools/web_fetch.ts +4 -2
  178. package/src/tools/web_search.ts +9 -3
  179. package/src/tools/write_file.ts +1 -1
  180. package/src/ui/assistant/simple.ts +123 -50
  181. package/src/ui/assistant/turn-status.ts +17 -3
  182. package/src/ui/contract.ts +184 -0
  183. package/src/ui/footer.ts +52 -19
  184. package/src/ui/i18n/en.ts +58 -6
  185. package/src/ui/i18n/id.ts +58 -6
  186. package/src/ui/input/prompt-engine.ts +120 -25
  187. package/src/ui/render/errors.ts +39 -1
  188. package/src/ui/render/markdown-table.ts +455 -0
  189. package/src/ui/render/markdown.ts +22 -1
  190. package/src/ui/render/table-grid.ts +184 -0
  191. package/src/ui/render/table.ts +15 -76
  192. package/src/ui/runtime/screen.ts +7 -2
  193. package/src/ui/runtime/statusline.ts +25 -6
  194. package/src/ui/tui/app.ts +507 -169
  195. package/src/ui/tui/transcript.ts +531 -89
  196. package/vendor/minicore/VENDOR.md +1 -1
  197. package/vendor/minicore/src/core/budget.ts +25 -25
  198. package/vendor/minicore/src/core/compact.ts +75 -75
  199. package/vendor/minicore/src/core/errors.ts +59 -59
  200. package/vendor/minicore/src/core/events.ts +73 -73
  201. package/vendor/minicore/src/core/executor.ts +139 -139
  202. package/vendor/minicore/src/core/history.ts +31 -31
  203. package/vendor/minicore/src/core/index.ts +41 -41
  204. package/vendor/minicore/src/core/loop.ts +355 -355
  205. package/vendor/minicore/src/core/permission.ts +22 -22
  206. package/vendor/minicore/src/core/provider.ts +39 -39
  207. package/vendor/minicore/src/core/recovery.ts +35 -35
  208. package/vendor/minicore/src/core/session.ts +327 -327
  209. package/vendor/minicore/src/core/snapshot.ts +146 -146
  210. package/vendor/minicore/src/core/tokens.ts +107 -107
  211. package/vendor/minicore/src/core/tool.ts +115 -115
  212. package/vendor/minicore/src/core/types.ts +50 -50
  213. package/vendor/minicore/src/providers/openai-compat.ts +417 -417
  214. package/AGENTS.md +0 -45
  215. package/PLAN.md +0 -491
  216. package/docs/ARCHITECTURE.html +0 -1248
  217. package/docs/CONTROL-PLANE-MAP.md +0 -139
  218. package/docs/HARNESS.md +0 -150
  219. package/docs/SUMMARY.md +0 -52
  220. package/docs/UI_RENDER_PIPELINE.md +0 -169
  221. package/docs/USAGE.md +0 -11
@@ -1,139 +0,0 @@
1
- # Control Plane Map — kontrak context/usage/cost/budget/compaction/termination
2
-
3
- Dokumen ini membekukan kontrak control-plane MiniCode (Phase 6, 2026-09-17).
4
- Tujuannya: satu sumber kebenaran per konsep, hubungan antar-konsep eksplisit,
5
- dan setiap keputusan (kompaksi, abort, termination) dapat dijelaskan.
6
-
7
- Prinsip: **Context ≠ Cost. Cost ≠ Usage. Usage ≠ Budget. Budget ≠ Termination.
8
- Compaction ≠ Retry. Tool cap ≠ Context cap.** — semua konsep berbeda dan
9
- punya owner sendiri; yang disatukan di sini hanya *hubungannya*.
10
-
11
- ## 1. Empat angka konteks (dua konsep, dua ukuran)
12
-
13
- | Konsep | Ukuran | Owner | Sumber kebenaran | Dipakai |
14
- |---|---|---|---|---|
15
- | Logical context | token ESTIMASI (chars/4, sadar-gambar) | Kernel loop + `Session.contextTokens` | `estimateSessionContext` (`vendor tokens.ts`) — messages+system+tools | pressure evaluation, footer, `/status` |
16
- | Serialized context | chars wire (JSON/base64 +overhead) | Adapter provider | `buildRequest` per adapter | dikirim, tidak diukur tersendiri |
17
- | Provider usage | token yang dilaporkan provider | `createUsageCollector` | event `provider:extension{kind:"usage"}` — **boleh hilang** | akumulasi turn/session, cost |
18
- | Economic usage | USD estimated dari harga tabel | `costFor`/`findPrice` | harga × usage; `undefined` = unknown | `--budget`, `/status` |
19
-
20
- Relationship eksplisit:
21
- - `logical` ≠ `serialized` (JSON overhead, base64 +33% — konsisten undercount).
22
- - `provider usage` boleh tak ada → **unknown tetap unknown, bukan zero**
23
- (collector tidak pernah memalsukan angka).
24
- - `economic` selalu estimasi (tabel harga basi/stale) — bukan tagihan riil.
25
-
26
- ## 2. Owner map (siapa tahu / siapa memutuskan)
27
-
28
- | Konsep | TAHU | MEMUTUSKAN |
29
- |---|---|---|
30
- | Context size | Kernel loop (`contextTokens`) + `Session.contextTokens` getter (ekspos ke driver/UI) | Kernel: kompaksi + gagal-bila-critical |
31
- | Compaction | Kernel (pressure + flag) | Kernel: KAPAN + fallback; LLM: ISI ringkasan |
32
- | Termination | maxSteps/timeout (kernel), budget (driver), abort (user) | Kernel: maxSteps, timeout, post-kompaksi critical; Driver: budget abort; User: Ctrl+C/Esc |
33
- | Budget | Collector (usage live) + `budgetStatus` | `budgetStatus` (terpusat, seragam REPL/one-shot/exec) + watcher abort |
34
- | Backpressure | Producer caps + kernel truncate | Cap di producer (sudah benar); kernel truncate terakhir |
35
-
36
- ## 3. Compaction Contract (Phase 6 — seam kernel)
37
-
38
- **Dua semantics terpisah, tidak lagi satu flag:**
39
-
40
- - `compactedForBudget` — kompaksi budget-pressure (`shouldCompact(pressure)`).
41
- Set saat dicoba (anti berulang tiap step O(n)). Kritis setelahnya →
42
- `AgentError("budget_exceeded")` (bukan retry provider sia-sia).
43
- - `compactedForRecovery` — kompaksi recovery (`force_compact_and_retry` /
44
- `onLength`). Set SETELAH compact (anti loop abadi: jalur ini tidak dihitung
45
- `maxProviderRetries`). Kedua kalinya → `budget_exceeded`.
46
-
47
- **Reason event** (`context:compacted`, `reason` — nama generik kernel,
48
- diselaraskan 0.9.27 saat seam dihilirkan; sebelumnya `budget:<…>`):
49
- - `pressure:<pressure>` — kompaksi policy-path yang benar-benar mengurangi messages.
50
- - `pressure:<pressure>:no-op` — kompaksi policy-path yang TIDAK mengurangi (tidak ada
51
- yang bisa dibuang dari messages — operator harus tahu bedanya dari fixed
52
- overhead: system+tool schema, yang tidak pernah terkompaksi).
53
- - `recovery` — kompaksi dari recovery (`context_length_exceeded` / `length`).
54
-
55
- **Contract wajib menjawab:**
56
- - *Who requested?* — budget path (kernel, pressure ≥ 75%) atau recovery path
57
- (kernel, error konteks). Manual `/compact` tak menyentuh kernel (view saja).
58
- - *Why?* — reason event di atas.
59
- - *What is eligible?* — hanya messages; system prompt di-cap di hulu
60
- (`SYSTEM_PROMPT_MAX_CHARS` 8000), tool schema TIDAK pernah terkompaksi.
61
- - *What must be preserved?* — pasangan assistant(toolCalls)→tool results tidak
62
- pernah dipecah (`compact.ts`); summary LLM terpin verbatim (anti-drift).
63
- - *What may be removed?* — hasil tool sukses (ditinggal `<result omitted>` di
64
- mechanical; LLM menulis ringkasan fakta), reasoning, tail lama.
65
- - *What if compaction fails?* — LLM gagal/timeout (10s) → fallback sync
66
- mekanis; async compactor tak pernah bisa crash loop.
67
- - *Can it retry?* — budget: tidak (flag); recovery: sekali per turn (flag).
68
- - *Can another occur in the same turn?* — budget + recovery boleh co-exist
69
- (flag terpisah); sesama kind tidak.
70
- - *What does compaction itself consume?* — LLM kompaksi berbiaya; usage-nya
71
- ditangkap `compactWithLlm` → callback `onUsage` → bus sesi (event usage
72
- standar) — **bukan blind spot lagi** (Phase 6, E5).
73
-
74
- ## 4. Budget Contract
75
-
76
- Status (`budgetStatus`, terpusat): `ok | over | unknown-strict`.
77
-
78
- | Fase | Semantics |
79
- |---|---|
80
- | Preflight (prompt baru) | `tokens == 0` (belum ada pemakaian tercatat) → **start selalu boleh** (lockout strict tidak diminta — Phase 5 E-3c); `tokens > 0` + cost unknown → ditolak (fail-closed, F-06); cost known + over → ditolak |
81
- | In-flight | `watchBudgetLimit` membaca biaya LIVE per usage event; fire-once → `ctl.abort(budgetExceededError())` — kind `budget_exceeded` dipertahankan (terbedakan dari abort user) |
82
- | Post-usage | cost = estimated dari harga tabel (bukan tagihan riil); cost unknown → status `unknown-strict`, angka palsu tidak dibuat |
83
-
84
- **Context vs budget adalah dua dimensi independen**: pressure HIGH + cost LOW
85
- valid (tool result raksasa, model gratis); pressure LOW + cost HIGH valid
86
- (konteks kecil, model mahal). Tidak ada asumsi `high context = high cost`.
87
-
88
- ## 5. Termination Contract
89
-
90
- | Reason | Owner | Mekanisme |
91
- |---|---|---|
92
- | `completed` | kernel loop | tidak ada tool call → `finalText` |
93
- | `max_steps_exceeded` | kernel loop | `stepIndex >= maxSteps` |
94
- | `timeout` | kernel `createTimeout` | `AgentError("timeout")` — dipertahankan |
95
- | `budget_exceeded` | kernel (post-kompaksi) / driver (watcher abort) | `AgentError("budget_exceeded")` — dipertahankan |
96
- | `aborted` | user (Ctrl+C/Esc) / `session.abort()` | sinyal tanpa kind AgentError |
97
- | `provider` | kernel loop | provider error setelah retry habis |
98
- | busy | kernel | `run()` saat `running` |
99
-
100
- Satu terminal reason per sinyal (`abortError` mempertahankan kind
101
- `AgentError`); pemutus lain dapat REQUEST, tidak ada competing owners —
102
- `joinSignals` + `withAbort` = satu titik settle.
103
-
104
- ## 6. Producer/Backpressure hierarchy
105
-
106
- ```
107
- producer-side cap (bash 20k, git 500k, mcp 100k, read_file paging, ...)
108
- ↓
109
- kernel truncate (toolResultMaxTokens 4096 tok = 16.384 chars, head 70%+tail 30%)
110
- ↓
111
- context insertion (store append — cap by truncation di atas)
112
- ↓
113
- compaction (messages; system/schema = fixed overhead, tidak pernah terkompaksi)
114
- ↓
115
- termination (budget_exceeded bila critical setelah kompaksi)
116
- ```
117
-
118
- Aturan: **jangan double-truncate tanpa semantics** — raw output cap ≠ context
119
- insertion cap ≠ stored result cap ≠ display cap. Keempatnya boleh berbeda,
120
- tetapi setiap lapisan harus tahu apa yang hilang di situ (marker truncation
121
- wajib). Guard `read_image` memakai angka kernel (16.184 chars) — bukan angka
122
- sendiri (bug E-1 sudah ditutup).
123
-
124
- ## 7. Observability contract
125
-
126
- Operator harus bisa membedakan (tanpa ambigu):
127
- - `/status`: `Context` (window estimate, kernel) vs `Input/Output/Total`
128
- (provider usage) vs `Cost` (estimated) vs `Budget` (status keputusan).
129
- - Footer: angka = ukuran jendela saat ini (kernel) — bukan spend kumulatif.
130
- - `context:compacted` event: reason membedakan policy-pressure/recovery/no-op.
131
-
132
- ## Proteksi (test → kontrak)
133
-
134
- - `test/control-plane.test.ts` — compaction budget≠recovery (F-10), anti-loop,
135
- contextTokens getter + konsistensi estimator, termination reason.
136
- - `test/cli-help-language.test.ts` — /status membedakan Context/Usage/Budget.
137
- - `test/repl-linear.test.ts` — footer membaca kernel contextTokens.
138
- - `test/usage-session.test.ts` / `budget-unknown.test.ts` — budget contract.
139
- - `test/pack-integrity.test.ts` — vendor hash + VENDOR.md sinkron.
package/docs/HARNESS.md DELETED
@@ -1,150 +0,0 @@
1
- # Harness Agent — Riset Fondasi & Acuan Minicode
2
-
3
- Hasil riset mendalam 2026-09-06 (Harness-Engineering, Anthropic, OpenAI,
4
- Fowler/Böckeler, Harness-Bench, studi source-code 11 harness
5
- arXiv:2609.00006, ReAct/Toolformer). Dokumen hidup: perbarui bila temuan
6
- baru mengubah keputusan di bawah.
7
-
8
- ## 1. Definisi
9
-
10
- `Agent = Model + Harness`. Model menghasilkan teks; harness memutuskan apa
11
- yang model lihat, apa yang boleh dilakukan, kapan berhenti, dan apa yang
12
- terjadi saat gagal. Framework = blueprint/pustaka; harness = runtime yang
13
- jalan di produksi. Dua tim bermodel identik bisa berbeda 40 poin completion
14
- hanya karena harness.
15
-
16
- Inti eksekusi = **loop ReAct** (`Thought → Action → Observation → …`)
17
- sampai jawaban final atau batas tercapai. Terminasi harus berlapis:
18
- tanpa tool-call, `maxSteps`, budget habis, guardrail tripwire, interupsi
19
- user, safety refusal.
20
-
21
- ## 2. Model kontrol Fowler (guides × sensors)
22
-
23
- | | Computational (CPU, deterministik, murah) | Inferential (GPU, probabilistik, mahal) |
24
- |---|---|---|
25
- | Guide (sebelum aksi) | permission filter, allowlist, schema validator | planning agent, AGENTS.md, Skills |
26
- | Sensor (sesudah aksi) | test, compiler, typechecker, CI | self-reflection, evaluator/judge |
27
-
28
- Aturan: yang bisa jadi aturan deterministik → computational; yang butuh
29
- judgment → inferential. Tiga kategori regulasi: maintainability (termudah),
30
- architecture fitness (fitness function), behaviour (belum terpecahkan —
31
- jangan percaya buta pada test buatan AI). Operasi: steering loop (isu
32
- berulang → perbaiki guide/sensor) + keep quality left (cek cepat
33
- pra-commit, cek mahal pasca-integrasi).
34
-
35
- ## 3. Anatomi 7 subsistem (dari studi 11 harness)
36
-
37
- Loop, integrasi LLM, tools, memori/konteks, safety/permission,
38
- orkestrasi multi-agent, ekstensibilitas. Temuan keras:
39
-
40
- - Kerumitan loop tidak memprediksi benchmark; scaffold ~90 baris sah.
41
- - Tool scoping > tool count (Vercel: -80% tools = hasil naik).
42
- - Harness produksi tidak memakai embedding retrieval (deterministik:
43
- ripgrep/tree-sitter/glob).
44
- - Safety 4 lapis komposisional: policy deklaratif → hooks → reviewer LLM
45
- → OS sandbox; audit tiap lapis independen.
46
- - Skills (`SKILL.md`) > MCP untuk adopsi lintas-harness.
47
- - Batasan pindah dari prompt ke config terstruktur.
48
-
49
- ## 4. Long-running (Anthropic + OpenAI)
50
-
51
- Anthropic: compaction saja tidak cukup. Initializer (sekali: `init.sh`,
52
- `feature_list.json` `"passes": false`, progress file, commit awal) +
53
- coding agent (tiap sesi: baca progress+git → pilih SATU fitur → smoke test
54
- dulu → implement → verifikasi end-to-end → commit). JSON > Markdown.
55
- Health-check awal iterasi wajib. Evolusi: split planner/generator/evaluator
56
- (atasi self-praise bias).
57
-
58
- OpenAI (1M LOC, 1500 PR): beri peta bukan manual — `AGENTS.md` ~100 baris
59
- sebagai daftar isi; enforce invariant bukan micromanage (linter custom
60
- yang pesannya berisi instruksi remediasi); garbage collection terjadwal;
61
- pensiunkan scaffolding tiap model baru.
62
-
63
- ## 5. Bukti kuantitatif (Harness-Bench, 5194 trajektori)
64
-
65
- Skor = `Security × Completion × Process`. Gap antar-harness 23,8 poin.
66
- Lima gejala gagal: contract/format 36,4%, tool-tanpa-recovery 24,6%,
67
- evidence/grounding 14,6%, artefak-tak-dicommit 11,1%, state 9,3%.
68
- Yang membedakan = **execution alignment** (reasoning ↔ workspace ↔ aksi
69
- tool ↔ kontrak evaluator tetap legibel).
70
-
71
- ## 6. Pola terbaik (ringkas)
72
-
73
- Done machine-readable dulu; verifikasi computational tiap aksi +
74
- inferential selektif; tool minimum per fase; state eksternal
75
- path-addressable & compaction-stable; health-check awal; satu fitur per
76
- sesi + clean-state commit; generator≠evaluator; budget/timeout berlapis +
77
- fail-closed; observability per-step; GC debt kecil-kecil; mulai dari
78
- harness tertipis yang lolos evaluasi.
79
-
80
- ## 7. Matriks kematangan
81
-
82
- L1 demo (jalan, tanpa batas) → L2 terkendali (budget/abort/trace) →
83
- L3 terverifikasi (sensor tiap aksi, evaluator terpisah) → L4 lintas-sesi
84
- (progress+feature-list+git, resume tervalidasi) → L5 mengatur-diri
85
- (GC, pensiun scaffolding, template per topologi).
86
-
87
- ## 8. Posisi minicode (2026-09-07)
88
-
89
- > Kejujuran metodologi: tidak ada skor absolut di sini. Estimasi internal
90
- > penulis ("~8.5") berasal dari judgement + 21 run toy n=1 — itu *arah*,
91
- > bukan *fakta*. Jangan dikutip tanpa embel-embel ini. Yang terukur dan boleh
92
- > dikutip: gate hijau, audit 60/60, bypass-rate 0, dan run live 20/21
93
- > execution-verified (metodologi di §9).
94
-
95
- Kuat L2–L3 di loop/state/safety-dasar. Mendarat:
96
- - P0: jail simetris move/delete (`permission.ts`), strict sandbox
97
- (`bash.ts` + `MINICODE_SANDBOX_STRICT`), allowlist `bun run`/`bun x`,
98
- scrub `exec --json` + flag `overBudget`.
99
- - P1.3: `budgetStatus` satu predikat (`usage.ts`) + `--budget-strict` /
100
- `MINICODE_BUDGET_STRICT` di one-shot/REPL/`exec` (`exec` sebelumnya
101
- mengabaikan `--budget` total — diperbaiki).
102
- - P1.2: `step-traces.jsonl` per tool/step + klasifikasi deny + mode sandbox
103
- (`trace.ts`, wiring `cli/setup.ts`).
104
- - P1.4: `bun run audit:harness` — 60 cek deterministik tanpa API key
105
- (safety 6-mode, guard bypass-rate, budget, scope read-only, fake-detector).
106
- - P1.1: terverifikasi sudah ada (`--verify` + self-heal ≤3).
107
- - P2.1: baseline-first — bila baseline merah sebelum agen jalan, catatan
108
- Health-Check ditempel ke prompt awal (perbaiki dulu).
109
- - P2.2: `--tool-scope explore` / `MINICODE_TOOL_SCOPE` — sesi utama dibatasi
110
- subset read-only bersama sub-agen (`EXPLORE_TOOL_NAMES`).
111
- - P3.1: `minicode stats` membaca `step-traces.jsonl` — deny-rate, top tool
112
- ditolak/gagal, mode sandbox (`summarizeStepTraces`).
113
- - P3.2: validasi resume — workspace dibandingkan ke checkpoint terakhir
114
- (pembukuan `.minicode/` dikecualikan); divergen → peringatan + `/undo`.
115
- - DITOLAK sadar: verify default-on (biaya/latensi semua run + memecahkan
116
- test existing), evaluator inferential terpisah (butuh LLM call per run).
117
- - `bench/docker/` MENDARAT + TERVALIDASI SEBAGIAN (2026-09-08, daemon
118
- Docker Desktop ditemukan + Ubuntu diregistrasi di WSL): 5 image era
119
- ter-build (py36 butuh fix apt kedaluwarsa); requests-1963 collect+run OK
120
- di py3.8; pytest-11143 FAIL dengan benar di py3.10. Sisa: run agen penuh.
121
- - Run POSIX pertama (WSL Ubuntu): TOCTOU 1000× 0 lolos (293ms) + full
122
- suite 1334/8/0. Temuan: (a) swapper tanpa yield menggantung selamanya —
123
- klaim lama tak pernah tervalidasi; (b) 5 fail platform-spesifik diperbaiki
124
- (`node -e` → runtime sendiri; stripAnsi; mount-test cabang platform;
125
- `MINICODE_HOME` agar global-DB hermetic di POSIX; TOCTOU yield);
126
- (c) polusi `/root/.minicode` oleh test dibersihkan.
127
-
128
- ## 9. Uji live 7 model (2026-09-07, gateway OpenAI-compat)
129
-
130
- Metodologi: 3 task bench × 7 model gratis, `maxSteps` 12, 2 task dengan
131
- execution-check (import + panggil fungsi) + 1 regex-only, n=1 per sel.
132
- Hasil ketat: 5 model 3/3 (gpt-5.6-luna paling efisien ~16k tok; muse-spark
133
- seimbang; gemini benar semua tapi 0 token tercatat + paling lambat;
134
- deepseek-flash boros token; glm lambat), qwen 2/3 (contract-miss:
135
- regex lolos tapi `greet()` tak bisa di-import — pelajaran: regex saja
136
- menipu), deepseek-pro 2/3 ketat / 3/3 longgar (file benar, jebol cap
137
- 12 steps — artefak batas, bukan kapabilitas). Stabilitas harness 21/21
138
- tanpa crash/hang/escape. Batasan jujur: n=1 (noise sampling), task mudah
139
- (tak membedakan model kuat), Windows-only. Pengulangan yang berarti:
140
- n≥3 + task multi-file + Linux CI.
141
-
142
- Uji live 2 (2026-09-07, task multi-file-refactor + execution-check):
143
- ketat 4/7 — luna (4 steps, 23k tok, 51 dtk, terbaik), glm (5 steps, 27k,
144
- 34 dtk, tercepat), muse-spark (11 steps, 68k, verbose tapi benar),
145
- deepseek-flash (6 steps, 32k, 91 dtk). Konten-benar-tapi-gagal-aturan 2/7:
146
- pro-0813 (file benar, jebol timeout 180 dtk — provider lambat), qwen
147
- (file benar, jebol 15 steps — pola boros langkah berulang). Gagal nyata
148
- 1/7: gemini menjawab final dalam 851ms TANPA tool call (0 steps) —
149
- kegagalan agentic murni, bukan kapabilitas. Task sulit MAMPU membedakan;
150
- skor run-1 perlu n≥3 sebelum dikutip sebagai peringkat.
package/docs/SUMMARY.md DELETED
@@ -1,52 +0,0 @@
1
- # Summary
2
-
3
- * [Minicode — Dokumentasi](README.md)
4
-
5
- ## Memulai
6
-
7
- * [Konsep & Desain](concepts.md)
8
- * [Instalasi](getting-started.md)
9
- * [Quickstart 5 menit](quickstart.md)
10
- * [Glosarium](glossary.md)
11
-
12
- ## Menggunakan
13
-
14
- * [CLI — Mode & Flags](cli.md)
15
- * [Memilih Mode](choosing-mode.md)
16
- * [REPL — Slash & Keyboard](repl.md)
17
- * [Otomasi & CI](exec.md)
18
- * [Config — File & Lokasi Data](config.md)
19
- * [Config & Provider](config-providers.md)
20
- * [Pricing & Budget](pricing-budget.md)
21
- * [Environment Variables](environment.md)
22
- * [Skills & Hooks](skills.md)
23
-
24
- ## Referensi
25
-
26
- * [Tools (37)](tools.md)
27
- * [Sub-Agents & Tasks](agents.md)
28
- * [MCP & LSP](mcp-lsp.md)
29
- * [Memory & Sessions](memory-sessions.md)
30
- * [Verify & Benchmark](verify-benchmark.md)
31
-
32
- ## Keamanan
33
-
34
- * [Security Model](security-model.md)
35
- * [Policy & Sandbox](policy-sandbox.md)
36
- * [Keamanan](security.md)
37
- * [Troubleshooting](troubleshooting.md)
38
-
39
- ## Kontribusi & Arsitektur
40
-
41
- * [Arsitektur](architecture.md)
42
- * [Kontrak Terminal](terminal.md)
43
- * [Contributing](contributing.md)
44
- * [Changelog](changelog.md)
45
-
46
- ## Internal & Arsitektur (untuk kontributor)
47
-
48
- * [Terminal Contract (FROZEN) — 30 invariant](TERMINAL_CONTRACT.md)
49
- * [Control Plane — kontrak context/budget/compaction](CONTROL-PLANE-MAP.md)
50
- * [UI Render Pipeline — jalur stream ke terminal](UI_RENDER_PIPELINE.md)
51
- * [Harness Agent — riset fondasi](HARNESS.md)
52
- * [Plan UI/UX V6 — arsip hasil](PLAN_UIUX_V6.md)
@@ -1,169 +0,0 @@
1
- # UI Render Pipeline — peta jalur provider stream → terminal
2
-
3
- Dokumen ini hasil audit stabilitas UI/UX terminal 2026-09-18 (baseline v0.9.27).
4
- Sumber kebenaran perilaku tetap `docs/TERMINAL_CONTRACT.md` (FROZEN); dokumen
5
- ini memetakan IMPLEMENTASI aktual per tahap beserta kontrak event dan temuan
6
- audit. Angka test di sini diukur di Windows + Bun 1.4.2, suite penuh hijau.
7
-
8
- Konvensi: `file:line` menunjuk simbol yang dimaksud. Aturan repo tetap berlaku:
9
- `cli/` boleh impor `src/ui/` dan `src/`; `src/` non-ui DILARANG impor
10
- `src/ui/`; `src/ui/` DILARANG impor `cli/`, `src/` non-ui, `#minicore`
11
- (dijaga `test/ui-boundary.test.ts`).
12
-
13
- ## 1. Jalur pipeline (9 tahap)
14
-
15
- Tahap A — provider stream mentah: `src/providers/router.ts` (fallback +
16
- `provider:text/extension/tool_call/finish`), `src/providers/guards.ts:32`
17
- (timeout + text-cap + stream-guard tunggal), adapter `anthropic.ts`,
18
- `responses.ts`, `effort.ts`. Dirakit di `src/app/provider-layer.ts`.
19
-
20
- Tahap B — kernel emit ke `session.events`: `vendor/minicore/src/core/loop.ts`
21
- (`turn:started`, `provider:text` per chunk, `provider:extension`
22
- reasoning/usage/error, `context:compacted` reason `pressure:*`/`recovery`,
23
- `step:started/completed`), `executor.ts` (`execution:started/completed`),
24
- `session.ts` (`turn:completed` HANYA di jalur sukses).
25
-
26
- Tahap C — tidak ada penerjemah `AgentEvent → UiEvent`: `src/ui/contract.ts:33`
27
- `UiEvent` identik struktural dengan `AgentEvent` kernel; `cli/setup.ts`
28
- menyerahkan `session.events` apa adanya ke `attachSimpleLogger` +
29
- `attachTurnStatus` (dipasang segar per turn, dilepas di `finally` agar event
30
- telat hening).
31
-
32
- Tahap D — logger utama `src/ui/assistant/simple.ts:104`: append-only
33
- scrollback, tanpa alternate screen. `provider:text` → `sanitizeAnsi` PER CHUNK
34
- → `streamBuffer` → `flushBuf` (line-buffered) → `flushLine` (fence-state +
35
- `decorateMarkdown` + `formatWrapped`) → `stdout`. Jawaban bisa minimize
36
- (buffer 1MB + marker, dibuka via `/expand`).
37
-
38
- Tahap E — garis status transient `src/ui/assistant/turn-status.ts`: satu baris
39
- `stderr` untuk shell/linier, hidup hanya di fase sunyi (latch
40
- `turnOn && !textOn`), hilang saat teks mengalir, hidup lagi saat tool
41
- berikut. `endTurn()` deterministik dari driver `finally` (kernel tak emit
42
- `completed` saat gagal/abort). TUI fullscreen tidak memakai painter transient
43
- ini karena alternate screen dimiliki `TuiApp`.
44
-
45
- Tahap F — arbitrator `src/ui/runtime/statusline.ts`: satu pemilik transient
46
- (`turn` vs `spinner`); tulis asing saat painter aktif dikomit
47
- (clear → tulis → repaint) sehingga diagnostik tak hilang; overlap = signal,
48
- bukan crash. `paintWrite` tak pernah melempar (fail-closed Bun Windows).
49
-
50
- Tahap G — status bar `src/ui/footer.ts` dirender `src/ui/tui/app.ts` sebagai
51
- baris dasar frame fullscreen. `TuiApp` memiliki clock activity 200ms,
52
- `Working`/`Thinking`/tool status, elapsed, dan konfirmasi `Stopping`
53
- tanpa menunggu event provider. Footer/chrome lama
54
- (`src/ui/runtime/chrome.ts`, DECSTBM scroll-region, `MINICODE_FOOTER`) DIHAPUS
55
- bersama lapisan TUI lama — alternate screen menggantikannya; nol byte di
56
- non-TTY. Footer baca `session.contextTokens` kernel (bukan spend kumulatif).
57
-
58
- Tahap H — primitif render `src/ui/render/`: `sanitize.ts` (hanya SGR lolos),
59
- `markdown.ts` + `highlight.ts` (fence-state per baris, konten utuh),
60
- `width.ts` (kolom: CJK/emoji 2, potong aman-SGR), `wrap.ts` (lebar dibaca
61
- per baris → aman resize), `theme.ts` (getter warna/glyph, jangan di-`const`),
62
- `errors.ts` (pesan actionable + redact), `collapse.ts` (buffer `/expand`
63
- 200KB/entry, 500KB total), `diff.ts`/`table.ts`/`money.ts`/`format.ts`.
64
-
65
- Tahap I — view murni vs controller: `src/ui/screens/` (props + callback,
66
- tanpa IO) digerakkan `cli/` (`repl.ts`, `commands.ts`, `wizard.ts`,
67
- `provider/model-manager.ts`, `approval/prompt.ts` via DI `ask`,
68
- `setupWhenEmpty`, `setSubAgentSessionFactory`).
69
-
70
- ## 2. Kontrak Event → UI
71
-
72
- Kolom: S = bisa di-stream, D = bisa duplikat, O = bisa out-of-order,
73
- I = bisa diinterupsi, L = bisa tiba setelah completion.
74
-
75
- | Event | Producer | Representasi UI | S | D | O | I | L |
76
- |---|---|---|---|---|---|---|---|
77
- | assistant text | provider stream | stdout wrap + fence 2-spasi | ya | tidak (E1) | tidak | ya (abort) | tidak (detach flush 1x, E6) |
78
- | tool call | model → kernel | `› nama target` muted (compact: diam) | tidak | tidak | tidak | ya | tidak |
79
- | tool result | tool → executor | ledger hijau/merah; minimize → `+ label` + buffer | tidak | tidak | tidak | ya | tidak |
80
- | reasoning | provider extension | expanded: live per baris; minimized: `+ thinking` + buffer | ya | tidak | tidak | ya | tidak |
81
- | thinking effort | picker `/model` | badge + level per model | tidak | tidak | tidak | tidak | tidak |
82
- | usage | provider extension | verbose saja; masuk budget watcher | ya | tidak | ya (tail pasca-finish) | ya | ya (diabaikan aman) |
83
- | compaction | kernel loop | `── compacted: <reason>` kuning, reason verbatim | tidak | tidak | tidak | tidak | tidak |
84
- | permission request | executor → `ask` DI | header stdout + `askLine y/a/n`, fail-closed non-TTY | tidak | tidak | tidak | ya (deny) | tidak |
85
- | permission denied | executor | error tool penuh, tak pernah minimize + reason | tidak | tidak | tidak | tidak | tidak |
86
- | sub-agent | delegate_task → bus parent | ledger `›` biasa + usage; tanpa view khusus | tidak | tidak (jurnal skip forward) | tidak | ya | tidak |
87
- | error provider | provider extension | `pendingError` consume-once → satu `✗` oleh driver | tidak | tidak (E15) | tidak | ya | tidak |
88
- | warning | budget/recovery/verify | `[budget]`/`[recovery]`/`[verify]` kuning stderr | tidak | tidak (warned80 sekali) | tidak | tidak | tidak |
89
- | completion | kernel loop | flush + `finalizeAnswer` + footer idle | tidak | tidak | tidak | tidak | tidak |
90
- | abort | user/Ctrl+C/Esc | `(stopped)` + cleanup `finally` | tidak | tidak | tidak | — | tidak |
91
- | timeout | kernel `createTimeout` | `✗ timeout` + turn dibuang transaksional | tidak | tidak | tidak | — | ya (late work ke turnStore privat, dibuang) |
92
- | budget exceeded | watcher/driver | `[budget] … stopping turn` + abort ber-kind | tidak | tidak (fire-once) | tidak | — | tidak |
93
- | provider failure | recovery policy | retry/compact/throw deterministik; cap retryAfter 30 dtk | tidak | tidak | tidak | tidak | tidak |
94
-
95
- Mismatch yang dicari, hasil: tidak ada event runtime yang diabaikan UI secara
96
- diam-diam (`bus-debug.ts` hanya subscribe 7 tipe untuk debug, bukan render).
97
- Satu-satunya state turunan yang disengaja: footer memakai `contextTokens`
98
- (estimasi jendela) sementara `/status` memisahkan Context/Input/Output/Total/
99
- Cost/Budget — didokumentasikan di `docs/CONTROL-PLANE-MAP.md`, bukan mismatch.
100
-
101
- ## 3. State machine REPL (tidak eksplisit)
102
-
103
- Tidak ada `enum` state; fase disimpulkan: `abort !== null` (busy),
104
- `turnOn/textOn` (painter), `regionOn/detached` (chrome), plus ~14 flag
105
- (`mode`, `escTimer`, `pending`, `nullStreak`, `warned80`, `activeSection`,
106
- minimize toggles, buffer, `pendingError`, raw-mode listener). Invarian dijaga
107
- `finally`/`detachUI`/`endTurn`, bukan type-state. Transisi ilegal yang
108
- terbukti dicegah: painter saat teks mengalir, `endTurn` ganda, error ganda,
109
- `+`/`-` di pipe, decoder bocor antar prompt, Tab membajak search.
110
- Satu lubang nyata: listener approval `askLine` menempel DI ATAS `onBusyKey`
111
- selama busy (byte Ctrl+C diterima keduanya) — aman fail-closed
112
- (`raceAbort` → deny) tetapi observabilitas ganda. Lihat §5 temuan O1.
113
-
114
- ## 4. Temuan audit 2026-09-18 (eksperimen di /tmp, repo tak diubah)
115
-
116
- F1 HIGH — SGR terbelah antar-chunk merusak output model. `sanitizeAnsi`
117
- diterapkan PER CHUNK (`simple.ts:287`): `["\x1b[", "32mHello"]` tampil
118
- literal `32mHello`. Bukti: harness E3 `out="32mHellom\n"`. Kelas sama untuk
119
- OSC tak-terminasi (menelan sisa chunk). Perbaikan terkecil: tahan ekor
120
- escape tak-lengkap di buffer dan sambung ke chunk berikut sebelum sanitasi.
121
-
122
- F2 MEDIUM — SGR model bocor mentah ke stdout non-TTY. `"\x1b[31mRed\x1b[0m"`
123
- satu chunk lolos `sanitizeAnsi` (by-design) lalu ditulis ke pipe apa adanya
124
- (`out="\u001b[31mRed\u001b[0m\n"`), melanggar kontrak non-TTY deterministik.
125
- Perbaikan terkecil: strip SGR (atau render via `c.*`) saat `!isTTY`.
126
-
127
- F3 LOW — buffer thinking `/expand` membuang kepala diam-diam
128
- (`thinkingBuf.slice(-200_000)` tanpa marker seperti `, capped 1MB` pada
129
- answer). Informasi diagnostik hilang tanpa jejak.
130
-
131
- O1 LOW — listener ganda approval vs busy-key (§3). Fail-closed, catat saja.
132
-
133
- Status hardening (sesudah audit): F1 diperbaiki via `createStreamSanitizer`
134
- + `splitTrailingEscape` di `src/ui/render/sanitize.ts` (dipakai jalur teks
135
- model/reasoning/bash di `simple.ts`, flush deterministik saat
136
- completed/detach); F2 via kebijakan `stripSgr` non-TTY di `wOut`/`wErr` +
137
- `rememberTurn` (cerminan `colorLevel` → `stdout.isTTY`); F3 via marker
138
- `… (earlier thinking truncated)`; O1 didokumentasikan di `src/ui/tui/app.ts`
139
- (busy-freeze + abort, tanpa refactor). Snap kiri/kanan: render pertama sesudah
140
- geometri berubah
141
- me-reset jangkar relatif askLine (`lastGeoCols/Rows` di `input.ts`) —
142
- geometri lebar tak dilacak footer karena erase baris-absolut tak sound
143
- pasca-reflow (terbukti model + ConPTY: reflow milik konsumen).
144
- Dijaga `test/ansi-fragmentation.test.ts`
145
- (termasuk properti semua-titik-belah ≡ whole-string),
146
- `test/non-tty-output.test.ts`, `test/thinking-truncation.test.ts`,
147
- `test/ui-combined.test.ts` (satu sistem: stream + tool + resize + footer),
148
- `test/input-resize.test.ts` (gagal di kode lama: CUP ke anchor basi).
149
-
150
- Batas yang TERVERIFIKASI BENAR (bukti harness + 178 test UI hijau):
151
- token-by-token tepat-1x (E1), chunk 50KB utuh (E2), fence terbelah benar
152
- termasuk yatim saat abort (E4/E4b), abort flush tepat-1x tanpa bocor ke turn
153
- berikut (E6), urutan teks>tool>hasil (E7), permission fail-closed (E8),
154
- kontrak budget murni vs gate (E9), tiga reason kompaksi tampil beda (E10),
155
- forward sub-agent sebagai ledger biasa (E11), tool 5000-baris dipotong +
156
- ANSI jahat dibuang (E12), decoder UTF-8 per-byte + ESC-split + paste 100KB
157
- (E13), soak 50 turn tepat-1x 38ms +4.6MB tanpa ESC mentah (E14),
158
- error consume-once + format actionable (E15), resize 120→20 mid-stream aman
159
- (E5b), 10k events 151k ev/s tepat-1x (E17), CJK/emoji/wrap/truncate/fence
160
- (E5), emphasis tak-seimbang lewat literal + tabel konten-tetap (fidelitas).
161
-
162
- ## 5. Residual risk (jujur, belum dibuktikan di audit ini)
163
-
164
- Jalur TTY-live (painter denyut, footer sticky DECSTBM, overlay picker,
165
- tombol busy) hanya tercakup harness fake-TTY + 178 test; tidak ada sesi TTY
166
- nyata di audit ini. Chaos kombinasi (stream+resize+abort serentak di TTY)
167
- dan soak 100+ turn multitool belum dijalankan. Sub-agent tanpa view khusus:
168
- indukan dibedakan hanya dari nama tool (cukup untuk 1 level, belum diuji
169
- visual untuk delegasi bertingkat — yang memang dilarang: tanpa nesting).
package/docs/USAGE.md DELETED
@@ -1,11 +0,0 @@
1
- # Minicode User Guide
2
-
3
- > **Status: arsip legacy.** Isi panduan monolit ini kini terpelihara di halaman docs terpisah (tabel di bawah). Jangan tambah konten baru di sini; perbaiki di halaman tujuannya.
4
- >
5
- > | Butuh… | Baca… |
6
- > |---|---|
7
- > | Mulai cepat | [Quickstart](quickstart.md), [Instalasi](getting-started.md) |
8
- > | Flag & env | [CLI](cli.md), [Environment Variables](environment.md) |
9
- > | Tool & MCP/LSP | [Tools](tools.md), [MCP & LSP](mcp-lsp.md) |
10
- > | Memory, sesi, recovery | [Memory & Sessions](memory-sessions.md) |
11
- > | Keamanan & policy | [Security Model](security-model.md), [Policy & Sandbox](policy-sandbox.md) |