🛟 Updated.
c5a4014 parent: 9f502b4 modified
.tickets/issues/0224-mm-p-exits-0-when-the-generation-fails.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-19T17:26:51.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -71,12 +71,14 @@ tasks: | ||
| 71 | 71 | closedAt: 2026-11-20T09:52:38.000Z |
| 72 | 72 | - id: 3 |
| 73 | 73 | title: Document the exit codes of -p (EN + FR CLI reference) |
| 74 | - state: open | |
| 74 | + state: closed | |
| 75 | 75 | priority: low |
| 76 | 76 | author: |
| 77 | 77 | name: k33g |
| 78 | 78 | email: ph.charriere@gmail.com |
| 79 | 79 | createdAt: 2026-11-19T17:26:51.000Z |
| 80 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 81 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 80 | 82 | comments: |
| 81 | 83 | - id: 1 |
| 82 | 84 | author: |
| @@ -85,3 +87,10 @@ comments: | ||
| 85 | 87 | createdAt: 2026-11-20T09:52:38.000Z |
| 86 | 88 | body: | |
| 87 | 89 | Implemented on feature/guardrails (not committed, not merged): RunPrompt returns the exit code, main.go runs the cleanups then os.Exit(1) on a failed generation. internal/agent/runprompt_test.go. Left open: task 3 (docs EN+FR). |
| 90 | + - id: 2 | |
| 91 | + author: | |
| 92 | + name: k33g | |
| 93 | + email: ph.charriere@gmail.com | |
| 94 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 95 | + body: | | |
| 96 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-19T17:26:51.000Z | 8 | createdAt: 2026-11-19T17:26:51.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -71,12 +71,14 @@ tasks: | |||
| 71 | closedAt: 2026-11-20T09:52:38.000Z | 71 | closedAt: 2026-11-20T09:52:38.000Z |
| 72 | - id: 3 | 72 | - id: 3 |
| 73 | title: Document the exit codes of -p (EN + FR CLI reference) | 73 | title: Document the exit codes of -p (EN + FR CLI reference) |
| 74 | - state: open | 74 | + state: closed |
| 75 | priority: low | 75 | priority: low |
| 76 | author: | 76 | author: |
| 77 | name: k33g | 77 | name: k33g |
| 78 | email: ph.charriere@gmail.com | 78 | email: ph.charriere@gmail.com |
| 79 | createdAt: 2026-11-19T17:26:51.000Z | 79 | createdAt: 2026-11-19T17:26:51.000Z |
| 80 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 81 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 80 | comments: | 82 | comments: |
| 81 | - id: 1 | 83 | - id: 1 |
| 82 | author: | 84 | author: |
| @@ -85,3 +87,10 @@ comments: | |||
| 85 | createdAt: 2026-11-20T09:52:38.000Z | 87 | createdAt: 2026-11-20T09:52:38.000Z |
| 86 | body: | | 88 | body: | |
| 87 | Implemented on feature/guardrails (not committed, not merged): RunPrompt returns the exit code, main.go runs the cleanups then os.Exit(1) on a failed generation. internal/agent/runprompt_test.go. Left open: task 3 (docs EN+FR). | 89 | Implemented on feature/guardrails (not committed, not merged): RunPrompt returns the exit code, main.go runs the cleanups then os.Exit(1) on a failed generation. internal/agent/runprompt_test.go. Left open: task 3 (docs EN+FR). |
| 90 | + - id: 2 | ||
| 91 | + author: | ||
| 92 | + name: k33g | ||
| 93 | + email: ph.charriere@gmail.com | ||
| 94 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 95 | + body: | | ||
| 96 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0225-a-tool-call-with-arguments-that-fail-the-schema-e.yaml +8 -1 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-19T17:26:51.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -107,3 +107,10 @@ comments: | ||
| 107 | 107 | createdAt: 2026-11-20T09:52:38.000Z |
| 108 | 108 | body: | |
| 109 | 109 | Implemented on feature/guardrails (not committed, not merged): internal/engine/toolschema.go — write_file/edit_file aliases repaired before validation (file_path, old_text, edits as a JSON string, path inside an edit, top-level edit fields), a schema error left becomes a tool result with the expected arguments, the same invalid call 3 times still ends the turn. 6 tests incl. an end-to-end one. Left open: task 3 (re-measure lfm-coder without fix-args' edit repair; tests are done). |
| 110 | + - id: 2 | |
| 111 | + author: | |
| 112 | + name: k33g | |
| 113 | + email: ph.charriere@gmail.com | |
| 114 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 115 | + body: | | |
| 116 | + docs EN+FR written (tools reference: arguments that do not match a tool's schema); the re-measure task stays open. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-19T17:26:51.000Z | 8 | createdAt: 2026-11-19T17:26:51.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -107,3 +107,10 @@ comments: | |||
| 107 | createdAt: 2026-11-20T09:52:38.000Z | 107 | createdAt: 2026-11-20T09:52:38.000Z |
| 108 | body: | | 108 | body: | |
| 109 | Implemented on feature/guardrails (not committed, not merged): internal/engine/toolschema.go — write_file/edit_file aliases repaired before validation (file_path, old_text, edits as a JSON string, path inside an edit, top-level edit fields), a schema error left becomes a tool result with the expected arguments, the same invalid call 3 times still ends the turn. 6 tests incl. an end-to-end one. Left open: task 3 (re-measure lfm-coder without fix-args' edit repair; tests are done). | 109 | Implemented on feature/guardrails (not committed, not merged): internal/engine/toolschema.go — write_file/edit_file aliases repaired before validation (file_path, old_text, edits as a JSON string, path inside an edit, top-level edit fields), a schema error left becomes a tool result with the expected arguments, the same invalid call 3 times still ends the turn. 6 tests incl. an end-to-end one. Left open: task 3 (re-measure lfm-coder without fix-args' edit repair; tests are done). |
| 110 | + - id: 2 | ||
| 111 | + author: | ||
| 112 | + name: k33g | ||
| 113 | + email: ph.charriere@gmail.com | ||
| 114 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 115 | + body: | | ||
| 116 | + docs EN+FR written (tools reference: arguments that do not match a tool's schema); the re-measure task stays open. | ||
modified
.tickets/issues/0226-llamacpp-router-mode-ask-props-model-false-no-ch.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T04:16:17.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -124,12 +124,14 @@ tasks: | ||
| 124 | 124 | createdAt: 2026-11-20T04:16:17.000Z |
| 125 | 125 | - id: 5 |
| 126 | 126 | title: Tests, docs EN+FR, then contextWindow back to 0 in demos/lfm-coder |
| 127 | - state: open | |
| 127 | + state: closed | |
| 128 | 128 | priority: low |
| 129 | 129 | author: |
| 130 | 130 | name: k33g |
| 131 | 131 | email: ph.charriere@gmail.com |
| 132 | 132 | createdAt: 2026-11-20T04:16:17.000Z |
| 133 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 134 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 133 | 135 | comments: |
| 134 | 136 | - id: 1 |
| 135 | 137 | author: |
| @@ -138,3 +140,10 @@ comments: | ||
| 138 | 140 | createdAt: 2026-11-20T09:52:38.000Z |
| 139 | 141 | body: | |
| 140 | 142 | Implemented on feature/guardrails (not committed, not merged): fetchLlamaProps asks /props?model= then /props (engine/openai_compat.go), no template warning on a router answer, mm init's propsFacts the same (agentinit/facts.go). Verified live on the Llama app: ctx 131072 (/props), no warning. Note: in the Docker sandbox the HTTP proxy mangles the query string (host.docker.internal is not in NO_PROXY); not an mm issue. Left open: task 4 (single-model server not checked), task 5 (docs EN+FR, contextWindow back to 0 in lfm-coder). |
| 143 | + - id: 2 | |
| 144 | + author: | |
| 145 | + name: k33g | |
| 146 | + email: ph.charriere@gmail.com | |
| 147 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 148 | + body: | | |
| 149 | + Docs EN+FR written (configuration contextWindow, llama.cpp how-to: router mode); lfm-coder already back to contextWindow 0. Task 4 (single-model llama-server and ?model=) stays open. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T04:16:17.000Z | 8 | createdAt: 2026-11-20T04:16:17.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -124,12 +124,14 @@ tasks: | |||
| 124 | createdAt: 2026-11-20T04:16:17.000Z | 124 | createdAt: 2026-11-20T04:16:17.000Z |
| 125 | - id: 5 | 125 | - id: 5 |
| 126 | title: Tests, docs EN+FR, then contextWindow back to 0 in demos/lfm-coder | 126 | title: Tests, docs EN+FR, then contextWindow back to 0 in demos/lfm-coder |
| 127 | - state: open | 127 | + state: closed |
| 128 | priority: low | 128 | priority: low |
| 129 | author: | 129 | author: |
| 130 | name: k33g | 130 | name: k33g |
| 131 | email: ph.charriere@gmail.com | 131 | email: ph.charriere@gmail.com |
| 132 | createdAt: 2026-11-20T04:16:17.000Z | 132 | createdAt: 2026-11-20T04:16:17.000Z |
| 133 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 134 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 133 | comments: | 135 | comments: |
| 134 | - id: 1 | 136 | - id: 1 |
| 135 | author: | 137 | author: |
| @@ -138,3 +140,10 @@ comments: | |||
| 138 | createdAt: 2026-11-20T09:52:38.000Z | 140 | createdAt: 2026-11-20T09:52:38.000Z |
| 139 | body: | | 141 | body: | |
| 140 | Implemented on feature/guardrails (not committed, not merged): fetchLlamaProps asks /props?model= then /props (engine/openai_compat.go), no template warning on a router answer, mm init's propsFacts the same (agentinit/facts.go). Verified live on the Llama app: ctx 131072 (/props), no warning. Note: in the Docker sandbox the HTTP proxy mangles the query string (host.docker.internal is not in NO_PROXY); not an mm issue. Left open: task 4 (single-model server not checked), task 5 (docs EN+FR, contextWindow back to 0 in lfm-coder). | 142 | Implemented on feature/guardrails (not committed, not merged): fetchLlamaProps asks /props?model= then /props (engine/openai_compat.go), no template warning on a router answer, mm init's propsFacts the same (agentinit/facts.go). Verified live on the Llama app: ctx 131072 (/props), no warning. Note: in the Docker sandbox the HTTP proxy mangles the query string (host.docker.internal is not in NO_PROXY); not an mm issue. Left open: task 4 (single-model server not checked), task 5 (docs EN+FR, contextWindow back to 0 in lfm-coder). |
| 143 | + - id: 2 | ||
| 144 | + author: | ||
| 145 | + name: k33g | ||
| 146 | + email: ph.charriere@gmail.com | ||
| 147 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 148 | + body: | | ||
| 149 | + Docs EN+FR written (configuration contextWindow, llama.cpp how-to: router mode); lfm-coder already back to contextWindow 0. Task 4 (single-model llama-server and ?model=) stays open. | ||
modified
.tickets/issues/0227-automatic-lsp-diagnostics-after-write-file-and-e.yaml +8 -1 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -106,3 +106,10 @@ comments: | ||
| 106 | 106 | createdAt: 2026-11-20T09:52:38.000Z |
| 107 | 107 | body: | |
| 108 | 108 | Implemented on feature/guardrails (not committed, not merged): lsp.diagnosticsAfterEdit, internal/tools/editdiag.go — after a successful write/edit on a served extension, the server's diagnostics (8 s budget, "not available" note on error, all severities as rendered by the client). Test with the real gopls. Enabled in demos/lfm-coder, olala-mini, mellum2. Left open: task 3 (measurement, docs EN+FR). |
| 109 | + - id: 2 | |
| 110 | + author: | |
| 111 | + name: k33g | |
| 112 | + email: ph.charriere@gmail.com | |
| 113 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 114 | + body: | | |
| 115 | + docs EN+FR written (configuration lsp keys, lsp how-to); the measurement without the go-check hook stays open. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T04:36:36.000Z | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -106,3 +106,10 @@ comments: | |||
| 106 | createdAt: 2026-11-20T09:52:38.000Z | 106 | createdAt: 2026-11-20T09:52:38.000Z |
| 107 | body: | | 107 | body: | |
| 108 | Implemented on feature/guardrails (not committed, not merged): lsp.diagnosticsAfterEdit, internal/tools/editdiag.go — after a successful write/edit on a served extension, the server's diagnostics (8 s budget, "not available" note on error, all severities as rendered by the client). Test with the real gopls. Enabled in demos/lfm-coder, olala-mini, mellum2. Left open: task 3 (measurement, docs EN+FR). | 108 | Implemented on feature/guardrails (not committed, not merged): lsp.diagnosticsAfterEdit, internal/tools/editdiag.go — after a successful write/edit on a served extension, the server's diagnostics (8 s budget, "not available" note on error, all severities as rendered by the client). Test with the real gopls. Enabled in demos/lfm-coder, olala-mini, mellum2. Left open: task 3 (measurement, docs EN+FR). |
| 109 | + - id: 2 | ||
| 110 | + author: | ||
| 111 | + name: k33g | ||
| 112 | + email: ph.charriere@gmail.com | ||
| 113 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 114 | + body: | | ||
| 115 | + docs EN+FR written (configuration lsp keys, lsp how-to); the measurement without the go-check hook stays open. | ||
modified
.tickets/issues/0228-bash-tool-track-processes-left-running-in-the-ba.yaml +8 -1 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -103,3 +103,10 @@ comments: | ||
| 103 | 103 | createdAt: 2026-11-20T09:52:38.000Z |
| 104 | 104 | body: | |
| 105 | 105 | Implemented on feature/guardrails (not committed, not merged): internal/tools/background.go + procgroup_{unix,windows}.go — process group per command, survivors reported as pid (name), bashBackground report|stop|allow (stop at the end of the turn via engine.OnTurnEnd), a timeout kills the whole group. 5 tests on real processes. NOT done: the listening port in the report (task 2), the warning at mm exit and the stop in the `mm --ask` path (task 3), docs (task 4). |
| 106 | + - id: 2 | |
| 107 | + author: | |
| 108 | + name: k33g | |
| 109 | + email: ph.charriere@gmail.com | |
| 110 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 111 | + body: | | |
| 112 | + docs EN+FR written (configuration bashBackground, bash reference). Still not done: listening port in the report, warning at mm exit, stop in the `mm --ask` path, measurement. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T04:36:36.000Z | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -103,3 +103,10 @@ comments: | |||
| 103 | createdAt: 2026-11-20T09:52:38.000Z | 103 | createdAt: 2026-11-20T09:52:38.000Z |
| 104 | body: | | 104 | body: | |
| 105 | Implemented on feature/guardrails (not committed, not merged): internal/tools/background.go + procgroup_{unix,windows}.go — process group per command, survivors reported as pid (name), bashBackground report|stop|allow (stop at the end of the turn via engine.OnTurnEnd), a timeout kills the whole group. 5 tests on real processes. NOT done: the listening port in the report (task 2), the warning at mm exit and the stop in the `mm --ask` path (task 3), docs (task 4). | 105 | Implemented on feature/guardrails (not committed, not merged): internal/tools/background.go + procgroup_{unix,windows}.go — process group per command, survivors reported as pid (name), bashBackground report|stop|allow (stop at the end of the turn via engine.OnTurnEnd), a timeout kills the whole group. 5 tests on real processes. NOT done: the listening port in the report (task 2), the warning at mm exit and the stop in the `mm --ask` path (task 3), docs (task 4). |
| 106 | + - id: 2 | ||
| 107 | + author: | ||
| 108 | + name: k33g | ||
| 109 | + email: ph.charriere@gmail.com | ||
| 110 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 111 | + body: | | ||
| 112 | + docs EN+FR written (configuration bashBackground, bash reference). Still not done: listening port in the report, warning at mm exit, stop in the `mm --ask` path, measurement. | ||
modified
.tickets/issues/0229-file-tools-optional-confinement-to-the-working-d.yaml +8 -1 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -96,3 +96,10 @@ comments: | ||
| 96 | 96 | createdAt: 2026-11-20T09:52:38.000Z |
| 97 | 97 | body: | |
| 98 | 98 | Implemented on feature/guardrails (not committed, not merged): workspace.confine / workspace.repairPaths, internal/tools/workspace.go, applied to read_file, write_file, edit_file and lsp (guardPath); symlinks resolved; refusals suggest a relative path only. 6 tests. Left open: task 3 (measurement without the hook, docs EN+FR). |
| 99 | + - id: 2 | |
| 100 | + author: | |
| 101 | + name: k33g | |
| 102 | + email: ph.charriere@gmail.com | |
| 103 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 104 | + body: | | |
| 105 | + docs EN+FR written (configuration `workspace` keys); the measurement without the hook stays open. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T04:36:36.000Z | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -96,3 +96,10 @@ comments: | |||
| 96 | createdAt: 2026-11-20T09:52:38.000Z | 96 | createdAt: 2026-11-20T09:52:38.000Z |
| 97 | body: | | 97 | body: | |
| 98 | Implemented on feature/guardrails (not committed, not merged): workspace.confine / workspace.repairPaths, internal/tools/workspace.go, applied to read_file, write_file, edit_file and lsp (guardPath); symlinks resolved; refusals suggest a relative path only. 6 tests. Left open: task 3 (measurement without the hook, docs EN+FR). | 98 | Implemented on feature/guardrails (not committed, not merged): workspace.confine / workspace.repairPaths, internal/tools/workspace.go, applied to read_file, write_file, edit_file and lsp (guardPath); symlinks resolved; refusals suggest a relative path only. 6 tests. Left open: task 3 (measurement without the hook, docs EN+FR). |
| 99 | + - id: 2 | ||
| 100 | + author: | ||
| 101 | + name: k33g | ||
| 102 | + email: ph.charriere@gmail.com | ||
| 103 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 104 | + body: | | ||
| 105 | + docs EN+FR written (configuration `workspace` keys); the measurement without the hook stays open. | ||
modified
.tickets/issues/0230-turnreminder-a-text-appended-to-every-user-messa.yaml +8 -1 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -89,3 +89,10 @@ comments: | ||
| 89 | 89 | createdAt: 2026-11-20T09:52:38.000Z |
| 90 | 90 | body: | |
| 91 | 91 | Implemented on feature/guardrails (not committed, not merged): turnReminder appended after the preGeneration hooks and the tool routing, under "[reminder]", on every question, in every front end (engine/hooks.go withReminder, engine.go generate). Decision (task 2): same semantics as a hook's context — on every question, kept in the history. Used in demos/olala-mini and mellum2. Left open: task 3 (lfm-coder keeps its clarify-first hook; re-measure, docs EN+FR). |
| 92 | + - id: 2 | |
| 93 | + author: | |
| 94 | + name: k33g | |
| 95 | + email: ph.charriere@gmail.com | |
| 96 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 97 | + body: | | |
| 98 | + docs EN+FR written (configuration turnReminder). lfm-coder uses it since 2026-11-20 (smoke series only); a proper re-measure stays open. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T04:36:36.000Z | 8 | createdAt: 2026-11-20T04:36:36.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -89,3 +89,10 @@ comments: | |||
| 89 | createdAt: 2026-11-20T09:52:38.000Z | 89 | createdAt: 2026-11-20T09:52:38.000Z |
| 90 | body: | | 90 | body: | |
| 91 | Implemented on feature/guardrails (not committed, not merged): turnReminder appended after the preGeneration hooks and the tool routing, under "[reminder]", on every question, in every front end (engine/hooks.go withReminder, engine.go generate). Decision (task 2): same semantics as a hook's context — on every question, kept in the history. Used in demos/olala-mini and mellum2. Left open: task 3 (lfm-coder keeps its clarify-first hook; re-measure, docs EN+FR). | 91 | Implemented on feature/guardrails (not committed, not merged): turnReminder appended after the preGeneration hooks and the tool routing, under "[reminder]", on every question, in every front end (engine/hooks.go withReminder, engine.go generate). Decision (task 2): same semantics as a hook's context — on every question, kept in the history. Used in demos/olala-mini and mellum2. Left open: task 3 (lfm-coder keeps its clarify-first hook; re-measure, docs EN+FR). |
| 92 | + - id: 2 | ||
| 93 | + author: | ||
| 94 | + name: k33g | ||
| 95 | + email: ph.charriere@gmail.com | ||
| 96 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 97 | + body: | | ||
| 98 | + docs EN+FR written (configuration turnReminder). lfm-coder uses it since 2026-11-20 (smoke series only); a proper re-measure stays open. | ||
modified
.tickets/issues/0231-skillsdir-not-found-with-config-pointing-to-anot.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T04:57:37.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -109,12 +109,14 @@ tasks: | ||
| 109 | 109 | createdAt: 2026-11-20T04:57:37.000Z |
| 110 | 110 | - id: 4 |
| 111 | 111 | title: Tests and docs EN+FR |
| 112 | - state: open | |
| 112 | + state: closed | |
| 113 | 113 | priority: low |
| 114 | 114 | author: |
| 115 | 115 | name: k33g |
| 116 | 116 | email: ph.charriere@gmail.com |
| 117 | 117 | createdAt: 2026-11-20T04:57:37.000Z |
| 118 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 119 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 118 | 120 | comments: |
| 119 | 121 | - id: 1 |
| 120 | 122 | author: |
| @@ -123,3 +125,10 @@ comments: | ||
| 123 | 125 | createdAt: 2026-11-20T09:52:38.000Z |
| 124 | 126 | body: | |
| 125 | 127 | Implemented on feature/guardrails (not committed, not merged): resolveSkillsDir falls back to config.BaseDir in terminal mode when the cwd-relative skillsDir has no skill (ticket 204's rule kept); banner `skills: N (from <dir>)`. skillsdir_test.go. Left open: task 3 (other relative paths), task 4 (docs EN+FR; tests are done). |
| 128 | + - id: 2 | |
| 129 | + author: | |
| 130 | + name: k33g | |
| 131 | + email: ph.charriere@gmail.com | |
| 132 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 133 | + body: | | |
| 134 | + Docs EN+FR written (configuration skillsDir, CLI base directory); task 3 (other relative paths) stays open. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T04:57:37.000Z | 8 | createdAt: 2026-11-20T04:57:37.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -109,12 +109,14 @@ tasks: | |||
| 109 | createdAt: 2026-11-20T04:57:37.000Z | 109 | createdAt: 2026-11-20T04:57:37.000Z |
| 110 | - id: 4 | 110 | - id: 4 |
| 111 | title: Tests and docs EN+FR | 111 | title: Tests and docs EN+FR |
| 112 | - state: open | 112 | + state: closed |
| 113 | priority: low | 113 | priority: low |
| 114 | author: | 114 | author: |
| 115 | name: k33g | 115 | name: k33g |
| 116 | email: ph.charriere@gmail.com | 116 | email: ph.charriere@gmail.com |
| 117 | createdAt: 2026-11-20T04:57:37.000Z | 117 | createdAt: 2026-11-20T04:57:37.000Z |
| 118 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 119 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 118 | comments: | 120 | comments: |
| 119 | - id: 1 | 121 | - id: 1 |
| 120 | author: | 122 | author: |
| @@ -123,3 +125,10 @@ comments: | |||
| 123 | createdAt: 2026-11-20T09:52:38.000Z | 125 | createdAt: 2026-11-20T09:52:38.000Z |
| 124 | body: | | 126 | body: | |
| 125 | Implemented on feature/guardrails (not committed, not merged): resolveSkillsDir falls back to config.BaseDir in terminal mode when the cwd-relative skillsDir has no skill (ticket 204's rule kept); banner `skills: N (from <dir>)`. skillsdir_test.go. Left open: task 3 (other relative paths), task 4 (docs EN+FR; tests are done). | 127 | Implemented on feature/guardrails (not committed, not merged): resolveSkillsDir falls back to config.BaseDir in terminal mode when the cwd-relative skillsDir has no skill (ticket 204's rule kept); banner `skills: N (from <dir>)`. skillsdir_test.go. Left open: task 3 (other relative paths), task 4 (docs EN+FR; tests are done). |
| 128 | + - id: 2 | ||
| 129 | + author: | ||
| 130 | + name: k33g | ||
| 131 | + email: ph.charriere@gmail.com | ||
| 132 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 133 | + body: | | ||
| 134 | + Docs EN+FR written (configuration skillsDir, CLI base directory); task 3 (other relative paths) stays open. | ||
modified
.tickets/issues/0232-a-turn-cut-mid-reasoning-by-max-tokens-ends-sile.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T08:41:16.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -76,12 +76,14 @@ tasks: | ||
| 76 | 76 | closedAt: 2026-11-20T08:41:16.000Z |
| 77 | 77 | - id: 3 |
| 78 | 78 | title: Docs EN + FR |
| 79 | - state: open | |
| 79 | + state: closed | |
| 80 | 80 | priority: medium |
| 81 | 81 | author: |
| 82 | 82 | name: k33g |
| 83 | 83 | email: ph.charriere@gmail.com |
| 84 | 84 | createdAt: 2026-11-20T08:41:16.000Z |
| 85 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 86 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 85 | 87 | comments: |
| 86 | 88 | - id: 1 |
| 87 | 89 | author: |
| @@ -90,3 +92,10 @@ comments: | ||
| 90 | 92 | createdAt: 2026-11-20T09:52:38.000Z |
| 91 | 93 | body: | |
| 92 | 94 | Implemented on feature/guardrails (not committed, not merged): engine/toolargs.go reasoningCut / cutRetryNote / cutLabel, retry in engine.go WrapModel, label in struggle.go. 3 tests. Left open: task 3 (docs EN+FR). |
| 95 | + - id: 2 | |
| 96 | + author: | |
| 97 | + name: k33g | |
| 98 | + email: ph.charriere@gmail.com | |
| 99 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 100 | + body: | | |
| 101 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T08:41:16.000Z | 8 | createdAt: 2026-11-20T08:41:16.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -76,12 +76,14 @@ tasks: | |||
| 76 | closedAt: 2026-11-20T08:41:16.000Z | 76 | closedAt: 2026-11-20T08:41:16.000Z |
| 77 | - id: 3 | 77 | - id: 3 |
| 78 | title: Docs EN + FR | 78 | title: Docs EN + FR |
| 79 | - state: open | 79 | + state: closed |
| 80 | priority: medium | 80 | priority: medium |
| 81 | author: | 81 | author: |
| 82 | name: k33g | 82 | name: k33g |
| 83 | email: ph.charriere@gmail.com | 83 | email: ph.charriere@gmail.com |
| 84 | createdAt: 2026-11-20T08:41:16.000Z | 84 | createdAt: 2026-11-20T08:41:16.000Z |
| 85 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 86 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 85 | comments: | 87 | comments: |
| 86 | - id: 1 | 88 | - id: 1 |
| 87 | author: | 89 | author: |
| @@ -90,3 +92,10 @@ comments: | |||
| 90 | createdAt: 2026-11-20T09:52:38.000Z | 92 | createdAt: 2026-11-20T09:52:38.000Z |
| 91 | body: | | 93 | body: | |
| 92 | Implemented on feature/guardrails (not committed, not merged): engine/toolargs.go reasoningCut / cutRetryNote / cutLabel, retry in engine.go WrapModel, label in struggle.go. 3 tests. Left open: task 3 (docs EN+FR). | 94 | Implemented on feature/guardrails (not committed, not merged): engine/toolargs.go reasoningCut / cutRetryNote / cutLabel, retry in engine.go WrapModel, label in struggle.go. 3 tests. Left open: task 3 (docs EN+FR). |
| 95 | + - id: 2 | ||
| 96 | + author: | ||
| 97 | + name: k33g | ||
| 98 | + email: ph.charriere@gmail.com | ||
| 99 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 100 | + body: | | ||
| 101 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0233-contextwindow-larger-than-the-served-window-no-war.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T09:16:57.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -78,12 +78,14 @@ tasks: | ||
| 78 | 78 | closedAt: 2026-11-20T09:16:57.000Z |
| 79 | 79 | - id: 3 |
| 80 | 80 | title: Docs EN + FR |
| 81 | - state: open | |
| 81 | + state: closed | |
| 82 | 82 | priority: medium |
| 83 | 83 | author: |
| 84 | 84 | name: k33g |
| 85 | 85 | email: ph.charriere@gmail.com |
| 86 | 86 | createdAt: 2026-11-20T09:16:57.000Z |
| 87 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 88 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 87 | 89 | comments: |
| 88 | 90 | - id: 1 |
| 89 | 91 | author: |
| @@ -92,3 +94,10 @@ comments: | ||
| 92 | 94 | createdAt: 2026-11-20T09:52:38.000Z |
| 93 | 95 | body: | |
| 94 | 96 | Implemented on feature/guardrails (not committed, not merged): engine/ctxsize.go — start-up warning in openaiCompat.Probe, overflow recognised, not retried (stream retry and non-streamed retry), explained with the sizes. 5 tests; warning checked live with demos/mellum2. Left open: task 3 (docs EN+FR). |
| 97 | + - id: 2 | |
| 98 | + author: | |
| 99 | + name: k33g | |
| 100 | + email: ph.charriere@gmail.com | |
| 101 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 102 | + body: | | |
| 103 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T09:16:57.000Z | 8 | createdAt: 2026-11-20T09:16:57.000Z |
| 9 | -updatedAt: 2026-11-20T09:52:38.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -78,12 +78,14 @@ tasks: | |||
| 78 | closedAt: 2026-11-20T09:16:57.000Z | 78 | closedAt: 2026-11-20T09:16:57.000Z |
| 79 | - id: 3 | 79 | - id: 3 |
| 80 | title: Docs EN + FR | 80 | title: Docs EN + FR |
| 81 | - state: open | 81 | + state: closed |
| 82 | priority: medium | 82 | priority: medium |
| 83 | author: | 83 | author: |
| 84 | name: k33g | 84 | name: k33g |
| 85 | email: ph.charriere@gmail.com | 85 | email: ph.charriere@gmail.com |
| 86 | createdAt: 2026-11-20T09:16:57.000Z | 86 | createdAt: 2026-11-20T09:16:57.000Z |
| 87 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 88 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 87 | comments: | 89 | comments: |
| 88 | - id: 1 | 90 | - id: 1 |
| 89 | author: | 91 | author: |
| @@ -92,3 +94,10 @@ comments: | |||
| 92 | createdAt: 2026-11-20T09:52:38.000Z | 94 | createdAt: 2026-11-20T09:52:38.000Z |
| 93 | body: | | 95 | body: | |
| 94 | Implemented on feature/guardrails (not committed, not merged): engine/ctxsize.go — start-up warning in openaiCompat.Probe, overflow recognised, not retried (stream retry and non-streamed retry), explained with the sizes. 5 tests; warning checked live with demos/mellum2. Left open: task 3 (docs EN+FR). | 96 | Implemented on feature/guardrails (not committed, not merged): engine/ctxsize.go — start-up warning in openaiCompat.Probe, overflow recognised, not retried (stream retry and non-streamed retry), explained with the sizes. 5 tests; warning checked live with demos/mellum2. Left open: task 3 (docs EN+FR). |
| 97 | + - id: 2 | ||
| 98 | + author: | ||
| 99 | + name: k33g | ||
| 100 | + email: ph.charriere@gmail.com | ||
| 101 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 102 | + body: | | ||
| 103 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0234-repairpaths-a-relative-path-prefixed-with-the-proj.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T10:24:53.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -52,12 +52,14 @@ tasks: | ||
| 52 | 52 | closedAt: 2026-11-20T10:24:53.000Z |
| 53 | 53 | - id: 2 |
| 54 | 54 | title: Docs EN + FR |
| 55 | - state: open | |
| 55 | + state: closed | |
| 56 | 56 | priority: low |
| 57 | 57 | author: |
| 58 | 58 | name: k33g |
| 59 | 59 | email: ph.charriere@gmail.com |
| 60 | 60 | createdAt: 2026-11-20T10:24:53.000Z |
| 61 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 62 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 61 | 63 | comments: |
| 62 | 64 | - id: 1 |
| 63 | 65 | author: |
| @@ -66,3 +68,10 @@ comments: | ||
| 66 | 68 | createdAt: 2026-11-20T15:58:18.000Z |
| 67 | 69 | body: | |
| 68 | 70 | Implemented on feature/guardrails (not committed, not merged): workspace.repairPaths repairs a relative path prefixed with the project folder's name (tools/workspace.go repairSelfPrefix), announced to the model; tests in tools/workspace_test.go. Full suite green. Left open: the docs EN+FR task. |
| 71 | + - id: 2 | |
| 72 | + author: | |
| 73 | + name: k33g | |
| 74 | + email: ph.charriere@gmail.com | |
| 75 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 76 | + body: | | |
| 77 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T10:24:53.000Z | 8 | createdAt: 2026-11-20T10:24:53.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -52,12 +52,14 @@ tasks: | |||
| 52 | closedAt: 2026-11-20T10:24:53.000Z | 52 | closedAt: 2026-11-20T10:24:53.000Z |
| 53 | - id: 2 | 53 | - id: 2 |
| 54 | title: Docs EN + FR | 54 | title: Docs EN + FR |
| 55 | - state: open | 55 | + state: closed |
| 56 | priority: low | 56 | priority: low |
| 57 | author: | 57 | author: |
| 58 | name: k33g | 58 | name: k33g |
| 59 | email: ph.charriere@gmail.com | 59 | email: ph.charriere@gmail.com |
| 60 | createdAt: 2026-11-20T10:24:53.000Z | 60 | createdAt: 2026-11-20T10:24:53.000Z |
| 61 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 62 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 61 | comments: | 63 | comments: |
| 62 | - id: 1 | 64 | - id: 1 |
| 63 | author: | 65 | author: |
| @@ -66,3 +68,10 @@ comments: | |||
| 66 | createdAt: 2026-11-20T15:58:18.000Z | 68 | createdAt: 2026-11-20T15:58:18.000Z |
| 67 | body: | | 69 | body: | |
| 68 | Implemented on feature/guardrails (not committed, not merged): workspace.repairPaths repairs a relative path prefixed with the project folder's name (tools/workspace.go repairSelfPrefix), announced to the model; tests in tools/workspace_test.go. Full suite green. Left open: the docs EN+FR task. | 70 | Implemented on feature/guardrails (not committed, not merged): workspace.repairPaths repairs a relative path prefixed with the project folder's name (tools/workspace.go repairSelfPrefix), announced to the model; tests in tools/workspace_test.go. Full suite green. Left open: the docs EN+FR task. |
| 71 | + - id: 2 | ||
| 72 | + author: | ||
| 73 | + name: k33g | ||
| 74 | + email: ph.charriere@gmail.com | ||
| 75 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 76 | + body: | | ||
| 77 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0235-detect-a-repetition-loop-in-the-model-s-answer.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T10:24:53.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -85,12 +85,14 @@ tasks: | ||
| 85 | 85 | closedAt: 2026-11-20T10:55:06.000Z |
| 86 | 86 | - id: 4 |
| 87 | 87 | title: Docs EN + FR |
| 88 | - state: open | |
| 88 | + state: closed | |
| 89 | 89 | priority: low |
| 90 | 90 | author: |
| 91 | 91 | name: k33g |
| 92 | 92 | email: ph.charriere@gmail.com |
| 93 | 93 | createdAt: 2026-11-20T10:24:53.000Z |
| 94 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 95 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 94 | 96 | comments: |
| 95 | 97 | - id: 1 |
| 96 | 98 | author: |
| @@ -99,3 +101,10 @@ comments: | ||
| 99 | 101 | createdAt: 2026-11-20T15:58:18.000Z |
| 100 | 102 | body: | |
| 101 | 103 | Implemented on feature/guardrails (not committed, not merged): answer loops collapsed at end of turn (engine/loops.go) and stream loops in reasoning/answer cut and handed back once (engine/textloop.go, loopWatch); tests loops_test.go, textloop_test.go. Full suite green. Left open: the docs EN+FR task. |
| 104 | + - id: 2 | |
| 105 | + author: | |
| 106 | + name: k33g | |
| 107 | + email: ph.charriere@gmail.com | |
| 108 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 109 | + body: | | |
| 110 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T10:24:53.000Z | 8 | createdAt: 2026-11-20T10:24:53.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -85,12 +85,14 @@ tasks: | |||
| 85 | closedAt: 2026-11-20T10:55:06.000Z | 85 | closedAt: 2026-11-20T10:55:06.000Z |
| 86 | - id: 4 | 86 | - id: 4 |
| 87 | title: Docs EN + FR | 87 | title: Docs EN + FR |
| 88 | - state: open | 88 | + state: closed |
| 89 | priority: low | 89 | priority: low |
| 90 | author: | 90 | author: |
| 91 | name: k33g | 91 | name: k33g |
| 92 | email: ph.charriere@gmail.com | 92 | email: ph.charriere@gmail.com |
| 93 | createdAt: 2026-11-20T10:24:53.000Z | 93 | createdAt: 2026-11-20T10:24:53.000Z |
| 94 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 95 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 94 | comments: | 96 | comments: |
| 95 | - id: 1 | 97 | - id: 1 |
| 96 | author: | 98 | author: |
| @@ -99,3 +101,10 @@ comments: | |||
| 99 | createdAt: 2026-11-20T15:58:18.000Z | 101 | createdAt: 2026-11-20T15:58:18.000Z |
| 100 | body: | | 102 | body: | |
| 101 | Implemented on feature/guardrails (not committed, not merged): answer loops collapsed at end of turn (engine/loops.go) and stream loops in reasoning/answer cut and handed back once (engine/textloop.go, loopWatch); tests loops_test.go, textloop_test.go. Full suite green. Left open: the docs EN+FR task. | 103 | Implemented on feature/guardrails (not committed, not merged): answer loops collapsed at end of turn (engine/loops.go) and stream loops in reasoning/answer cut and handed back once (engine/textloop.go, loopWatch); tests loops_test.go, textloop_test.go. Full suite green. Left open: the docs EN+FR task. |
| 104 | + - id: 2 | ||
| 105 | + author: | ||
| 106 | + name: k33g | ||
| 107 | + email: ph.charriere@gmail.com | ||
| 108 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 109 | + body: | | ||
| 110 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0236-an-answer-cut-at-the-token-limit-is-not-reported.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T10:24:53.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -49,12 +49,14 @@ tasks: | ||
| 49 | 49 | closedAt: 2026-11-20T10:24:53.000Z |
| 50 | 50 | - id: 2 |
| 51 | 51 | title: Docs EN + FR |
| 52 | - state: open | |
| 52 | + state: closed | |
| 53 | 53 | priority: low |
| 54 | 54 | author: |
| 55 | 55 | name: k33g |
| 56 | 56 | email: ph.charriere@gmail.com |
| 57 | 57 | createdAt: 2026-11-20T10:24:53.000Z |
| 58 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 59 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 58 | 60 | comments: |
| 59 | 61 | - id: 1 |
| 60 | 62 | author: |
| @@ -63,3 +65,10 @@ comments: | ||
| 63 | 65 | createdAt: 2026-11-20T15:58:18.000Z |
| 64 | 66 | body: | |
| 65 | 67 | Implemented on feature/guardrails (not committed, not merged): an answer cut at the limit with text is reported in the end-of-turn line (engine/struggle.go answerStruggle); tests. Full suite green. Left open: the docs EN+FR task. |
| 68 | + - id: 2 | |
| 69 | + author: | |
| 70 | + name: k33g | |
| 71 | + email: ph.charriere@gmail.com | |
| 72 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 73 | + body: | | |
| 74 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T10:24:53.000Z | 8 | createdAt: 2026-11-20T10:24:53.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -49,12 +49,14 @@ tasks: | |||
| 49 | closedAt: 2026-11-20T10:24:53.000Z | 49 | closedAt: 2026-11-20T10:24:53.000Z |
| 50 | - id: 2 | 50 | - id: 2 |
| 51 | title: Docs EN + FR | 51 | title: Docs EN + FR |
| 52 | - state: open | 52 | + state: closed |
| 53 | priority: low | 53 | priority: low |
| 54 | author: | 54 | author: |
| 55 | name: k33g | 55 | name: k33g |
| 56 | email: ph.charriere@gmail.com | 56 | email: ph.charriere@gmail.com |
| 57 | createdAt: 2026-11-20T10:24:53.000Z | 57 | createdAt: 2026-11-20T10:24:53.000Z |
| 58 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 59 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 58 | comments: | 60 | comments: |
| 59 | - id: 1 | 61 | - id: 1 |
| 60 | author: | 62 | author: |
| @@ -63,3 +65,10 @@ comments: | |||
| 63 | createdAt: 2026-11-20T15:58:18.000Z | 65 | createdAt: 2026-11-20T15:58:18.000Z |
| 64 | body: | | 66 | body: | |
| 65 | Implemented on feature/guardrails (not committed, not merged): an answer cut at the limit with text is reported in the end-of-turn line (engine/struggle.go answerStruggle); tests. Full suite green. Left open: the docs EN+FR task. | 67 | Implemented on feature/guardrails (not committed, not merged): an answer cut at the limit with text is reported in the end-of-turn line (engine/struggle.go answerStruggle); tests. Full suite green. Left open: the docs EN+FR task. |
| 68 | + - id: 2 | ||
| 69 | + author: | ||
| 70 | + name: k33g | ||
| 71 | + email: ph.charriere@gmail.com | ||
| 72 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 73 | + body: | | ||
| 74 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0237-coerce-scalar-tool-arguments-to-the-schema-type.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T10:38:24.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -50,12 +50,14 @@ tasks: | ||
| 50 | 50 | closedAt: 2026-11-20T10:38:24.000Z |
| 51 | 51 | - id: 2 |
| 52 | 52 | title: Docs EN + FR |
| 53 | - state: open | |
| 53 | + state: closed | |
| 54 | 54 | priority: low |
| 55 | 55 | author: |
| 56 | 56 | name: k33g |
| 57 | 57 | email: ph.charriere@gmail.com |
| 58 | 58 | createdAt: 2026-11-20T10:38:24.000Z |
| 59 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 60 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 59 | 61 | comments: |
| 60 | 62 | - id: 1 |
| 61 | 63 | author: |
| @@ -64,3 +66,10 @@ comments: | ||
| 64 | 66 | createdAt: 2026-11-20T15:58:18.000Z |
| 65 | 67 | body: | |
| 66 | 68 | Implemented on feature/guardrails (not committed, not merged): string scalars converted to the schema's boolean/integer/number before validation (engine/toolschema.go coerceScalars); tests toolschema_test.go. Full suite green. Left open: the docs EN+FR task. |
| 69 | + - id: 2 | |
| 70 | + author: | |
| 71 | + name: k33g | |
| 72 | + email: ph.charriere@gmail.com | |
| 73 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 74 | + body: | | |
| 75 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T10:38:24.000Z | 8 | createdAt: 2026-11-20T10:38:24.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -50,12 +50,14 @@ tasks: | |||
| 50 | closedAt: 2026-11-20T10:38:24.000Z | 50 | closedAt: 2026-11-20T10:38:24.000Z |
| 51 | - id: 2 | 51 | - id: 2 |
| 52 | title: Docs EN + FR | 52 | title: Docs EN + FR |
| 53 | - state: open | 53 | + state: closed |
| 54 | priority: low | 54 | priority: low |
| 55 | author: | 55 | author: |
| 56 | name: k33g | 56 | name: k33g |
| 57 | email: ph.charriere@gmail.com | 57 | email: ph.charriere@gmail.com |
| 58 | createdAt: 2026-11-20T10:38:24.000Z | 58 | createdAt: 2026-11-20T10:38:24.000Z |
| 59 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 60 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 59 | comments: | 61 | comments: |
| 60 | - id: 1 | 62 | - id: 1 |
| 61 | author: | 63 | author: |
| @@ -64,3 +66,10 @@ comments: | |||
| 64 | createdAt: 2026-11-20T15:58:18.000Z | 66 | createdAt: 2026-11-20T15:58:18.000Z |
| 65 | body: | | 67 | body: | |
| 66 | Implemented on feature/guardrails (not committed, not merged): string scalars converted to the schema's boolean/integer/number before validation (engine/toolschema.go coerceScalars); tests toolschema_test.go. Full suite green. Left open: the docs EN+FR task. | 68 | Implemented on feature/guardrails (not committed, not merged): string scalars converted to the schema's boolean/integer/number before validation (engine/toolschema.go coerceScalars); tests toolschema_test.go. Full suite green. Left open: the docs EN+FR task. |
| 69 | + - id: 2 | ||
| 70 | + author: | ||
| 71 | + name: k33g | ||
| 72 | + email: ph.charriere@gmail.com | ||
| 73 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 74 | + body: | | ||
| 75 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0238-a-turn-that-ends-on-a-failed-file-change-is-not-reported.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T10:38:24.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -54,12 +54,14 @@ tasks: | ||
| 54 | 54 | closedAt: 2026-11-20T10:38:24.000Z |
| 55 | 55 | - id: 2 |
| 56 | 56 | title: Docs EN + FR |
| 57 | - state: open | |
| 57 | + state: closed | |
| 58 | 58 | priority: low |
| 59 | 59 | author: |
| 60 | 60 | name: k33g |
| 61 | 61 | email: ph.charriere@gmail.com |
| 62 | 62 | createdAt: 2026-11-20T10:38:24.000Z |
| 63 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 64 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 63 | 65 | comments: |
| 64 | 66 | - id: 1 |
| 65 | 67 | author: |
| @@ -68,3 +70,10 @@ comments: | ||
| 68 | 70 | createdAt: 2026-11-20T15:58:18.000Z |
| 69 | 71 | body: | |
| 70 | 72 | Implemented on feature/guardrails (not committed, not merged): end-of-turn line when the last file change of a turn failed (engine/struggle.go fileChangeStruggle); tests filefail_test.go. Full suite green. Left open: the docs EN+FR task. |
| 73 | + - id: 2 | |
| 74 | + author: | |
| 75 | + name: k33g | |
| 76 | + email: ph.charriere@gmail.com | |
| 77 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 78 | + body: | | |
| 79 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T10:38:24.000Z | 8 | createdAt: 2026-11-20T10:38:24.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -54,12 +54,14 @@ tasks: | |||
| 54 | closedAt: 2026-11-20T10:38:24.000Z | 54 | closedAt: 2026-11-20T10:38:24.000Z |
| 55 | - id: 2 | 55 | - id: 2 |
| 56 | title: Docs EN + FR | 56 | title: Docs EN + FR |
| 57 | - state: open | 57 | + state: closed |
| 58 | priority: low | 58 | priority: low |
| 59 | author: | 59 | author: |
| 60 | name: k33g | 60 | name: k33g |
| 61 | email: ph.charriere@gmail.com | 61 | email: ph.charriere@gmail.com |
| 62 | createdAt: 2026-11-20T10:38:24.000Z | 62 | createdAt: 2026-11-20T10:38:24.000Z |
| 63 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 64 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 63 | comments: | 65 | comments: |
| 64 | - id: 1 | 66 | - id: 1 |
| 65 | author: | 67 | author: |
| @@ -68,3 +70,10 @@ comments: | |||
| 68 | createdAt: 2026-11-20T15:58:18.000Z | 70 | createdAt: 2026-11-20T15:58:18.000Z |
| 69 | body: | | 71 | body: | |
| 70 | Implemented on feature/guardrails (not committed, not merged): end-of-turn line when the last file change of a turn failed (engine/struggle.go fileChangeStruggle); tests filefail_test.go. Full suite green. Left open: the docs EN+FR task. | 72 | Implemented on feature/guardrails (not committed, not merged): end-of-turn line when the last file change of a turn failed (engine/struggle.go fileChangeStruggle); tests filefail_test.go. Full suite green. Left open: the docs EN+FR task. |
| 73 | + - id: 2 | ||
| 74 | + author: | ||
| 75 | + name: k33g | ||
| 76 | + email: ph.charriere@gmail.com | ||
| 77 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 78 | + body: | | ||
| 79 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0239-edit-file-a-line-break-where-the-file-has-a-space.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T11:25:15.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -61,12 +61,14 @@ tasks: | ||
| 61 | 61 | closedAt: 2026-11-20T11:25:15.000Z |
| 62 | 62 | - id: 2 |
| 63 | 63 | title: Docs EN + FR |
| 64 | - state: open | |
| 64 | + state: closed | |
| 65 | 65 | priority: low |
| 66 | 66 | author: |
| 67 | 67 | name: k33g |
| 68 | 68 | email: ph.charriere@gmail.com |
| 69 | 69 | createdAt: 2026-11-20T11:25:15.000Z |
| 70 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 71 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 70 | 72 | comments: |
| 71 | 73 | - id: 1 |
| 72 | 74 | author: |
| @@ -75,3 +77,10 @@ comments: | ||
| 75 | 77 | createdAt: 2026-11-20T15:58:18.000Z |
| 76 | 78 | body: | |
| 77 | 79 | Implemented on feature/guardrails (not committed, not merged): edit_file last matching pass ignoring layout — whitespace runs incl. line breaks (fileedit/match.go ignoringLayout); tests; checked on the real mellum2 session calls. Full suite green. Left open: the docs EN+FR task. |
| 80 | + - id: 2 | |
| 81 | + author: | |
| 82 | + name: k33g | |
| 83 | + email: ph.charriere@gmail.com | |
| 84 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 85 | + body: | | |
| 86 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T11:25:15.000Z | 8 | createdAt: 2026-11-20T11:25:15.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -61,12 +61,14 @@ tasks: | |||
| 61 | closedAt: 2026-11-20T11:25:15.000Z | 61 | closedAt: 2026-11-20T11:25:15.000Z |
| 62 | - id: 2 | 62 | - id: 2 |
| 63 | title: Docs EN + FR | 63 | title: Docs EN + FR |
| 64 | - state: open | 64 | + state: closed |
| 65 | priority: low | 65 | priority: low |
| 66 | author: | 66 | author: |
| 67 | name: k33g | 67 | name: k33g |
| 68 | email: ph.charriere@gmail.com | 68 | email: ph.charriere@gmail.com |
| 69 | createdAt: 2026-11-20T11:25:15.000Z | 69 | createdAt: 2026-11-20T11:25:15.000Z |
| 70 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 71 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 70 | comments: | 72 | comments: |
| 71 | - id: 1 | 73 | - id: 1 |
| 72 | author: | 74 | author: |
| @@ -75,3 +77,10 @@ comments: | |||
| 75 | createdAt: 2026-11-20T15:58:18.000Z | 77 | createdAt: 2026-11-20T15:58:18.000Z |
| 76 | body: | | 78 | body: | |
| 77 | Implemented on feature/guardrails (not committed, not merged): edit_file last matching pass ignoring layout — whitespace runs incl. line breaks (fileedit/match.go ignoringLayout); tests; checked on the real mellum2 session calls. Full suite green. Left open: the docs EN+FR task. | 79 | Implemented on feature/guardrails (not committed, not merged): edit_file last matching pass ignoring layout — whitespace runs incl. line breaks (fileedit/match.go ignoringLayout); tests; checked on the real mellum2 session calls. Full suite green. Left open: the docs EN+FR task. |
| 80 | + - id: 2 | ||
| 81 | + author: | ||
| 82 | + name: k33g | ||
| 83 | + email: ph.charriere@gmail.com | ||
| 84 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 85 | + body: | | ||
| 86 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0240-loop-detector-misses-identical-failures-between-ot.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T11:25:15.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -51,12 +51,14 @@ tasks: | ||
| 51 | 51 | closedAt: 2026-11-20T11:25:15.000Z |
| 52 | 52 | - id: 2 |
| 53 | 53 | title: Docs EN + FR |
| 54 | - state: open | |
| 54 | + state: closed | |
| 55 | 55 | priority: low |
| 56 | 56 | author: |
| 57 | 57 | name: k33g |
| 58 | 58 | email: ph.charriere@gmail.com |
| 59 | 59 | createdAt: 2026-11-20T11:25:15.000Z |
| 60 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 61 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 60 | 62 | comments: |
| 61 | 63 | - id: 1 |
| 62 | 64 | author: |
| @@ -65,3 +67,10 @@ comments: | ||
| 65 | 67 | createdAt: 2026-11-20T15:58:18.000Z |
| 66 | 68 | body: | |
| 67 | 69 | Implemented on feature/guardrails (not committed, not merged): loop detector flags the same failing call repeated within the window, interleaved or not (detector.go failedFlags); tests. Full suite green. Left open: the docs EN+FR task. |
| 70 | + - id: 2 | |
| 71 | + author: | |
| 72 | + name: k33g | |
| 73 | + email: ph.charriere@gmail.com | |
| 74 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 75 | + body: | | |
| 76 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T11:25:15.000Z | 8 | createdAt: 2026-11-20T11:25:15.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -51,12 +51,14 @@ tasks: | |||
| 51 | closedAt: 2026-11-20T11:25:15.000Z | 51 | closedAt: 2026-11-20T11:25:15.000Z |
| 52 | - id: 2 | 52 | - id: 2 |
| 53 | title: Docs EN + FR | 53 | title: Docs EN + FR |
| 54 | - state: open | 54 | + state: closed |
| 55 | priority: low | 55 | priority: low |
| 56 | author: | 56 | author: |
| 57 | name: k33g | 57 | name: k33g |
| 58 | email: ph.charriere@gmail.com | 58 | email: ph.charriere@gmail.com |
| 59 | createdAt: 2026-11-20T11:25:15.000Z | 59 | createdAt: 2026-11-20T11:25:15.000Z |
| 60 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 61 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 60 | comments: | 62 | comments: |
| 61 | - id: 1 | 63 | - id: 1 |
| 62 | author: | 64 | author: |
| @@ -65,3 +67,10 @@ comments: | |||
| 65 | createdAt: 2026-11-20T15:58:18.000Z | 67 | createdAt: 2026-11-20T15:58:18.000Z |
| 66 | body: | | 68 | body: | |
| 67 | Implemented on feature/guardrails (not committed, not merged): loop detector flags the same failing call repeated within the window, interleaved or not (detector.go failedFlags); tests. Full suite green. Left open: the docs EN+FR task. | 69 | Implemented on feature/guardrails (not committed, not merged): loop detector flags the same failing call repeated within the window, interleaved or not (detector.go failedFlags); tests. Full suite green. Left open: the docs EN+FR task. |
| 70 | + - id: 2 | ||
| 71 | + author: | ||
| 72 | + name: k33g | ||
| 73 | + email: ph.charriere@gmail.com | ||
| 74 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 75 | + body: | | ||
| 76 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0241-edit-file-pick-an-occurrence-by-its-line-number.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T13:57:03.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -57,12 +57,14 @@ tasks: | ||
| 57 | 57 | closedAt: 2026-11-20T13:57:03.000Z |
| 58 | 58 | - id: 2 |
| 59 | 59 | title: Docs EN + FR |
| 60 | - state: open | |
| 60 | + state: closed | |
| 61 | 61 | priority: low |
| 62 | 62 | author: |
| 63 | 63 | name: k33g |
| 64 | 64 | email: ph.charriere@gmail.com |
| 65 | 65 | createdAt: 2026-11-20T13:57:03.000Z |
| 66 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 67 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 66 | 68 | comments: |
| 67 | 69 | - id: 1 |
| 68 | 70 | author: |
| @@ -71,3 +73,10 @@ comments: | ||
| 71 | 73 | createdAt: 2026-11-20T15:58:18.000Z |
| 72 | 74 | body: | |
| 73 | 75 | Implemented on feature/guardrails (not committed, not merged): edit_file per-edit optional `line` picks one occurrence of an ambiguous old; message, description, schema, repairs (fileedit/edits.go, engine/toolschema.go); tests. Verified live (comment8: lfm-coder 2/2, mellum2 2/3 — the miss was a clarification question, not an edit failure). Full suite green. Left open: the docs EN+FR task. |
| 76 | + - id: 2 | |
| 77 | + author: | |
| 78 | + name: k33g | |
| 79 | + email: ph.charriere@gmail.com | |
| 80 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 81 | + body: | | |
| 82 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T13:57:03.000Z | 8 | createdAt: 2026-11-20T13:57:03.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -57,12 +57,14 @@ tasks: | |||
| 57 | closedAt: 2026-11-20T13:57:03.000Z | 57 | closedAt: 2026-11-20T13:57:03.000Z |
| 58 | - id: 2 | 58 | - id: 2 |
| 59 | title: Docs EN + FR | 59 | title: Docs EN + FR |
| 60 | - state: open | 60 | + state: closed |
| 61 | priority: low | 61 | priority: low |
| 62 | author: | 62 | author: |
| 63 | name: k33g | 63 | name: k33g |
| 64 | email: ph.charriere@gmail.com | 64 | email: ph.charriere@gmail.com |
| 65 | createdAt: 2026-11-20T13:57:03.000Z | 65 | createdAt: 2026-11-20T13:57:03.000Z |
| 66 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 67 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 66 | comments: | 68 | comments: |
| 67 | - id: 1 | 69 | - id: 1 |
| 68 | author: | 70 | author: |
| @@ -71,3 +73,10 @@ comments: | |||
| 71 | createdAt: 2026-11-20T15:58:18.000Z | 73 | createdAt: 2026-11-20T15:58:18.000Z |
| 72 | body: | | 74 | body: | |
| 73 | Implemented on feature/guardrails (not committed, not merged): edit_file per-edit optional `line` picks one occurrence of an ambiguous old; message, description, schema, repairs (fileedit/edits.go, engine/toolschema.go); tests. Verified live (comment8: lfm-coder 2/2, mellum2 2/3 — the miss was a clarification question, not an edit failure). Full suite green. Left open: the docs EN+FR task. | 75 | Implemented on feature/guardrails (not committed, not merged): edit_file per-edit optional `line` picks one occurrence of an ambiguous old; message, description, schema, repairs (fileedit/edits.go, engine/toolschema.go); tests. Verified live (comment8: lfm-coder 2/2, mellum2 2/3 — the miss was a clarification question, not an edit failure). Full suite green. Left open: the docs EN+FR task. |
| 76 | + - id: 2 | ||
| 77 | + author: | ||
| 78 | + name: k33g | ||
| 79 | + email: ph.charriere@gmail.com | ||
| 80 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 81 | + body: | | ||
| 82 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0242-hand-back-an-answer-given-after-a-failed-file-change.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T13:57:03.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -52,12 +52,14 @@ tasks: | ||
| 52 | 52 | closedAt: 2026-11-20T13:57:03.000Z |
| 53 | 53 | - id: 2 |
| 54 | 54 | title: Docs EN + FR |
| 55 | - state: open | |
| 55 | + state: closed | |
| 56 | 56 | priority: low |
| 57 | 57 | author: |
| 58 | 58 | name: k33g |
| 59 | 59 | email: ph.charriere@gmail.com |
| 60 | 60 | createdAt: 2026-11-20T13:57:03.000Z |
| 61 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 62 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 61 | 63 | comments: |
| 62 | 64 | - id: 1 |
| 63 | 65 | author: |
| @@ -66,3 +68,10 @@ comments: | ||
| 66 | 68 | createdAt: 2026-11-20T15:58:18.000Z |
| 67 | 69 | body: | |
| 68 | 70 | Implemented on feature/guardrails (not committed, not merged): final answer handed back once when the turn's last write/edit failed (engine/engine.go, toolargs.go failedEditNote); tests. Verification 2026-11-20: the note fired in no run of the lfm-coder/mellum2 series; no regression attributable (faithful test weakening reproduces with the old binary). Full suite green. Left open: the docs EN+FR task. |
| 71 | + - id: 2 | |
| 72 | + author: | |
| 73 | + name: k33g | |
| 74 | + email: ph.charriere@gmail.com | |
| 75 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 76 | + body: | | |
| 77 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T13:57:03.000Z | 8 | createdAt: 2026-11-20T13:57:03.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -52,12 +52,14 @@ tasks: | |||
| 52 | closedAt: 2026-11-20T13:57:03.000Z | 52 | closedAt: 2026-11-20T13:57:03.000Z |
| 53 | - id: 2 | 53 | - id: 2 |
| 54 | title: Docs EN + FR | 54 | title: Docs EN + FR |
| 55 | - state: open | 55 | + state: closed |
| 56 | priority: low | 56 | priority: low |
| 57 | author: | 57 | author: |
| 58 | name: k33g | 58 | name: k33g |
| 59 | email: ph.charriere@gmail.com | 59 | email: ph.charriere@gmail.com |
| 60 | createdAt: 2026-11-20T13:57:03.000Z | 60 | createdAt: 2026-11-20T13:57:03.000Z |
| 61 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 62 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 61 | comments: | 63 | comments: |
| 62 | - id: 1 | 64 | - id: 1 |
| 63 | author: | 65 | author: |
| @@ -66,3 +68,10 @@ comments: | |||
| 66 | createdAt: 2026-11-20T15:58:18.000Z | 68 | createdAt: 2026-11-20T15:58:18.000Z |
| 67 | body: | | 69 | body: | |
| 68 | Implemented on feature/guardrails (not committed, not merged): final answer handed back once when the turn's last write/edit failed (engine/engine.go, toolargs.go failedEditNote); tests. Verification 2026-11-20: the note fired in no run of the lfm-coder/mellum2 series; no regression attributable (faithful test weakening reproduces with the old binary). Full suite green. Left open: the docs EN+FR task. | 70 | Implemented on feature/guardrails (not committed, not merged): final answer handed back once when the turn's last write/edit failed (engine/engine.go, toolargs.go failedEditNote); tests. Verification 2026-11-20: the note fired in no run of the lfm-coder/mellum2 series; no regression attributable (faithful test weakening reproduces with the old binary). Full suite green. Left open: the docs EN+FR task. |
| 71 | + - id: 2 | ||
| 72 | + author: | ||
| 73 | + name: k33g | ||
| 74 | + email: ph.charriere@gmail.com | ||
| 75 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 76 | + body: | | ||
| 77 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0244-protect-secrets-from-the-model-and-what-mm-writes.yaml +2 -2 | @@ -6,11 +6,11 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T14:35:00.000Z |
| 9 | -updatedAt: 2026-11-20T14:35:00.000Z | |
| 9 | +updatedAt: 2026-11-20T18:10:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - question |
| 12 | 12 | - enhancement |
| 13 | -milestone: v2.0.0 | |
| 13 | +milestone: v2.0.1 | |
| 14 | 14 | epic: Guardrails |
| 15 | 15 | related: |
| 16 | 16 | - 147 |
| @@ -6,11 +6,11 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T14:35:00.000Z | 8 | createdAt: 2026-11-20T14:35:00.000Z |
| 9 | -updatedAt: 2026-11-20T14:35:00.000Z | 9 | +updatedAt: 2026-11-20T18:10:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - question | 11 | - question |
| 12 | - enhancement | 12 | - enhancement |
| 13 | -milestone: v2.0.0 | 13 | +milestone: v2.0.1 |
| 14 | epic: Guardrails | 14 | epic: Guardrails |
| 15 | related: | 15 | related: |
| 16 | - 147 | 16 | - 147 |
modified
.tickets/issues/0245-lsp-diagnostics-after-read-file.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T15:34:41.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -72,12 +72,14 @@ tasks: | ||
| 72 | 72 | closedAt: 2026-11-20T15:34:41.000Z |
| 73 | 73 | - id: 3 |
| 74 | 74 | title: Docs EN + FR |
| 75 | - state: open | |
| 75 | + state: closed | |
| 76 | 76 | priority: medium |
| 77 | 77 | author: |
| 78 | 78 | name: k33g |
| 79 | 79 | email: ph.charriere@gmail.com |
| 80 | 80 | createdAt: 2026-11-20T15:34:41.000Z |
| 81 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 82 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 81 | 83 | comments: |
| 82 | 84 | - id: 1 |
| 83 | 85 | author: |
| @@ -86,3 +88,10 @@ comments: | ||
| 86 | 88 | createdAt: 2026-11-20T15:58:18.000Z |
| 87 | 89 | body: | |
| 88 | 90 | Implemented on feature/guardrails (not committed, not merged): lsp.diagnosticsAfterRead (tools/editdiag.go, files.go; config) once per file version; tests tools/readdiag_test.go; live trace OK; enabled in lfm-coder, olala-mini, mellum2. Full suite green. Left open: the docs EN+FR task. |
| 91 | + - id: 2 | |
| 92 | + author: | |
| 93 | + name: k33g | |
| 94 | + email: ph.charriere@gmail.com | |
| 95 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 96 | + body: | | |
| 97 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T15:34:41.000Z | 8 | createdAt: 2026-11-20T15:34:41.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -72,12 +72,14 @@ tasks: | |||
| 72 | closedAt: 2026-11-20T15:34:41.000Z | 72 | closedAt: 2026-11-20T15:34:41.000Z |
| 73 | - id: 3 | 73 | - id: 3 |
| 74 | title: Docs EN + FR | 74 | title: Docs EN + FR |
| 75 | - state: open | 75 | + state: closed |
| 76 | priority: medium | 76 | priority: medium |
| 77 | author: | 77 | author: |
| 78 | name: k33g | 78 | name: k33g |
| 79 | email: ph.charriere@gmail.com | 79 | email: ph.charriere@gmail.com |
| 80 | createdAt: 2026-11-20T15:34:41.000Z | 80 | createdAt: 2026-11-20T15:34:41.000Z |
| 81 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 82 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 81 | comments: | 83 | comments: |
| 82 | - id: 1 | 84 | - id: 1 |
| 83 | author: | 85 | author: |
| @@ -86,3 +88,10 @@ comments: | |||
| 86 | createdAt: 2026-11-20T15:58:18.000Z | 88 | createdAt: 2026-11-20T15:58:18.000Z |
| 87 | body: | | 89 | body: | |
| 88 | Implemented on feature/guardrails (not committed, not merged): lsp.diagnosticsAfterRead (tools/editdiag.go, files.go; config) once per file version; tests tools/readdiag_test.go; live trace OK; enabled in lfm-coder, olala-mini, mellum2. Full suite green. Left open: the docs EN+FR task. | 90 | Implemented on feature/guardrails (not committed, not merged): lsp.diagnosticsAfterRead (tools/editdiag.go, files.go; config) once per file version; tests tools/readdiag_test.go; live trace OK; enabled in lfm-coder, olala-mini, mellum2. Full suite green. Left open: the docs EN+FR task. |
| 91 | + - id: 2 | ||
| 92 | + author: | ||
| 93 | + name: k33g | ||
| 94 | + email: ph.charriere@gmail.com | ||
| 95 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 96 | + body: | | ||
| 97 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0246-lsp-typescript-language-server-sends-no-diagnostics.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T15:43:39.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - bug |
| 12 | 12 | - kind::bug |
| @@ -57,12 +57,14 @@ tasks: | ||
| 57 | 57 | closedAt: 2026-11-20T15:43:39.000Z |
| 58 | 58 | - id: 2 |
| 59 | 59 | title: Docs EN + FR (TypeScript 5/6 requirement) |
| 60 | - state: open | |
| 60 | + state: closed | |
| 61 | 61 | priority: medium |
| 62 | 62 | author: |
| 63 | 63 | name: k33g |
| 64 | 64 | email: ph.charriere@gmail.com |
| 65 | 65 | createdAt: 2026-11-20T15:43:39.000Z |
| 66 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 67 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 66 | 68 | comments: |
| 67 | 69 | - id: 1 |
| 68 | 70 | author: |
| @@ -71,3 +73,10 @@ comments: | ||
| 71 | 73 | createdAt: 2026-11-20T15:58:18.000Z |
| 72 | 74 | body: | |
| 73 | 75 | Implemented on feature/guardrails (not committed, not merged): client declares textDocument.publishDiagnostics (lsp/lsp.go); tests lsp/caps_test.go incl. real typescript-language-server; live OK. Full suite green. Left open: the docs EN+FR task. |
| 76 | + - id: 2 | |
| 77 | + author: | |
| 78 | + name: k33g | |
| 79 | + email: ph.charriere@gmail.com | |
| 80 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 81 | + body: | | |
| 82 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T15:43:39.000Z | 8 | createdAt: 2026-11-20T15:43:39.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - bug | 11 | - bug |
| 12 | - kind::bug | 12 | - kind::bug |
| @@ -57,12 +57,14 @@ tasks: | |||
| 57 | closedAt: 2026-11-20T15:43:39.000Z | 57 | closedAt: 2026-11-20T15:43:39.000Z |
| 58 | - id: 2 | 58 | - id: 2 |
| 59 | title: Docs EN + FR (TypeScript 5/6 requirement) | 59 | title: Docs EN + FR (TypeScript 5/6 requirement) |
| 60 | - state: open | 60 | + state: closed |
| 61 | priority: medium | 61 | priority: medium |
| 62 | author: | 62 | author: |
| 63 | name: k33g | 63 | name: k33g |
| 64 | email: ph.charriere@gmail.com | 64 | email: ph.charriere@gmail.com |
| 65 | createdAt: 2026-11-20T15:43:39.000Z | 65 | createdAt: 2026-11-20T15:43:39.000Z |
| 66 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 67 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 66 | comments: | 68 | comments: |
| 67 | - id: 1 | 69 | - id: 1 |
| 68 | author: | 70 | author: |
| @@ -71,3 +73,10 @@ comments: | |||
| 71 | createdAt: 2026-11-20T15:58:18.000Z | 73 | createdAt: 2026-11-20T15:58:18.000Z |
| 72 | body: | | 74 | body: | |
| 73 | Implemented on feature/guardrails (not committed, not merged): client declares textDocument.publishDiagnostics (lsp/lsp.go); tests lsp/caps_test.go incl. real typescript-language-server; live OK. Full suite green. Left open: the docs EN+FR task. | 75 | Implemented on feature/guardrails (not committed, not merged): client declares textDocument.publishDiagnostics (lsp/lsp.go); tests lsp/caps_test.go incl. real typescript-language-server; live OK. Full suite green. Left open: the docs EN+FR task. |
| 76 | + - id: 2 | ||
| 77 | + author: | ||
| 78 | + name: k33g | ||
| 79 | + email: ph.charriere@gmail.com | ||
| 80 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 81 | + body: | | ||
| 82 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0247-lsp-pull-diagnostics-lsp-3-17-for-typescript-7.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T15:50:51.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | |
| 9 | +updatedAt: 2026-11-20T19:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -71,12 +71,14 @@ tasks: | ||
| 71 | 71 | closedAt: 2026-11-20T15:50:51.000Z |
| 72 | 72 | - id: 3 |
| 73 | 73 | title: Docs EN + FR (mm lsp how-to) |
| 74 | - state: open | |
| 74 | + state: closed | |
| 75 | 75 | priority: medium |
| 76 | 76 | author: |
| 77 | 77 | name: k33g |
| 78 | 78 | email: ph.charriere@gmail.com |
| 79 | 79 | createdAt: 2026-11-20T15:50:51.000Z |
| 80 | + updatedAt: 2026-11-20T19:00:00.000Z | |
| 81 | + closedAt: 2026-11-20T19:00:00.000Z | |
| 80 | 82 | comments: |
| 81 | 83 | - id: 1 |
| 82 | 84 | author: |
| @@ -85,3 +87,10 @@ comments: | ||
| 85 | 87 | createdAt: 2026-11-20T15:58:18.000Z |
| 86 | 88 | body: | |
| 87 | 89 | Implemented on feature/guardrails (not committed, not merged): pull diagnostics when the server declares diagnosticProvider (lsp/change.go); tests with a fake pull server and the real TS7 `tsc --lsp`; all lsp actions checked on TS7; TS7 entry commented in the three demos. Full suite green. Left open: the docs EN+FR task. |
| 90 | + - id: 2 | |
| 91 | + author: | |
| 92 | + name: k33g | |
| 93 | + email: ph.charriere@gmail.com | |
| 94 | + createdAt: 2026-11-20T19:00:00.000Z | |
| 95 | + body: | | |
| 96 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T15:50:51.000Z | 8 | createdAt: 2026-11-20T15:50:51.000Z |
| 9 | -updatedAt: 2026-11-20T15:58:18.000Z | 9 | +updatedAt: 2026-11-20T19:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -71,12 +71,14 @@ tasks: | |||
| 71 | closedAt: 2026-11-20T15:50:51.000Z | 71 | closedAt: 2026-11-20T15:50:51.000Z |
| 72 | - id: 3 | 72 | - id: 3 |
| 73 | title: Docs EN + FR (mm lsp how-to) | 73 | title: Docs EN + FR (mm lsp how-to) |
| 74 | - state: open | 74 | + state: closed |
| 75 | priority: medium | 75 | priority: medium |
| 76 | author: | 76 | author: |
| 77 | name: k33g | 77 | name: k33g |
| 78 | email: ph.charriere@gmail.com | 78 | email: ph.charriere@gmail.com |
| 79 | createdAt: 2026-11-20T15:50:51.000Z | 79 | createdAt: 2026-11-20T15:50:51.000Z |
| 80 | + updatedAt: 2026-11-20T19:00:00.000Z | ||
| 81 | + closedAt: 2026-11-20T19:00:00.000Z | ||
| 80 | comments: | 82 | comments: |
| 81 | - id: 1 | 83 | - id: 1 |
| 82 | author: | 84 | author: |
| @@ -85,3 +87,10 @@ comments: | |||
| 85 | createdAt: 2026-11-20T15:58:18.000Z | 87 | createdAt: 2026-11-20T15:58:18.000Z |
| 86 | body: | | 88 | body: | |
| 87 | Implemented on feature/guardrails (not committed, not merged): pull diagnostics when the server declares diagnosticProvider (lsp/change.go); tests with a fake pull server and the real TS7 `tsc --lsp`; all lsp actions checked on TS7; TS7 entry commented in the three demos. Full suite green. Left open: the docs EN+FR task. | 89 | Implemented on feature/guardrails (not committed, not merged): pull diagnostics when the server declares diagnosticProvider (lsp/change.go); tests with a fake pull server and the real TS7 `tsc --lsp`; all lsp actions checked on TS7; TS7 entry commented in the three demos. Full suite green. Left open: the docs EN+FR task. |
| 90 | + - id: 2 | ||
| 91 | + author: | ||
| 92 | + name: k33g | ||
| 93 | + email: ph.charriere@gmail.com | ||
| 94 | + createdAt: 2026-11-20T19:00:00.000Z | ||
| 95 | + body: | | ||
| 96 | + Docs EN+FR written for the v2.0.0 release (docs/{en,fr}/reference configuration, tools, cli; lsp and llama.cpp how-tos; struggling-models explanation). | ||
modified
.tickets/issues/0248-workspace-repairpaths-drop-a-wrong-leading-cd-in-bash.yaml +17 -4 | @@ -1,12 +1,12 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 248 |
| 3 | 3 | title: "workspace.repairPaths: drop a wrong leading cd in bash commands" |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-20T16:50:23.000Z |
| 9 | -updatedAt: 2026-11-20T16:50:23.000Z | |
| 9 | +updatedAt: 2026-11-20T18:00:00.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - enhancement |
| 12 | 12 | - kind::feature |
| @@ -59,10 +59,23 @@ tasks: | ||
| 59 | 59 | closedAt: 2026-11-20T16:50:23.000Z |
| 60 | 60 | - id: 2 |
| 61 | 61 | title: Docs EN + FR |
| 62 | - state: open | |
| 62 | + state: closed | |
| 63 | 63 | priority: medium |
| 64 | 64 | author: |
| 65 | 65 | name: k33g |
| 66 | 66 | email: ph.charriere@gmail.com |
| 67 | 67 | createdAt: 2026-11-20T16:50:23.000Z |
| 68 | -comments: [] | |
| 68 | + updatedAt: 2026-11-20T18:00:00.000Z | |
| 69 | + closedAt: 2026-11-20T18:00:00.000Z | |
| 70 | +comments: | |
| 71 | + - id: 1 | |
| 72 | + author: | |
| 73 | + name: k33g | |
| 74 | + email: ph.charriere@gmail.com | |
| 75 | + createdAt: 2026-11-20T18:00:00.000Z | |
| 76 | + body: | | |
| 77 | + Code and tests merged into main (2f40d78, 9f502b4). Docs EN + FR: new `workspace` keys section in | |
| 78 | + docs/{en,fr}/reference/configuration.md (confine, repairPaths: the three file-tool repairs and the | |
| 79 | + bash leading-cd drop, with the notes the model reads) and a "Wrong cd" row in the bash section of | |
| 80 | + docs/{en,fr}/reference/tools.md. Lfm-coder re-run after the fix: commit 2/2, newapp 1/2, webapi 0/2 | |
| 81 | + (failures unrelated to cd; see demos/lfm-coder README). Closed. | |
| @@ -1,12 +1,12 @@ | |||
| 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | id: 248 | 2 | id: 248 |
| 3 | title: "workspace.repairPaths: drop a wrong leading cd in bash commands" | 3 | title: "workspace.repairPaths: drop a wrong leading cd in bash commands" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-20T16:50:23.000Z | 8 | createdAt: 2026-11-20T16:50:23.000Z |
| 9 | -updatedAt: 2026-11-20T16:50:23.000Z | 9 | +updatedAt: 2026-11-20T18:00:00.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - enhancement | 11 | - enhancement |
| 12 | - kind::feature | 12 | - kind::feature |
| @@ -59,10 +59,23 @@ tasks: | |||
| 59 | closedAt: 2026-11-20T16:50:23.000Z | 59 | closedAt: 2026-11-20T16:50:23.000Z |
| 60 | - id: 2 | 60 | - id: 2 |
| 61 | title: Docs EN + FR | 61 | title: Docs EN + FR |
| 62 | - state: open | 62 | + state: closed |
| 63 | priority: medium | 63 | priority: medium |
| 64 | author: | 64 | author: |
| 65 | name: k33g | 65 | name: k33g |
| 66 | email: ph.charriere@gmail.com | 66 | email: ph.charriere@gmail.com |
| 67 | createdAt: 2026-11-20T16:50:23.000Z | 67 | createdAt: 2026-11-20T16:50:23.000Z |
| 68 | -comments: [] | 68 | + updatedAt: 2026-11-20T18:00:00.000Z |
| 69 | + closedAt: 2026-11-20T18:00:00.000Z | ||
| 70 | +comments: | ||
| 71 | + - id: 1 | ||
| 72 | + author: | ||
| 73 | + name: k33g | ||
| 74 | + email: ph.charriere@gmail.com | ||
| 75 | + createdAt: 2026-11-20T18:00:00.000Z | ||
| 76 | + body: | | ||
| 77 | + Code and tests merged into main (2f40d78, 9f502b4). Docs EN + FR: new `workspace` keys section in | ||
| 78 | + docs/{en,fr}/reference/configuration.md (confine, repairPaths: the three file-tool repairs and the | ||
| 79 | + bash leading-cd drop, with the notes the model reads) and a "Wrong cd" row in the bash section of | ||
| 80 | + docs/{en,fr}/reference/tools.md. Lfm-coder re-run after the fix: commit 2/2, newapp 1/2, webapi 0/2 | ||
| 81 | + (failures unrelated to cd; see demos/lfm-coder README). Closed. | ||
added
.tickets/issues/0249-pii-protect-personal-data-from-the-model-and-what-mm-writes.yaml +61 -0 | new file mode 100644 | ||
| @@ -0,0 +1,61 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 249 | |
| 3 | +title: "PII: how could mm protect personal data (in the prompt, tool output, history, traces and what the model writes)?" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-20T18:20:00.000Z | |
| 9 | +updatedAt: 2026-11-20T18:20:00.000Z | |
| 10 | +labels: | |
| 11 | + - question | |
| 12 | + - enhancement | |
| 13 | +milestone: v2.0.2 | |
| 14 | +epic: Guardrails | |
| 15 | +related: | |
| 16 | + - 146 | |
| 17 | + - 244 | |
| 18 | +body: | | |
| 19 | + ## Problem | |
| 20 | + | |
| 21 | + Personal data (names, e-mail addresses, phone numbers, postal addresses, | |
| 22 | + IBAN / card numbers, national IDs…) reaches mm from two sides: | |
| 23 | + | |
| 24 | + - **in**: the user's prompt, and what the tools read (a CSV of customers, | |
| 25 | + a log, a database dump, a web page, an MCP tool's answer); | |
| 26 | + - **out**: what the model writes back (an answer, a file, a commit, a | |
| 27 | + test fixture) and what mm stores (sessions, traces). | |
| 28 | + | |
| 29 | + With a remote provider the data leaves the machine. Nothing in mm detects | |
| 30 | + or masks it today. Ticket 244 covers secrets; PII is close but harder: | |
| 31 | + no literal values known in advance, many false positives (any name, any | |
| 32 | + number), and masking may break the task (the user may *want* the model to | |
| 33 | + work on that data). | |
| 34 | + | |
| 35 | + ## Ideas to discuss | |
| 36 | + | |
| 37 | + 1. **Detection**: regex for the structured kinds (e-mail, phone, IBAN with | |
| 38 | + checksum, card with Luhn, IP), a small NER / decision model for names | |
| 39 | + and addresses, or both. | |
| 40 | + 2. **Action**: mask (`[email redacted]`), pseudonymise with a reversible | |
| 41 | + per-session mapping (the model sees `<PERSON_1>`, the user sees the | |
| 42 | + real value in the answer), warn only, or block. | |
| 43 | + 3. **Where**: prompt (preGeneration), tool output (before the model), | |
| 44 | + sessions and traces, the model's writes (write_file / edit_file / | |
| 45 | + answer). | |
| 46 | + 4. **When**: off by default; on for remote providers only? per kind? | |
| 47 | + 5. **How**: built in (Go, shared with 244's redaction), a hook example, a | |
| 48 | + decision model, or the WASM module of ticket 146. | |
| 49 | + | |
| 50 | + ## Outcome expected | |
| 51 | + | |
| 52 | + A decision on the scope (kinds, action, where), the config keys, then | |
| 53 | + implementation tasks. | |
| 54 | + | |
| 55 | + ## Acceptance criteria (once decided) | |
| 56 | + | |
| 57 | + - Tests: a prompt and a tool output holding an e-mail, a phone number and | |
| 58 | + an IBAN reach the model, the session and the trace as decided. | |
| 59 | + - Docs EN + FR. | |
| 60 | +tasks: [] | |
| 61 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 249 | ||
| 3 | +title: "PII: how could mm protect personal data (in the prompt, tool output, history, traces and what the model writes)?" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-20T18:20:00.000Z | ||
| 9 | +updatedAt: 2026-11-20T18:20:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - question | ||
| 12 | + - enhancement | ||
| 13 | +milestone: v2.0.2 | ||
| 14 | +epic: Guardrails | ||
| 15 | +related: | ||
| 16 | + - 146 | ||
| 17 | + - 244 | ||
| 18 | +body: | | ||
| 19 | + ## Problem | ||
| 20 | + | ||
| 21 | + Personal data (names, e-mail addresses, phone numbers, postal addresses, | ||
| 22 | + IBAN / card numbers, national IDs…) reaches mm from two sides: | ||
| 23 | + | ||
| 24 | + - **in**: the user's prompt, and what the tools read (a CSV of customers, | ||
| 25 | + a log, a database dump, a web page, an MCP tool's answer); | ||
| 26 | + - **out**: what the model writes back (an answer, a file, a commit, a | ||
| 27 | + test fixture) and what mm stores (sessions, traces). | ||
| 28 | + | ||
| 29 | + With a remote provider the data leaves the machine. Nothing in mm detects | ||
| 30 | + or masks it today. Ticket 244 covers secrets; PII is close but harder: | ||
| 31 | + no literal values known in advance, many false positives (any name, any | ||
| 32 | + number), and masking may break the task (the user may *want* the model to | ||
| 33 | + work on that data). | ||
| 34 | + | ||
| 35 | + ## Ideas to discuss | ||
| 36 | + | ||
| 37 | + 1. **Detection**: regex for the structured kinds (e-mail, phone, IBAN with | ||
| 38 | + checksum, card with Luhn, IP), a small NER / decision model for names | ||
| 39 | + and addresses, or both. | ||
| 40 | + 2. **Action**: mask (`[email redacted]`), pseudonymise with a reversible | ||
| 41 | + per-session mapping (the model sees `<PERSON_1>`, the user sees the | ||
| 42 | + real value in the answer), warn only, or block. | ||
| 43 | + 3. **Where**: prompt (preGeneration), tool output (before the model), | ||
| 44 | + sessions and traces, the model's writes (write_file / edit_file / | ||
| 45 | + answer). | ||
| 46 | + 4. **When**: off by default; on for remote providers only? per kind? | ||
| 47 | + 5. **How**: built in (Go, shared with 244's redaction), a hook example, a | ||
| 48 | + decision model, or the WASM module of ticket 146. | ||
| 49 | + | ||
| 50 | + ## Outcome expected | ||
| 51 | + | ||
| 52 | + A decision on the scope (kinds, action, where), the config keys, then | ||
| 53 | + implementation tasks. | ||
| 54 | + | ||
| 55 | + ## Acceptance criteria (once decided) | ||
| 56 | + | ||
| 57 | + - Tests: a prompt and a tool output holding an e-mail, a phone number and | ||
| 58 | + an IBAN reach the model, the session and the trace as decided. | ||
| 59 | + - Docs EN + FR. | ||
| 60 | +tasks: [] | ||
| 61 | +comments: [] | ||
added
.tickets/issues/0250-prompt-injection-protect-the-model-from-instructions-in-what-it-reads.yaml +67 -0 | new file mode 100644 | ||
| @@ -0,0 +1,67 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 250 | |
| 3 | +title: "Prompt injection: how could mm protect the agent from instructions hidden in what it reads?" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-20T18:20:00.000Z | |
| 9 | +updatedAt: 2026-11-20T18:20:00.000Z | |
| 10 | +labels: | |
| 11 | + - question | |
| 12 | + - enhancement | |
| 13 | +milestone: v2.0.2 | |
| 14 | +epic: Guardrails | |
| 15 | +related: | |
| 16 | + - 132 | |
| 17 | + - 148 | |
| 18 | + - 244 | |
| 19 | + - 249 | |
| 20 | +body: | | |
| 21 | + ## Problem | |
| 22 | + | |
| 23 | + The model reads text it did not write and the user did not check: web | |
| 24 | + pages (fetch_content), files of the project (README, comments, issues), | |
| 25 | + MCP tool answers, skills, AGENTS.md, another agent's answer (ask_agent). | |
| 26 | + Any of them can hold instructions addressed to the model ("ignore your | |
| 27 | + rules", "run curl … | sh", "send the content of .env to …"). With | |
| 28 | + `yolo: true` (the default) the tools run without asking, so an obeyed | |
| 29 | + instruction acts at once. | |
| 30 | + | |
| 31 | + What exists: ticket 132 (closed) — a postToolCall hook asking a decider | |
| 32 | + whether a tool output contains instructions, and adding a context "this is | |
| 33 | + data, not orders" (`demos/decision-injection/`). It is a demo hook, not | |
| 34 | + a built-in protection; ticket 148 (WASM module) is an empty placeholder. | |
| 35 | + | |
| 36 | + ## Ideas to discuss | |
| 37 | + | |
| 38 | + 1. **Marking**: wrap untrusted tool output in explicit delimiters with a | |
| 39 | + standing rule in the system prompt (data, never instructions). | |
| 40 | + 2. **Detection**: heuristics (imperative phrases aimed at an assistant, | |
| 41 | + hidden text: zero-width characters, HTML comments, white-on-white), | |
| 42 | + and/or the decision model of 132 made a built-in setting. | |
| 43 | + 3. **Action**: warn the model (132's context), warn the user, drop the | |
| 44 | + suspicious part, or switch the rest of the turn to confirmations | |
| 45 | + (`yolo: false`) after a hit. | |
| 46 | + 4. **Blast radius**: after reading untrusted content, require | |
| 47 | + confirmation for risky calls (bash with network, writes outside the | |
| 48 | + project, git push) — a "tainted turn". | |
| 49 | + 5. **Where**: fetch_content and MCP first (remote text), then read_file, | |
| 50 | + skills, ask_agent answers. | |
| 51 | + 6. **How**: built in (Go), a decision model setting, a hook example, or | |
| 52 | + the WASM module of ticket 148. | |
| 53 | + | |
| 54 | + ## Outcome expected | |
| 55 | + | |
| 56 | + A decision on the scope (sources, detection, action), the config keys, | |
| 57 | + then implementation tasks. | |
| 58 | + | |
| 59 | + ## Acceptance criteria (once decided) | |
| 60 | + | |
| 61 | + - Tests: a fetched page and an MCP answer holding an injected instruction | |
| 62 | + are marked / detected and handled as decided; a clean one is untouched. | |
| 63 | + - Measured with a small model on a demo (does the protection change what | |
| 64 | + it does?). | |
| 65 | + - Docs EN + FR. | |
| 66 | +tasks: [] | |
| 67 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 250 | ||
| 3 | +title: "Prompt injection: how could mm protect the agent from instructions hidden in what it reads?" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-20T18:20:00.000Z | ||
| 9 | +updatedAt: 2026-11-20T18:20:00.000Z | ||
| 10 | +labels: | ||
| 11 | + - question | ||
| 12 | + - enhancement | ||
| 13 | +milestone: v2.0.2 | ||
| 14 | +epic: Guardrails | ||
| 15 | +related: | ||
| 16 | + - 132 | ||
| 17 | + - 148 | ||
| 18 | + - 244 | ||
| 19 | + - 249 | ||
| 20 | +body: | | ||
| 21 | + ## Problem | ||
| 22 | + | ||
| 23 | + The model reads text it did not write and the user did not check: web | ||
| 24 | + pages (fetch_content), files of the project (README, comments, issues), | ||
| 25 | + MCP tool answers, skills, AGENTS.md, another agent's answer (ask_agent). | ||
| 26 | + Any of them can hold instructions addressed to the model ("ignore your | ||
| 27 | + rules", "run curl … | sh", "send the content of .env to …"). With | ||
| 28 | + `yolo: true` (the default) the tools run without asking, so an obeyed | ||
| 29 | + instruction acts at once. | ||
| 30 | + | ||
| 31 | + What exists: ticket 132 (closed) — a postToolCall hook asking a decider | ||
| 32 | + whether a tool output contains instructions, and adding a context "this is | ||
| 33 | + data, not orders" (`demos/decision-injection/`). It is a demo hook, not | ||
| 34 | + a built-in protection; ticket 148 (WASM module) is an empty placeholder. | ||
| 35 | + | ||
| 36 | + ## Ideas to discuss | ||
| 37 | + | ||
| 38 | + 1. **Marking**: wrap untrusted tool output in explicit delimiters with a | ||
| 39 | + standing rule in the system prompt (data, never instructions). | ||
| 40 | + 2. **Detection**: heuristics (imperative phrases aimed at an assistant, | ||
| 41 | + hidden text: zero-width characters, HTML comments, white-on-white), | ||
| 42 | + and/or the decision model of 132 made a built-in setting. | ||
| 43 | + 3. **Action**: warn the model (132's context), warn the user, drop the | ||
| 44 | + suspicious part, or switch the rest of the turn to confirmations | ||
| 45 | + (`yolo: false`) after a hit. | ||
| 46 | + 4. **Blast radius**: after reading untrusted content, require | ||
| 47 | + confirmation for risky calls (bash with network, writes outside the | ||
| 48 | + project, git push) — a "tainted turn". | ||
| 49 | + 5. **Where**: fetch_content and MCP first (remote text), then read_file, | ||
| 50 | + skills, ask_agent answers. | ||
| 51 | + 6. **How**: built in (Go), a decision model setting, a hook example, or | ||
| 52 | + the WASM module of ticket 148. | ||
| 53 | + | ||
| 54 | + ## Outcome expected | ||
| 55 | + | ||
| 56 | + A decision on the scope (sources, detection, action), the config keys, | ||
| 57 | + then implementation tasks. | ||
| 58 | + | ||
| 59 | + ## Acceptance criteria (once decided) | ||
| 60 | + | ||
| 61 | + - Tests: a fetched page and an MCP answer holding an injected instruction | ||
| 62 | + are marked / detected and handled as decided; a clean one is untouched. | ||
| 63 | + - Measured with a small model on a demo (does the protection change what | ||
| 64 | + it does?). | ||
| 65 | + - Docs EN + FR. | ||
| 66 | +tasks: [] | ||
| 67 | +comments: [] | ||
modified
.tickets/milestones.yaml +1 -1 | @@ -39,7 +39,7 @@ milestones: | ||
| 39 | 39 | state: closed |
| 40 | 40 | dueOn: 2026-10-26 |
| 41 | 41 | - title: v2.0.0 |
| 42 | - state: open | |
| 42 | + state: closed | |
| 43 | 43 | dueOn: 2026-11-29 |
| 44 | 44 | - title: v1.0.2 |
| 45 | 45 | state: closed |
| @@ -39,7 +39,7 @@ milestones: | |||
| 39 | state: closed | 39 | state: closed |
| 40 | dueOn: 2026-10-26 | 40 | dueOn: 2026-10-26 |
| 41 | - title: v2.0.0 | 41 | - title: v2.0.0 |
| 42 | - state: open | 42 | + state: closed |
| 43 | dueOn: 2026-11-29 | 43 | dueOn: 2026-11-29 |
| 44 | - title: v1.0.2 | 44 | - title: v1.0.2 |
| 45 | state: closed | 45 | state: closed |
modified
INSTALL.LINUX.md +1 -1 | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | |
| 3 | 3 | ```bash |
| 4 | 4 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases |
| 5 | -VERSION=1.1.1 | |
| 5 | +VERSION=2.0.0 | |
| 6 | 6 | case "$(uname -m)" in |
| 7 | 7 | x86_64) ARCH=amd64 ;; |
| 8 | 8 | aarch64|arm64) ARCH=arm64 ;; |
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | ```bash | 3 | ```bash |
| 4 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases | 4 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases |
| 5 | -VERSION=1.1.1 | 5 | +VERSION=2.0.0 |
| 6 | case "$(uname -m)" in | 6 | case "$(uname -m)" in |
| 7 | x86_64) ARCH=amd64 ;; | 7 | x86_64) ARCH=amd64 ;; |
| 8 | aarch64|arm64) ARCH=arm64 ;; | 8 | aarch64|arm64) ARCH=arm64 ;; |
modified
INSTALL.MACOS.md +4 -4 | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | |
| 3 | 3 | Short version: |
| 4 | 4 | ```bash |
| 5 | -VERSION=1.1.1 | |
| 5 | +VERSION=2.0.0 | |
| 6 | 6 | curl -fsSLO "https://rickub.com/bots-garden/mini-me/releases/download/v${VERSION}/mm-${VERSION}-darwin-arm64" |
| 7 | 7 | chmod +x ./mm-${VERSION}-darwin-arm64 |
| 8 | 8 | sudo rm -f /usr/local/bin/mm |
| @@ -14,7 +14,7 @@ From v1.0.5, the macOS binary is signed with a Developer ID and notarized by App | ||
| 14 | 14 | |
| 15 | 15 | ```bash |
| 16 | 16 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases |
| 17 | -VERSION=1.1.1 | |
| 17 | +VERSION=2.0.0 | |
| 18 | 18 | curl -fsSLO "https://rickub.com/bots-garden/mini-me/releases/download/v${VERSION}/mm-${VERSION}-darwin-arm64" |
| 19 | 19 | |
| 20 | 20 | # optional: check the download against the release's checksums |
| @@ -34,8 +34,8 @@ mm --version | ||
| 34 | 34 | The signature check should print: |
| 35 | 35 | |
| 36 | 36 | ``` |
| 37 | -./mm-1.1.1-darwin-arm64: valid on disk | |
| 38 | -./mm-1.1.1-darwin-arm64: satisfies its Designated Requirement | |
| 37 | +./mm-2.0.0-darwin-arm64: valid on disk | |
| 38 | +./mm-2.0.0-darwin-arm64: satisfies its Designated Requirement | |
| 39 | 39 | Identifier=com.bots-garden.mm |
| 40 | 40 | Authority=Developer ID Application: Philippe Charriere (SNLLBZP9V9) |
| 41 | 41 | TeamIdentifier=SNLLBZP9V9 |
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | Short version: | 3 | Short version: |
| 4 | ```bash | 4 | ```bash |
| 5 | -VERSION=1.1.1 | 5 | +VERSION=2.0.0 |
| 6 | curl -fsSLO "https://rickub.com/bots-garden/mini-me/releases/download/v${VERSION}/mm-${VERSION}-darwin-arm64" | 6 | curl -fsSLO "https://rickub.com/bots-garden/mini-me/releases/download/v${VERSION}/mm-${VERSION}-darwin-arm64" |
| 7 | chmod +x ./mm-${VERSION}-darwin-arm64 | 7 | chmod +x ./mm-${VERSION}-darwin-arm64 |
| 8 | sudo rm -f /usr/local/bin/mm | 8 | sudo rm -f /usr/local/bin/mm |
| @@ -14,7 +14,7 @@ From v1.0.5, the macOS binary is signed with a Developer ID and notarized by App | |||
| 14 | 14 | ||
| 15 | ```bash | 15 | ```bash |
| 16 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases | 16 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases |
| 17 | -VERSION=1.1.1 | 17 | +VERSION=2.0.0 |
| 18 | curl -fsSLO "https://rickub.com/bots-garden/mini-me/releases/download/v${VERSION}/mm-${VERSION}-darwin-arm64" | 18 | curl -fsSLO "https://rickub.com/bots-garden/mini-me/releases/download/v${VERSION}/mm-${VERSION}-darwin-arm64" |
| 19 | 19 | ||
| 20 | # optional: check the download against the release's checksums | 20 | # optional: check the download against the release's checksums |
| @@ -34,8 +34,8 @@ mm --version | |||
| 34 | The signature check should print: | 34 | The signature check should print: |
| 35 | 35 | ||
| 36 | ``` | 36 | ``` |
| 37 | -./mm-1.1.1-darwin-arm64: valid on disk | 37 | +./mm-2.0.0-darwin-arm64: valid on disk |
| 38 | -./mm-1.1.1-darwin-arm64: satisfies its Designated Requirement | 38 | +./mm-2.0.0-darwin-arm64: satisfies its Designated Requirement |
| 39 | Identifier=com.bots-garden.mm | 39 | Identifier=com.bots-garden.mm |
| 40 | Authority=Developer ID Application: Philippe Charriere (SNLLBZP9V9) | 40 | Authority=Developer ID Application: Philippe Charriere (SNLLBZP9V9) |
| 41 | TeamIdentifier=SNLLBZP9V9 | 41 | TeamIdentifier=SNLLBZP9V9 |
modified
INSTALL.WINDOWS.md +1 -1 | @@ -4,7 +4,7 @@ In PowerShell (no administrator rights needed): | ||
| 4 | 4 | |
| 5 | 5 | ```powershell |
| 6 | 6 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases |
| 7 | -$Version = "1.1.1" | |
| 7 | +$Version = "2.0.0" | |
| 8 | 8 | $Arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "amd64" } |
| 9 | 9 | $Asset = "mm-$Version-windows-$Arch.exe" |
| 10 | 10 | $Base = "https://rickub.com/bots-garden/mini-me/releases/download/v$Version" |
| @@ -4,7 +4,7 @@ In PowerShell (no administrator rights needed): | |||
| 4 | 4 | ||
| 5 | ```powershell | 5 | ```powershell |
| 6 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases | 6 | # download the binary release in https://rickub.com/bots-garden/mini-me/releases |
| 7 | -$Version = "1.1.1" | 7 | +$Version = "2.0.0" |
| 8 | $Arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "amd64" } | 8 | $Arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "amd64" } |
| 9 | $Asset = "mm-$Version-windows-$Arch.exe" | 9 | $Asset = "mm-$Version-windows-$Arch.exe" |
| 10 | $Base = "https://rickub.com/bots-garden/mini-me/releases/download/v$Version" | 10 | $Base = "https://rickub.com/bots-garden/mini-me/releases/download/v$Version" |
modified
README.md +1 -1 | @@ -171,7 +171,7 @@ The `demos/` directory holds ready-made set-ups (most with a README explaining h | ||
| 171 | 171 | | `demos/gemini-style/` | the same idea with Gemini CLI's system prompt (Research → Strategy → Execution, Directives vs Inquiries, Context Efficiency), adapted to mm and to Gemma 4 26B-A4B on llmman; reads `GEMINI.md`; measured results | |
| 172 | 172 | | `demos/gemma-coder/` | a Go specialist for vibe coding on the same model as `gemini-style` (Gemma 4 26B-A4B, thinking on, gopls for `lsp`, `yolo: true`): writes the code and its tests, validates with `go build`/`go test`, commits without asking back; diagrams of the loop and of the settings chosen; measured 16/18 on nine Go cases | |
| 173 | 173 | | `demos/muse-coder/` | the Swift counterpart of `gemma-coder` on Muse-Glimmer 30B (`reasoning_strength: high`, sourcekit-lsp for `lsp`, `yolo: true`, SwiftPM + Swift Testing): measured 17/18 on nine Swift cases, the real binary run on fresh input; `lsp rename` only works across files after a build (measured), and `medium` reasoning scored 2/6 against 5/6 for `high` on the long cases | |
| 174 | -| `demos/lfm-coder/` | a Go coder on LiquidAI LFM2.5-24B-A2B (llama.cpp, always reasons, gopls for `lsp`, `yolo: true`) whose silent failures are caught by four Python hooks: wrong absolute paths repaired, malformed `edit_file` calls fixed, `go test -timeout`, `go vet` after each edit and "no test yet" notes, an `ask_user` reminder next to each question; measured 17/18 on nine Go cases and `ask_user` 3/3 on an under-specified request (0/5 with the rule in the prompt only); the config lives in `.mm/` | | |
| 174 | +| `demos/lfm-coder/` | a Go coder on LiquidAI LFM2.5-24B-A2B (llama.cpp, always reasons, gopls for `lsp`, `yolo: true`) whose silent failures were first caught by four Python hooks (measured 17/18 on nine Go cases, `ask_user` 3/3 on an under-specified request, 0/5 with the rule in the prompt only), now replaced by mm v2.0.0's settings: `workspace`, `bashBackground`, `lsp.diagnosticsAfterEdit` / `AfterRead`, `turnReminder`; the config lives in `.mm/` | | |
| 175 | 175 | | `demos/codex-style/` | the same idea with Codex CLI's default instructions (preambles, plans, ambition vs. precision, final-answer format), adapted to mm and to gpt-oss 20B (harmony format, `reasoning_effort`, `model_identity`) on llmman; measured results | |
| 176 | 176 | | `demos/news-roundup/` | a press-review agent: DuckDuckGo News through a small MCP server (Python standard library), Qwen3.5 9B on llmman, ready-made citations so no article is invented, measured results | |
| 177 | 177 | | `demos/project-wizard/` | the interactive prompts (`ask_user`) in a small agent: a four-question form (text, two choices, several choices), then a yes/no confirmation carrying the plan before any file is written; Qwen3.5 9B on llmman, measured results | |
| @@ -171,7 +171,7 @@ The `demos/` directory holds ready-made set-ups (most with a README explaining h | |||
| 171 | | `demos/gemini-style/` | the same idea with Gemini CLI's system prompt (Research → Strategy → Execution, Directives vs Inquiries, Context Efficiency), adapted to mm and to Gemma 4 26B-A4B on llmman; reads `GEMINI.md`; measured results | | 171 | | `demos/gemini-style/` | the same idea with Gemini CLI's system prompt (Research → Strategy → Execution, Directives vs Inquiries, Context Efficiency), adapted to mm and to Gemma 4 26B-A4B on llmman; reads `GEMINI.md`; measured results | |
| 172 | | `demos/gemma-coder/` | a Go specialist for vibe coding on the same model as `gemini-style` (Gemma 4 26B-A4B, thinking on, gopls for `lsp`, `yolo: true`): writes the code and its tests, validates with `go build`/`go test`, commits without asking back; diagrams of the loop and of the settings chosen; measured 16/18 on nine Go cases | | 172 | | `demos/gemma-coder/` | a Go specialist for vibe coding on the same model as `gemini-style` (Gemma 4 26B-A4B, thinking on, gopls for `lsp`, `yolo: true`): writes the code and its tests, validates with `go build`/`go test`, commits without asking back; diagrams of the loop and of the settings chosen; measured 16/18 on nine Go cases | |
| 173 | | `demos/muse-coder/` | the Swift counterpart of `gemma-coder` on Muse-Glimmer 30B (`reasoning_strength: high`, sourcekit-lsp for `lsp`, `yolo: true`, SwiftPM + Swift Testing): measured 17/18 on nine Swift cases, the real binary run on fresh input; `lsp rename` only works across files after a build (measured), and `medium` reasoning scored 2/6 against 5/6 for `high` on the long cases | | 173 | | `demos/muse-coder/` | the Swift counterpart of `gemma-coder` on Muse-Glimmer 30B (`reasoning_strength: high`, sourcekit-lsp for `lsp`, `yolo: true`, SwiftPM + Swift Testing): measured 17/18 on nine Swift cases, the real binary run on fresh input; `lsp rename` only works across files after a build (measured), and `medium` reasoning scored 2/6 against 5/6 for `high` on the long cases | |
| 174 | -| `demos/lfm-coder/` | a Go coder on LiquidAI LFM2.5-24B-A2B (llama.cpp, always reasons, gopls for `lsp`, `yolo: true`) whose silent failures are caught by four Python hooks: wrong absolute paths repaired, malformed `edit_file` calls fixed, `go test -timeout`, `go vet` after each edit and "no test yet" notes, an `ask_user` reminder next to each question; measured 17/18 on nine Go cases and `ask_user` 3/3 on an under-specified request (0/5 with the rule in the prompt only); the config lives in `.mm/` | | 174 | +| `demos/lfm-coder/` | a Go coder on LiquidAI LFM2.5-24B-A2B (llama.cpp, always reasons, gopls for `lsp`, `yolo: true`) whose silent failures were first caught by four Python hooks (measured 17/18 on nine Go cases, `ask_user` 3/3 on an under-specified request, 0/5 with the rule in the prompt only), now replaced by mm v2.0.0's settings: `workspace`, `bashBackground`, `lsp.diagnosticsAfterEdit` / `AfterRead`, `turnReminder`; the config lives in `.mm/` | |
| 175 | | `demos/codex-style/` | the same idea with Codex CLI's default instructions (preambles, plans, ambition vs. precision, final-answer format), adapted to mm and to gpt-oss 20B (harmony format, `reasoning_effort`, `model_identity`) on llmman; measured results | | 175 | | `demos/codex-style/` | the same idea with Codex CLI's default instructions (preambles, plans, ambition vs. precision, final-answer format), adapted to mm and to gpt-oss 20B (harmony format, `reasoning_effort`, `model_identity`) on llmman; measured results | |
| 176 | | `demos/news-roundup/` | a press-review agent: DuckDuckGo News through a small MCP server (Python standard library), Qwen3.5 9B on llmman, ready-made citations so no article is invented, measured results | | 176 | | `demos/news-roundup/` | a press-review agent: DuckDuckGo News through a small MCP server (Python standard library), Qwen3.5 9B on llmman, ready-made citations so no article is invented, measured results | |
| 177 | | `demos/project-wizard/` | the interactive prompts (`ask_user`) in a small agent: a four-question form (text, two choices, several choices), then a yes/no confirmation carrying the plan before any file is written; Qwen3.5 9B on llmman, measured results | | 177 | | `demos/project-wizard/` | the interactive prompts (`ask_user`) in a small agent: a four-question form (text, two choices, several choices), then a yes/no confirmation carrying the plan before any file is written; Qwen3.5 9B on llmman, measured results | |
modified
check-wasm-hardened-runtime.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demo.acp.sdk/kotlin/gradlew +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demo.acp.sdk/nodejs-sdk/test/fake-mm.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/agents-md-file/project/greet.sh +0 -0 | old mode 100755 | ||
| new mode 100644 |
| old mode 100755 | |||
| new mode 100644 |
modified
demos/decision-ask-check/hooks/answer-check.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/decision-commands/hooks/triage.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/decision-injection/hooks/injection-check.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/decision-tool-errors/hooks/failure-hint.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/decision-tool-errors/playground/deploy.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/declared-tools/scripts/bump.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/declared-tools/scripts/logs.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/declared-tools/scripts/release.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/declared-tools/scripts/slow.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/dev.team/start-zed.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/docs-search/check-tutorials.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/dungeon/guard.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/dungeon/new-game.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/dungeon/roll.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/dungeon/sheet.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/hooks/hooks/add-context.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/hooks/hooks/audit.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/hooks/hooks/bash-guard.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/hooks/hooks/no-secrets.js +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/learning-rust/start-zed.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/learning-rust/stop-zed.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/lfm-coder/README.en.md +1 -1 | @@ -27,7 +27,7 @@ Rules in the system prompt did not stop any of these. Four **hooks** (Python) tu | ||
| 27 | 27 | llama serve -hf ggml-org/LFM2.5-24B-A2B-GGUF:Q8_0 --ctx-size 131072 # port 9931 (mm's llamacpp default) |
| 28 | 28 | go install golang.org/x/tools/gopls@latest # the lsp tool |
| 29 | 29 | npm install -g typescript # lsp for .js/.ts: TypeScript 7's `tsc --lsp` (TS 5/6: typescript-language-server, commented in agent.yaml) |
| 30 | -go build -o mm . # at the repository root, branch feature/guardrails (v2.0.0) | |
| 30 | +go build -o mm . # at the repository root (mm v2.0.0 or later) | |
| 31 | 31 | ``` |
| 32 | 32 | |
| 33 | 33 | - **Context size:** start the server with a large `--ctx-size`. `mm init` found this model served with `--ctx-size 4096`. That is unusable for a coding agent: the system prompt and the tool list alone take about 4k tokens. The model accepts 131,072. |
| @@ -27,7 +27,7 @@ Rules in the system prompt did not stop any of these. Four **hooks** (Python) tu | |||
| 27 | llama serve -hf ggml-org/LFM2.5-24B-A2B-GGUF:Q8_0 --ctx-size 131072 # port 9931 (mm's llamacpp default) | 27 | llama serve -hf ggml-org/LFM2.5-24B-A2B-GGUF:Q8_0 --ctx-size 131072 # port 9931 (mm's llamacpp default) |
| 28 | go install golang.org/x/tools/gopls@latest # the lsp tool | 28 | go install golang.org/x/tools/gopls@latest # the lsp tool |
| 29 | npm install -g typescript # lsp for .js/.ts: TypeScript 7's `tsc --lsp` (TS 5/6: typescript-language-server, commented in agent.yaml) | 29 | npm install -g typescript # lsp for .js/.ts: TypeScript 7's `tsc --lsp` (TS 5/6: typescript-language-server, commented in agent.yaml) |
| 30 | -go build -o mm . # at the repository root, branch feature/guardrails (v2.0.0) | 30 | +go build -o mm . # at the repository root (mm v2.0.0 or later) |
| 31 | ``` | 31 | ``` |
| 32 | 32 | ||
| 33 | - **Context size:** start the server with a large `--ctx-size`. `mm init` found this model served with `--ctx-size 4096`. That is unusable for a coding agent: the system prompt and the tool list alone take about 4k tokens. The model accepts 131,072. | 33 | - **Context size:** start the server with a large `--ctx-size`. `mm init` found this model served with `--ctx-size 4096`. That is unusable for a coding agent: the system prompt and the tool list alone take about 4k tokens. The model accepts 131,072. |
modified
demos/lfm-coder/README.fr.md +1 -1 | @@ -27,7 +27,7 @@ Les règles du prompt système n'ont empêché aucun de ces échecs. Quatre **ho | ||
| 27 | 27 | llama serve -hf ggml-org/LFM2.5-24B-A2B-GGUF:Q8_0 --ctx-size 131072 # port 9931 (défaut llamacpp de mm) |
| 28 | 28 | go install golang.org/x/tools/gopls@latest # l'outil lsp |
| 29 | 29 | npm install -g typescript # lsp pour .js/.ts : le `tsc --lsp` de TypeScript 7 (TS 5/6 : typescript-language-server, en commentaire dans agent.yaml) |
| 30 | -go build -o mm . # à la racine du dépôt, branche feature/guardrails (v2.0.0) | |
| 30 | +go build -o mm . # à la racine du dépôt (mm v2.0.0 ou plus récent) | |
| 31 | 31 | ``` |
| 32 | 32 | |
| 33 | 33 | - **Taille du contexte :** lancez le serveur avec un grand `--ctx-size`. `mm init` a trouvé ce modèle servi avec `--ctx-size 4096`. C'est inutilisable pour un agent de code : le prompt système et la liste des outils prennent déjà environ 4k tokens. Le modèle accepte 131 072. |
| @@ -27,7 +27,7 @@ Les règles du prompt système n'ont empêché aucun de ces échecs. Quatre **ho | |||
| 27 | llama serve -hf ggml-org/LFM2.5-24B-A2B-GGUF:Q8_0 --ctx-size 131072 # port 9931 (défaut llamacpp de mm) | 27 | llama serve -hf ggml-org/LFM2.5-24B-A2B-GGUF:Q8_0 --ctx-size 131072 # port 9931 (défaut llamacpp de mm) |
| 28 | go install golang.org/x/tools/gopls@latest # l'outil lsp | 28 | go install golang.org/x/tools/gopls@latest # l'outil lsp |
| 29 | npm install -g typescript # lsp pour .js/.ts : le `tsc --lsp` de TypeScript 7 (TS 5/6 : typescript-language-server, en commentaire dans agent.yaml) | 29 | npm install -g typescript # lsp pour .js/.ts : le `tsc --lsp` de TypeScript 7 (TS 5/6 : typescript-language-server, en commentaire dans agent.yaml) |
| 30 | -go build -o mm . # à la racine du dépôt, branche feature/guardrails (v2.0.0) | 30 | +go build -o mm . # à la racine du dépôt (mm v2.0.0 ou plus récent) |
| 31 | ``` | 31 | ``` |
| 32 | 32 | ||
| 33 | - **Taille du contexte :** lancez le serveur avec un grand `--ctx-size`. `mm init` a trouvé ce modèle servi avec `--ctx-size 4096`. C'est inutilisable pour un agent de code : le prompt système et la liste des outils prennent déjà environ 4k tokens. Le modèle accepte 131 072. | 33 | - **Taille du contexte :** lancez le serveur avec un grand `--ctx-size`. `mm init` a trouvé ce modèle servi avec `--ctx-size 4096`. C'est inutilisable pour un agent de code : le prompt système et la liste des outils prennent déjà environ 4k tokens. Le modèle accepte 131 072. |
modified
demos/little-coder/skills/go-htmx-app/starter/check.sh +0 -0 | old mode 100755 | ||
| new mode 100644 |
| old mode 100755 | |||
| new mode 100644 |
modified
demos/mellum2/reglages.fr.md +1 -1 | @@ -38,7 +38,7 @@ Les clés de la section 4 ont été ajoutées. | ||
| 38 | 38 | |
| 39 | 39 | ## 4. Les garde-fous de mm v2.0.0 |
| 40 | 40 | |
| 41 | -La branche `feature/guardrails` de mm (jalon v2.0.0) ajoute des réglages qui évitent les échecs silencieux des petits modèles. **Il faut un mm compilé depuis cette branche** (`go build -o mm .` à la racine du dépôt) : un mm plus ancien ignore ces clés sans rien dire. | |
| 41 | +mm v2.0.0 ajoute des réglages qui évitent les échecs silencieux des petits modèles. **Il faut mm v2.0.0 ou plus récent** : un mm plus ancien ignore ces clés sans rien dire. | |
| 42 | 42 | |
| 43 | 43 | | Réglage | Valeur | Ce qu'il fait | Pourquoi ici | |
| 44 | 44 | | --- | --- | --- | --- | |
| @@ -38,7 +38,7 @@ Les clés de la section 4 ont été ajoutées. | |||
| 38 | 38 | ||
| 39 | ## 4. Les garde-fous de mm v2.0.0 | 39 | ## 4. Les garde-fous de mm v2.0.0 |
| 40 | 40 | ||
| 41 | -La branche `feature/guardrails` de mm (jalon v2.0.0) ajoute des réglages qui évitent les échecs silencieux des petits modèles. **Il faut un mm compilé depuis cette branche** (`go build -o mm .` à la racine du dépôt) : un mm plus ancien ignore ces clés sans rien dire. | 41 | +mm v2.0.0 ajoute des réglages qui évitent les échecs silencieux des petits modèles. **Il faut mm v2.0.0 ou plus récent** : un mm plus ancien ignore ces clés sans rien dire. |
| 42 | 42 | ||
| 43 | | Réglage | Valeur | Ce qu'il fait | Pourquoi ici | | 43 | | Réglage | Valeur | Ce qu'il fait | Pourquoi ici | |
| 44 | | --- | --- | --- | --- | | 44 | | --- | --- | --- | --- | |
modified
demos/mellum2/settings.en.md +1 -1 | @@ -38,7 +38,7 @@ The keys of section 4 were added. | ||
| 38 | 38 | |
| 39 | 39 | ## 4. mm v2.0.0's guardrails |
| 40 | 40 | |
| 41 | -The `feature/guardrails` branch of mm (milestone v2.0.0) adds settings that prevent small models' silent failures. **They need an mm built from that branch** (`go build -o mm .` at the repository root): an older mm ignores these keys silently. | |
| 41 | +mm v2.0.0 adds settings that prevent small models' silent failures. **They need mm v2.0.0 or later**: an older mm ignores these keys silently. | |
| 42 | 42 | |
| 43 | 43 | | Setting | Value | What it does | Why here | |
| 44 | 44 | | --- | --- | --- | --- | |
| @@ -38,7 +38,7 @@ The keys of section 4 were added. | |||
| 38 | 38 | ||
| 39 | ## 4. mm v2.0.0's guardrails | 39 | ## 4. mm v2.0.0's guardrails |
| 40 | 40 | ||
| 41 | -The `feature/guardrails` branch of mm (milestone v2.0.0) adds settings that prevent small models' silent failures. **They need an mm built from that branch** (`go build -o mm .` at the repository root): an older mm ignores these keys silently. | 41 | +mm v2.0.0 adds settings that prevent small models' silent failures. **They need mm v2.0.0 or later**: an older mm ignores these keys silently. |
| 42 | 42 | ||
| 43 | | Setting | Value | What it does | Why here | | 43 | | Setting | Value | What it does | Why here | |
| 44 | | --- | --- | --- | --- | | 44 | | --- | --- | --- | --- | |
modified
demos/memory-search/reset.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/olala-mini/reglages.fr.md +1 -1 | @@ -92,7 +92,7 @@ mm ajoute ce texte à la question, sous la ligne `[context added by a hook]`. La | ||
| 92 | 92 | |
| 93 | 93 | ## 7. Les garde-fous de mm v2.0.0 |
| 94 | 94 | |
| 95 | -La branche `feature/guardrails` de mm (jalon v2.0.0) ajoute des réglages qui évitent les échecs silencieux des petits modèles. `agent.yaml` en utilise quatre. **Il faut un mm compilé depuis cette branche** (`go build -o mm .` à la racine du dépôt) : un mm plus ancien ignore ces clés sans rien dire. | |
| 95 | +mm v2.0.0 ajoute des réglages qui évitent les échecs silencieux des petits modèles. `agent.yaml` en utilise quatre. **Il faut mm v2.0.0 ou plus récent** : un mm plus ancien ignore ces clés sans rien dire. | |
| 96 | 96 | |
| 97 | 97 | | Réglage | Valeur | Ce qu'il fait | Pourquoi ici | |
| 98 | 98 | | --- | --- | --- | --- | |
| @@ -92,7 +92,7 @@ mm ajoute ce texte à la question, sous la ligne `[context added by a hook]`. La | |||
| 92 | 92 | ||
| 93 | ## 7. Les garde-fous de mm v2.0.0 | 93 | ## 7. Les garde-fous de mm v2.0.0 |
| 94 | 94 | ||
| 95 | -La branche `feature/guardrails` de mm (jalon v2.0.0) ajoute des réglages qui évitent les échecs silencieux des petits modèles. `agent.yaml` en utilise quatre. **Il faut un mm compilé depuis cette branche** (`go build -o mm .` à la racine du dépôt) : un mm plus ancien ignore ces clés sans rien dire. | 95 | +mm v2.0.0 ajoute des réglages qui évitent les échecs silencieux des petits modèles. `agent.yaml` en utilise quatre. **Il faut mm v2.0.0 ou plus récent** : un mm plus ancien ignore ces clés sans rien dire. |
| 96 | 96 | ||
| 97 | | Réglage | Valeur | Ce qu'il fait | Pourquoi ici | | 97 | | Réglage | Valeur | Ce qu'il fait | Pourquoi ici | |
| 98 | | --- | --- | --- | --- | | 98 | | --- | --- | --- | --- | |
modified
demos/olala-mini/settings.en.md +1 -1 | @@ -92,7 +92,7 @@ mm appends this text to the question, under the line `[context added by a hook]` | ||
| 92 | 92 | |
| 93 | 93 | ## 7. mm v2.0.0's guardrails |
| 94 | 94 | |
| 95 | -The `feature/guardrails` branch of mm (milestone v2.0.0) adds settings that prevent small models' silent failures. `agent.yaml` uses four of them. **They need an mm built from that branch** (`go build -o mm .` at the repository root): an older mm ignores these keys silently. | |
| 95 | +mm v2.0.0 adds settings that prevent small models' silent failures. `agent.yaml` uses four of them. **They need mm v2.0.0 or later**: an older mm ignores these keys silently. | |
| 96 | 96 | |
| 97 | 97 | | Setting | Value | What it does | Why here | |
| 98 | 98 | | --- | --- | --- | --- | |
| @@ -92,7 +92,7 @@ mm appends this text to the question, under the line `[context added by a hook]` | |||
| 92 | 92 | ||
| 93 | ## 7. mm v2.0.0's guardrails | 93 | ## 7. mm v2.0.0's guardrails |
| 94 | 94 | ||
| 95 | -The `feature/guardrails` branch of mm (milestone v2.0.0) adds settings that prevent small models' silent failures. `agent.yaml` uses four of them. **They need an mm built from that branch** (`go build -o mm .` at the repository root): an older mm ignores these keys silently. | 95 | +mm v2.0.0 adds settings that prevent small models' silent failures. `agent.yaml` uses four of them. **They need mm v2.0.0 or later**: an older mm ignores these keys silently. |
| 96 | 96 | ||
| 97 | | Setting | Value | What it does | Why here | | 97 | | Setting | Value | What it does | Why here | |
| 98 | | --- | --- | --- | --- | | 98 | | --- | --- | --- | --- | |
modified
demos/plans/reset.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/struggle-signals/run-all.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/team/starter/check.sh +0 -0 | old mode 100755 | ||
| new mode 100644 |
| old mode 100755 | |||
| new mode 100644 |
modified
demos/wasm-hooks/build.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-hooks/hooks/audit.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-hooks/hooks/bash_guard.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-hooks/hooks/no_secrets.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-tools/build.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-tools/tools/read_note.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-tools/tools/save_note.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-tools/tools/search_notes.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
demos/wasm-tools/tools/word_stats.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
docs/en/explanation/struggling-models.md +4 -0 | @@ -20,6 +20,10 @@ Struggle signals (ticket 153) make the same detections visible to the **user**, | ||
| 20 | 20 | |
| 21 | 21 | **A cancelled turn is not a struggle.** Esc, Ctrl-C or `/abort` end a turn on the user's request; reporting `stalled` or `max turns` then would blame the model for the user's choice. |
| 22 | 22 | |
| 23 | +**Silent failures, handed back once** (v2.0.0). Measuring small coding models (`demos/lfm-coder`, `demos/olala-mini`, `demos/mellum2`) showed failures that ended a turn without a word: a reply cut mid-reasoning at the token limit, a reasoning that repeated one sentence until the limit, a final answer saying "Done." after the last edit had been refused. mm knows each of these for certain — the server's finish reason, the stream it reads, the outcome of its own tools — so it does not guess from the answer's wording. Where the model can still recover, the reply is handed back **once** with a note saying what happened; if the same thing happens again, the turn ends and a signal says why, naming the setting to change when there is one. | |
| 24 | + | |
| 25 | +**Repairs before refusals.** Some mistakes can only mean one thing: `"true"` for `true`, `old_text` for `old`, a path with a directory missing. mm repairs them and says so in the tool output, rather than refusing and hoping the model fixes them — refusals that quote the right path were measured to make a small model loop. See [tools](../reference/tools.md#arguments-that-do-not-match-a-tools-schema) and [`workspace`](../reference/configuration.md#workspace-keys). | |
| 26 | + | |
| 23 | 27 | ## Rejected alternatives |
| 24 | 28 | |
| 25 | 29 | - **The header.** Considered; the user chose the status bar, which keeps the header for who is answering and how full the context is. |
| @@ -20,6 +20,10 @@ Struggle signals (ticket 153) make the same detections visible to the **user**, | |||
| 20 | 20 | ||
| 21 | **A cancelled turn is not a struggle.** Esc, Ctrl-C or `/abort` end a turn on the user's request; reporting `stalled` or `max turns` then would blame the model for the user's choice. | 21 | **A cancelled turn is not a struggle.** Esc, Ctrl-C or `/abort` end a turn on the user's request; reporting `stalled` or `max turns` then would blame the model for the user's choice. |
| 22 | 22 | ||
| 23 | +**Silent failures, handed back once** (v2.0.0). Measuring small coding models (`demos/lfm-coder`, `demos/olala-mini`, `demos/mellum2`) showed failures that ended a turn without a word: a reply cut mid-reasoning at the token limit, a reasoning that repeated one sentence until the limit, a final answer saying "Done." after the last edit had been refused. mm knows each of these for certain — the server's finish reason, the stream it reads, the outcome of its own tools — so it does not guess from the answer's wording. Where the model can still recover, the reply is handed back **once** with a note saying what happened; if the same thing happens again, the turn ends and a signal says why, naming the setting to change when there is one. | ||
| 24 | + | ||
| 25 | +**Repairs before refusals.** Some mistakes can only mean one thing: `"true"` for `true`, `old_text` for `old`, a path with a directory missing. mm repairs them and says so in the tool output, rather than refusing and hoping the model fixes them — refusals that quote the right path were measured to make a small model loop. See [tools](../reference/tools.md#arguments-that-do-not-match-a-tools-schema) and [`workspace`](../reference/configuration.md#workspace-keys). | ||
| 26 | + | ||
| 23 | ## Rejected alternatives | 27 | ## Rejected alternatives |
| 24 | 28 | ||
| 25 | - **The header.** Considered; the user chose the status bar, which keeps the header for who is answering and how full the context is. | 29 | - **The header.** Considered; the user chose the status bar, which keeps the header for who is answering and how full the context is. |
modified
docs/en/how-to/run-with-llama-cpp.md +2 -0 | @@ -30,6 +30,8 @@ This guide shows how to point `mm` at a `llama-server` you start yourself. It as | ||
| 30 | 30 | - **`autoPull: true`.** llama-server cannot download a model over its API: it serves the one it was started with. `-hf <repo>:<quant>` (step 1) is what downloads it. With `autoPull` on and a `model:` the server does not list, mm says so at start-up and goes on. See [`autoPull`](../reference/configuration.md). |
| 31 | 31 | - **Server started with `--api-key`.** Export the key in `LLAMA_API_KEY` (the provider's default variable) or name another variable under `apiKeyEnv`. The key itself never goes in the YAML. |
| 32 | 32 | - **Keep `agent.yaml` and switch provider for one run.** `AGENT_PROVIDER=llamacpp ./mm` works as long as `agent.yaml` leaves `baseUrl` empty; an explicit DMR URL in the file would still be honoured and point at port 12434. |
| 33 | +- **Router mode (several models behind one port, such as the Llama app).** A plain `/props` then describes the router, not a model. mm asks `/props?model=<model>` first, so the banner shows the model's window and no false "no chat template" warning; `mm init` reads the model's facts the same way. | |
| 34 | +- **The served window is smaller than `contextWindow`.** mm warns at start-up (`contextWindow N is larger than the M tokens the server serves …`); restart llama-server with a larger `--ctx-size`, or lower `contextWindow`. | |
| 33 | 35 | - **The server hides `/props`** (a reverse proxy, for instance). Set `contextWindow` to the value you started the server with, otherwise the banner shows `ctx: unknown`. |
| 34 | 36 | |
| 35 | 37 | ## See also |
| @@ -30,6 +30,8 @@ This guide shows how to point `mm` at a `llama-server` you start yourself. It as | |||
| 30 | - **`autoPull: true`.** llama-server cannot download a model over its API: it serves the one it was started with. `-hf <repo>:<quant>` (step 1) is what downloads it. With `autoPull` on and a `model:` the server does not list, mm says so at start-up and goes on. See [`autoPull`](../reference/configuration.md). | 30 | - **`autoPull: true`.** llama-server cannot download a model over its API: it serves the one it was started with. `-hf <repo>:<quant>` (step 1) is what downloads it. With `autoPull` on and a `model:` the server does not list, mm says so at start-up and goes on. See [`autoPull`](../reference/configuration.md). |
| 31 | - **Server started with `--api-key`.** Export the key in `LLAMA_API_KEY` (the provider's default variable) or name another variable under `apiKeyEnv`. The key itself never goes in the YAML. | 31 | - **Server started with `--api-key`.** Export the key in `LLAMA_API_KEY` (the provider's default variable) or name another variable under `apiKeyEnv`. The key itself never goes in the YAML. |
| 32 | - **Keep `agent.yaml` and switch provider for one run.** `AGENT_PROVIDER=llamacpp ./mm` works as long as `agent.yaml` leaves `baseUrl` empty; an explicit DMR URL in the file would still be honoured and point at port 12434. | 32 | - **Keep `agent.yaml` and switch provider for one run.** `AGENT_PROVIDER=llamacpp ./mm` works as long as `agent.yaml` leaves `baseUrl` empty; an explicit DMR URL in the file would still be honoured and point at port 12434. |
| 33 | +- **Router mode (several models behind one port, such as the Llama app).** A plain `/props` then describes the router, not a model. mm asks `/props?model=<model>` first, so the banner shows the model's window and no false "no chat template" warning; `mm init` reads the model's facts the same way. | ||
| 34 | +- **The served window is smaller than `contextWindow`.** mm warns at start-up (`contextWindow N is larger than the M tokens the server serves …`); restart llama-server with a larger `--ctx-size`, or lower `contextWindow`. | ||
| 33 | - **The server hides `/props`** (a reverse proxy, for instance). Set `contextWindow` to the value you started the server with, otherwise the banner shows `ctx: unknown`. | 35 | - **The server hides `/props`** (a reverse proxy, for instance). Set `contextWindow` to the value you started the server with, otherwise the banner shows `ctx: unknown`. |
| 34 | 36 | ||
| 35 | ## See also | 37 | ## See also |
modified
docs/en/reference/cli.md +11 -3 | @@ -69,7 +69,7 @@ The relative paths a configuration file names (`mmConfigs`, `skillRouting.decide | ||
| 69 | 69 | | Directly inside a folder named `.mm` (`<project>/.mm/agent.yaml`) | The parent of that folder: `<project>` | |
| 70 | 70 | | Anywhere else (`<dir>/agent.yaml`) | The file's own directory: `<dir>` | |
| 71 | 71 | |
| 72 | -The rule depends on where the file is, not on how it was found: `-config`, `AGENT_CONFIG` and the lookup above give the same result. `skillsDir` in terminal mode, `sessions.dir` and `agentsMd.path` are relative to the working directory, whatever the file's location. | |
| 72 | +The rule depends on where the file is, not on how it was found: `-config`, `AGENT_CONFIG` and the lookup above give the same result. `skillsDir` in terminal mode, `sessions.dir` and `agentsMd.path` are relative to the working directory, whatever the file's location — except that in terminal mode a relative `skillsDir` holding no skill there falls back to the same path from the base directory when that one holds skills (see [`skillsDir`](configuration.md#top-level-keys)). | |
| 73 | 73 | |
| 74 | 74 | ## Environment variables |
| 75 | 75 | |
| @@ -184,6 +184,10 @@ Signs that the model is struggling, shown to the user apart from the answer (tic | ||
| 184 | 184 | |--------|-------|------| |
| 185 | 185 | | `loop: <tool> ×N` | ⚠ | the loop detector flagged the same call with the same result N times in a row; the model is told to change approach | |
| 186 | 186 | | `stuck: <tool> ×N` | ✖ | the model ignored that advice: the loop detector stopped the turn | |
| 187 | +| `looped — handed back 1/1` | ⚠ | the same sentence (12 characters or more) came 20 times in a row in the model's reasoning or answer while it streamed: that model call is cut and handed back once, with a note telling the model it was repeating itself | | |
| 188 | +| `looped — stopped` | ✖ | it looped again: the turn ends with `the model looped: "…" repeated N times in a row — stopped; ask again, or lower the temperature / reasoning effort` | | |
| 189 | +| `reasoning cut at the limit 1/1` | ⚠ | a reply ended on the token limit with reasoning only — no text, no tool call; it is handed back once, asking the model to act now | | |
| 190 | +| `answer after a failed <tool> — handed back 1/1` | ⚠ | the model gave its final answer while the turn's last `write_file` / `edit_file` had failed; the answer is handed back once with a note: the file was not changed, fix the call or say so | | |
| 187 | 191 | | `failing: N tool calls in a row` | ⚠ | the last N tool calls (N ≥ 3) all failed, with different inputs — a non-zero exit, a refused edit, a missing file, a rejected permission…; reported again at each new failure, reset by the first success; the model is not told | |
| 188 | 192 | | `broken tool call (cut off\|invalid JSON) n/m` | ⚠ | a tool call's arguments did not parse; the call is handed back to the model (attempt n of m) | |
| 189 | 193 | | `stream cut — retried` | ⚠ | the server broke the stream; this model call is retried once | |
| @@ -192,6 +196,10 @@ Signs that the model is struggling, shown to the user apart from the answer (tic | ||
| 192 | 196 | | `max turns reached` | ✖ | `maxTurns` model ↔ tools round trips without a final answer | |
| 193 | 197 | | `unknown tool: <name>` | ✖ | the model called a tool that does not exist | |
| 194 | 198 | | `empty answer` | ⚠ | the turn ended without text and without a tool call | |
| 199 | +| `empty answer — the model reasoned until the limit (<key> N): raise sampling.<key>, or lower its reasoning effort` | ✖ | the reply handed back above was cut at the limit again | | |
| 200 | +| `the model looped: the same line repeated N times — the answer is cut there` | ✖ | the final answer holds 20 identical lines or more in a row: they are collapsed to one line plus `[… the same line repeated N more times — removed by mm]`, in the answer and in the history; ` (it ran until the limit: <key>)` is added when it also hit the token limit | | |
| 201 | +| `answer cut at the limit (<key> N): raise sampling.<key>, or ask for a shorter answer` | ⚠ | the answer stopped mid-way at the token limit (`max_tokens` or `max_completion_tokens`) | | |
| 202 | +| `the last <tool> failed (…) — that change was not made, whatever the answer says` | ✖ | the turn's last `write_file` / `edit_file` failed, with no successful one after it — still so after the hand-back above | | |
| 195 | 203 | | `context N% full` | ⚠ | the last model call read 80 % of the context window or more (window known only) | |
| 196 | 204 | |
| 197 | 205 | A turn cancelled by the user reports nothing. `demos/struggle-signals/` triggers every signal with a fake model. |
| @@ -312,8 +320,8 @@ An agent file outside the workspace only gives a warning: see [when the agent fi | ||
| 312 | 320 | |
| 313 | 321 | | Code | Cause | |
| 314 | 322 | |------|-------| |
| 315 | -| 0 | `/quit`, `Ctrl+C` at the prompt, end of stdin, or the ACP client closed the connection. `--ask`: the agent answered. | | |
| 316 | -| 1 | More than one positional argument; configuration load error; engine initialisation error (unknown provider, required key not set). `--ask`: no question, no context, unknown agent, the agent failed or gave no answer. | | |
| 323 | +| 0 | `/quit`, `Ctrl+C` at the prompt, end of stdin, or the ACP client closed the connection. `--ask`: the agent answered. `-p`: the turn ended with an answer (a turn stopped on purpose by a `preGeneration` hook counts as one). | | |
| 324 | +| 1 | More than one positional argument; configuration load error; engine initialisation error (unknown provider, required key not set). `--ask`: no question, no context, unknown agent, the agent failed or gave no answer. `-p`: the generation failed — watchdog stall, max turns reached, provider or tool error; the error is still printed on stdout. Before v2.0.0, `-p` exited 0 in that case. | | |
| 317 | 325 | | 130 | `--ask`: interrupted (`Ctrl+C`, or the parent process is gone). | |
| 318 | 326 | |
| 319 | 327 | ## Build and install |
| @@ -69,7 +69,7 @@ The relative paths a configuration file names (`mmConfigs`, `skillRouting.decide | |||
| 69 | | Directly inside a folder named `.mm` (`<project>/.mm/agent.yaml`) | The parent of that folder: `<project>` | | 69 | | Directly inside a folder named `.mm` (`<project>/.mm/agent.yaml`) | The parent of that folder: `<project>` | |
| 70 | | Anywhere else (`<dir>/agent.yaml`) | The file's own directory: `<dir>` | | 70 | | Anywhere else (`<dir>/agent.yaml`) | The file's own directory: `<dir>` | |
| 71 | 71 | ||
| 72 | -The rule depends on where the file is, not on how it was found: `-config`, `AGENT_CONFIG` and the lookup above give the same result. `skillsDir` in terminal mode, `sessions.dir` and `agentsMd.path` are relative to the working directory, whatever the file's location. | 72 | +The rule depends on where the file is, not on how it was found: `-config`, `AGENT_CONFIG` and the lookup above give the same result. `skillsDir` in terminal mode, `sessions.dir` and `agentsMd.path` are relative to the working directory, whatever the file's location — except that in terminal mode a relative `skillsDir` holding no skill there falls back to the same path from the base directory when that one holds skills (see [`skillsDir`](configuration.md#top-level-keys)). |
| 73 | 73 | ||
| 74 | ## Environment variables | 74 | ## Environment variables |
| 75 | 75 | ||
| @@ -184,6 +184,10 @@ Signs that the model is struggling, shown to the user apart from the answer (tic | |||
| 184 | |--------|-------|------| | 184 | |--------|-------|------| |
| 185 | | `loop: <tool> ×N` | ⚠ | the loop detector flagged the same call with the same result N times in a row; the model is told to change approach | | 185 | | `loop: <tool> ×N` | ⚠ | the loop detector flagged the same call with the same result N times in a row; the model is told to change approach | |
| 186 | | `stuck: <tool> ×N` | ✖ | the model ignored that advice: the loop detector stopped the turn | | 186 | | `stuck: <tool> ×N` | ✖ | the model ignored that advice: the loop detector stopped the turn | |
| 187 | +| `looped — handed back 1/1` | ⚠ | the same sentence (12 characters or more) came 20 times in a row in the model's reasoning or answer while it streamed: that model call is cut and handed back once, with a note telling the model it was repeating itself | | ||
| 188 | +| `looped — stopped` | ✖ | it looped again: the turn ends with `the model looped: "…" repeated N times in a row — stopped; ask again, or lower the temperature / reasoning effort` | | ||
| 189 | +| `reasoning cut at the limit 1/1` | ⚠ | a reply ended on the token limit with reasoning only — no text, no tool call; it is handed back once, asking the model to act now | | ||
| 190 | +| `answer after a failed <tool> — handed back 1/1` | ⚠ | the model gave its final answer while the turn's last `write_file` / `edit_file` had failed; the answer is handed back once with a note: the file was not changed, fix the call or say so | | ||
| 187 | | `failing: N tool calls in a row` | ⚠ | the last N tool calls (N ≥ 3) all failed, with different inputs — a non-zero exit, a refused edit, a missing file, a rejected permission…; reported again at each new failure, reset by the first success; the model is not told | | 191 | | `failing: N tool calls in a row` | ⚠ | the last N tool calls (N ≥ 3) all failed, with different inputs — a non-zero exit, a refused edit, a missing file, a rejected permission…; reported again at each new failure, reset by the first success; the model is not told | |
| 188 | | `broken tool call (cut off\|invalid JSON) n/m` | ⚠ | a tool call's arguments did not parse; the call is handed back to the model (attempt n of m) | | 192 | | `broken tool call (cut off\|invalid JSON) n/m` | ⚠ | a tool call's arguments did not parse; the call is handed back to the model (attempt n of m) | |
| 189 | | `stream cut — retried` | ⚠ | the server broke the stream; this model call is retried once | | 193 | | `stream cut — retried` | ⚠ | the server broke the stream; this model call is retried once | |
| @@ -192,6 +196,10 @@ Signs that the model is struggling, shown to the user apart from the answer (tic | |||
| 192 | | `max turns reached` | ✖ | `maxTurns` model ↔ tools round trips without a final answer | | 196 | | `max turns reached` | ✖ | `maxTurns` model ↔ tools round trips without a final answer | |
| 193 | | `unknown tool: <name>` | ✖ | the model called a tool that does not exist | | 197 | | `unknown tool: <name>` | ✖ | the model called a tool that does not exist | |
| 194 | | `empty answer` | ⚠ | the turn ended without text and without a tool call | | 198 | | `empty answer` | ⚠ | the turn ended without text and without a tool call | |
| 199 | +| `empty answer — the model reasoned until the limit (<key> N): raise sampling.<key>, or lower its reasoning effort` | ✖ | the reply handed back above was cut at the limit again | | ||
| 200 | +| `the model looped: the same line repeated N times — the answer is cut there` | ✖ | the final answer holds 20 identical lines or more in a row: they are collapsed to one line plus `[… the same line repeated N more times — removed by mm]`, in the answer and in the history; ` (it ran until the limit: <key>)` is added when it also hit the token limit | | ||
| 201 | +| `answer cut at the limit (<key> N): raise sampling.<key>, or ask for a shorter answer` | ⚠ | the answer stopped mid-way at the token limit (`max_tokens` or `max_completion_tokens`) | | ||
| 202 | +| `the last <tool> failed (…) — that change was not made, whatever the answer says` | ✖ | the turn's last `write_file` / `edit_file` failed, with no successful one after it — still so after the hand-back above | | ||
| 195 | | `context N% full` | ⚠ | the last model call read 80 % of the context window or more (window known only) | | 203 | | `context N% full` | ⚠ | the last model call read 80 % of the context window or more (window known only) | |
| 196 | 204 | ||
| 197 | A turn cancelled by the user reports nothing. `demos/struggle-signals/` triggers every signal with a fake model. | 205 | A turn cancelled by the user reports nothing. `demos/struggle-signals/` triggers every signal with a fake model. |
| @@ -312,8 +320,8 @@ An agent file outside the workspace only gives a warning: see [when the agent fi | |||
| 312 | 320 | ||
| 313 | | Code | Cause | | 321 | | Code | Cause | |
| 314 | |------|-------| | 322 | |------|-------| |
| 315 | -| 0 | `/quit`, `Ctrl+C` at the prompt, end of stdin, or the ACP client closed the connection. `--ask`: the agent answered. | | 323 | +| 0 | `/quit`, `Ctrl+C` at the prompt, end of stdin, or the ACP client closed the connection. `--ask`: the agent answered. `-p`: the turn ended with an answer (a turn stopped on purpose by a `preGeneration` hook counts as one). | |
| 316 | -| 1 | More than one positional argument; configuration load error; engine initialisation error (unknown provider, required key not set). `--ask`: no question, no context, unknown agent, the agent failed or gave no answer. | | 324 | +| 1 | More than one positional argument; configuration load error; engine initialisation error (unknown provider, required key not set). `--ask`: no question, no context, unknown agent, the agent failed or gave no answer. `-p`: the generation failed — watchdog stall, max turns reached, provider or tool error; the error is still printed on stdout. Before v2.0.0, `-p` exited 0 in that case. | |
| 317 | | 130 | `--ask`: interrupted (`Ctrl+C`, or the parent process is gone). | | 325 | | 130 | `--ask`: interrupted (`Ctrl+C`, or the parent process is gone). | |
| 318 | 326 | ||
| 319 | ## Build and install | 327 | ## Build and install |
modified
docs/en/reference/configuration.md +34 -2 | @@ -14,7 +14,7 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | ||
| 14 | 14 | | `fallback` | string or absent | absent (provider default) | Endpoint used when `baseUrl` does not answer `/models` within 2 s. Absent = provider default; `""` = no fallback. | |
| 15 | 15 | | `apiKeyEnv` | string | `""` (provider default) | Name of the environment variable holding the API key. | |
| 16 | 16 | | `toolFormat` | string | `openai` | How the tools reach the model. `openai`: the OpenAI API's `tools` field, as every server expects. `xml_tools`: for a model whose chat template reads its tools from an `xml_tools` variable and writes its calls as `<tool_call>` text (SmolLM3) — mm sends the tools in `chat_template_kwargs.xml_tools` (no `tools` field), writes earlier calls into the history as `<tool_call>` text, and turns the answer's `<tool_call>` blocks into tool calls, streamed or not. Any other value: `toolFormat must be openai or xml_tools`. See [How to give tools to a model whose template reads `xml_tools`](../how-to/use-a-model-that-reads-xml-tools.md). | |
| 17 | -| `contextWindow` | int | `0` | Tokens the server serves. `0` = ask the server, else unknown. Must be ≥ 0. | | |
| 17 | +| `contextWindow` | int | `0` | Tokens the server serves. `0` = ask the server, else unknown. Must be ≥ 0. With a llama.cpp server in router mode (several models behind one port, such as the Llama app), mm asks `/props?model=<model>`, then `/props`. A value larger than the window the server reports gives a start-up warning: `contextWindow 32768 is larger than the 4096 tokens the server serves — requests fail once the conversation passes 4096: restart the server with a larger window (--ctx-size), or lower contextWindow`. A request the server then refuses as too long (llama.cpp `exceed_context_size_error`, OpenAI `context_length_exceeded`) is not retried, and the error gives the sizes: `the request (4704 tokens) is larger than the server's window (4096) — …`. | | |
| 18 | 18 | | `maxOutput` | int | `16000` | Maximum characters a tool returns to the model; longer output keeps its head and up to 2000 characters of tail. Must be > 0. | |
| 19 | 19 | | `maxTurns` | int | `10` | Maximum model ↔ tools round trips per question. Must be > 0. | |
| 20 | 20 | | `previewLines` | int | `20` | Lines of a command's output echoed to the terminal. `0` disables the echo. Must be ≥ 0. | |
| @@ -23,11 +23,12 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | ||
| 23 | 23 | | `showThinking` | bool | `true` | Show what a thinking model reasons about before it answers. Only the display is optional: the reasoning is always read off the wire, because it is what keeps the watchdog alive while the model thinks. See [Thinking models](../explanation/thinking-models.md). | |
| 24 | 24 | | `showCompletionTime` | bool | `true` | Window mode: show `⏱ <duration>` in the status bar, ticking while a turn or an `/ask` runs, then the final duration until the next question. `false` keeps the status bar to its counters. See [the window mode](cli.md). | |
| 25 | 25 | | `system` | string | built-in prompt | The system prompt, first message of every history. | |
| 26 | +| `turnReminder` | string | `""` | A text appended to every question the model reads, under a `[reminder]` line, after the `preGeneration` hooks, in every front end (line mode, window, `-p`, editor). Kept in the history, like a hook's context; a question recalled with ↑ comes back without it. For a small model, a rule placed next to the question is followed more often than the same rule in the system prompt: measured in `demos/lfm-coder`, a rule asking it to call `ask_user` when a decision is missing was followed 0 times out of 5 from the system prompt, and 3 out of 3 next to the question with the exact call shape. Empty = none. | | |
| 26 | 27 | | `structuredOutput` | string (Go declarations) | `""` | The shape every answer must follow, as JSON: Go `type` declarations and one `var` naming the root of the answer. See [`structuredOutput`](#structuredoutput) below. Empty = free-text answers. Incompatible with any declared tool. | |
| 27 | 28 | | `decision` | mapping or absent | absent | Makes the agent a **decider**: its model is a decision model served by `POST /v1/systemone`, and every message it receives is answered with these questions. See [`decision`](#decision) below. Providers `llamacpp`, `llmman`, `ollama`, `openai` only. | |
| 28 | 29 | | `skillRouting` | mapping | `minConfidence: 0.6`, `timeout: 2s`, no `decider` | Before each turn, ask a decider which skill applies, and append the `$skill` line when it is confident enough. See [`skillRouting`](#skillrouting) below. Off without a `decider`. | |
| 29 | 30 | | `toolRouting` | mapping | `dropBelow: 0.2`, `timeout: 2s`, no `decider` | Before each turn, ask a decider which tool groups the request needs, and leave out of the request the groups it rules out. See [`toolRouting`](#toolrouting) below. Off without a `decider`. | |
| 30 | -| `skillsDir` | string | `skills` | Directory holding the skills, as `<name>.md` files or `<name>/SKILL.md` directories. A relative path is resolved from the directory `mm` is started in (terminal mode, or ACP mode without a config file), or next to the config file (ACP mode with one); the banner warns with the absolute path when nothing is found there. | | |
| 31 | +| `skillsDir` | string | `skills` | Directory holding the skills, as `<name>.md` files or `<name>/SKILL.md` directories. A relative path is resolved from the directory `mm` is started in (terminal mode, or ACP mode without a config file), or next to the config file (ACP mode with one); the banner warns with the absolute path when nothing is found there. In terminal mode, when that directory holds no skill and the same relative path next to the configuration file's [base directory](cli.md#base-directory-of-relative-paths) does, that one is used and the banner says `skills: N (from <dir>)`: an agent file kept in one place and named with `-config` from another project keeps its skills. | | |
| 31 | 32 | | `bashTool` | bool | `true` | Declare `bash`. `false` removes it: the model can still read and edit files (`editTools`) and load skills, but never runs a command. Reword a system prompt that still announces a bash tool. | |
| 32 | 33 | | `editTools` | bool | `true` | Declare `read_file`, `write_file`, `edit_file`. `false` leaves `bash` and `read_skill` only. | |
| 33 | 34 | | `fetchContentTool` | bool | `false` | Declare `fetch_content`, which fetches web pages as Markdown. Off by default: it is the only built-in tool that reaches the network. | |
| @@ -40,6 +41,7 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | ||
| 40 | 41 | | `watchdogTimeout` | duration | `20s` | Silence tolerated between two streamed tokens before the connection is declared hung. Doubled for summary requests. | |
| 41 | 42 | | `firstTokenTimeout` | duration | `3m` | Silence tolerated before a model call's first token, while the server reads the prompt (every round trip of a turn has one). Never shorter than `watchdogTimeout`; must be >= 0. With a llama.cpp server (`dmr`, `llamacpp`, `llmman` — whose local GGUF models run in llama-server) mm asks for `return_progress`: each progress report restarts this clock, and the spinner shows `Reading the prompt 12.0k/25.3k tokens`. Ollama and Kronk send no progress: this one wait covers the whole prompt (and the model's loading). On a timeout the watchdog says `no first token from the server after …` (before the first token) or `connection hang detected after …` (after). | |
| 42 | 43 | | `bashTimeout` | duration | `30s` | How long one `bash` command may run before it is killed; the tool then answers `[error: <bashTimeout> timeout exceeded]`. Must be > 0. The watchdog keeps counting while a command runs (ticket 57): a command longer than `watchdogTimeout` ends the turn, so raise both together. | |
| 44 | +| `bashBackground` | string | `report` | What mm does with the processes a `bash` command leaves running in the background (`./server &`). Each command runs in its own process group. `report`: the processes still in the group when the command returns are listed at the end of the tool output — `[still running in the background after this command: 4242 (server). Each bash call is a new shell: …]` — with the advice to stop them in the same command. `stop`: listed too, and stopped at the end of the turn. `allow`: no process group, nothing said (the behaviour before v2.0.0). A `bashTimeout` or a cancellation stops the whole group. Linux and macOS; nothing is reported or stopped on Windows. Must be `report`, `stop` or `allow`. | | |
| 43 | 45 | | `context` | map | see below | Automatic history compression. | |
| 44 | 46 | | `sessions` | map | see below | Persistent, per-project sessions. | |
| 45 | 47 | | `docSearch` | map | see below | BM25 search through the text files of some folders: the `/docs` command and the `search_docs` tool. | |
| @@ -49,6 +51,7 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | ||
| 49 | 51 | | `lsp` | map | see below | Language servers behind the `lsp` tool. No server listed = no tool. | |
| 50 | 52 | | `hooks` | map event → list | none | Commands run before a question reaches the model (`preGeneration`), before and after each tool call (`preToolCall`, `postToolCall`) after the turn (`postGeneration`), and before and after each hand-off to another agent (`preAsk`, `postAsk`); each reads one JSON object on stdin and may answer one on stdout. Entry keys: `command` or `wasm` (a WebAssembly module, with its `read` / `write` folders), `matcher` (tool and agent events only: a tool name, or an agent name), `timeout` (default `10s`), `onError` (`fail` \| `warn` \| `ignore`, default `warn`). See [hooks](hooks.md). | |
| 51 | 53 | | `tools` | list | `[]` | Commands or WebAssembly modules declared as typed tools: each entry a `name`, a `description`, its `parameters`, and a `command` run without a shell or a `wasm` module run in a sandbox. See [`tools` keys](#tools-keys) below and [declared tools](tools.md#declared-tools). | |
| 54 | +| `workspace` | map | both keys `false` | The file tools' and `bash`'s relation to the working directory: repair wrong absolute paths, refuse paths outside it. See [`workspace` keys](#workspace-keys) below. | | |
| 52 | 55 | | `tui` | bool | `false` | Start in the single-window mode without the `-tui` flag. Falls back to the line mode when stdin or stdout is not a terminal; ignored with `-acp`. | |
| 53 | 56 | | `yolo` | bool | `true` | `true`: the tools run without asking. `false`: every call that changes something — `bash`, `write_file`, `edit_file`, `fetch_content` with `output`, `lsp` `rename`, `plan` `create`/`update`/`next`/`delete` — waits for the user's answer in every front end (line mode, window, editor), and so does every MCP tool, whatever `mcp.permissions` says. Answers: allow once, allow this tool for the session, reject this call, never (this tool, for the session). `read_file`, `read_skill`, `fetch_content` without `output` and the `lsp` navigation actions never ask. In `-p` and `mm --ask`, nobody can answer: those calls are rejected. An agent started by `/ask`, `ask_agent` or `mm --ask` runs with `AGENT_YOLO=false` and submits its calls to the asking agent: the `yolo` of its `mmConfigs` entry decides when set, else the asking agent's `yolo`. Overridden by `AGENT_YOLO`. `bashTool`, `editTools`, `fetchContentTool` still decide which tools exist. See [How to confirm tool calls](../how-to/confirm-tool-calls.md). | |
| 54 | 57 | | `permissions` | string | absent | Deprecated, replaced by `yolo`. `ask` = `yolo: false` (and wins over `yolo: true`); `auto` changes nothing. Either value adds a start-up warning. Must be `auto` or `ask`. | |
| @@ -139,6 +142,8 @@ The version is not configurable: `agentInfo.version` is always the binary's, as | ||
| 139 | 142 | | `lsp.servers[].command` | string | — | The executable, looked up on the `PATH` at start-up. Required. Not found: warning, server skipped. | |
| 140 | 143 | | `lsp.servers[].args` | list of strings | `[]` | Its arguments (many servers need `--stdio`). | |
| 141 | 144 | | `lsp.servers[].extensions` | list of strings | — | File extensions it serves, with the dot (`.go`, `.ts`). Required, at least one; matched case-insensitively; an extension may be served by one server only. | |
| 145 | +| `lsp.diagnosticsAfterEdit` | bool | `false` | After a successful `write_file` or `edit_file` on a file a server handles, ask that server for the file's diagnostics and append them to the tool output under `[lsp diagnostics after this change]`. The server is started if needed; it has 8 s to answer, else the note says `not available — <reason>` (the edit itself succeeded). Small models rarely ask for diagnostics themselves: 0 times in 54 runs in `demos/gemma-coder`. | | |
| 146 | +| `lsp.diagnosticsAfterRead` | bool | `false` | After a successful `read_file` of a file a server handles, append that server's diagnostics for the whole file under `[lsp diagnostics for this file, added by mm — not part of its content]`. Once per version of the file (modification time and size): reading it again unchanged, or right after an edit that already brought its diagnostics, asks nothing. Same 8 s budget as `diagnosticsAfterEdit`. | | |
| 142 | 147 | |
| 143 | 148 | ```yaml |
| 144 | 149 | lsp: |
| @@ -192,6 +197,32 @@ tools: | ||
| 192 | 197 | read: [notes] |
| 193 | 198 | ``` |
| 194 | 199 | |
| 200 | +## `workspace` keys | |
| 201 | + | |
| 202 | +Both keys are off by default. They exist for small models that copy the project's absolute path with a directory missing, or invent a root (`/workspace/…`, `/home/user/…`). | |
| 203 | + | |
| 204 | +| Key | Type | Default | Description | | |
| 205 | +|-----|------|---------|-------------| | |
| 206 | +| `confine` | bool | `false` | `read_file`, `write_file`, `edit_file` and `lsp` refuse a path that resolves outside the working directory (symlinks resolved). The refusal is a tool failure the model reads, and it suggests a **relative** path, never the absolute project path: `[<path> is outside the project. Every tool already runs in the project root: use a RELATIVE path, for example "<file name>" — never a path starting with /]`. Applied after `repairPaths`. `bash` is not confined. | | |
| 207 | +| `repairPaths` | bool | `false` | Turn a wrong path into the one the model meant, and tell it. Three repairs, described below. | | |
| 208 | + | |
| 209 | +`repairPaths` does three things: | |
| 210 | + | |
| 211 | +| Where | Path | Becomes | Note added to the tool output | | |
| 212 | +|-------|------|---------|-------------------------------| | |
| 213 | +| `read_file`, `write_file`, `edit_file`, `lsp` | Absolute, outside the working directory, **same tree** (at least two leading components in common with it) | The tail after the shared part, without the directories that belong to the project's own path: `<parent>/main.go` → `main.go` | `[path <path> is outside the project: used <fixed> — use relative paths]` | | |
| 214 | +| same | Absolute, **another tree** (an invented root) | Its longest tail that is an existing file of the project, else its longest tail whose directory exists there (a new file): `/workspace/stats/stats.go` → `stats/stats.go`. No such tail: the path is kept. | same | | |
| 215 | +| same | Relative, starting with the project folder's own name (`olala-mini/script.js` inside `…/olala-mini`) | The path without that first directory, when the path does not exist and the rest does (or, for a new file, when the rest's directory exists and the original's does not). A real sub-folder with the project's name is left alone. | `[path <path> starts with the project folder's own name: used <fixed> — paths are relative to the project root]` | | |
| 216 | +| `bash` | A leading `cd <absolute path> &&` (or `;`), quoted or not | Dropped — the command runs in the project root, where every `bash` command starts — when the directory does not exist, is the project root itself, or is in the same tree as the project but outside it. Several such `cd` in a row are all dropped. Kept: a real directory of another tree (`cd /tmp && …`), a subdirectory of the project, a relative `cd`, a `cd` with nothing after it. | `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]` | | |
| 217 | + | |
| 218 | +The note is written at the start of the tool output, in the terminal, the window and an editor (ACP) alike; the terminal shows the command as it runs, without the dropped `cd`. | |
| 219 | + | |
| 220 | +```yaml | |
| 221 | +workspace: | |
| 222 | + confine: true # read_file, write_file, edit_file and lsp stay inside it | |
| 223 | + repairPaths: true # a wrong absolute path becomes the relative one it meant | |
| 224 | +``` | |
| 225 | + | |
| 195 | 226 | ## Provider defaults |
| 196 | 227 | |
| 197 | 228 | | Provider | `baseUrl` | `fallback` | `apiKeyEnv` | Key required | |
| @@ -454,6 +485,7 @@ Reported on stderr as `[config error: <path>: <message>]`, exit code 1 — in ev | ||
| 454 | 485 | | `permissions must be "auto" or "ask"` | any other value of the deprecated key | |
| 455 | 486 | | `AGENT_YOLO="maybe": must be true or false` | an `AGENT_YOLO` value `strconv.ParseBool` refuses (accepted: `1`, `t`, `true`, `0`, `f`, `false`, any case) | |
| 456 | 487 | | `bashTimeout must be > 0` | zero or negative | |
| 488 | +| `bashBackground must be "report", "stop" or "allow", not "…"` | any other value | | |
| 457 | 489 | | `structuredOutput:<line>:<col>: …` | a declaration the [`structuredOutput`](#structuredoutput) section cannot translate | |
| 458 | 490 | | `structuredOutput: no var declaration: …` | no `var` names the root | |
| 459 | 491 | | `decision.questions: at least one question is needed` | a `decision` block without questions | |
| @@ -14,7 +14,7 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | |||
| 14 | | `fallback` | string or absent | absent (provider default) | Endpoint used when `baseUrl` does not answer `/models` within 2 s. Absent = provider default; `""` = no fallback. | | 14 | | `fallback` | string or absent | absent (provider default) | Endpoint used when `baseUrl` does not answer `/models` within 2 s. Absent = provider default; `""` = no fallback. | |
| 15 | | `apiKeyEnv` | string | `""` (provider default) | Name of the environment variable holding the API key. | | 15 | | `apiKeyEnv` | string | `""` (provider default) | Name of the environment variable holding the API key. | |
| 16 | | `toolFormat` | string | `openai` | How the tools reach the model. `openai`: the OpenAI API's `tools` field, as every server expects. `xml_tools`: for a model whose chat template reads its tools from an `xml_tools` variable and writes its calls as `<tool_call>` text (SmolLM3) — mm sends the tools in `chat_template_kwargs.xml_tools` (no `tools` field), writes earlier calls into the history as `<tool_call>` text, and turns the answer's `<tool_call>` blocks into tool calls, streamed or not. Any other value: `toolFormat must be openai or xml_tools`. See [How to give tools to a model whose template reads `xml_tools`](../how-to/use-a-model-that-reads-xml-tools.md). | | 16 | | `toolFormat` | string | `openai` | How the tools reach the model. `openai`: the OpenAI API's `tools` field, as every server expects. `xml_tools`: for a model whose chat template reads its tools from an `xml_tools` variable and writes its calls as `<tool_call>` text (SmolLM3) — mm sends the tools in `chat_template_kwargs.xml_tools` (no `tools` field), writes earlier calls into the history as `<tool_call>` text, and turns the answer's `<tool_call>` blocks into tool calls, streamed or not. Any other value: `toolFormat must be openai or xml_tools`. See [How to give tools to a model whose template reads `xml_tools`](../how-to/use-a-model-that-reads-xml-tools.md). | |
| 17 | -| `contextWindow` | int | `0` | Tokens the server serves. `0` = ask the server, else unknown. Must be ≥ 0. | | 17 | +| `contextWindow` | int | `0` | Tokens the server serves. `0` = ask the server, else unknown. Must be ≥ 0. With a llama.cpp server in router mode (several models behind one port, such as the Llama app), mm asks `/props?model=<model>`, then `/props`. A value larger than the window the server reports gives a start-up warning: `contextWindow 32768 is larger than the 4096 tokens the server serves — requests fail once the conversation passes 4096: restart the server with a larger window (--ctx-size), or lower contextWindow`. A request the server then refuses as too long (llama.cpp `exceed_context_size_error`, OpenAI `context_length_exceeded`) is not retried, and the error gives the sizes: `the request (4704 tokens) is larger than the server's window (4096) — …`. | |
| 18 | | `maxOutput` | int | `16000` | Maximum characters a tool returns to the model; longer output keeps its head and up to 2000 characters of tail. Must be > 0. | | 18 | | `maxOutput` | int | `16000` | Maximum characters a tool returns to the model; longer output keeps its head and up to 2000 characters of tail. Must be > 0. | |
| 19 | | `maxTurns` | int | `10` | Maximum model ↔ tools round trips per question. Must be > 0. | | 19 | | `maxTurns` | int | `10` | Maximum model ↔ tools round trips per question. Must be > 0. | |
| 20 | | `previewLines` | int | `20` | Lines of a command's output echoed to the terminal. `0` disables the echo. Must be ≥ 0. | | 20 | | `previewLines` | int | `20` | Lines of a command's output echoed to the terminal. `0` disables the echo. Must be ≥ 0. | |
| @@ -23,11 +23,12 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | |||
| 23 | | `showThinking` | bool | `true` | Show what a thinking model reasons about before it answers. Only the display is optional: the reasoning is always read off the wire, because it is what keeps the watchdog alive while the model thinks. See [Thinking models](../explanation/thinking-models.md). | | 23 | | `showThinking` | bool | `true` | Show what a thinking model reasons about before it answers. Only the display is optional: the reasoning is always read off the wire, because it is what keeps the watchdog alive while the model thinks. See [Thinking models](../explanation/thinking-models.md). | |
| 24 | | `showCompletionTime` | bool | `true` | Window mode: show `⏱ <duration>` in the status bar, ticking while a turn or an `/ask` runs, then the final duration until the next question. `false` keeps the status bar to its counters. See [the window mode](cli.md). | | 24 | | `showCompletionTime` | bool | `true` | Window mode: show `⏱ <duration>` in the status bar, ticking while a turn or an `/ask` runs, then the final duration until the next question. `false` keeps the status bar to its counters. See [the window mode](cli.md). | |
| 25 | | `system` | string | built-in prompt | The system prompt, first message of every history. | | 25 | | `system` | string | built-in prompt | The system prompt, first message of every history. | |
| 26 | +| `turnReminder` | string | `""` | A text appended to every question the model reads, under a `[reminder]` line, after the `preGeneration` hooks, in every front end (line mode, window, `-p`, editor). Kept in the history, like a hook's context; a question recalled with ↑ comes back without it. For a small model, a rule placed next to the question is followed more often than the same rule in the system prompt: measured in `demos/lfm-coder`, a rule asking it to call `ask_user` when a decision is missing was followed 0 times out of 5 from the system prompt, and 3 out of 3 next to the question with the exact call shape. Empty = none. | | ||
| 26 | | `structuredOutput` | string (Go declarations) | `""` | The shape every answer must follow, as JSON: Go `type` declarations and one `var` naming the root of the answer. See [`structuredOutput`](#structuredoutput) below. Empty = free-text answers. Incompatible with any declared tool. | | 27 | | `structuredOutput` | string (Go declarations) | `""` | The shape every answer must follow, as JSON: Go `type` declarations and one `var` naming the root of the answer. See [`structuredOutput`](#structuredoutput) below. Empty = free-text answers. Incompatible with any declared tool. | |
| 27 | | `decision` | mapping or absent | absent | Makes the agent a **decider**: its model is a decision model served by `POST /v1/systemone`, and every message it receives is answered with these questions. See [`decision`](#decision) below. Providers `llamacpp`, `llmman`, `ollama`, `openai` only. | | 28 | | `decision` | mapping or absent | absent | Makes the agent a **decider**: its model is a decision model served by `POST /v1/systemone`, and every message it receives is answered with these questions. See [`decision`](#decision) below. Providers `llamacpp`, `llmman`, `ollama`, `openai` only. | |
| 28 | | `skillRouting` | mapping | `minConfidence: 0.6`, `timeout: 2s`, no `decider` | Before each turn, ask a decider which skill applies, and append the `$skill` line when it is confident enough. See [`skillRouting`](#skillrouting) below. Off without a `decider`. | | 29 | | `skillRouting` | mapping | `minConfidence: 0.6`, `timeout: 2s`, no `decider` | Before each turn, ask a decider which skill applies, and append the `$skill` line when it is confident enough. See [`skillRouting`](#skillrouting) below. Off without a `decider`. | |
| 29 | | `toolRouting` | mapping | `dropBelow: 0.2`, `timeout: 2s`, no `decider` | Before each turn, ask a decider which tool groups the request needs, and leave out of the request the groups it rules out. See [`toolRouting`](#toolrouting) below. Off without a `decider`. | | 30 | | `toolRouting` | mapping | `dropBelow: 0.2`, `timeout: 2s`, no `decider` | Before each turn, ask a decider which tool groups the request needs, and leave out of the request the groups it rules out. See [`toolRouting`](#toolrouting) below. Off without a `decider`. | |
| 30 | -| `skillsDir` | string | `skills` | Directory holding the skills, as `<name>.md` files or `<name>/SKILL.md` directories. A relative path is resolved from the directory `mm` is started in (terminal mode, or ACP mode without a config file), or next to the config file (ACP mode with one); the banner warns with the absolute path when nothing is found there. | | 31 | +| `skillsDir` | string | `skills` | Directory holding the skills, as `<name>.md` files or `<name>/SKILL.md` directories. A relative path is resolved from the directory `mm` is started in (terminal mode, or ACP mode without a config file), or next to the config file (ACP mode with one); the banner warns with the absolute path when nothing is found there. In terminal mode, when that directory holds no skill and the same relative path next to the configuration file's [base directory](cli.md#base-directory-of-relative-paths) does, that one is used and the banner says `skills: N (from <dir>)`: an agent file kept in one place and named with `-config` from another project keeps its skills. | |
| 31 | | `bashTool` | bool | `true` | Declare `bash`. `false` removes it: the model can still read and edit files (`editTools`) and load skills, but never runs a command. Reword a system prompt that still announces a bash tool. | | 32 | | `bashTool` | bool | `true` | Declare `bash`. `false` removes it: the model can still read and edit files (`editTools`) and load skills, but never runs a command. Reword a system prompt that still announces a bash tool. | |
| 32 | | `editTools` | bool | `true` | Declare `read_file`, `write_file`, `edit_file`. `false` leaves `bash` and `read_skill` only. | | 33 | | `editTools` | bool | `true` | Declare `read_file`, `write_file`, `edit_file`. `false` leaves `bash` and `read_skill` only. | |
| 33 | | `fetchContentTool` | bool | `false` | Declare `fetch_content`, which fetches web pages as Markdown. Off by default: it is the only built-in tool that reaches the network. | | 34 | | `fetchContentTool` | bool | `false` | Declare `fetch_content`, which fetches web pages as Markdown. Off by default: it is the only built-in tool that reaches the network. | |
| @@ -40,6 +41,7 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | |||
| 40 | | `watchdogTimeout` | duration | `20s` | Silence tolerated between two streamed tokens before the connection is declared hung. Doubled for summary requests. | | 41 | | `watchdogTimeout` | duration | `20s` | Silence tolerated between two streamed tokens before the connection is declared hung. Doubled for summary requests. | |
| 41 | | `firstTokenTimeout` | duration | `3m` | Silence tolerated before a model call's first token, while the server reads the prompt (every round trip of a turn has one). Never shorter than `watchdogTimeout`; must be >= 0. With a llama.cpp server (`dmr`, `llamacpp`, `llmman` — whose local GGUF models run in llama-server) mm asks for `return_progress`: each progress report restarts this clock, and the spinner shows `Reading the prompt 12.0k/25.3k tokens`. Ollama and Kronk send no progress: this one wait covers the whole prompt (and the model's loading). On a timeout the watchdog says `no first token from the server after …` (before the first token) or `connection hang detected after …` (after). | | 42 | | `firstTokenTimeout` | duration | `3m` | Silence tolerated before a model call's first token, while the server reads the prompt (every round trip of a turn has one). Never shorter than `watchdogTimeout`; must be >= 0. With a llama.cpp server (`dmr`, `llamacpp`, `llmman` — whose local GGUF models run in llama-server) mm asks for `return_progress`: each progress report restarts this clock, and the spinner shows `Reading the prompt 12.0k/25.3k tokens`. Ollama and Kronk send no progress: this one wait covers the whole prompt (and the model's loading). On a timeout the watchdog says `no first token from the server after …` (before the first token) or `connection hang detected after …` (after). | |
| 42 | | `bashTimeout` | duration | `30s` | How long one `bash` command may run before it is killed; the tool then answers `[error: <bashTimeout> timeout exceeded]`. Must be > 0. The watchdog keeps counting while a command runs (ticket 57): a command longer than `watchdogTimeout` ends the turn, so raise both together. | | 43 | | `bashTimeout` | duration | `30s` | How long one `bash` command may run before it is killed; the tool then answers `[error: <bashTimeout> timeout exceeded]`. Must be > 0. The watchdog keeps counting while a command runs (ticket 57): a command longer than `watchdogTimeout` ends the turn, so raise both together. | |
| 44 | +| `bashBackground` | string | `report` | What mm does with the processes a `bash` command leaves running in the background (`./server &`). Each command runs in its own process group. `report`: the processes still in the group when the command returns are listed at the end of the tool output — `[still running in the background after this command: 4242 (server). Each bash call is a new shell: …]` — with the advice to stop them in the same command. `stop`: listed too, and stopped at the end of the turn. `allow`: no process group, nothing said (the behaviour before v2.0.0). A `bashTimeout` or a cancellation stops the whole group. Linux and macOS; nothing is reported or stopped on Windows. Must be `report`, `stop` or `allow`. | | ||
| 43 | | `context` | map | see below | Automatic history compression. | | 45 | | `context` | map | see below | Automatic history compression. | |
| 44 | | `sessions` | map | see below | Persistent, per-project sessions. | | 46 | | `sessions` | map | see below | Persistent, per-project sessions. | |
| 45 | | `docSearch` | map | see below | BM25 search through the text files of some folders: the `/docs` command and the `search_docs` tool. | | 47 | | `docSearch` | map | see below | BM25 search through the text files of some folders: the `/docs` command and the `search_docs` tool. | |
| @@ -49,6 +51,7 @@ Where `mm` looks for this file: [Configuration file resolution](cli.md#configura | |||
| 49 | | `lsp` | map | see below | Language servers behind the `lsp` tool. No server listed = no tool. | | 51 | | `lsp` | map | see below | Language servers behind the `lsp` tool. No server listed = no tool. | |
| 50 | | `hooks` | map event → list | none | Commands run before a question reaches the model (`preGeneration`), before and after each tool call (`preToolCall`, `postToolCall`) after the turn (`postGeneration`), and before and after each hand-off to another agent (`preAsk`, `postAsk`); each reads one JSON object on stdin and may answer one on stdout. Entry keys: `command` or `wasm` (a WebAssembly module, with its `read` / `write` folders), `matcher` (tool and agent events only: a tool name, or an agent name), `timeout` (default `10s`), `onError` (`fail` \| `warn` \| `ignore`, default `warn`). See [hooks](hooks.md). | | 52 | | `hooks` | map event → list | none | Commands run before a question reaches the model (`preGeneration`), before and after each tool call (`preToolCall`, `postToolCall`) after the turn (`postGeneration`), and before and after each hand-off to another agent (`preAsk`, `postAsk`); each reads one JSON object on stdin and may answer one on stdout. Entry keys: `command` or `wasm` (a WebAssembly module, with its `read` / `write` folders), `matcher` (tool and agent events only: a tool name, or an agent name), `timeout` (default `10s`), `onError` (`fail` \| `warn` \| `ignore`, default `warn`). See [hooks](hooks.md). | |
| 51 | | `tools` | list | `[]` | Commands or WebAssembly modules declared as typed tools: each entry a `name`, a `description`, its `parameters`, and a `command` run without a shell or a `wasm` module run in a sandbox. See [`tools` keys](#tools-keys) below and [declared tools](tools.md#declared-tools). | | 53 | | `tools` | list | `[]` | Commands or WebAssembly modules declared as typed tools: each entry a `name`, a `description`, its `parameters`, and a `command` run without a shell or a `wasm` module run in a sandbox. See [`tools` keys](#tools-keys) below and [declared tools](tools.md#declared-tools). | |
| 54 | +| `workspace` | map | both keys `false` | The file tools' and `bash`'s relation to the working directory: repair wrong absolute paths, refuse paths outside it. See [`workspace` keys](#workspace-keys) below. | | ||
| 52 | | `tui` | bool | `false` | Start in the single-window mode without the `-tui` flag. Falls back to the line mode when stdin or stdout is not a terminal; ignored with `-acp`. | | 55 | | `tui` | bool | `false` | Start in the single-window mode without the `-tui` flag. Falls back to the line mode when stdin or stdout is not a terminal; ignored with `-acp`. | |
| 53 | | `yolo` | bool | `true` | `true`: the tools run without asking. `false`: every call that changes something — `bash`, `write_file`, `edit_file`, `fetch_content` with `output`, `lsp` `rename`, `plan` `create`/`update`/`next`/`delete` — waits for the user's answer in every front end (line mode, window, editor), and so does every MCP tool, whatever `mcp.permissions` says. Answers: allow once, allow this tool for the session, reject this call, never (this tool, for the session). `read_file`, `read_skill`, `fetch_content` without `output` and the `lsp` navigation actions never ask. In `-p` and `mm --ask`, nobody can answer: those calls are rejected. An agent started by `/ask`, `ask_agent` or `mm --ask` runs with `AGENT_YOLO=false` and submits its calls to the asking agent: the `yolo` of its `mmConfigs` entry decides when set, else the asking agent's `yolo`. Overridden by `AGENT_YOLO`. `bashTool`, `editTools`, `fetchContentTool` still decide which tools exist. See [How to confirm tool calls](../how-to/confirm-tool-calls.md). | | 56 | | `yolo` | bool | `true` | `true`: the tools run without asking. `false`: every call that changes something — `bash`, `write_file`, `edit_file`, `fetch_content` with `output`, `lsp` `rename`, `plan` `create`/`update`/`next`/`delete` — waits for the user's answer in every front end (line mode, window, editor), and so does every MCP tool, whatever `mcp.permissions` says. Answers: allow once, allow this tool for the session, reject this call, never (this tool, for the session). `read_file`, `read_skill`, `fetch_content` without `output` and the `lsp` navigation actions never ask. In `-p` and `mm --ask`, nobody can answer: those calls are rejected. An agent started by `/ask`, `ask_agent` or `mm --ask` runs with `AGENT_YOLO=false` and submits its calls to the asking agent: the `yolo` of its `mmConfigs` entry decides when set, else the asking agent's `yolo`. Overridden by `AGENT_YOLO`. `bashTool`, `editTools`, `fetchContentTool` still decide which tools exist. See [How to confirm tool calls](../how-to/confirm-tool-calls.md). | |
| 54 | | `permissions` | string | absent | Deprecated, replaced by `yolo`. `ask` = `yolo: false` (and wins over `yolo: true`); `auto` changes nothing. Either value adds a start-up warning. Must be `auto` or `ask`. | | 57 | | `permissions` | string | absent | Deprecated, replaced by `yolo`. `ask` = `yolo: false` (and wins over `yolo: true`); `auto` changes nothing. Either value adds a start-up warning. Must be `auto` or `ask`. | |
| @@ -139,6 +142,8 @@ The version is not configurable: `agentInfo.version` is always the binary's, as | |||
| 139 | | `lsp.servers[].command` | string | — | The executable, looked up on the `PATH` at start-up. Required. Not found: warning, server skipped. | | 142 | | `lsp.servers[].command` | string | — | The executable, looked up on the `PATH` at start-up. Required. Not found: warning, server skipped. | |
| 140 | | `lsp.servers[].args` | list of strings | `[]` | Its arguments (many servers need `--stdio`). | | 143 | | `lsp.servers[].args` | list of strings | `[]` | Its arguments (many servers need `--stdio`). | |
| 141 | | `lsp.servers[].extensions` | list of strings | — | File extensions it serves, with the dot (`.go`, `.ts`). Required, at least one; matched case-insensitively; an extension may be served by one server only. | | 144 | | `lsp.servers[].extensions` | list of strings | — | File extensions it serves, with the dot (`.go`, `.ts`). Required, at least one; matched case-insensitively; an extension may be served by one server only. | |
| 145 | +| `lsp.diagnosticsAfterEdit` | bool | `false` | After a successful `write_file` or `edit_file` on a file a server handles, ask that server for the file's diagnostics and append them to the tool output under `[lsp diagnostics after this change]`. The server is started if needed; it has 8 s to answer, else the note says `not available — <reason>` (the edit itself succeeded). Small models rarely ask for diagnostics themselves: 0 times in 54 runs in `demos/gemma-coder`. | | ||
| 146 | +| `lsp.diagnosticsAfterRead` | bool | `false` | After a successful `read_file` of a file a server handles, append that server's diagnostics for the whole file under `[lsp diagnostics for this file, added by mm — not part of its content]`. Once per version of the file (modification time and size): reading it again unchanged, or right after an edit that already brought its diagnostics, asks nothing. Same 8 s budget as `diagnosticsAfterEdit`. | | ||
| 142 | 147 | ||
| 143 | ```yaml | 148 | ```yaml |
| 144 | lsp: | 149 | lsp: |
| @@ -192,6 +197,32 @@ tools: | |||
| 192 | read: [notes] | 197 | read: [notes] |
| 193 | ``` | 198 | ``` |
| 194 | 199 | ||
| 200 | +## `workspace` keys | ||
| 201 | + | ||
| 202 | +Both keys are off by default. They exist for small models that copy the project's absolute path with a directory missing, or invent a root (`/workspace/…`, `/home/user/…`). | ||
| 203 | + | ||
| 204 | +| Key | Type | Default | Description | | ||
| 205 | +|-----|------|---------|-------------| | ||
| 206 | +| `confine` | bool | `false` | `read_file`, `write_file`, `edit_file` and `lsp` refuse a path that resolves outside the working directory (symlinks resolved). The refusal is a tool failure the model reads, and it suggests a **relative** path, never the absolute project path: `[<path> is outside the project. Every tool already runs in the project root: use a RELATIVE path, for example "<file name>" — never a path starting with /]`. Applied after `repairPaths`. `bash` is not confined. | | ||
| 207 | +| `repairPaths` | bool | `false` | Turn a wrong path into the one the model meant, and tell it. Three repairs, described below. | | ||
| 208 | + | ||
| 209 | +`repairPaths` does three things: | ||
| 210 | + | ||
| 211 | +| Where | Path | Becomes | Note added to the tool output | | ||
| 212 | +|-------|------|---------|-------------------------------| | ||
| 213 | +| `read_file`, `write_file`, `edit_file`, `lsp` | Absolute, outside the working directory, **same tree** (at least two leading components in common with it) | The tail after the shared part, without the directories that belong to the project's own path: `<parent>/main.go` → `main.go` | `[path <path> is outside the project: used <fixed> — use relative paths]` | | ||
| 214 | +| same | Absolute, **another tree** (an invented root) | Its longest tail that is an existing file of the project, else its longest tail whose directory exists there (a new file): `/workspace/stats/stats.go` → `stats/stats.go`. No such tail: the path is kept. | same | | ||
| 215 | +| same | Relative, starting with the project folder's own name (`olala-mini/script.js` inside `…/olala-mini`) | The path without that first directory, when the path does not exist and the rest does (or, for a new file, when the rest's directory exists and the original's does not). A real sub-folder with the project's name is left alone. | `[path <path> starts with the project folder's own name: used <fixed> — paths are relative to the project root]` | | ||
| 216 | +| `bash` | A leading `cd <absolute path> &&` (or `;`), quoted or not | Dropped — the command runs in the project root, where every `bash` command starts — when the directory does not exist, is the project root itself, or is in the same tree as the project but outside it. Several such `cd` in a row are all dropped. Kept: a real directory of another tree (`cd /tmp && …`), a subdirectory of the project, a relative `cd`, a `cd` with nothing after it. | `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]` | | ||
| 217 | + | ||
| 218 | +The note is written at the start of the tool output, in the terminal, the window and an editor (ACP) alike; the terminal shows the command as it runs, without the dropped `cd`. | ||
| 219 | + | ||
| 220 | +```yaml | ||
| 221 | +workspace: | ||
| 222 | + confine: true # read_file, write_file, edit_file and lsp stay inside it | ||
| 223 | + repairPaths: true # a wrong absolute path becomes the relative one it meant | ||
| 224 | +``` | ||
| 225 | + | ||
| 195 | ## Provider defaults | 226 | ## Provider defaults |
| 196 | 227 | ||
| 197 | | Provider | `baseUrl` | `fallback` | `apiKeyEnv` | Key required | | 228 | | Provider | `baseUrl` | `fallback` | `apiKeyEnv` | Key required | |
| @@ -454,6 +485,7 @@ Reported on stderr as `[config error: <path>: <message>]`, exit code 1 — in ev | |||
| 454 | | `permissions must be "auto" or "ask"` | any other value of the deprecated key | | 485 | | `permissions must be "auto" or "ask"` | any other value of the deprecated key | |
| 455 | | `AGENT_YOLO="maybe": must be true or false` | an `AGENT_YOLO` value `strconv.ParseBool` refuses (accepted: `1`, `t`, `true`, `0`, `f`, `false`, any case) | | 486 | | `AGENT_YOLO="maybe": must be true or false` | an `AGENT_YOLO` value `strconv.ParseBool` refuses (accepted: `1`, `t`, `true`, `0`, `f`, `false`, any case) | |
| 456 | | `bashTimeout must be > 0` | zero or negative | | 487 | | `bashTimeout must be > 0` | zero or negative | |
| 488 | +| `bashBackground must be "report", "stop" or "allow", not "…"` | any other value | | ||
| 457 | | `structuredOutput:<line>:<col>: …` | a declaration the [`structuredOutput`](#structuredoutput) section cannot translate | | 489 | | `structuredOutput:<line>:<col>: …` | a declaration the [`structuredOutput`](#structuredoutput) section cannot translate | |
| 458 | | `structuredOutput: no var declaration: …` | no `var` names the root | | 490 | | `structuredOutput: no var declaration: …` | no `var` names the root | |
| 459 | | `decision.questions: at least one question is needed` | a `decision` block without questions | | 491 | | `decision.questions: at least one question is needed` | a `decision` block without questions | |
modified
docs/en/reference/tools.md +28 -4 | @@ -16,9 +16,11 @@ Declared when `bashTool: true` (the default). | ||
| 16 | 16 | |--------|-----------| |
| 17 | 17 | | Shell | `bash -c <command>`, a new shell per call, no stdin. | |
| 18 | 18 | | Working directory | The process directory in terminal mode; the session `cwd` in ACP mode. | |
| 19 | -| Timeout | 30 s; the output then ends with `[error: 30s timeout exceeded]`. | | |
| 19 | +| Wrong `cd` | With [`workspace.repairPaths`](configuration.md#workspace-keys), a leading `cd <absolute path> &&` to a directory that does not exist, to the project root, or to a directory of the project's tree outside it is dropped, and the output starts with `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]`. | | |
| 20 | +| Timeout | 30 s; the output then ends with `[error: 30s timeout exceeded]`. The command's whole process group is stopped (except with `bashBackground: allow`). | | |
| 20 | 21 | | Cancellation | The command belongs to the turn: cancelling the turn (`Esc`, `Ctrl-C`, `/abort`, or asking something else) kills it, and the output ends with `[error: cancelled]`. | |
| 21 | 22 | | Background jobs | The output is collected through a temporary file, not a pipe, so the tool returns as soon as the shell exits even when the command left a job running (`nohup serve &`). The job keeps running — that is usually the point — and writes into a file nobody reads. Through a pipe, `os/exec` waits for *every* process holding the write end, so such a command blocked the turn for ever. | |
| 23 | +| Processes left running | With [`bashBackground`](configuration.md#top-level-keys) `report` (the default) or `stop`, each command runs in its own process group, and what is still running in it when the command returns is listed at the end of the output: `[still running in the background after this command: 4242 (server). …]`. `stop` also stops them at the end of the turn. Linux and macOS only. | | |
| 22 | 24 | | Very large output | Read back from both ends (1 MiB each) before `maxOutput` truncation, with `[... output too large to read back in full ...]` between them. | |
| 23 | 25 | | Output | stdout and stderr merged, truncated to `maxOutput` characters. | |
| 24 | 26 | | Non-zero exit | Output ends with `[exit code: exit status N]`. | |
| @@ -83,14 +85,16 @@ Declared when `editTools: true`. | ||
| 83 | 85 | | Field | Type | Default | Description | |
| 84 | 86 | |-------|------|---------|-------------| |
| 85 | 87 | | `path` | string | — | Path of an existing file. | |
| 86 | -| `edits` | array of `{old, new}` | — | Replacements, all resolved against the original file. | | |
| 88 | +| `edits` | array of `{old, new, line}` | — | Replacements, all resolved against the original file. | | |
| 87 | 89 | | `edits[].old` | string | — | Exact text to find, present exactly once. Whitespace is forgiven — see *How `old` is matched*. | |
| 88 | 90 | | `edits[].new` | string | — | Replacement; empty deletes the matched text. | |
| 91 | +| `edits[].line` | integer | — | Only when `old` appears several times: the 1-based line where the occurrence to change starts, as `read_file` with `numbered: true` shows it. Ignored when `old` is unique. A line where no occurrence starts is refused: `edit #1: old text appears 2 times, at lines 8, 9 — none starts at line 7: give one of these lines in "line"`. | | |
| 89 | 92 | | `dry_run` | bool | `false` | Report what would change, write nothing. | |
| 90 | 93 | |
| 91 | 94 | | Rule | Consequence when broken | |
| 92 | 95 | |------|-------------------------| |
| 93 | -| `old` appears exactly once | Refused: not found, or ambiguous — `old text appears N times (lines 11, 20) — to change ONE of them, include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | | |
| 96 | +| `old` appears exactly once, or `line` picks one | Refused: not found, or ambiguous — `old text appears N times (lines 11, 20) — to change ONE of them, add "line": the number of the line where it starts (one of 11, 20); or include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | | |
| 97 | +| `old` and `new` identical | Not an error when the file holds `old`: that edit is reported as already done (` · N already as asked (identical old and new)`; `<path>: unchanged — already as asked: …` when it is the only one) and the other edits apply. When the file does not hold it: not found. | | |
| 94 | 98 | | Two edits must not overlap, nest or repeat | Refused. | |
| 95 | 99 | | Edits are resolved against the original text, never in cascade | — | |
| 96 | 100 | | Any refused edit | Nothing is written. | |
| @@ -102,13 +106,14 @@ Declared when `editTools: true`. | ||
| 102 | 106 | |
| 103 | 107 | ### How `old` is matched |
| 104 | 108 | |
| 105 | -Three passes, strictest first; **the first pass that finds anything at all wins**, so a file that contains the text verbatim is never matched any other way. | |
| 109 | +Four passes, strictest first; **the first pass that finds anything at all wins**, so a file that contains the text verbatim is never matched any other way. | |
| 106 | 110 | |
| 107 | 111 | | Pass | What it forgives | Reported as | |
| 108 | 112 | |---|---|---| |
| 109 | 113 | | 1. Exact | Nothing. `old` is searched byte for byte. | — | |
| 110 | 114 | | 2. Edges | The whitespace *around* `old`: an indent the model kept on a single line, a leading or trailing newline. The same padding comes off `new` when `new` carries it, so a `new` that deliberately adds a blank line still adds it. | `matched ignoring whitespace` | |
| 111 | 115 | | 3. Indent | Every line's leading and trailing whitespace, for an `old` spanning two lines or more. This is the tabs-versus-spaces case: a model retypes a Go block with four spaces where the file has a tab. | `matched ignoring whitespace` | |
| 116 | +| 4. Layout | Any run of whitespace in `old` — spaces, tabs, line breaks — matches any run of whitespace in the file; every other character must be identical, in order. This is the case of a model that remembers two statements of one line as two lines (`a(); b();`). `new` is written as the model wrote it. | `matched ignoring whitespace` | | |
| 112 | 117 | |
| 113 | 118 | Two things are **not** relaxed: |
| 114 | 119 | |
| @@ -421,6 +426,24 @@ Tools offered by the ACP client, in `mm -acp` only; the protocol is specified in | ||
| 421 | 426 | | ACP | Tool call of kind `other`, title `client: <name>`. | |
| 422 | 427 | | Terminal and window | Not available. | |
| 423 | 428 | |
| 429 | +## Arguments that do not match a tool's schema | |
| 430 | + | |
| 431 | +Before a tool's arguments are validated against its schema, mm repairs the mistakes that can only mean one thing: | |
| 432 | + | |
| 433 | +| Mistake | Repair | | |
| 434 | +|---------|--------| | |
| 435 | +| A boolean, integer or number sent as a string (`"numbered": "true"`, `"start": "8"`, `"0.5"`) | Converted, for every tool, when the string reads unambiguously as that type. `"yes"` or `"8a"` are left for the validation to refuse. String parameters are never touched. | | |
| 436 | +| `write_file` / `edit_file`: another name for a field (`file_path`, `filename`… for `path`; `old_text`, `old_string`, `search`… for `old`; the same for `new` and `content`) | Renamed. | | |
| 437 | +| `edit_file`: `edits` sent as a JSON string, one edit without the list, the edit's fields at the top level, `path` inside an edit | Rebuilt as the list of edits. | | |
| 438 | + | |
| 439 | +What is still invalid after that does not end the turn: the model reads it as the tool's result, with the arguments the tool expects, and can fix its call: | |
| 440 | + | |
| 441 | +```text | |
| 442 | +[edit_file: invalid arguments — edits.0: old is required. Expected arguments: path (string, required), edits (array, required), dry_run (boolean). Example: {"path": "main.go", "edits": [{"old": "exact text now in the file", "new": "its replacement"}]}. Fix the call and send it again.] | |
| 443 | +``` | |
| 444 | + | |
| 445 | +The same invalid call sent 3 times in one turn ends the turn with the validation error. | |
| 446 | + | |
| 424 | 447 | ## Loop detection |
| 425 | 448 | |
| 426 | 449 | Every tool records `(tool, input, output)` in the loop detector after each call. |
| @@ -430,6 +453,7 @@ Every tool records `(tool, input, output)` in the loop detector after each call. | ||
| 430 | 453 | | The same triple 3 times in a row | The tool's output gets `[LOOP_DETECTED: You have attempted the same action multiple times with the same result. Please try a different approach or provide more information.]` appended. Nothing stops. | |
| 431 | 454 | | 3 more identical calls after that (6 in a row) | The tool returns an error instead of text and the turn ends: `[error: the model repeated the same edit_file call 6 times in a row with the same failing result — turn stopped by the loop detector; rephrase the request, or fix what the tool kept reporting]`. The history keeps everything that ran; the error is recorded in the session file's `errors` array (`where: generation`). | |
| 432 | 455 | | A different call | The count starts again. `/new` resets the detector; `/compact` does not. | |
| 456 | +| The same call failing again with other calls in between | A **failed** call (same tool, input and output) already recorded 3 times among the last 10 calls is flagged, whatever came in between, and the turn stops at its third flag. Successful calls keep the consecutive rule: reading a file again is not a loop. | | |
| 433 | 457 | | A tool call whose streamed arguments repeat a pattern (the last 256 characters are one 4–64-character pattern repeated) or exceed 256 KB | The generation is stopped at once: `[error: the model's tool call ran away: its arguments repeat the same pattern (N characters so far: …) — generation stopped; rephrase the request, or try another model]`. Without it a derailed model composes garbage for minutes while the screen shows "Thinking" (the watchdog is fed by every delta). While a tool call streams, the spinner says `Composing a tool call`. | |
| 434 | 458 | |
| 435 | 459 | The thresholds (3, then 3 more) are set in `main.go`; `maxTurns` remains the outer bound of a turn. |
| @@ -16,9 +16,11 @@ Declared when `bashTool: true` (the default). | |||
| 16 | |--------|-----------| | 16 | |--------|-----------| |
| 17 | | Shell | `bash -c <command>`, a new shell per call, no stdin. | | 17 | | Shell | `bash -c <command>`, a new shell per call, no stdin. | |
| 18 | | Working directory | The process directory in terminal mode; the session `cwd` in ACP mode. | | 18 | | Working directory | The process directory in terminal mode; the session `cwd` in ACP mode. | |
| 19 | -| Timeout | 30 s; the output then ends with `[error: 30s timeout exceeded]`. | | 19 | +| Wrong `cd` | With [`workspace.repairPaths`](configuration.md#workspace-keys), a leading `cd <absolute path> &&` to a directory that does not exist, to the project root, or to a directory of the project's tree outside it is dropped, and the output starts with `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]`. | |
| 20 | +| Timeout | 30 s; the output then ends with `[error: 30s timeout exceeded]`. The command's whole process group is stopped (except with `bashBackground: allow`). | | ||
| 20 | | Cancellation | The command belongs to the turn: cancelling the turn (`Esc`, `Ctrl-C`, `/abort`, or asking something else) kills it, and the output ends with `[error: cancelled]`. | | 21 | | Cancellation | The command belongs to the turn: cancelling the turn (`Esc`, `Ctrl-C`, `/abort`, or asking something else) kills it, and the output ends with `[error: cancelled]`. | |
| 21 | | Background jobs | The output is collected through a temporary file, not a pipe, so the tool returns as soon as the shell exits even when the command left a job running (`nohup serve &`). The job keeps running — that is usually the point — and writes into a file nobody reads. Through a pipe, `os/exec` waits for *every* process holding the write end, so such a command blocked the turn for ever. | | 22 | | Background jobs | The output is collected through a temporary file, not a pipe, so the tool returns as soon as the shell exits even when the command left a job running (`nohup serve &`). The job keeps running — that is usually the point — and writes into a file nobody reads. Through a pipe, `os/exec` waits for *every* process holding the write end, so such a command blocked the turn for ever. | |
| 23 | +| Processes left running | With [`bashBackground`](configuration.md#top-level-keys) `report` (the default) or `stop`, each command runs in its own process group, and what is still running in it when the command returns is listed at the end of the output: `[still running in the background after this command: 4242 (server). …]`. `stop` also stops them at the end of the turn. Linux and macOS only. | | ||
| 22 | | Very large output | Read back from both ends (1 MiB each) before `maxOutput` truncation, with `[... output too large to read back in full ...]` between them. | | 24 | | Very large output | Read back from both ends (1 MiB each) before `maxOutput` truncation, with `[... output too large to read back in full ...]` between them. | |
| 23 | | Output | stdout and stderr merged, truncated to `maxOutput` characters. | | 25 | | Output | stdout and stderr merged, truncated to `maxOutput` characters. | |
| 24 | | Non-zero exit | Output ends with `[exit code: exit status N]`. | | 26 | | Non-zero exit | Output ends with `[exit code: exit status N]`. | |
| @@ -83,14 +85,16 @@ Declared when `editTools: true`. | |||
| 83 | | Field | Type | Default | Description | | 85 | | Field | Type | Default | Description | |
| 84 | |-------|------|---------|-------------| | 86 | |-------|------|---------|-------------| |
| 85 | | `path` | string | — | Path of an existing file. | | 87 | | `path` | string | — | Path of an existing file. | |
| 86 | -| `edits` | array of `{old, new}` | — | Replacements, all resolved against the original file. | | 88 | +| `edits` | array of `{old, new, line}` | — | Replacements, all resolved against the original file. | |
| 87 | | `edits[].old` | string | — | Exact text to find, present exactly once. Whitespace is forgiven — see *How `old` is matched*. | | 89 | | `edits[].old` | string | — | Exact text to find, present exactly once. Whitespace is forgiven — see *How `old` is matched*. | |
| 88 | | `edits[].new` | string | — | Replacement; empty deletes the matched text. | | 90 | | `edits[].new` | string | — | Replacement; empty deletes the matched text. | |
| 91 | +| `edits[].line` | integer | — | Only when `old` appears several times: the 1-based line where the occurrence to change starts, as `read_file` with `numbered: true` shows it. Ignored when `old` is unique. A line where no occurrence starts is refused: `edit #1: old text appears 2 times, at lines 8, 9 — none starts at line 7: give one of these lines in "line"`. | | ||
| 89 | | `dry_run` | bool | `false` | Report what would change, write nothing. | | 92 | | `dry_run` | bool | `false` | Report what would change, write nothing. | |
| 90 | 93 | ||
| 91 | | Rule | Consequence when broken | | 94 | | Rule | Consequence when broken | |
| 92 | |------|-------------------------| | 95 | |------|-------------------------| |
| 93 | -| `old` appears exactly once | Refused: not found, or ambiguous — `old text appears N times (lines 11, 20) — to change ONE of them, include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | | 96 | +| `old` appears exactly once, or `line` picks one | Refused: not found, or ambiguous — `old text appears N times (lines 11, 20) — to change ONE of them, add "line": the number of the line where it starts (one of 11, 20); or include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | |
| 97 | +| `old` and `new` identical | Not an error when the file holds `old`: that edit is reported as already done (` · N already as asked (identical old and new)`; `<path>: unchanged — already as asked: …` when it is the only one) and the other edits apply. When the file does not hold it: not found. | | ||
| 94 | | Two edits must not overlap, nest or repeat | Refused. | | 98 | | Two edits must not overlap, nest or repeat | Refused. | |
| 95 | | Edits are resolved against the original text, never in cascade | — | | 99 | | Edits are resolved against the original text, never in cascade | — | |
| 96 | | Any refused edit | Nothing is written. | | 100 | | Any refused edit | Nothing is written. | |
| @@ -102,13 +106,14 @@ Declared when `editTools: true`. | |||
| 102 | 106 | ||
| 103 | ### How `old` is matched | 107 | ### How `old` is matched |
| 104 | 108 | ||
| 105 | -Three passes, strictest first; **the first pass that finds anything at all wins**, so a file that contains the text verbatim is never matched any other way. | 109 | +Four passes, strictest first; **the first pass that finds anything at all wins**, so a file that contains the text verbatim is never matched any other way. |
| 106 | 110 | ||
| 107 | | Pass | What it forgives | Reported as | | 111 | | Pass | What it forgives | Reported as | |
| 108 | |---|---|---| | 112 | |---|---|---| |
| 109 | | 1. Exact | Nothing. `old` is searched byte for byte. | — | | 113 | | 1. Exact | Nothing. `old` is searched byte for byte. | — | |
| 110 | | 2. Edges | The whitespace *around* `old`: an indent the model kept on a single line, a leading or trailing newline. The same padding comes off `new` when `new` carries it, so a `new` that deliberately adds a blank line still adds it. | `matched ignoring whitespace` | | 114 | | 2. Edges | The whitespace *around* `old`: an indent the model kept on a single line, a leading or trailing newline. The same padding comes off `new` when `new` carries it, so a `new` that deliberately adds a blank line still adds it. | `matched ignoring whitespace` | |
| 111 | | 3. Indent | Every line's leading and trailing whitespace, for an `old` spanning two lines or more. This is the tabs-versus-spaces case: a model retypes a Go block with four spaces where the file has a tab. | `matched ignoring whitespace` | | 115 | | 3. Indent | Every line's leading and trailing whitespace, for an `old` spanning two lines or more. This is the tabs-versus-spaces case: a model retypes a Go block with four spaces where the file has a tab. | `matched ignoring whitespace` | |
| 116 | +| 4. Layout | Any run of whitespace in `old` — spaces, tabs, line breaks — matches any run of whitespace in the file; every other character must be identical, in order. This is the case of a model that remembers two statements of one line as two lines (`a(); b();`). `new` is written as the model wrote it. | `matched ignoring whitespace` | | ||
| 112 | 117 | ||
| 113 | Two things are **not** relaxed: | 118 | Two things are **not** relaxed: |
| 114 | 119 | ||
| @@ -421,6 +426,24 @@ Tools offered by the ACP client, in `mm -acp` only; the protocol is specified in | |||
| 421 | | ACP | Tool call of kind `other`, title `client: <name>`. | | 426 | | ACP | Tool call of kind `other`, title `client: <name>`. | |
| 422 | | Terminal and window | Not available. | | 427 | | Terminal and window | Not available. | |
| 423 | 428 | ||
| 429 | +## Arguments that do not match a tool's schema | ||
| 430 | + | ||
| 431 | +Before a tool's arguments are validated against its schema, mm repairs the mistakes that can only mean one thing: | ||
| 432 | + | ||
| 433 | +| Mistake | Repair | | ||
| 434 | +|---------|--------| | ||
| 435 | +| A boolean, integer or number sent as a string (`"numbered": "true"`, `"start": "8"`, `"0.5"`) | Converted, for every tool, when the string reads unambiguously as that type. `"yes"` or `"8a"` are left for the validation to refuse. String parameters are never touched. | | ||
| 436 | +| `write_file` / `edit_file`: another name for a field (`file_path`, `filename`… for `path`; `old_text`, `old_string`, `search`… for `old`; the same for `new` and `content`) | Renamed. | | ||
| 437 | +| `edit_file`: `edits` sent as a JSON string, one edit without the list, the edit's fields at the top level, `path` inside an edit | Rebuilt as the list of edits. | | ||
| 438 | + | ||
| 439 | +What is still invalid after that does not end the turn: the model reads it as the tool's result, with the arguments the tool expects, and can fix its call: | ||
| 440 | + | ||
| 441 | +```text | ||
| 442 | +[edit_file: invalid arguments — edits.0: old is required. Expected arguments: path (string, required), edits (array, required), dry_run (boolean). Example: {"path": "main.go", "edits": [{"old": "exact text now in the file", "new": "its replacement"}]}. Fix the call and send it again.] | ||
| 443 | +``` | ||
| 444 | + | ||
| 445 | +The same invalid call sent 3 times in one turn ends the turn with the validation error. | ||
| 446 | + | ||
| 424 | ## Loop detection | 447 | ## Loop detection |
| 425 | 448 | ||
| 426 | Every tool records `(tool, input, output)` in the loop detector after each call. | 449 | Every tool records `(tool, input, output)` in the loop detector after each call. |
| @@ -430,6 +453,7 @@ Every tool records `(tool, input, output)` in the loop detector after each call. | |||
| 430 | | The same triple 3 times in a row | The tool's output gets `[LOOP_DETECTED: You have attempted the same action multiple times with the same result. Please try a different approach or provide more information.]` appended. Nothing stops. | | 453 | | The same triple 3 times in a row | The tool's output gets `[LOOP_DETECTED: You have attempted the same action multiple times with the same result. Please try a different approach or provide more information.]` appended. Nothing stops. | |
| 431 | | 3 more identical calls after that (6 in a row) | The tool returns an error instead of text and the turn ends: `[error: the model repeated the same edit_file call 6 times in a row with the same failing result — turn stopped by the loop detector; rephrase the request, or fix what the tool kept reporting]`. The history keeps everything that ran; the error is recorded in the session file's `errors` array (`where: generation`). | | 454 | | 3 more identical calls after that (6 in a row) | The tool returns an error instead of text and the turn ends: `[error: the model repeated the same edit_file call 6 times in a row with the same failing result — turn stopped by the loop detector; rephrase the request, or fix what the tool kept reporting]`. The history keeps everything that ran; the error is recorded in the session file's `errors` array (`where: generation`). | |
| 432 | | A different call | The count starts again. `/new` resets the detector; `/compact` does not. | | 455 | | A different call | The count starts again. `/new` resets the detector; `/compact` does not. | |
| 456 | +| The same call failing again with other calls in between | A **failed** call (same tool, input and output) already recorded 3 times among the last 10 calls is flagged, whatever came in between, and the turn stops at its third flag. Successful calls keep the consecutive rule: reading a file again is not a loop. | | ||
| 433 | | A tool call whose streamed arguments repeat a pattern (the last 256 characters are one 4–64-character pattern repeated) or exceed 256 KB | The generation is stopped at once: `[error: the model's tool call ran away: its arguments repeat the same pattern (N characters so far: …) — generation stopped; rephrase the request, or try another model]`. Without it a derailed model composes garbage for minutes while the screen shows "Thinking" (the watchdog is fed by every delta). While a tool call streams, the spinner says `Composing a tool call`. | | 457 | | A tool call whose streamed arguments repeat a pattern (the last 256 characters are one 4–64-character pattern repeated) or exceed 256 KB | The generation is stopped at once: `[error: the model's tool call ran away: its arguments repeat the same pattern (N characters so far: …) — generation stopped; rephrase the request, or try another model]`. Without it a derailed model composes garbage for minutes while the screen shows "Thinking" (the watchdog is fed by every delta). While a tool call streams, the spinner says `Composing a tool call`. | |
| 434 | 458 | ||
| 435 | The thresholds (3, then 3 more) are set in `main.go`; `maxTurns` remains the outer bound of a turn. | 459 | The thresholds (3, then 3 more) are set in `main.go`; `maxTurns` remains the outer bound of a turn. |
modified
docs/fr/explanation/struggling-models.md +4 -0 | @@ -20,6 +20,10 @@ Les signaux de difficulté (ticket 153) rendent ces mêmes détections visibles | ||
| 20 | 20 | |
| 21 | 21 | **Un tour annulé n'est pas une difficulté.** Échap, Ctrl-C ou `/abort` terminent un tour à la demande de l'utilisateur ; signaler alors `stalled` ou `max turns` reprocherait au modèle le choix de l'utilisateur. |
| 22 | 22 | |
| 23 | +**Les échecs silencieux, rendus une fois** (v2.0.0). Les mesures sur de petits modèles de code (`demos/lfm-coder`, `demos/olala-mini`, `demos/mellum2`) ont montré des échecs qui terminaient un tour sans un mot : une réponse coupée en plein raisonnement à la limite de tokens, un raisonnement qui répétait une phrase jusqu'à la limite, une réponse finale « Done. » alors que la dernière modification avait été refusée. mm connaît chacun de ces cas avec certitude — la raison de fin donnée par le serveur, le flux qu'il lit, le résultat de ses propres outils — il ne devine donc rien d'après la formulation de la réponse. Quand le modèle peut encore se rattraper, sa réponse lui est rendue **une fois** avec une note qui dit ce qui s'est passé ; si la même chose se reproduit, le tour se termine et un signal dit pourquoi, en nommant le réglage à changer quand il y en a un. | |
| 24 | + | |
| 25 | +**Réparer plutôt que refuser.** Certaines erreurs ne peuvent vouloir dire qu'une chose : `"true"` pour `true`, `old_text` pour `old`, un chemin auquel il manque un répertoire. mm les répare et le dit dans la sortie de l'outil, plutôt que de refuser en espérant que le modèle corrige — des refus qui citaient le bon chemin ont, mesuré, fait boucler un petit modèle. Voir les [outils](../reference/tools.md#arguments-qui-ne-respectent-pas-le-schéma-dun-outil) et [`workspace`](../reference/configuration.md#clés-de-workspace). | |
| 26 | + | |
| 23 | 27 | ## Alternatives écartées |
| 24 | 28 | |
| 25 | 29 | - **L'en-tête.** Envisagé ; l'utilisateur a choisi la barre d'état, ce qui garde l'en-tête pour qui répond et le remplissage du contexte. |
| @@ -20,6 +20,10 @@ Les signaux de difficulté (ticket 153) rendent ces mêmes détections visibles | |||
| 20 | 20 | ||
| 21 | **Un tour annulé n'est pas une difficulté.** Échap, Ctrl-C ou `/abort` terminent un tour à la demande de l'utilisateur ; signaler alors `stalled` ou `max turns` reprocherait au modèle le choix de l'utilisateur. | 21 | **Un tour annulé n'est pas une difficulté.** Échap, Ctrl-C ou `/abort` terminent un tour à la demande de l'utilisateur ; signaler alors `stalled` ou `max turns` reprocherait au modèle le choix de l'utilisateur. |
| 22 | 22 | ||
| 23 | +**Les échecs silencieux, rendus une fois** (v2.0.0). Les mesures sur de petits modèles de code (`demos/lfm-coder`, `demos/olala-mini`, `demos/mellum2`) ont montré des échecs qui terminaient un tour sans un mot : une réponse coupée en plein raisonnement à la limite de tokens, un raisonnement qui répétait une phrase jusqu'à la limite, une réponse finale « Done. » alors que la dernière modification avait été refusée. mm connaît chacun de ces cas avec certitude — la raison de fin donnée par le serveur, le flux qu'il lit, le résultat de ses propres outils — il ne devine donc rien d'après la formulation de la réponse. Quand le modèle peut encore se rattraper, sa réponse lui est rendue **une fois** avec une note qui dit ce qui s'est passé ; si la même chose se reproduit, le tour se termine et un signal dit pourquoi, en nommant le réglage à changer quand il y en a un. | ||
| 24 | + | ||
| 25 | +**Réparer plutôt que refuser.** Certaines erreurs ne peuvent vouloir dire qu'une chose : `"true"` pour `true`, `old_text` pour `old`, un chemin auquel il manque un répertoire. mm les répare et le dit dans la sortie de l'outil, plutôt que de refuser en espérant que le modèle corrige — des refus qui citaient le bon chemin ont, mesuré, fait boucler un petit modèle. Voir les [outils](../reference/tools.md#arguments-qui-ne-respectent-pas-le-schéma-dun-outil) et [`workspace`](../reference/configuration.md#clés-de-workspace). | ||
| 26 | + | ||
| 23 | ## Alternatives écartées | 27 | ## Alternatives écartées |
| 24 | 28 | ||
| 25 | - **L'en-tête.** Envisagé ; l'utilisateur a choisi la barre d'état, ce qui garde l'en-tête pour qui répond et le remplissage du contexte. | 29 | - **L'en-tête.** Envisagé ; l'utilisateur a choisi la barre d'état, ce qui garde l'en-tête pour qui répond et le remplissage du contexte. |
modified
docs/fr/how-to/run-with-llama-cpp.md +2 -0 | @@ -30,6 +30,8 @@ Ce guide montre comment pointer `mm` vers un `llama-server` que vous démarrez v | ||
| 30 | 30 | - **`autoPull: true`.** llama-server ne sait pas télécharger un modèle par son API : il sert celui avec lequel il a été lancé. C'est `-hf <dépôt>:<quant>` (étape 1) qui le télécharge. Avec `autoPull` actif et un `model:` que le serveur ne liste pas, mm le dit au démarrage et continue. Voir [`autoPull`](../reference/configuration.md). |
| 31 | 31 | - **Serveur démarré avec `--api-key`.** Exportez la clé dans `LLAMA_API_KEY` (la variable par défaut du fournisseur) ou nommez une autre variable dans `apiKeyEnv`. La clé elle-même ne va jamais dans le YAML. |
| 32 | 32 | - **Garder `agent.yaml` et changer de fournisseur pour une exécution.** `AGENT_PROVIDER=llamacpp ./mm` fonctionne tant qu'`agent.yaml` laisse `baseUrl` vide ; une URL DMR explicite dans le fichier serait respectée et pointerait toujours sur le port 12434. |
| 33 | +- **Mode routeur (plusieurs modèles derrière un même port, comme l'application Llama).** Un simple `/props` décrit alors le routeur, pas un modèle. mm demande d'abord `/props?model=<modèle>` : la bannière affiche la fenêtre du modèle, sans faux avertissement « no chat template » ; `mm init` lit les caractéristiques du modèle de la même façon. | |
| 34 | +- **La fenêtre servie est plus petite que `contextWindow`.** mm avertit au démarrage (`contextWindow N is larger than the M tokens the server serves …`) ; redémarrez llama-server avec un `--ctx-size` plus grand, ou baissez `contextWindow`. | |
| 33 | 35 | - **Le serveur masque `/props`** (un reverse proxy, par exemple). Fixez `contextWindow` à la valeur avec laquelle vous avez démarré le serveur, sinon la bannière affiche `ctx: unknown`. |
| 34 | 36 | |
| 35 | 37 | ## Voir aussi |
| @@ -30,6 +30,8 @@ Ce guide montre comment pointer `mm` vers un `llama-server` que vous démarrez v | |||
| 30 | - **`autoPull: true`.** llama-server ne sait pas télécharger un modèle par son API : il sert celui avec lequel il a été lancé. C'est `-hf <dépôt>:<quant>` (étape 1) qui le télécharge. Avec `autoPull` actif et un `model:` que le serveur ne liste pas, mm le dit au démarrage et continue. Voir [`autoPull`](../reference/configuration.md). | 30 | - **`autoPull: true`.** llama-server ne sait pas télécharger un modèle par son API : il sert celui avec lequel il a été lancé. C'est `-hf <dépôt>:<quant>` (étape 1) qui le télécharge. Avec `autoPull` actif et un `model:` que le serveur ne liste pas, mm le dit au démarrage et continue. Voir [`autoPull`](../reference/configuration.md). |
| 31 | - **Serveur démarré avec `--api-key`.** Exportez la clé dans `LLAMA_API_KEY` (la variable par défaut du fournisseur) ou nommez une autre variable dans `apiKeyEnv`. La clé elle-même ne va jamais dans le YAML. | 31 | - **Serveur démarré avec `--api-key`.** Exportez la clé dans `LLAMA_API_KEY` (la variable par défaut du fournisseur) ou nommez une autre variable dans `apiKeyEnv`. La clé elle-même ne va jamais dans le YAML. |
| 32 | - **Garder `agent.yaml` et changer de fournisseur pour une exécution.** `AGENT_PROVIDER=llamacpp ./mm` fonctionne tant qu'`agent.yaml` laisse `baseUrl` vide ; une URL DMR explicite dans le fichier serait respectée et pointerait toujours sur le port 12434. | 32 | - **Garder `agent.yaml` et changer de fournisseur pour une exécution.** `AGENT_PROVIDER=llamacpp ./mm` fonctionne tant qu'`agent.yaml` laisse `baseUrl` vide ; une URL DMR explicite dans le fichier serait respectée et pointerait toujours sur le port 12434. |
| 33 | +- **Mode routeur (plusieurs modèles derrière un même port, comme l'application Llama).** Un simple `/props` décrit alors le routeur, pas un modèle. mm demande d'abord `/props?model=<modèle>` : la bannière affiche la fenêtre du modèle, sans faux avertissement « no chat template » ; `mm init` lit les caractéristiques du modèle de la même façon. | ||
| 34 | +- **La fenêtre servie est plus petite que `contextWindow`.** mm avertit au démarrage (`contextWindow N is larger than the M tokens the server serves …`) ; redémarrez llama-server avec un `--ctx-size` plus grand, ou baissez `contextWindow`. | ||
| 33 | - **Le serveur masque `/props`** (un reverse proxy, par exemple). Fixez `contextWindow` à la valeur avec laquelle vous avez démarré le serveur, sinon la bannière affiche `ctx: unknown`. | 35 | - **Le serveur masque `/props`** (un reverse proxy, par exemple). Fixez `contextWindow` à la valeur avec laquelle vous avez démarré le serveur, sinon la bannière affiche `ctx: unknown`. |
| 34 | 36 | ||
| 35 | ## Voir aussi | 37 | ## Voir aussi |
modified
docs/fr/reference/cli.md +11 -3 | @@ -69,7 +69,7 @@ Les chemins relatifs qu'un fichier de configuration indique (`mmConfigs`, `skill | ||
| 69 | 69 | | Directement dans un dossier nommé `.mm` (`<projet>/.mm/agent.yaml`) | Le parent de ce dossier : `<projet>` | |
| 70 | 70 | | Partout ailleurs (`<dossier>/agent.yaml`) | Le dossier du fichier : `<dossier>` | |
| 71 | 71 | |
| 72 | -La règle dépend de l'emplacement du fichier, pas de la façon dont il a été trouvé : `-config`, `AGENT_CONFIG` et la recherche ci-dessus donnent le même résultat. `skillsDir` en mode terminal, `sessions.dir` et `agentsMd.path` sont relatifs au répertoire de travail, quel que soit l'emplacement du fichier. | |
| 72 | +La règle dépend de l'emplacement du fichier, pas de la façon dont il a été trouvé : `-config`, `AGENT_CONFIG` et la recherche ci-dessus donnent le même résultat. `skillsDir` en mode terminal, `sessions.dir` et `agentsMd.path` sont relatifs au répertoire de travail, quel que soit l'emplacement du fichier — sauf qu'en mode terminal, un `skillsDir` relatif qui n'y contient aucun skill se replie sur le même chemin depuis le répertoire de base quand celui-ci en contient (voir [`skillsDir`](configuration.md#clés-de-premier-niveau)). | |
| 73 | 73 | |
| 74 | 74 | ## Variables d'environnement |
| 75 | 75 | |
| @@ -184,6 +184,10 @@ Les signes que le modèle peine, montrés à l'utilisateur à part de la répons | ||
| 184 | 184 | |--------|--------|-------| |
| 185 | 185 | | `loop: <outil> ×N` | ⚠ | le détecteur de boucles a repéré le même appel avec le même résultat N fois de suite ; le modèle est invité à changer d'approche | |
| 186 | 186 | | `stuck: <outil> ×N` | ✖ | le modèle a ignoré ce conseil : le détecteur de boucles a arrêté le tour | |
| 187 | +| `looped — handed back 1/1` | ⚠ | la même phrase (12 caractères ou plus) est revenue 20 fois de suite dans le raisonnement ou la réponse du modèle pendant le flux : cet appel au modèle est coupé et rendu une fois, avec une note qui dit au modèle qu'il se répétait | | |
| 188 | +| `looped — stopped` | ✖ | il a bouclé de nouveau : le tour se termine par `the model looped: "…" repeated N times in a row — stopped; ask again, or lower the temperature / reasoning effort` | | |
| 189 | +| `reasoning cut at the limit 1/1` | ⚠ | une réponse s'est arrêtée à la limite de tokens avec seulement du raisonnement — ni texte ni appel d'outil ; elle est rendue une fois, en demandant au modèle d'agir tout de suite | | |
| 190 | +| `answer after a failed <outil> — handed back 1/1` | ⚠ | le modèle a donné sa réponse finale alors que le dernier `write_file` / `edit_file` du tour avait échoué ; la réponse est rendue une fois avec une note : le fichier n'a pas été modifié, corrige l'appel ou dis-le | | |
| 187 | 191 | | `failing: N tool calls in a row` | ⚠ | les N derniers appels d'outil (N ≥ 3) ont tous échoué, avec des entrées différentes — code de sortie non nul, modification refusée, fichier absent, permission rejetée… ; signalé de nouveau à chaque nouvel échec, remis à zéro au premier succès ; le modèle n'en est pas informé | |
| 188 | 192 | | `broken tool call (cut off\|invalid JSON) n/m` | ⚠ | les arguments d'un appel d'outil ne se lisent pas ; l'appel est rendu au modèle (essai n sur m) | |
| 189 | 193 | | `stream cut — retried` | ⚠ | le serveur a coupé le flux ; cet appel au modèle est relancé une fois | |
| @@ -192,6 +196,10 @@ Les signes que le modèle peine, montrés à l'utilisateur à part de la répons | ||
| 192 | 196 | | `max turns reached` | ✖ | `maxTurns` allers-retours modèle ↔ outils sans réponse finale | |
| 193 | 197 | | `unknown tool: <nom>` | ✖ | le modèle a appelé un outil qui n'existe pas | |
| 194 | 198 | | `empty answer` | ⚠ | le tour s'est terminé sans texte ni appel d'outil | |
| 199 | +| `empty answer — the model reasoned until the limit (<clé> N): raise sampling.<clé>, or lower its reasoning effort` | ✖ | la réponse rendue ci-dessus a de nouveau été coupée à la limite | | |
| 200 | +| `the model looped: the same line repeated N times — the answer is cut there` | ✖ | la réponse finale contient 20 lignes identiques ou plus à la suite : elles sont réduites à une ligne suivie de `[… the same line repeated N more times — removed by mm]`, dans la réponse et dans l'historique ; ` (it ran until the limit: <clé>)` est ajouté quand elle a aussi atteint la limite de tokens | | |
| 201 | +| `answer cut at the limit (<clé> N): raise sampling.<clé>, or ask for a shorter answer` | ⚠ | la réponse s'est arrêtée en cours de route à la limite de tokens (`max_tokens` ou `max_completion_tokens`) | | |
| 202 | +| `the last <outil> failed (…) — that change was not made, whatever the answer says` | ✖ | le dernier `write_file` / `edit_file` du tour a échoué, sans réussite après lui — toujours le cas après la note ci-dessus | | |
| 195 | 203 | | `context N% full` | ⚠ | le dernier appel au modèle a lu 80 % de la fenêtre de contexte ou plus (fenêtre connue uniquement) | |
| 196 | 204 | |
| 197 | 205 | Un tour annulé par l'utilisateur ne signale rien. `demos/struggle-signals/` déclenche chaque signal avec un faux modèle. |
| @@ -312,8 +320,8 @@ Un fichier d'agent hors du workspace ne donne qu'un avertissement : voir [quand | ||
| 312 | 320 | |
| 313 | 321 | | Code | Cause | |
| 314 | 322 | |------|-------| |
| 315 | -| 0 | `/quit`, `Ctrl+C` à l'invite, fin de stdin, ou le client ACP a fermé la connexion. `--ask` : l'agent a répondu. | | |
| 316 | -| 1 | Plus d'un argument positionnel ; erreur de chargement de la configuration ; erreur d'initialisation du moteur (fournisseur inconnu, clé requise absente). `--ask` : pas de question, pas de contexte, agent inconnu, l'agent a échoué ou n'a rien répondu. | | |
| 323 | +| 0 | `/quit`, `Ctrl+C` à l'invite, fin de stdin, ou le client ACP a fermé la connexion. `--ask` : l'agent a répondu. `-p` : le tour s'est terminé par une réponse (un tour arrêté volontairement par un hook `preGeneration` en est une). | | |
| 324 | +| 1 | Plus d'un argument positionnel ; erreur de chargement de la configuration ; erreur d'initialisation du moteur (fournisseur inconnu, clé requise absente). `--ask` : pas de question, pas de contexte, agent inconnu, l'agent a échoué ou n'a rien répondu. `-p` : la génération a échoué — watchdog, nombre maximal de tours atteint, erreur du fournisseur ou d'un outil ; l'erreur est toujours affichée sur stdout. Avant la v2.0.0, `-p` sortait avec 0 dans ce cas. | | |
| 317 | 325 | | 130 | `--ask` : interrompu (`Ctrl+C`, ou le processus parent a disparu). | |
| 318 | 326 | |
| 319 | 327 | ## Compilation et installation |
| @@ -69,7 +69,7 @@ Les chemins relatifs qu'un fichier de configuration indique (`mmConfigs`, `skill | |||
| 69 | | Directement dans un dossier nommé `.mm` (`<projet>/.mm/agent.yaml`) | Le parent de ce dossier : `<projet>` | | 69 | | Directement dans un dossier nommé `.mm` (`<projet>/.mm/agent.yaml`) | Le parent de ce dossier : `<projet>` | |
| 70 | | Partout ailleurs (`<dossier>/agent.yaml`) | Le dossier du fichier : `<dossier>` | | 70 | | Partout ailleurs (`<dossier>/agent.yaml`) | Le dossier du fichier : `<dossier>` | |
| 71 | 71 | ||
| 72 | -La règle dépend de l'emplacement du fichier, pas de la façon dont il a été trouvé : `-config`, `AGENT_CONFIG` et la recherche ci-dessus donnent le même résultat. `skillsDir` en mode terminal, `sessions.dir` et `agentsMd.path` sont relatifs au répertoire de travail, quel que soit l'emplacement du fichier. | 72 | +La règle dépend de l'emplacement du fichier, pas de la façon dont il a été trouvé : `-config`, `AGENT_CONFIG` et la recherche ci-dessus donnent le même résultat. `skillsDir` en mode terminal, `sessions.dir` et `agentsMd.path` sont relatifs au répertoire de travail, quel que soit l'emplacement du fichier — sauf qu'en mode terminal, un `skillsDir` relatif qui n'y contient aucun skill se replie sur le même chemin depuis le répertoire de base quand celui-ci en contient (voir [`skillsDir`](configuration.md#clés-de-premier-niveau)). |
| 73 | 73 | ||
| 74 | ## Variables d'environnement | 74 | ## Variables d'environnement |
| 75 | 75 | ||
| @@ -184,6 +184,10 @@ Les signes que le modèle peine, montrés à l'utilisateur à part de la répons | |||
| 184 | |--------|--------|-------| | 184 | |--------|--------|-------| |
| 185 | | `loop: <outil> ×N` | ⚠ | le détecteur de boucles a repéré le même appel avec le même résultat N fois de suite ; le modèle est invité à changer d'approche | | 185 | | `loop: <outil> ×N` | ⚠ | le détecteur de boucles a repéré le même appel avec le même résultat N fois de suite ; le modèle est invité à changer d'approche | |
| 186 | | `stuck: <outil> ×N` | ✖ | le modèle a ignoré ce conseil : le détecteur de boucles a arrêté le tour | | 186 | | `stuck: <outil> ×N` | ✖ | le modèle a ignoré ce conseil : le détecteur de boucles a arrêté le tour | |
| 187 | +| `looped — handed back 1/1` | ⚠ | la même phrase (12 caractères ou plus) est revenue 20 fois de suite dans le raisonnement ou la réponse du modèle pendant le flux : cet appel au modèle est coupé et rendu une fois, avec une note qui dit au modèle qu'il se répétait | | ||
| 188 | +| `looped — stopped` | ✖ | il a bouclé de nouveau : le tour se termine par `the model looped: "…" repeated N times in a row — stopped; ask again, or lower the temperature / reasoning effort` | | ||
| 189 | +| `reasoning cut at the limit 1/1` | ⚠ | une réponse s'est arrêtée à la limite de tokens avec seulement du raisonnement — ni texte ni appel d'outil ; elle est rendue une fois, en demandant au modèle d'agir tout de suite | | ||
| 190 | +| `answer after a failed <outil> — handed back 1/1` | ⚠ | le modèle a donné sa réponse finale alors que le dernier `write_file` / `edit_file` du tour avait échoué ; la réponse est rendue une fois avec une note : le fichier n'a pas été modifié, corrige l'appel ou dis-le | | ||
| 187 | | `failing: N tool calls in a row` | ⚠ | les N derniers appels d'outil (N ≥ 3) ont tous échoué, avec des entrées différentes — code de sortie non nul, modification refusée, fichier absent, permission rejetée… ; signalé de nouveau à chaque nouvel échec, remis à zéro au premier succès ; le modèle n'en est pas informé | | 191 | | `failing: N tool calls in a row` | ⚠ | les N derniers appels d'outil (N ≥ 3) ont tous échoué, avec des entrées différentes — code de sortie non nul, modification refusée, fichier absent, permission rejetée… ; signalé de nouveau à chaque nouvel échec, remis à zéro au premier succès ; le modèle n'en est pas informé | |
| 188 | | `broken tool call (cut off\|invalid JSON) n/m` | ⚠ | les arguments d'un appel d'outil ne se lisent pas ; l'appel est rendu au modèle (essai n sur m) | | 192 | | `broken tool call (cut off\|invalid JSON) n/m` | ⚠ | les arguments d'un appel d'outil ne se lisent pas ; l'appel est rendu au modèle (essai n sur m) | |
| 189 | | `stream cut — retried` | ⚠ | le serveur a coupé le flux ; cet appel au modèle est relancé une fois | | 193 | | `stream cut — retried` | ⚠ | le serveur a coupé le flux ; cet appel au modèle est relancé une fois | |
| @@ -192,6 +196,10 @@ Les signes que le modèle peine, montrés à l'utilisateur à part de la répons | |||
| 192 | | `max turns reached` | ✖ | `maxTurns` allers-retours modèle ↔ outils sans réponse finale | | 196 | | `max turns reached` | ✖ | `maxTurns` allers-retours modèle ↔ outils sans réponse finale | |
| 193 | | `unknown tool: <nom>` | ✖ | le modèle a appelé un outil qui n'existe pas | | 197 | | `unknown tool: <nom>` | ✖ | le modèle a appelé un outil qui n'existe pas | |
| 194 | | `empty answer` | ⚠ | le tour s'est terminé sans texte ni appel d'outil | | 198 | | `empty answer` | ⚠ | le tour s'est terminé sans texte ni appel d'outil | |
| 199 | +| `empty answer — the model reasoned until the limit (<clé> N): raise sampling.<clé>, or lower its reasoning effort` | ✖ | la réponse rendue ci-dessus a de nouveau été coupée à la limite | | ||
| 200 | +| `the model looped: the same line repeated N times — the answer is cut there` | ✖ | la réponse finale contient 20 lignes identiques ou plus à la suite : elles sont réduites à une ligne suivie de `[… the same line repeated N more times — removed by mm]`, dans la réponse et dans l'historique ; ` (it ran until the limit: <clé>)` est ajouté quand elle a aussi atteint la limite de tokens | | ||
| 201 | +| `answer cut at the limit (<clé> N): raise sampling.<clé>, or ask for a shorter answer` | ⚠ | la réponse s'est arrêtée en cours de route à la limite de tokens (`max_tokens` ou `max_completion_tokens`) | | ||
| 202 | +| `the last <outil> failed (…) — that change was not made, whatever the answer says` | ✖ | le dernier `write_file` / `edit_file` du tour a échoué, sans réussite après lui — toujours le cas après la note ci-dessus | | ||
| 195 | | `context N% full` | ⚠ | le dernier appel au modèle a lu 80 % de la fenêtre de contexte ou plus (fenêtre connue uniquement) | | 203 | | `context N% full` | ⚠ | le dernier appel au modèle a lu 80 % de la fenêtre de contexte ou plus (fenêtre connue uniquement) | |
| 196 | 204 | ||
| 197 | Un tour annulé par l'utilisateur ne signale rien. `demos/struggle-signals/` déclenche chaque signal avec un faux modèle. | 205 | Un tour annulé par l'utilisateur ne signale rien. `demos/struggle-signals/` déclenche chaque signal avec un faux modèle. |
| @@ -312,8 +320,8 @@ Un fichier d'agent hors du workspace ne donne qu'un avertissement : voir [quand | |||
| 312 | 320 | ||
| 313 | | Code | Cause | | 321 | | Code | Cause | |
| 314 | |------|-------| | 322 | |------|-------| |
| 315 | -| 0 | `/quit`, `Ctrl+C` à l'invite, fin de stdin, ou le client ACP a fermé la connexion. `--ask` : l'agent a répondu. | | 323 | +| 0 | `/quit`, `Ctrl+C` à l'invite, fin de stdin, ou le client ACP a fermé la connexion. `--ask` : l'agent a répondu. `-p` : le tour s'est terminé par une réponse (un tour arrêté volontairement par un hook `preGeneration` en est une). | |
| 316 | -| 1 | Plus d'un argument positionnel ; erreur de chargement de la configuration ; erreur d'initialisation du moteur (fournisseur inconnu, clé requise absente). `--ask` : pas de question, pas de contexte, agent inconnu, l'agent a échoué ou n'a rien répondu. | | 324 | +| 1 | Plus d'un argument positionnel ; erreur de chargement de la configuration ; erreur d'initialisation du moteur (fournisseur inconnu, clé requise absente). `--ask` : pas de question, pas de contexte, agent inconnu, l'agent a échoué ou n'a rien répondu. `-p` : la génération a échoué — watchdog, nombre maximal de tours atteint, erreur du fournisseur ou d'un outil ; l'erreur est toujours affichée sur stdout. Avant la v2.0.0, `-p` sortait avec 0 dans ce cas. | |
| 317 | | 130 | `--ask` : interrompu (`Ctrl+C`, ou le processus parent a disparu). | | 325 | | 130 | `--ask` : interrompu (`Ctrl+C`, ou le processus parent a disparu). | |
| 318 | 326 | ||
| 319 | ## Compilation et installation | 327 | ## Compilation et installation |
modified
docs/fr/reference/configuration.md +34 -2 | @@ -14,7 +14,7 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | ||
| 14 | 14 | | `fallback` | chaîne ou absente | absente (défaut du fournisseur) | Point d'accès utilisé quand `baseUrl` ne répond pas sur `/models` en 2 s. Absente = défaut du fournisseur ; `""` = pas de repli. | |
| 15 | 15 | | `apiKeyEnv` | chaîne | `""` (défaut du fournisseur) | Nom de la variable d'environnement qui contient la clé d'API. | |
| 16 | 16 | | `toolFormat` | chaîne | `openai` | Comment les outils arrivent au modèle. `openai` : le champ `tools` de l'API OpenAI, celui qu'attendent tous les serveurs. `xml_tools` : pour un modèle dont le chat template lit ses outils dans une variable `xml_tools` et écrit ses appels en texte `<tool_call>` (SmolLM3) — mm envoie les outils dans `chat_template_kwargs.xml_tools` (sans champ `tools`), réécrit les appels précédents dans l'historique en texte `<tool_call>`, et transforme les blocs `<tool_call>` de la réponse en appels d'outils, en streaming ou non. Toute autre valeur : `toolFormat must be openai or xml_tools`. Voir [Comment donner des outils à un modèle dont le template lit `xml_tools`](../how-to/use-a-model-that-reads-xml-tools.md). | |
| 17 | -| `contextWindow` | entier | `0` | Tokens servis par le serveur. `0` = demander au serveur, sinon inconnu. Doit être ≥ 0. | | |
| 17 | +| `contextWindow` | entier | `0` | Tokens servis par le serveur. `0` = demander au serveur, sinon inconnu. Doit être ≥ 0. Avec un serveur llama.cpp en mode routeur (plusieurs modèles derrière un même port, comme l'application Llama), mm interroge `/props?model=<modèle>`, puis `/props`. Une valeur plus grande que la fenêtre annoncée par le serveur donne un avertissement au démarrage : `contextWindow 32768 is larger than the 4096 tokens the server serves — requests fail once the conversation passes 4096: restart the server with a larger window (--ctx-size), or lower contextWindow`. Une requête que le serveur refuse ensuite comme trop longue (`exceed_context_size_error` de llama.cpp, `context_length_exceeded` d'OpenAI) n'est pas relancée, et l'erreur donne les tailles : `the request (4704 tokens) is larger than the server's window (4096) — …`. | | |
| 18 | 18 | | `maxOutput` | entier | `16000` | Nombre maximal de caractères qu'un outil renvoie au modèle ; au-delà, la sortie garde son début et jusqu'à 2000 caractères de fin. Doit être > 0. | |
| 19 | 19 | | `maxTurns` | entier | `10` | Nombre maximal d'allers-retours modèle ↔ outils par question. Doit être > 0. | |
| 20 | 20 | | `previewLines` | entier | `20` | Lignes de la sortie d'une commande affichées dans le terminal. `0` désactive l'affichage. Doit être ≥ 0. | |
| @@ -23,11 +23,12 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | ||
| 23 | 23 | | `showThinking` | booléen | `true` | Affiche ce qu'un modèle à raisonnement réfléchit avant de répondre. Seul l'affichage est optionnel : le raisonnement est toujours lu sur le fil, car c'est lui qui maintient le chien de garde en vie pendant que le modèle réfléchit. Voir [Modèles à raisonnement](../explanation/thinking-models.md). | |
| 24 | 24 | | `showCompletionTime` | booléen | `true` | Mode fenêtre : afficher `⏱ <durée>` dans la barre d'état, qui défile pendant un tour ou un `/ask`, puis la durée finale jusqu'à la question suivante. `false` limite la barre d'état à ses compteurs. Voir [le mode fenêtre](cli.md). | |
| 25 | 25 | | `system` | chaîne | prompt intégré | Le prompt système, premier message de chaque historique. | |
| 26 | +| `turnReminder` | chaîne | `""` | Un texte ajouté à chaque question que lit le modèle, sous une ligne `[reminder]`, après les hooks `preGeneration`, dans toutes les interfaces (mode ligne, fenêtre, `-p`, éditeur). Gardé dans l'historique, comme le contexte d'un hook ; une question rappelée avec ↑ revient sans lui. Pour un petit modèle, une règle placée à côté de la question est mieux suivie que la même règle dans le prompt système : mesuré dans `demos/lfm-coder`, une règle lui demandant d'appeler `ask_user` quand une décision manque a été suivie 0 fois sur 5 depuis le prompt système, et 3 fois sur 3 à côté de la question avec la forme exacte de l'appel. Vide = aucun. | | |
| 26 | 27 | | `structuredOutput` | chaîne (déclarations Go) | `""` | La forme que doit suivre chaque réponse, en JSON : des déclarations `type` Go et une `var` qui nomme la racine de la réponse. Voir [`structuredOutput`](#structuredoutput) ci-dessous. Vide = réponses en texte libre. Incompatible avec tout outil déclaré. | |
| 27 | 28 | | `decision` | mapping ou absent | absent | Fait de l'agent un **décideur** : son modèle est un modèle de décision servi par `POST /v1/systemone`, et chaque message reçu obtient pour réponse ces questions. Voir [`decision`](#decision) ci-dessous. Fournisseurs `llamacpp`, `llmman`, `ollama`, `openai` seulement. | |
| 28 | 29 | | `skillRouting` | mapping | `minConfidence: 0.6`, `timeout: 2s`, pas de `decider` | Avant chaque tour, demander à un décideur quel skill s'applique, et ajouter la ligne `$skill` s'il est assez sûr. Voir [`skillRouting`](#skillrouting) ci-dessous. Désactivé sans `decider`. | |
| 29 | 30 | | `toolRouting` | mapping | `dropBelow: 0.2`, `timeout: 2s`, pas de `decider` | Avant chaque tour, demander à un décideur de quels groupes d'outils la demande a besoin, et retirer de la requête les groupes qu'il écarte. Voir [`toolRouting`](#toolrouting) ci-dessous. Désactivé sans `decider`. | |
| 30 | -| `skillsDir` | chaîne | `skills` | Répertoire des skills, sous forme de fichiers `<nom>.md` ou de répertoires `<nom>/SKILL.md`. Un chemin relatif est résolu depuis le répertoire de lancement de `mm` (mode terminal, ou mode ACP sans fichier de configuration), ou à côté du fichier de configuration (mode ACP avec fichier) ; la bannière avertit avec le chemin absolu quand rien n'y est trouvé. | | |
| 31 | +| `skillsDir` | chaîne | `skills` | Répertoire des skills, sous forme de fichiers `<nom>.md` ou de répertoires `<nom>/SKILL.md`. Un chemin relatif est résolu depuis le répertoire de lancement de `mm` (mode terminal, ou mode ACP sans fichier de configuration), ou à côté du fichier de configuration (mode ACP avec fichier) ; la bannière avertit avec le chemin absolu quand rien n'y est trouvé. En mode terminal, quand ce répertoire ne contient aucun skill et que le même chemin relatif depuis le [répertoire de base](cli.md#répertoire-de-base-des-chemins-relatifs) du fichier de configuration en contient, c'est celui-là qui est utilisé et la bannière affiche `skills: N (from <dir>)` : un fichier d'agent gardé à un endroit et nommé avec `-config` depuis un autre projet garde ses skills. | | |
| 31 | 32 | | `bashTool` | booléen | `true` | Déclare `bash`. `false` le retire : le modèle peut encore lire et modifier des fichiers (`editTools`) et charger des skills, mais n'exécute jamais de commande. Reformulez un prompt système qui annonce encore un outil bash. | |
| 32 | 33 | | `editTools` | booléen | `true` | Déclare `read_file`, `write_file`, `edit_file`. `false` ne laisse que `bash` et `read_skill`. | |
| 33 | 34 | | `fetchContentTool` | booléen | `false` | Déclare `fetch_content`, qui récupère des pages web en Markdown. Désactivé par défaut : c'est le seul outil intégré qui accède au réseau. | |
| @@ -40,6 +41,7 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | ||
| 40 | 41 | | `watchdogTimeout` | durée | `20s` | Silence toléré entre deux tokens diffusés avant de déclarer la connexion bloquée. Doublé pour les requêtes de résumé. | |
| 41 | 42 | | `firstTokenTimeout` | durée | `3m` | Silence toléré avant le premier token d'un appel au modèle, pendant que le serveur lit le prompt (chaque aller-retour d'un tour en a un). Jamais plus court que `watchdogTimeout` ; doit être >= 0. Avec un serveur llama.cpp (`dmr`, `llamacpp`, `llmman` — dont les modèles GGUF locaux tournent dans llama-server), mm demande `return_progress` : chaque rapport d'avancement relance ce délai, et le spinner affiche `Reading the prompt 12.0k/25.3k tokens`. Ollama et Kronk n'envoient pas d'avancement : cette seule attente couvre tout le prompt (et le chargement du modèle). À l'expiration, le watchdog dit `no first token from the server after …` (avant le premier token) ou `connection hang detected after …` (après). | |
| 42 | 43 | | `bashTimeout` | durée | `30s` | Durée maximale d'une commande `bash` avant qu'elle soit tuée ; l'outil répond alors `[error: <bashTimeout> timeout exceeded]`. Doit être > 0. Le watchdog continue de compter pendant qu'une commande tourne (ticket 57) : une commande plus longue que `watchdogTimeout` termine le tour, donc relevez les deux ensemble. | |
| 44 | +| `bashBackground` | chaîne | `report` | Ce que fait mm des processus qu'une commande `bash` laisse tourner en arrière-plan (`./server &`). Chaque commande s'exécute dans son propre groupe de processus. `report` : les processus encore dans le groupe quand la commande rend la main sont listés à la fin de la sortie de l'outil — `[still running in the background after this command: 4242 (server). Each bash call is a new shell: …]` — avec le conseil de les arrêter dans la même commande. `stop` : listés aussi, et arrêtés à la fin du tour. `allow` : pas de groupe de processus, rien n'est dit (le comportement d'avant la v2.0.0). Un dépassement de `bashTimeout` ou une annulation arrête tout le groupe. Linux et macOS ; rien n'est signalé ni arrêté sous Windows. Doit valoir `report`, `stop` ou `allow`. | | |
| 43 | 45 | | `context` | dictionnaire | voir ci-dessous | Compression automatique de l'historique. | |
| 44 | 46 | | `sessions` | dictionnaire | voir ci-dessous | Sessions persistantes, par projet. | |
| 45 | 47 | | `docSearch` | dictionnaire | voir ci-dessous | Recherche BM25 dans les fichiers texte de dossiers : la commande `/docs` et l'outil `search_docs`. | |
| @@ -49,6 +51,7 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | ||
| 49 | 51 | | `lsp` | dictionnaire | voir ci-dessous | Serveurs de langage derrière l'outil `lsp`. Aucun serveur listé = pas d'outil. | |
| 50 | 52 | | `hooks` | dictionnaire événement → liste | aucun | Commandes lancées avant qu'une question atteigne le modèle (`preGeneration`), avant et après chaque appel d'outil (`preToolCall`, `postToolCall`) après le tour (`postGeneration`), et avant et après chaque relais vers un autre agent (`preAsk`, `postAsk`) ; chacune lit un objet JSON sur stdin et peut en répondre un sur stdout. Clés d'une entrée : `command` ou `wasm` (un module WebAssembly, avec ses dossiers `read` / `write`), `matcher` (événements d'outil et d'agent seulement : un nom d'outil, ou un nom d'agent), `timeout` (défaut `10s`), `onError` (`fail` \| `warn` \| `ignore`, défaut `warn`). Voir [les hooks](hooks.md). | |
| 51 | 53 | | `tools` | liste | `[]` | Des commandes ou des modules WebAssembly déclarés comme outils typés : chaque entrée a un `name`, une `description`, ses `parameters`, et une `command` exécutée sans shell ou un module `wasm` exécuté dans un bac à sable. Voir les [clés de `tools`](#clés-de-tools) ci-dessous et les [outils déclarés](tools.md#outils-déclarés). | |
| 54 | +| `workspace` | dictionnaire | les deux clés à `false` | Le rapport des outils de fichiers et de `bash` au répertoire de travail : réparer les chemins absolus erronés, refuser les chemins qui en sortent. Voir les [clés de `workspace`](#clés-de-workspace) ci-dessous. | | |
| 52 | 55 | | `tui` | bool | `false` | Démarre dans le mode fenêtre unique sans l'option `-tui`. Retombe sur le mode ligne quand stdin ou stdout n'est pas un terminal ; ignoré avec `-acp`. | |
| 53 | 56 | | `yolo` | booléen | `true` | `true` : les outils s'exécutent sans demander. `false` : chaque appel qui modifie quelque chose — `bash`, `write_file`, `edit_file`, `fetch_content` avec `output`, `rename` de `lsp`, `create`/`update`/`next`/`delete` de `plan` — attend la réponse de l'utilisateur dans toutes les façades (mode ligne, fenêtre, éditeur), de même que chaque outil MCP, quoi que dise `mcp.permissions`. Réponses : autoriser une fois, autoriser cet outil pour la session, refuser cet appel, jamais (cet outil, pour la session). `read_file`, `read_skill`, `fetch_content` sans `output` et les actions de navigation de `lsp` ne demandent jamais. Avec `-p` et `mm --ask`, personne ne peut répondre : ces appels sont refusés. Un agent lancé par `/ask`, `ask_agent` ou `mm --ask` tourne avec `AGENT_YOLO=false` et soumet ses appels à l'agent qui l'interroge : le `yolo` de son entrée `mmConfigs` décide s'il est fixé, sinon le `yolo` de l'agent qui interroge. Surchargée par `AGENT_YOLO`. `bashTool`, `editTools`, `fetchContentTool` décident toujours quels outils existent. Voir [Confirmer les appels d'outils](../how-to/confirm-tool-calls.md). | |
| 54 | 57 | | `permissions` | chaîne | absente | Obsolète, remplacée par `yolo`. `ask` = `yolo: false` (et l'emporte sur `yolo: true`) ; `auto` ne change rien. Les deux valeurs ajoutent un avertissement au démarrage. Doit valoir `auto` ou `ask`. | |
| @@ -139,6 +142,8 @@ La version n'est pas paramétrable : `agentInfo.version` est toujours celle du b | ||
| 139 | 142 | | `lsp.servers[].command` | chaîne | — | L'exécutable, cherché sur le `PATH` au démarrage. Obligatoire. Introuvable : avertissement, serveur ignoré. | |
| 140 | 143 | | `lsp.servers[].args` | liste de chaînes | `[]` | Ses arguments (beaucoup de serveurs veulent `--stdio`). | |
| 141 | 144 | | `lsp.servers[].extensions` | liste de chaînes | — | Les extensions de fichier qu'il sert, avec le point (`.go`, `.ts`). Obligatoire, au moins une ; comparaison insensible à la casse ; une extension ne peut être servie que par un serveur. | |
| 145 | +| `lsp.diagnosticsAfterEdit` | booléen | `false` | Après un `write_file` ou un `edit_file` réussi sur un fichier qu'un serveur gère, demande à ce serveur les diagnostics du fichier et les ajoute à la sortie de l'outil sous `[lsp diagnostics after this change]`. Le serveur est démarré si besoin ; il a 8 s pour répondre, sinon la note dit `not available — <raison>` (la modification elle-même a réussi). Les petits modèles demandent rarement les diagnostics d'eux-mêmes : 0 fois en 54 exécutions dans `demos/gemma-coder`. | | |
| 146 | +| `lsp.diagnosticsAfterRead` | booléen | `false` | Après un `read_file` réussi d'un fichier qu'un serveur gère, ajoute les diagnostics de ce serveur pour tout le fichier sous `[lsp diagnostics for this file, added by mm — not part of its content]`. Une fois par version du fichier (date de modification et taille) : le relire inchangé, ou juste après une modification qui a déjà apporté ses diagnostics, ne demande rien. Même délai de 8 s que `diagnosticsAfterEdit`. | | |
| 142 | 147 | |
| 143 | 148 | ```yaml |
| 144 | 149 | lsp: |
| @@ -192,6 +197,32 @@ tools: | ||
| 192 | 197 | read: [notes] |
| 193 | 198 | ``` |
| 194 | 199 | |
| 200 | +## Clés de `workspace` | |
| 201 | + | |
| 202 | +Les deux clés sont désactivées par défaut. Elles servent aux petits modèles qui recopient le chemin absolu du projet en oubliant un répertoire, ou qui inventent une racine (`/workspace/…`, `/home/user/…`). | |
| 203 | + | |
| 204 | +| Clé | Type | Défaut | Description | | |
| 205 | +|-----|------|--------|-------------| | |
| 206 | +| `confine` | booléen | `false` | `read_file`, `write_file`, `edit_file` et `lsp` refusent un chemin qui se résout hors du répertoire de travail (liens symboliques résolus). Le refus est un échec d'outil que le modèle lit, et il propose un chemin **relatif**, jamais le chemin absolu du projet : `[<path> is outside the project. Every tool already runs in the project root: use a RELATIVE path, for example "<nom du fichier>" — never a path starting with /]`. Appliqué après `repairPaths`. `bash` n'est pas confiné. | | |
| 207 | +| `repairPaths` | booléen | `false` | Remplace un chemin erroné par celui que le modèle voulait dire, et le lui signale. Trois réparations, décrites ci-dessous. | | |
| 208 | + | |
| 209 | +`repairPaths` fait trois choses : | |
| 210 | + | |
| 211 | +| Où | Chemin | Devient | Note ajoutée à la sortie de l'outil | | |
| 212 | +|----|--------|---------|-------------------------------------| | |
| 213 | +| `read_file`, `write_file`, `edit_file`, `lsp` | Absolu, hors du répertoire de travail, **même arborescence** (au moins deux composants de tête en commun avec lui) | La fin qui suit la partie commune, sans les répertoires qui appartiennent au chemin du projet lui-même : `<parent>/main.go` → `main.go` | `[path <path> is outside the project: used <fixed> — use relative paths]` | | |
| 214 | +| idem | Absolu, **autre arborescence** (une racine inventée) | Sa plus longue fin qui est un fichier existant du projet, sinon sa plus longue fin dont le répertoire y existe (un nouveau fichier) : `/workspace/stats/stats.go` → `stats/stats.go`. Aucune : le chemin est gardé. | idem | | |
| 215 | +| idem | Relatif, commençant par le nom du dossier du projet (`olala-mini/script.js` dans `…/olala-mini`) | Le chemin sans ce premier répertoire, quand le chemin n'existe pas et que le reste existe (ou, pour un nouveau fichier, quand le répertoire du reste existe et pas celui de l'original). Un vrai sous-dossier portant le nom du projet n'est pas touché. | `[path <path> starts with the project folder's own name: used <fixed> — paths are relative to the project root]` | | |
| 216 | +| `bash` | Un `cd <chemin absolu> &&` (ou `;`) en tête, entre guillemets ou non | Supprimé — la commande s'exécute à la racine du projet, où démarre toute commande `bash` — quand le répertoire n'existe pas, est la racine du projet elle-même, ou appartient à la même arborescence que le projet mais en dehors. Plusieurs `cd` de ce genre à la suite sont tous supprimés. Gardés : un vrai répertoire d'une autre arborescence (`cd /tmp && …`), un sous-répertoire du projet, un `cd` relatif, un `cd` sans rien après. | `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]` | | |
| 217 | + | |
| 218 | +La note est écrite au début de la sortie de l'outil, dans le terminal, la fenêtre et un éditeur (ACP) ; le terminal affiche la commande telle qu'elle s'exécute, sans le `cd` supprimé. | |
| 219 | + | |
| 220 | +```yaml | |
| 221 | +workspace: | |
| 222 | + confine: true # read_file, write_file, edit_file et lsp restent dedans | |
| 223 | + repairPaths: true # un chemin absolu erroné devient le chemin relatif voulu | |
| 224 | +``` | |
| 225 | + | |
| 195 | 226 | ## Valeurs par défaut des fournisseurs |
| 196 | 227 | |
| 197 | 228 | | Fournisseur | `baseUrl` | `fallback` | `apiKeyEnv` | Clé requise | |
| @@ -454,6 +485,7 @@ Signalées sur stderr sous la forme `[config error: <chemin>: <message>]`, code | ||
| 454 | 485 | | `permissions must be "auto" or "ask"` | toute autre valeur de la clé obsolète | |
| 455 | 486 | | `AGENT_YOLO="maybe": must be true or false` | une valeur d'`AGENT_YOLO` que `strconv.ParseBool` refuse (acceptées : `1`, `t`, `true`, `0`, `f`, `false`, sans distinction de casse) | |
| 456 | 487 | | `bashTimeout must be > 0` | zéro ou négative | |
| 488 | +| `bashBackground must be "report", "stop" or "allow", not "…"` | toute autre valeur | | |
| 457 | 489 | | `structuredOutput:<ligne>:<col>: …` | une déclaration que la section [`structuredOutput`](#structuredoutput) ne sait pas traduire | |
| 458 | 490 | | `structuredOutput: no var declaration: …` | aucune `var` ne nomme la racine | |
| 459 | 491 | | `decision.questions: at least one question is needed` | un bloc `decision` sans questions | |
| @@ -14,7 +14,7 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | |||
| 14 | | `fallback` | chaîne ou absente | absente (défaut du fournisseur) | Point d'accès utilisé quand `baseUrl` ne répond pas sur `/models` en 2 s. Absente = défaut du fournisseur ; `""` = pas de repli. | | 14 | | `fallback` | chaîne ou absente | absente (défaut du fournisseur) | Point d'accès utilisé quand `baseUrl` ne répond pas sur `/models` en 2 s. Absente = défaut du fournisseur ; `""` = pas de repli. | |
| 15 | | `apiKeyEnv` | chaîne | `""` (défaut du fournisseur) | Nom de la variable d'environnement qui contient la clé d'API. | | 15 | | `apiKeyEnv` | chaîne | `""` (défaut du fournisseur) | Nom de la variable d'environnement qui contient la clé d'API. | |
| 16 | | `toolFormat` | chaîne | `openai` | Comment les outils arrivent au modèle. `openai` : le champ `tools` de l'API OpenAI, celui qu'attendent tous les serveurs. `xml_tools` : pour un modèle dont le chat template lit ses outils dans une variable `xml_tools` et écrit ses appels en texte `<tool_call>` (SmolLM3) — mm envoie les outils dans `chat_template_kwargs.xml_tools` (sans champ `tools`), réécrit les appels précédents dans l'historique en texte `<tool_call>`, et transforme les blocs `<tool_call>` de la réponse en appels d'outils, en streaming ou non. Toute autre valeur : `toolFormat must be openai or xml_tools`. Voir [Comment donner des outils à un modèle dont le template lit `xml_tools`](../how-to/use-a-model-that-reads-xml-tools.md). | | 16 | | `toolFormat` | chaîne | `openai` | Comment les outils arrivent au modèle. `openai` : le champ `tools` de l'API OpenAI, celui qu'attendent tous les serveurs. `xml_tools` : pour un modèle dont le chat template lit ses outils dans une variable `xml_tools` et écrit ses appels en texte `<tool_call>` (SmolLM3) — mm envoie les outils dans `chat_template_kwargs.xml_tools` (sans champ `tools`), réécrit les appels précédents dans l'historique en texte `<tool_call>`, et transforme les blocs `<tool_call>` de la réponse en appels d'outils, en streaming ou non. Toute autre valeur : `toolFormat must be openai or xml_tools`. Voir [Comment donner des outils à un modèle dont le template lit `xml_tools`](../how-to/use-a-model-that-reads-xml-tools.md). | |
| 17 | -| `contextWindow` | entier | `0` | Tokens servis par le serveur. `0` = demander au serveur, sinon inconnu. Doit être ≥ 0. | | 17 | +| `contextWindow` | entier | `0` | Tokens servis par le serveur. `0` = demander au serveur, sinon inconnu. Doit être ≥ 0. Avec un serveur llama.cpp en mode routeur (plusieurs modèles derrière un même port, comme l'application Llama), mm interroge `/props?model=<modèle>`, puis `/props`. Une valeur plus grande que la fenêtre annoncée par le serveur donne un avertissement au démarrage : `contextWindow 32768 is larger than the 4096 tokens the server serves — requests fail once the conversation passes 4096: restart the server with a larger window (--ctx-size), or lower contextWindow`. Une requête que le serveur refuse ensuite comme trop longue (`exceed_context_size_error` de llama.cpp, `context_length_exceeded` d'OpenAI) n'est pas relancée, et l'erreur donne les tailles : `the request (4704 tokens) is larger than the server's window (4096) — …`. | |
| 18 | | `maxOutput` | entier | `16000` | Nombre maximal de caractères qu'un outil renvoie au modèle ; au-delà, la sortie garde son début et jusqu'à 2000 caractères de fin. Doit être > 0. | | 18 | | `maxOutput` | entier | `16000` | Nombre maximal de caractères qu'un outil renvoie au modèle ; au-delà, la sortie garde son début et jusqu'à 2000 caractères de fin. Doit être > 0. | |
| 19 | | `maxTurns` | entier | `10` | Nombre maximal d'allers-retours modèle ↔ outils par question. Doit être > 0. | | 19 | | `maxTurns` | entier | `10` | Nombre maximal d'allers-retours modèle ↔ outils par question. Doit être > 0. | |
| 20 | | `previewLines` | entier | `20` | Lignes de la sortie d'une commande affichées dans le terminal. `0` désactive l'affichage. Doit être ≥ 0. | | 20 | | `previewLines` | entier | `20` | Lignes de la sortie d'une commande affichées dans le terminal. `0` désactive l'affichage. Doit être ≥ 0. | |
| @@ -23,11 +23,12 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | |||
| 23 | | `showThinking` | booléen | `true` | Affiche ce qu'un modèle à raisonnement réfléchit avant de répondre. Seul l'affichage est optionnel : le raisonnement est toujours lu sur le fil, car c'est lui qui maintient le chien de garde en vie pendant que le modèle réfléchit. Voir [Modèles à raisonnement](../explanation/thinking-models.md). | | 23 | | `showThinking` | booléen | `true` | Affiche ce qu'un modèle à raisonnement réfléchit avant de répondre. Seul l'affichage est optionnel : le raisonnement est toujours lu sur le fil, car c'est lui qui maintient le chien de garde en vie pendant que le modèle réfléchit. Voir [Modèles à raisonnement](../explanation/thinking-models.md). | |
| 24 | | `showCompletionTime` | booléen | `true` | Mode fenêtre : afficher `⏱ <durée>` dans la barre d'état, qui défile pendant un tour ou un `/ask`, puis la durée finale jusqu'à la question suivante. `false` limite la barre d'état à ses compteurs. Voir [le mode fenêtre](cli.md). | | 24 | | `showCompletionTime` | booléen | `true` | Mode fenêtre : afficher `⏱ <durée>` dans la barre d'état, qui défile pendant un tour ou un `/ask`, puis la durée finale jusqu'à la question suivante. `false` limite la barre d'état à ses compteurs. Voir [le mode fenêtre](cli.md). | |
| 25 | | `system` | chaîne | prompt intégré | Le prompt système, premier message de chaque historique. | | 25 | | `system` | chaîne | prompt intégré | Le prompt système, premier message de chaque historique. | |
| 26 | +| `turnReminder` | chaîne | `""` | Un texte ajouté à chaque question que lit le modèle, sous une ligne `[reminder]`, après les hooks `preGeneration`, dans toutes les interfaces (mode ligne, fenêtre, `-p`, éditeur). Gardé dans l'historique, comme le contexte d'un hook ; une question rappelée avec ↑ revient sans lui. Pour un petit modèle, une règle placée à côté de la question est mieux suivie que la même règle dans le prompt système : mesuré dans `demos/lfm-coder`, une règle lui demandant d'appeler `ask_user` quand une décision manque a été suivie 0 fois sur 5 depuis le prompt système, et 3 fois sur 3 à côté de la question avec la forme exacte de l'appel. Vide = aucun. | | ||
| 26 | | `structuredOutput` | chaîne (déclarations Go) | `""` | La forme que doit suivre chaque réponse, en JSON : des déclarations `type` Go et une `var` qui nomme la racine de la réponse. Voir [`structuredOutput`](#structuredoutput) ci-dessous. Vide = réponses en texte libre. Incompatible avec tout outil déclaré. | | 27 | | `structuredOutput` | chaîne (déclarations Go) | `""` | La forme que doit suivre chaque réponse, en JSON : des déclarations `type` Go et une `var` qui nomme la racine de la réponse. Voir [`structuredOutput`](#structuredoutput) ci-dessous. Vide = réponses en texte libre. Incompatible avec tout outil déclaré. | |
| 27 | | `decision` | mapping ou absent | absent | Fait de l'agent un **décideur** : son modèle est un modèle de décision servi par `POST /v1/systemone`, et chaque message reçu obtient pour réponse ces questions. Voir [`decision`](#decision) ci-dessous. Fournisseurs `llamacpp`, `llmman`, `ollama`, `openai` seulement. | | 28 | | `decision` | mapping ou absent | absent | Fait de l'agent un **décideur** : son modèle est un modèle de décision servi par `POST /v1/systemone`, et chaque message reçu obtient pour réponse ces questions. Voir [`decision`](#decision) ci-dessous. Fournisseurs `llamacpp`, `llmman`, `ollama`, `openai` seulement. | |
| 28 | | `skillRouting` | mapping | `minConfidence: 0.6`, `timeout: 2s`, pas de `decider` | Avant chaque tour, demander à un décideur quel skill s'applique, et ajouter la ligne `$skill` s'il est assez sûr. Voir [`skillRouting`](#skillrouting) ci-dessous. Désactivé sans `decider`. | | 29 | | `skillRouting` | mapping | `minConfidence: 0.6`, `timeout: 2s`, pas de `decider` | Avant chaque tour, demander à un décideur quel skill s'applique, et ajouter la ligne `$skill` s'il est assez sûr. Voir [`skillRouting`](#skillrouting) ci-dessous. Désactivé sans `decider`. | |
| 29 | | `toolRouting` | mapping | `dropBelow: 0.2`, `timeout: 2s`, pas de `decider` | Avant chaque tour, demander à un décideur de quels groupes d'outils la demande a besoin, et retirer de la requête les groupes qu'il écarte. Voir [`toolRouting`](#toolrouting) ci-dessous. Désactivé sans `decider`. | | 30 | | `toolRouting` | mapping | `dropBelow: 0.2`, `timeout: 2s`, pas de `decider` | Avant chaque tour, demander à un décideur de quels groupes d'outils la demande a besoin, et retirer de la requête les groupes qu'il écarte. Voir [`toolRouting`](#toolrouting) ci-dessous. Désactivé sans `decider`. | |
| 30 | -| `skillsDir` | chaîne | `skills` | Répertoire des skills, sous forme de fichiers `<nom>.md` ou de répertoires `<nom>/SKILL.md`. Un chemin relatif est résolu depuis le répertoire de lancement de `mm` (mode terminal, ou mode ACP sans fichier de configuration), ou à côté du fichier de configuration (mode ACP avec fichier) ; la bannière avertit avec le chemin absolu quand rien n'y est trouvé. | | 31 | +| `skillsDir` | chaîne | `skills` | Répertoire des skills, sous forme de fichiers `<nom>.md` ou de répertoires `<nom>/SKILL.md`. Un chemin relatif est résolu depuis le répertoire de lancement de `mm` (mode terminal, ou mode ACP sans fichier de configuration), ou à côté du fichier de configuration (mode ACP avec fichier) ; la bannière avertit avec le chemin absolu quand rien n'y est trouvé. En mode terminal, quand ce répertoire ne contient aucun skill et que le même chemin relatif depuis le [répertoire de base](cli.md#répertoire-de-base-des-chemins-relatifs) du fichier de configuration en contient, c'est celui-là qui est utilisé et la bannière affiche `skills: N (from <dir>)` : un fichier d'agent gardé à un endroit et nommé avec `-config` depuis un autre projet garde ses skills. | |
| 31 | | `bashTool` | booléen | `true` | Déclare `bash`. `false` le retire : le modèle peut encore lire et modifier des fichiers (`editTools`) et charger des skills, mais n'exécute jamais de commande. Reformulez un prompt système qui annonce encore un outil bash. | | 32 | | `bashTool` | booléen | `true` | Déclare `bash`. `false` le retire : le modèle peut encore lire et modifier des fichiers (`editTools`) et charger des skills, mais n'exécute jamais de commande. Reformulez un prompt système qui annonce encore un outil bash. | |
| 32 | | `editTools` | booléen | `true` | Déclare `read_file`, `write_file`, `edit_file`. `false` ne laisse que `bash` et `read_skill`. | | 33 | | `editTools` | booléen | `true` | Déclare `read_file`, `write_file`, `edit_file`. `false` ne laisse que `bash` et `read_skill`. | |
| 33 | | `fetchContentTool` | booléen | `false` | Déclare `fetch_content`, qui récupère des pages web en Markdown. Désactivé par défaut : c'est le seul outil intégré qui accède au réseau. | | 34 | | `fetchContentTool` | booléen | `false` | Déclare `fetch_content`, qui récupère des pages web en Markdown. Désactivé par défaut : c'est le seul outil intégré qui accède au réseau. | |
| @@ -40,6 +41,7 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | |||
| 40 | | `watchdogTimeout` | durée | `20s` | Silence toléré entre deux tokens diffusés avant de déclarer la connexion bloquée. Doublé pour les requêtes de résumé. | | 41 | | `watchdogTimeout` | durée | `20s` | Silence toléré entre deux tokens diffusés avant de déclarer la connexion bloquée. Doublé pour les requêtes de résumé. | |
| 41 | | `firstTokenTimeout` | durée | `3m` | Silence toléré avant le premier token d'un appel au modèle, pendant que le serveur lit le prompt (chaque aller-retour d'un tour en a un). Jamais plus court que `watchdogTimeout` ; doit être >= 0. Avec un serveur llama.cpp (`dmr`, `llamacpp`, `llmman` — dont les modèles GGUF locaux tournent dans llama-server), mm demande `return_progress` : chaque rapport d'avancement relance ce délai, et le spinner affiche `Reading the prompt 12.0k/25.3k tokens`. Ollama et Kronk n'envoient pas d'avancement : cette seule attente couvre tout le prompt (et le chargement du modèle). À l'expiration, le watchdog dit `no first token from the server after …` (avant le premier token) ou `connection hang detected after …` (après). | | 42 | | `firstTokenTimeout` | durée | `3m` | Silence toléré avant le premier token d'un appel au modèle, pendant que le serveur lit le prompt (chaque aller-retour d'un tour en a un). Jamais plus court que `watchdogTimeout` ; doit être >= 0. Avec un serveur llama.cpp (`dmr`, `llamacpp`, `llmman` — dont les modèles GGUF locaux tournent dans llama-server), mm demande `return_progress` : chaque rapport d'avancement relance ce délai, et le spinner affiche `Reading the prompt 12.0k/25.3k tokens`. Ollama et Kronk n'envoient pas d'avancement : cette seule attente couvre tout le prompt (et le chargement du modèle). À l'expiration, le watchdog dit `no first token from the server after …` (avant le premier token) ou `connection hang detected after …` (après). | |
| 42 | | `bashTimeout` | durée | `30s` | Durée maximale d'une commande `bash` avant qu'elle soit tuée ; l'outil répond alors `[error: <bashTimeout> timeout exceeded]`. Doit être > 0. Le watchdog continue de compter pendant qu'une commande tourne (ticket 57) : une commande plus longue que `watchdogTimeout` termine le tour, donc relevez les deux ensemble. | | 43 | | `bashTimeout` | durée | `30s` | Durée maximale d'une commande `bash` avant qu'elle soit tuée ; l'outil répond alors `[error: <bashTimeout> timeout exceeded]`. Doit être > 0. Le watchdog continue de compter pendant qu'une commande tourne (ticket 57) : une commande plus longue que `watchdogTimeout` termine le tour, donc relevez les deux ensemble. | |
| 44 | +| `bashBackground` | chaîne | `report` | Ce que fait mm des processus qu'une commande `bash` laisse tourner en arrière-plan (`./server &`). Chaque commande s'exécute dans son propre groupe de processus. `report` : les processus encore dans le groupe quand la commande rend la main sont listés à la fin de la sortie de l'outil — `[still running in the background after this command: 4242 (server). Each bash call is a new shell: …]` — avec le conseil de les arrêter dans la même commande. `stop` : listés aussi, et arrêtés à la fin du tour. `allow` : pas de groupe de processus, rien n'est dit (le comportement d'avant la v2.0.0). Un dépassement de `bashTimeout` ou une annulation arrête tout le groupe. Linux et macOS ; rien n'est signalé ni arrêté sous Windows. Doit valoir `report`, `stop` ou `allow`. | | ||
| 43 | | `context` | dictionnaire | voir ci-dessous | Compression automatique de l'historique. | | 45 | | `context` | dictionnaire | voir ci-dessous | Compression automatique de l'historique. | |
| 44 | | `sessions` | dictionnaire | voir ci-dessous | Sessions persistantes, par projet. | | 46 | | `sessions` | dictionnaire | voir ci-dessous | Sessions persistantes, par projet. | |
| 45 | | `docSearch` | dictionnaire | voir ci-dessous | Recherche BM25 dans les fichiers texte de dossiers : la commande `/docs` et l'outil `search_docs`. | | 47 | | `docSearch` | dictionnaire | voir ci-dessous | Recherche BM25 dans les fichiers texte de dossiers : la commande `/docs` et l'outil `search_docs`. | |
| @@ -49,6 +51,7 @@ Où `mm` cherche ce fichier : [Résolution du fichier de configuration](cli.md#r | |||
| 49 | | `lsp` | dictionnaire | voir ci-dessous | Serveurs de langage derrière l'outil `lsp`. Aucun serveur listé = pas d'outil. | | 51 | | `lsp` | dictionnaire | voir ci-dessous | Serveurs de langage derrière l'outil `lsp`. Aucun serveur listé = pas d'outil. | |
| 50 | | `hooks` | dictionnaire événement → liste | aucun | Commandes lancées avant qu'une question atteigne le modèle (`preGeneration`), avant et après chaque appel d'outil (`preToolCall`, `postToolCall`) après le tour (`postGeneration`), et avant et après chaque relais vers un autre agent (`preAsk`, `postAsk`) ; chacune lit un objet JSON sur stdin et peut en répondre un sur stdout. Clés d'une entrée : `command` ou `wasm` (un module WebAssembly, avec ses dossiers `read` / `write`), `matcher` (événements d'outil et d'agent seulement : un nom d'outil, ou un nom d'agent), `timeout` (défaut `10s`), `onError` (`fail` \| `warn` \| `ignore`, défaut `warn`). Voir [les hooks](hooks.md). | | 52 | | `hooks` | dictionnaire événement → liste | aucun | Commandes lancées avant qu'une question atteigne le modèle (`preGeneration`), avant et après chaque appel d'outil (`preToolCall`, `postToolCall`) après le tour (`postGeneration`), et avant et après chaque relais vers un autre agent (`preAsk`, `postAsk`) ; chacune lit un objet JSON sur stdin et peut en répondre un sur stdout. Clés d'une entrée : `command` ou `wasm` (un module WebAssembly, avec ses dossiers `read` / `write`), `matcher` (événements d'outil et d'agent seulement : un nom d'outil, ou un nom d'agent), `timeout` (défaut `10s`), `onError` (`fail` \| `warn` \| `ignore`, défaut `warn`). Voir [les hooks](hooks.md). | |
| 51 | | `tools` | liste | `[]` | Des commandes ou des modules WebAssembly déclarés comme outils typés : chaque entrée a un `name`, une `description`, ses `parameters`, et une `command` exécutée sans shell ou un module `wasm` exécuté dans un bac à sable. Voir les [clés de `tools`](#clés-de-tools) ci-dessous et les [outils déclarés](tools.md#outils-déclarés). | | 53 | | `tools` | liste | `[]` | Des commandes ou des modules WebAssembly déclarés comme outils typés : chaque entrée a un `name`, une `description`, ses `parameters`, et une `command` exécutée sans shell ou un module `wasm` exécuté dans un bac à sable. Voir les [clés de `tools`](#clés-de-tools) ci-dessous et les [outils déclarés](tools.md#outils-déclarés). | |
| 54 | +| `workspace` | dictionnaire | les deux clés à `false` | Le rapport des outils de fichiers et de `bash` au répertoire de travail : réparer les chemins absolus erronés, refuser les chemins qui en sortent. Voir les [clés de `workspace`](#clés-de-workspace) ci-dessous. | | ||
| 52 | | `tui` | bool | `false` | Démarre dans le mode fenêtre unique sans l'option `-tui`. Retombe sur le mode ligne quand stdin ou stdout n'est pas un terminal ; ignoré avec `-acp`. | | 55 | | `tui` | bool | `false` | Démarre dans le mode fenêtre unique sans l'option `-tui`. Retombe sur le mode ligne quand stdin ou stdout n'est pas un terminal ; ignoré avec `-acp`. | |
| 53 | | `yolo` | booléen | `true` | `true` : les outils s'exécutent sans demander. `false` : chaque appel qui modifie quelque chose — `bash`, `write_file`, `edit_file`, `fetch_content` avec `output`, `rename` de `lsp`, `create`/`update`/`next`/`delete` de `plan` — attend la réponse de l'utilisateur dans toutes les façades (mode ligne, fenêtre, éditeur), de même que chaque outil MCP, quoi que dise `mcp.permissions`. Réponses : autoriser une fois, autoriser cet outil pour la session, refuser cet appel, jamais (cet outil, pour la session). `read_file`, `read_skill`, `fetch_content` sans `output` et les actions de navigation de `lsp` ne demandent jamais. Avec `-p` et `mm --ask`, personne ne peut répondre : ces appels sont refusés. Un agent lancé par `/ask`, `ask_agent` ou `mm --ask` tourne avec `AGENT_YOLO=false` et soumet ses appels à l'agent qui l'interroge : le `yolo` de son entrée `mmConfigs` décide s'il est fixé, sinon le `yolo` de l'agent qui interroge. Surchargée par `AGENT_YOLO`. `bashTool`, `editTools`, `fetchContentTool` décident toujours quels outils existent. Voir [Confirmer les appels d'outils](../how-to/confirm-tool-calls.md). | | 56 | | `yolo` | booléen | `true` | `true` : les outils s'exécutent sans demander. `false` : chaque appel qui modifie quelque chose — `bash`, `write_file`, `edit_file`, `fetch_content` avec `output`, `rename` de `lsp`, `create`/`update`/`next`/`delete` de `plan` — attend la réponse de l'utilisateur dans toutes les façades (mode ligne, fenêtre, éditeur), de même que chaque outil MCP, quoi que dise `mcp.permissions`. Réponses : autoriser une fois, autoriser cet outil pour la session, refuser cet appel, jamais (cet outil, pour la session). `read_file`, `read_skill`, `fetch_content` sans `output` et les actions de navigation de `lsp` ne demandent jamais. Avec `-p` et `mm --ask`, personne ne peut répondre : ces appels sont refusés. Un agent lancé par `/ask`, `ask_agent` ou `mm --ask` tourne avec `AGENT_YOLO=false` et soumet ses appels à l'agent qui l'interroge : le `yolo` de son entrée `mmConfigs` décide s'il est fixé, sinon le `yolo` de l'agent qui interroge. Surchargée par `AGENT_YOLO`. `bashTool`, `editTools`, `fetchContentTool` décident toujours quels outils existent. Voir [Confirmer les appels d'outils](../how-to/confirm-tool-calls.md). | |
| 54 | | `permissions` | chaîne | absente | Obsolète, remplacée par `yolo`. `ask` = `yolo: false` (et l'emporte sur `yolo: true`) ; `auto` ne change rien. Les deux valeurs ajoutent un avertissement au démarrage. Doit valoir `auto` ou `ask`. | | 57 | | `permissions` | chaîne | absente | Obsolète, remplacée par `yolo`. `ask` = `yolo: false` (et l'emporte sur `yolo: true`) ; `auto` ne change rien. Les deux valeurs ajoutent un avertissement au démarrage. Doit valoir `auto` ou `ask`. | |
| @@ -139,6 +142,8 @@ La version n'est pas paramétrable : `agentInfo.version` est toujours celle du b | |||
| 139 | | `lsp.servers[].command` | chaîne | — | L'exécutable, cherché sur le `PATH` au démarrage. Obligatoire. Introuvable : avertissement, serveur ignoré. | | 142 | | `lsp.servers[].command` | chaîne | — | L'exécutable, cherché sur le `PATH` au démarrage. Obligatoire. Introuvable : avertissement, serveur ignoré. | |
| 140 | | `lsp.servers[].args` | liste de chaînes | `[]` | Ses arguments (beaucoup de serveurs veulent `--stdio`). | | 143 | | `lsp.servers[].args` | liste de chaînes | `[]` | Ses arguments (beaucoup de serveurs veulent `--stdio`). | |
| 141 | | `lsp.servers[].extensions` | liste de chaînes | — | Les extensions de fichier qu'il sert, avec le point (`.go`, `.ts`). Obligatoire, au moins une ; comparaison insensible à la casse ; une extension ne peut être servie que par un serveur. | | 144 | | `lsp.servers[].extensions` | liste de chaînes | — | Les extensions de fichier qu'il sert, avec le point (`.go`, `.ts`). Obligatoire, au moins une ; comparaison insensible à la casse ; une extension ne peut être servie que par un serveur. | |
| 145 | +| `lsp.diagnosticsAfterEdit` | booléen | `false` | Après un `write_file` ou un `edit_file` réussi sur un fichier qu'un serveur gère, demande à ce serveur les diagnostics du fichier et les ajoute à la sortie de l'outil sous `[lsp diagnostics after this change]`. Le serveur est démarré si besoin ; il a 8 s pour répondre, sinon la note dit `not available — <raison>` (la modification elle-même a réussi). Les petits modèles demandent rarement les diagnostics d'eux-mêmes : 0 fois en 54 exécutions dans `demos/gemma-coder`. | | ||
| 146 | +| `lsp.diagnosticsAfterRead` | booléen | `false` | Après un `read_file` réussi d'un fichier qu'un serveur gère, ajoute les diagnostics de ce serveur pour tout le fichier sous `[lsp diagnostics for this file, added by mm — not part of its content]`. Une fois par version du fichier (date de modification et taille) : le relire inchangé, ou juste après une modification qui a déjà apporté ses diagnostics, ne demande rien. Même délai de 8 s que `diagnosticsAfterEdit`. | | ||
| 142 | 147 | ||
| 143 | ```yaml | 148 | ```yaml |
| 144 | lsp: | 149 | lsp: |
| @@ -192,6 +197,32 @@ tools: | |||
| 192 | read: [notes] | 197 | read: [notes] |
| 193 | ``` | 198 | ``` |
| 194 | 199 | ||
| 200 | +## Clés de `workspace` | ||
| 201 | + | ||
| 202 | +Les deux clés sont désactivées par défaut. Elles servent aux petits modèles qui recopient le chemin absolu du projet en oubliant un répertoire, ou qui inventent une racine (`/workspace/…`, `/home/user/…`). | ||
| 203 | + | ||
| 204 | +| Clé | Type | Défaut | Description | | ||
| 205 | +|-----|------|--------|-------------| | ||
| 206 | +| `confine` | booléen | `false` | `read_file`, `write_file`, `edit_file` et `lsp` refusent un chemin qui se résout hors du répertoire de travail (liens symboliques résolus). Le refus est un échec d'outil que le modèle lit, et il propose un chemin **relatif**, jamais le chemin absolu du projet : `[<path> is outside the project. Every tool already runs in the project root: use a RELATIVE path, for example "<nom du fichier>" — never a path starting with /]`. Appliqué après `repairPaths`. `bash` n'est pas confiné. | | ||
| 207 | +| `repairPaths` | booléen | `false` | Remplace un chemin erroné par celui que le modèle voulait dire, et le lui signale. Trois réparations, décrites ci-dessous. | | ||
| 208 | + | ||
| 209 | +`repairPaths` fait trois choses : | ||
| 210 | + | ||
| 211 | +| Où | Chemin | Devient | Note ajoutée à la sortie de l'outil | | ||
| 212 | +|----|--------|---------|-------------------------------------| | ||
| 213 | +| `read_file`, `write_file`, `edit_file`, `lsp` | Absolu, hors du répertoire de travail, **même arborescence** (au moins deux composants de tête en commun avec lui) | La fin qui suit la partie commune, sans les répertoires qui appartiennent au chemin du projet lui-même : `<parent>/main.go` → `main.go` | `[path <path> is outside the project: used <fixed> — use relative paths]` | | ||
| 214 | +| idem | Absolu, **autre arborescence** (une racine inventée) | Sa plus longue fin qui est un fichier existant du projet, sinon sa plus longue fin dont le répertoire y existe (un nouveau fichier) : `/workspace/stats/stats.go` → `stats/stats.go`. Aucune : le chemin est gardé. | idem | | ||
| 215 | +| idem | Relatif, commençant par le nom du dossier du projet (`olala-mini/script.js` dans `…/olala-mini`) | Le chemin sans ce premier répertoire, quand le chemin n'existe pas et que le reste existe (ou, pour un nouveau fichier, quand le répertoire du reste existe et pas celui de l'original). Un vrai sous-dossier portant le nom du projet n'est pas touché. | `[path <path> starts with the project folder's own name: used <fixed> — paths are relative to the project root]` | | ||
| 216 | +| `bash` | Un `cd <chemin absolu> &&` (ou `;`) en tête, entre guillemets ou non | Supprimé — la commande s'exécute à la racine du projet, où démarre toute commande `bash` — quand le répertoire n'existe pas, est la racine du projet elle-même, ou appartient à la même arborescence que le projet mais en dehors. Plusieurs `cd` de ce genre à la suite sont tous supprimés. Gardés : un vrai répertoire d'une autre arborescence (`cd /tmp && …`), un sous-répertoire du projet, un `cd` relatif, un `cd` sans rien après. | `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]` | | ||
| 217 | + | ||
| 218 | +La note est écrite au début de la sortie de l'outil, dans le terminal, la fenêtre et un éditeur (ACP) ; le terminal affiche la commande telle qu'elle s'exécute, sans le `cd` supprimé. | ||
| 219 | + | ||
| 220 | +```yaml | ||
| 221 | +workspace: | ||
| 222 | + confine: true # read_file, write_file, edit_file et lsp restent dedans | ||
| 223 | + repairPaths: true # un chemin absolu erroné devient le chemin relatif voulu | ||
| 224 | +``` | ||
| 225 | + | ||
| 195 | ## Valeurs par défaut des fournisseurs | 226 | ## Valeurs par défaut des fournisseurs |
| 196 | 227 | ||
| 197 | | Fournisseur | `baseUrl` | `fallback` | `apiKeyEnv` | Clé requise | | 228 | | Fournisseur | `baseUrl` | `fallback` | `apiKeyEnv` | Clé requise | |
| @@ -454,6 +485,7 @@ Signalées sur stderr sous la forme `[config error: <chemin>: <message>]`, code | |||
| 454 | | `permissions must be "auto" or "ask"` | toute autre valeur de la clé obsolète | | 485 | | `permissions must be "auto" or "ask"` | toute autre valeur de la clé obsolète | |
| 455 | | `AGENT_YOLO="maybe": must be true or false` | une valeur d'`AGENT_YOLO` que `strconv.ParseBool` refuse (acceptées : `1`, `t`, `true`, `0`, `f`, `false`, sans distinction de casse) | | 486 | | `AGENT_YOLO="maybe": must be true or false` | une valeur d'`AGENT_YOLO` que `strconv.ParseBool` refuse (acceptées : `1`, `t`, `true`, `0`, `f`, `false`, sans distinction de casse) | |
| 456 | | `bashTimeout must be > 0` | zéro ou négative | | 487 | | `bashTimeout must be > 0` | zéro ou négative | |
| 488 | +| `bashBackground must be "report", "stop" or "allow", not "…"` | toute autre valeur | | ||
| 457 | | `structuredOutput:<ligne>:<col>: …` | une déclaration que la section [`structuredOutput`](#structuredoutput) ne sait pas traduire | | 489 | | `structuredOutput:<ligne>:<col>: …` | une déclaration que la section [`structuredOutput`](#structuredoutput) ne sait pas traduire | |
| 458 | | `structuredOutput: no var declaration: …` | aucune `var` ne nomme la racine | | 490 | | `structuredOutput: no var declaration: …` | aucune `var` ne nomme la racine | |
| 459 | | `decision.questions: at least one question is needed` | un bloc `decision` sans questions | | 491 | | `decision.questions: at least one question is needed` | un bloc `decision` sans questions | |
modified
docs/fr/reference/tools.md +28 -4 | @@ -16,9 +16,11 @@ Déclaré quand `bashTool: true` (la valeur par défaut). | ||
| 16 | 16 | |--------|--------------| |
| 17 | 17 | | Shell | `bash -c <command>`, un nouveau shell par appel, pas de stdin. | |
| 18 | 18 | | Répertoire de travail | Le répertoire du processus en mode terminal ; le `cwd` de la session en mode ACP. | |
| 19 | -| Délai | 30 s ; la sortie se termine alors par `[error: 30s timeout exceeded]`. | | |
| 19 | +| `cd` erroné | Avec [`workspace.repairPaths`](configuration.md#clés-de-workspace), un `cd <chemin absolu> &&` en tête vers un répertoire qui n'existe pas, vers la racine du projet, ou vers un répertoire de l'arborescence du projet situé hors de lui est supprimé, et la sortie commence par `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]`. | | |
| 20 | +| Délai | 30 s ; la sortie se termine alors par `[error: 30s timeout exceeded]`. Tout le groupe de processus de la commande est arrêté (sauf avec `bashBackground: allow`). | | |
| 20 | 21 | | Annulation | La commande appartient au tour : annuler le tour (`Échap`, `Ctrl-C`, `/abort`, ou poser une autre question) la tue, et la sortie se termine par `[error: cancelled]`. | |
| 21 | 22 | | Tâches de fond | La sortie est collectée dans un fichier temporaire, pas dans un tube : l'outil rend la main dès que le shell se termine, même si la commande a laissé une tâche en cours (`nohup serve &`). La tâche continue de tourner — c'est en général le but — et écrit dans un fichier que personne ne lit. Par un tube, `os/exec` attend *tous* les processus qui détiennent l'extrémité d'écriture, et une telle commande bloquait le tour pour toujours. | |
| 23 | +| Processus laissés en marche | Avec [`bashBackground`](configuration.md#clés-de-premier-niveau) `report` (la valeur par défaut) ou `stop`, chaque commande s'exécute dans son propre groupe de processus, et ce qui y tourne encore quand la commande rend la main est listé à la fin de la sortie : `[still running in the background after this command: 4242 (server). …]`. `stop` les arrête aussi à la fin du tour. Linux et macOS seulement. | | |
| 22 | 24 | | Sortie très volumineuse | Relue par ses deux extrémités (1 Mio chacune) avant la troncature à `maxOutput`, avec `[... output too large to read back in full ...]` entre les deux. | |
| 23 | 25 | | Sortie | stdout et stderr fusionnés, tronqués à `maxOutput` caractères. | |
| 24 | 26 | | Code de sortie non nul | La sortie se termine par `[exit code: exit status N]`. | |
| @@ -83,14 +85,16 @@ Déclaré quand `editTools: true`. | ||
| 83 | 85 | | Champ | Type | Défaut | Description | |
| 84 | 86 | |-------|------|--------|-------------| |
| 85 | 87 | | `path` | chaîne | — | Chemin d'un fichier existant. | |
| 86 | -| `edits` | tableau de `{old, new}` | — | Remplacements, tous résolus par rapport au fichier original. | | |
| 88 | +| `edits` | tableau de `{old, new, line}` | — | Remplacements, tous résolus par rapport au fichier original. | | |
| 87 | 89 | | `edits[].old` | chaîne | — | Texte exact à trouver, présent exactement une fois. Les espaces sont pardonnés — voir *Comment `old` est mis en correspondance*. | |
| 88 | 90 | | `edits[].new` | chaîne | — | Remplacement ; vide supprime le texte trouvé. | |
| 91 | +| `edits[].line` | entier | — | Seulement quand `old` apparaît plusieurs fois : la ligne (à partir de 1) où commence l'occurrence à changer, telle que `read_file` avec `numbered: true` l'affiche. Ignoré quand `old` est unique. Une ligne où ne commence aucune occurrence est refusée : `edit #1: old text appears 2 times, at lines 8, 9 — none starts at line 7: give one of these lines in "line"`. | | |
| 89 | 92 | | `dry_run` | booléen | `false` | Rapporte ce qui changerait, n'écrit rien. | |
| 90 | 93 | |
| 91 | 94 | | Règle | Conséquence si violée | |
| 92 | 95 | |-------|-----------------------| |
| 93 | -| `old` apparaît exactement une fois | Refusé : introuvable, ou ambigu — `old text appears N times (lines 11, 20) — to change ONE of them, include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | | |
| 96 | +| `old` apparaît exactement une fois, ou `line` en désigne une | Refusé : introuvable, ou ambigu — `old text appears N times (lines 11, 20) — to change ONE of them, add "line": the number of the line where it starts (one of 11, 20); or include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | | |
| 97 | +| `old` et `new` identiques | Pas une erreur quand le fichier contient `old` : cette modification est signalée comme déjà faite (` · N already as asked (identical old and new)` ; `<chemin>: unchanged — already as asked: …` quand c'est la seule) et les autres s'appliquent. Quand le fichier ne le contient pas : introuvable. | | |
| 94 | 98 | | Deux éditions ne doivent ni se chevaucher, ni s'imbriquer, ni se répéter | Refus. | |
| 95 | 99 | | Les éditions sont résolues sur le texte original, jamais en cascade | — | |
| 96 | 100 | | Toute édition refusée | Rien n'est écrit. | |
| @@ -102,13 +106,14 @@ Déclaré quand `editTools: true`. | ||
| 102 | 106 | |
| 103 | 107 | ### Comment `old` est mis en correspondance |
| 104 | 108 | |
| 105 | -Trois passes, de la plus stricte à la plus tolérante ; **la première passe qui trouve quoi que ce soit gagne**, donc un fichier qui contient le texte à l'octet près n'est jamais mis en correspondance autrement. | |
| 109 | +Quatre passes, de la plus stricte à la plus tolérante ; **la première passe qui trouve quoi que ce soit gagne**, donc un fichier qui contient le texte à l'octet près n'est jamais mis en correspondance autrement. | |
| 106 | 110 | |
| 107 | 111 | | Passe | Ce qu'elle pardonne | Signalé par | |
| 108 | 112 | |---|---|---| |
| 109 | 113 | | 1. Exacte | Rien. `old` est cherché octet pour octet. | — | |
| 110 | 114 | | 2. Bords | Les espaces *autour* de `old` : une indentation que le modèle a conservée sur une ligne seule, un saut de ligne en tête ou en queue. Le même rembourrage est retiré de `new` quand `new` le porte, donc un `new` qui ajoute volontairement une ligne vide l'ajoute toujours. | `matched ignoring whitespace` | |
| 111 | 115 | | 3. Indentation | Les espaces de début et de fin de chaque ligne, pour un `old` d'au moins deux lignes. C'est le cas tabulations contre espaces : un modèle retape un bloc Go avec quatre espaces là où le fichier a une tabulation. | `matched ignoring whitespace` | |
| 116 | +| 4. Mise en page | Toute suite d'espaces dans `old` — espaces, tabulations, retours à la ligne — correspond à toute suite d'espaces dans le fichier ; tous les autres caractères doivent être identiques, dans l'ordre. C'est le cas d'un modèle qui se souvient de deux instructions d'une même ligne comme de deux lignes (`a(); b();`). `new` est écrit tel que le modèle l'a écrit. | `matched ignoring whitespace` | | |
| 112 | 117 | |
| 113 | 118 | Deux choses ne sont **pas** assouplies : |
| 114 | 119 | |
| @@ -421,6 +426,24 @@ Outils proposés par le client ACP, en `mm -acp` seulement ; le protocole est sp | ||
| 421 | 426 | | ACP | Appel d'outil de genre `other`, titre `client: <name>`. | |
| 422 | 427 | | Terminal et fenêtre | Non disponibles. | |
| 423 | 428 | |
| 429 | +## Arguments qui ne respectent pas le schéma d'un outil | |
| 430 | + | |
| 431 | +Avant que les arguments d'un outil soient validés par son schéma, mm répare les erreurs qui ne peuvent vouloir dire qu'une chose : | |
| 432 | + | |
| 433 | +| Erreur | Réparation | | |
| 434 | +|--------|------------| | |
| 435 | +| Un booléen, un entier ou un nombre envoyé comme chaîne (`"numbered": "true"`, `"start": "8"`, `"0.5"`) | Converti, pour tous les outils, quand la chaîne se lit sans ambiguïté dans ce type. `"yes"` ou `"8a"` restent à la validation, qui les refuse. Les paramètres de type chaîne ne sont jamais touchés. | | |
| 436 | +| `write_file` / `edit_file` : un autre nom pour un champ (`file_path`, `filename`… pour `path` ; `old_text`, `old_string`, `search`… pour `old` ; de même pour `new` et `content`) | Renommé. | | |
| 437 | +| `edit_file` : `edits` envoyé comme chaîne JSON, une modification sans la liste, les champs de la modification au premier niveau, `path` à l'intérieur d'une modification | Reconstruit en liste de modifications. | | |
| 438 | + | |
| 439 | +Ce qui reste invalide ensuite ne termine pas le tour : le modèle le lit comme résultat de l'outil, avec les arguments attendus, et peut corriger son appel : | |
| 440 | + | |
| 441 | +```text | |
| 442 | +[edit_file: invalid arguments — edits.0: old is required. Expected arguments: path (string, required), edits (array, required), dry_run (boolean). Example: {"path": "main.go", "edits": [{"old": "exact text now in the file", "new": "its replacement"}]}. Fix the call and send it again.] | |
| 443 | +``` | |
| 444 | + | |
| 445 | +Le même appel invalide envoyé 3 fois dans un tour termine le tour avec l'erreur de validation. | |
| 446 | + | |
| 424 | 447 | ## Détection de boucle |
| 425 | 448 | |
| 426 | 449 | Chaque outil enregistre `(outil, entrée, sortie)` dans le détecteur de boucle après chaque appel. |
| @@ -430,6 +453,7 @@ Chaque outil enregistre `(outil, entrée, sortie)` dans le détecteur de boucle | ||
| 430 | 453 | | Le même triplet 3 fois de suite | La sortie de l'outil reçoit `[LOOP_DETECTED: You have attempted the same action multiple times with the same result. Please try a different approach or provide more information.]` en annexe. Rien ne s'arrête. | |
| 431 | 454 | | 3 appels identiques de plus (6 de suite) | L'outil renvoie une erreur au lieu de texte et le tour se termine : `[error: the model repeated the same edit_file call 6 times in a row with the same failing result — turn stopped by the loop detector; rephrase the request, or fix what the tool kept reporting]`. L'historique garde tout ce qui a tourné ; l'erreur est enregistrée dans le tableau `errors` du fichier de session (`where: generation`). | |
| 432 | 455 | | Un appel différent | Le compte repart. `/new` réinitialise le détecteur ; `/compact` non. | |
| 456 | +| Le même appel qui échoue encore, avec d'autres appels entre-temps | Un appel **en échec** (même outil, même entrée, même sortie) déjà enregistré 3 fois parmi les 10 derniers appels est signalé, quoi qu'il y ait eu entre-temps, et le tour s'arrête à son troisième signalement. Les appels réussis gardent la règle « à la suite » : relire un fichier n'est pas une boucle. | | |
| 433 | 457 | | Un appel d'outil dont les arguments diffusés répètent un motif (les 256 derniers caractères sont un motif de 4 à 64 caractères répété) ou dépassent 256 Ko | La génération est arrêtée aussitôt : `[error: the model's tool call ran away: its arguments repeat the same pattern (N characters so far: …) — generation stopped; rephrase the request, or try another model]`. Sans cela, un modèle qui déraille compose du charabia pendant des minutes pendant que l'écran affiche « Thinking » (le chien de garde est nourri par chaque fragment). Pendant qu'un appel d'outil est diffusé, le spinner dit `Composing a tool call`. | |
| 434 | 458 | |
| 435 | 459 | Les seuils (3, puis 3 de plus) sont fixés dans `main.go` ; `maxTurns` reste la borne extérieure d'un tour. |
| @@ -16,9 +16,11 @@ Déclaré quand `bashTool: true` (la valeur par défaut). | |||
| 16 | |--------|--------------| | 16 | |--------|--------------| |
| 17 | | Shell | `bash -c <command>`, un nouveau shell par appel, pas de stdin. | | 17 | | Shell | `bash -c <command>`, un nouveau shell par appel, pas de stdin. | |
| 18 | | Répertoire de travail | Le répertoire du processus en mode terminal ; le `cwd` de la session en mode ACP. | | 18 | | Répertoire de travail | Le répertoire du processus en mode terminal ; le `cwd` de la session en mode ACP. | |
| 19 | -| Délai | 30 s ; la sortie se termine alors par `[error: 30s timeout exceeded]`. | | 19 | +| `cd` erroné | Avec [`workspace.repairPaths`](configuration.md#clés-de-workspace), un `cd <chemin absolu> &&` en tête vers un répertoire qui n'existe pas, vers la racine du projet, ou vers un répertoire de l'arborescence du projet situé hors de lui est supprimé, et la sortie commence par `[cd <path> dropped: every bash command already starts in the project root — never cd to an absolute path]`. | |
| 20 | +| Délai | 30 s ; la sortie se termine alors par `[error: 30s timeout exceeded]`. Tout le groupe de processus de la commande est arrêté (sauf avec `bashBackground: allow`). | | ||
| 20 | | Annulation | La commande appartient au tour : annuler le tour (`Échap`, `Ctrl-C`, `/abort`, ou poser une autre question) la tue, et la sortie se termine par `[error: cancelled]`. | | 21 | | Annulation | La commande appartient au tour : annuler le tour (`Échap`, `Ctrl-C`, `/abort`, ou poser une autre question) la tue, et la sortie se termine par `[error: cancelled]`. | |
| 21 | | Tâches de fond | La sortie est collectée dans un fichier temporaire, pas dans un tube : l'outil rend la main dès que le shell se termine, même si la commande a laissé une tâche en cours (`nohup serve &`). La tâche continue de tourner — c'est en général le but — et écrit dans un fichier que personne ne lit. Par un tube, `os/exec` attend *tous* les processus qui détiennent l'extrémité d'écriture, et une telle commande bloquait le tour pour toujours. | | 22 | | Tâches de fond | La sortie est collectée dans un fichier temporaire, pas dans un tube : l'outil rend la main dès que le shell se termine, même si la commande a laissé une tâche en cours (`nohup serve &`). La tâche continue de tourner — c'est en général le but — et écrit dans un fichier que personne ne lit. Par un tube, `os/exec` attend *tous* les processus qui détiennent l'extrémité d'écriture, et une telle commande bloquait le tour pour toujours. | |
| 23 | +| Processus laissés en marche | Avec [`bashBackground`](configuration.md#clés-de-premier-niveau) `report` (la valeur par défaut) ou `stop`, chaque commande s'exécute dans son propre groupe de processus, et ce qui y tourne encore quand la commande rend la main est listé à la fin de la sortie : `[still running in the background after this command: 4242 (server). …]`. `stop` les arrête aussi à la fin du tour. Linux et macOS seulement. | | ||
| 22 | | Sortie très volumineuse | Relue par ses deux extrémités (1 Mio chacune) avant la troncature à `maxOutput`, avec `[... output too large to read back in full ...]` entre les deux. | | 24 | | Sortie très volumineuse | Relue par ses deux extrémités (1 Mio chacune) avant la troncature à `maxOutput`, avec `[... output too large to read back in full ...]` entre les deux. | |
| 23 | | Sortie | stdout et stderr fusionnés, tronqués à `maxOutput` caractères. | | 25 | | Sortie | stdout et stderr fusionnés, tronqués à `maxOutput` caractères. | |
| 24 | | Code de sortie non nul | La sortie se termine par `[exit code: exit status N]`. | | 26 | | Code de sortie non nul | La sortie se termine par `[exit code: exit status N]`. | |
| @@ -83,14 +85,16 @@ Déclaré quand `editTools: true`. | |||
| 83 | | Champ | Type | Défaut | Description | | 85 | | Champ | Type | Défaut | Description | |
| 84 | |-------|------|--------|-------------| | 86 | |-------|------|--------|-------------| |
| 85 | | `path` | chaîne | — | Chemin d'un fichier existant. | | 87 | | `path` | chaîne | — | Chemin d'un fichier existant. | |
| 86 | -| `edits` | tableau de `{old, new}` | — | Remplacements, tous résolus par rapport au fichier original. | | 88 | +| `edits` | tableau de `{old, new, line}` | — | Remplacements, tous résolus par rapport au fichier original. | |
| 87 | | `edits[].old` | chaîne | — | Texte exact à trouver, présent exactement une fois. Les espaces sont pardonnés — voir *Comment `old` est mis en correspondance*. | | 89 | | `edits[].old` | chaîne | — | Texte exact à trouver, présent exactement une fois. Les espaces sont pardonnés — voir *Comment `old` est mis en correspondance*. | |
| 88 | | `edits[].new` | chaîne | — | Remplacement ; vide supprime le texte trouvé. | | 90 | | `edits[].new` | chaîne | — | Remplacement ; vide supprime le texte trouvé. | |
| 91 | +| `edits[].line` | entier | — | Seulement quand `old` apparaît plusieurs fois : la ligne (à partir de 1) où commence l'occurrence à changer, telle que `read_file` avec `numbered: true` l'affiche. Ignoré quand `old` est unique. Une ligne où ne commence aucune occurrence est refusée : `edit #1: old text appears 2 times, at lines 8, 9 — none starts at line 7: give one of these lines in "line"`. | | ||
| 89 | | `dry_run` | booléen | `false` | Rapporte ce qui changerait, n'écrit rien. | | 92 | | `dry_run` | booléen | `false` | Rapporte ce qui changerait, n'écrit rien. | |
| 90 | 93 | ||
| 91 | | Règle | Conséquence si violée | | 94 | | Règle | Conséquence si violée | |
| 92 | |-------|-----------------------| | 95 | |-------|-----------------------| |
| 93 | -| `old` apparaît exactement une fois | Refusé : introuvable, ou ambigu — `old text appears N times (lines 11, 20) — to change ONE of them, include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | | 96 | +| `old` apparaît exactement une fois, ou `line` en désigne une | Refusé : introuvable, ou ambigu — `old text appears N times (lines 11, 20) — to change ONE of them, add "line": the number of the line where it starts (one of 11, 20); or include its surrounding lines in old until the text is unique; to change several, send one edit per place…`. | |
| 97 | +| `old` et `new` identiques | Pas une erreur quand le fichier contient `old` : cette modification est signalée comme déjà faite (` · N already as asked (identical old and new)` ; `<chemin>: unchanged — already as asked: …` quand c'est la seule) et les autres s'appliquent. Quand le fichier ne le contient pas : introuvable. | | ||
| 94 | | Deux éditions ne doivent ni se chevaucher, ni s'imbriquer, ni se répéter | Refus. | | 98 | | Deux éditions ne doivent ni se chevaucher, ni s'imbriquer, ni se répéter | Refus. | |
| 95 | | Les éditions sont résolues sur le texte original, jamais en cascade | — | | 99 | | Les éditions sont résolues sur le texte original, jamais en cascade | — | |
| 96 | | Toute édition refusée | Rien n'est écrit. | | 100 | | Toute édition refusée | Rien n'est écrit. | |
| @@ -102,13 +106,14 @@ Déclaré quand `editTools: true`. | |||
| 102 | 106 | ||
| 103 | ### Comment `old` est mis en correspondance | 107 | ### Comment `old` est mis en correspondance |
| 104 | 108 | ||
| 105 | -Trois passes, de la plus stricte à la plus tolérante ; **la première passe qui trouve quoi que ce soit gagne**, donc un fichier qui contient le texte à l'octet près n'est jamais mis en correspondance autrement. | 109 | +Quatre passes, de la plus stricte à la plus tolérante ; **la première passe qui trouve quoi que ce soit gagne**, donc un fichier qui contient le texte à l'octet près n'est jamais mis en correspondance autrement. |
| 106 | 110 | ||
| 107 | | Passe | Ce qu'elle pardonne | Signalé par | | 111 | | Passe | Ce qu'elle pardonne | Signalé par | |
| 108 | |---|---|---| | 112 | |---|---|---| |
| 109 | | 1. Exacte | Rien. `old` est cherché octet pour octet. | — | | 113 | | 1. Exacte | Rien. `old` est cherché octet pour octet. | — | |
| 110 | | 2. Bords | Les espaces *autour* de `old` : une indentation que le modèle a conservée sur une ligne seule, un saut de ligne en tête ou en queue. Le même rembourrage est retiré de `new` quand `new` le porte, donc un `new` qui ajoute volontairement une ligne vide l'ajoute toujours. | `matched ignoring whitespace` | | 114 | | 2. Bords | Les espaces *autour* de `old` : une indentation que le modèle a conservée sur une ligne seule, un saut de ligne en tête ou en queue. Le même rembourrage est retiré de `new` quand `new` le porte, donc un `new` qui ajoute volontairement une ligne vide l'ajoute toujours. | `matched ignoring whitespace` | |
| 111 | | 3. Indentation | Les espaces de début et de fin de chaque ligne, pour un `old` d'au moins deux lignes. C'est le cas tabulations contre espaces : un modèle retape un bloc Go avec quatre espaces là où le fichier a une tabulation. | `matched ignoring whitespace` | | 115 | | 3. Indentation | Les espaces de début et de fin de chaque ligne, pour un `old` d'au moins deux lignes. C'est le cas tabulations contre espaces : un modèle retape un bloc Go avec quatre espaces là où le fichier a une tabulation. | `matched ignoring whitespace` | |
| 116 | +| 4. Mise en page | Toute suite d'espaces dans `old` — espaces, tabulations, retours à la ligne — correspond à toute suite d'espaces dans le fichier ; tous les autres caractères doivent être identiques, dans l'ordre. C'est le cas d'un modèle qui se souvient de deux instructions d'une même ligne comme de deux lignes (`a(); b();`). `new` est écrit tel que le modèle l'a écrit. | `matched ignoring whitespace` | | ||
| 112 | 117 | ||
| 113 | Deux choses ne sont **pas** assouplies : | 118 | Deux choses ne sont **pas** assouplies : |
| 114 | 119 | ||
| @@ -421,6 +426,24 @@ Outils proposés par le client ACP, en `mm -acp` seulement ; le protocole est sp | |||
| 421 | | ACP | Appel d'outil de genre `other`, titre `client: <name>`. | | 426 | | ACP | Appel d'outil de genre `other`, titre `client: <name>`. | |
| 422 | | Terminal et fenêtre | Non disponibles. | | 427 | | Terminal et fenêtre | Non disponibles. | |
| 423 | 428 | ||
| 429 | +## Arguments qui ne respectent pas le schéma d'un outil | ||
| 430 | + | ||
| 431 | +Avant que les arguments d'un outil soient validés par son schéma, mm répare les erreurs qui ne peuvent vouloir dire qu'une chose : | ||
| 432 | + | ||
| 433 | +| Erreur | Réparation | | ||
| 434 | +|--------|------------| | ||
| 435 | +| Un booléen, un entier ou un nombre envoyé comme chaîne (`"numbered": "true"`, `"start": "8"`, `"0.5"`) | Converti, pour tous les outils, quand la chaîne se lit sans ambiguïté dans ce type. `"yes"` ou `"8a"` restent à la validation, qui les refuse. Les paramètres de type chaîne ne sont jamais touchés. | | ||
| 436 | +| `write_file` / `edit_file` : un autre nom pour un champ (`file_path`, `filename`… pour `path` ; `old_text`, `old_string`, `search`… pour `old` ; de même pour `new` et `content`) | Renommé. | | ||
| 437 | +| `edit_file` : `edits` envoyé comme chaîne JSON, une modification sans la liste, les champs de la modification au premier niveau, `path` à l'intérieur d'une modification | Reconstruit en liste de modifications. | | ||
| 438 | + | ||
| 439 | +Ce qui reste invalide ensuite ne termine pas le tour : le modèle le lit comme résultat de l'outil, avec les arguments attendus, et peut corriger son appel : | ||
| 440 | + | ||
| 441 | +```text | ||
| 442 | +[edit_file: invalid arguments — edits.0: old is required. Expected arguments: path (string, required), edits (array, required), dry_run (boolean). Example: {"path": "main.go", "edits": [{"old": "exact text now in the file", "new": "its replacement"}]}. Fix the call and send it again.] | ||
| 443 | +``` | ||
| 444 | + | ||
| 445 | +Le même appel invalide envoyé 3 fois dans un tour termine le tour avec l'erreur de validation. | ||
| 446 | + | ||
| 424 | ## Détection de boucle | 447 | ## Détection de boucle |
| 425 | 448 | ||
| 426 | Chaque outil enregistre `(outil, entrée, sortie)` dans le détecteur de boucle après chaque appel. | 449 | Chaque outil enregistre `(outil, entrée, sortie)` dans le détecteur de boucle après chaque appel. |
| @@ -430,6 +453,7 @@ Chaque outil enregistre `(outil, entrée, sortie)` dans le détecteur de boucle | |||
| 430 | | Le même triplet 3 fois de suite | La sortie de l'outil reçoit `[LOOP_DETECTED: You have attempted the same action multiple times with the same result. Please try a different approach or provide more information.]` en annexe. Rien ne s'arrête. | | 453 | | Le même triplet 3 fois de suite | La sortie de l'outil reçoit `[LOOP_DETECTED: You have attempted the same action multiple times with the same result. Please try a different approach or provide more information.]` en annexe. Rien ne s'arrête. | |
| 431 | | 3 appels identiques de plus (6 de suite) | L'outil renvoie une erreur au lieu de texte et le tour se termine : `[error: the model repeated the same edit_file call 6 times in a row with the same failing result — turn stopped by the loop detector; rephrase the request, or fix what the tool kept reporting]`. L'historique garde tout ce qui a tourné ; l'erreur est enregistrée dans le tableau `errors` du fichier de session (`where: generation`). | | 454 | | 3 appels identiques de plus (6 de suite) | L'outil renvoie une erreur au lieu de texte et le tour se termine : `[error: the model repeated the same edit_file call 6 times in a row with the same failing result — turn stopped by the loop detector; rephrase the request, or fix what the tool kept reporting]`. L'historique garde tout ce qui a tourné ; l'erreur est enregistrée dans le tableau `errors` du fichier de session (`where: generation`). | |
| 432 | | Un appel différent | Le compte repart. `/new` réinitialise le détecteur ; `/compact` non. | | 455 | | Un appel différent | Le compte repart. `/new` réinitialise le détecteur ; `/compact` non. | |
| 456 | +| Le même appel qui échoue encore, avec d'autres appels entre-temps | Un appel **en échec** (même outil, même entrée, même sortie) déjà enregistré 3 fois parmi les 10 derniers appels est signalé, quoi qu'il y ait eu entre-temps, et le tour s'arrête à son troisième signalement. Les appels réussis gardent la règle « à la suite » : relire un fichier n'est pas une boucle. | | ||
| 433 | | Un appel d'outil dont les arguments diffusés répètent un motif (les 256 derniers caractères sont un motif de 4 à 64 caractères répété) ou dépassent 256 Ko | La génération est arrêtée aussitôt : `[error: the model's tool call ran away: its arguments repeat the same pattern (N characters so far: …) — generation stopped; rephrase the request, or try another model]`. Sans cela, un modèle qui déraille compose du charabia pendant des minutes pendant que l'écran affiche « Thinking » (le chien de garde est nourri par chaque fragment). Pendant qu'un appel d'outil est diffusé, le spinner dit `Composing a tool call`. | | 457 | | Un appel d'outil dont les arguments diffusés répètent un motif (les 256 derniers caractères sont un motif de 4 à 64 caractères répété) ou dépassent 256 Ko | La génération est arrêtée aussitôt : `[error: the model's tool call ran away: its arguments repeat the same pattern (N characters so far: …) — generation stopped; rephrase the request, or try another model]`. Sans cela, un modèle qui déraille compose du charabia pendant des minutes pendant que l'écran affiche « Thinking » (le chien de garde est nourri par chaque fragment). Pendant qu'un appel d'outil est diffusé, le spinner dit `Composing a tool call`. | |
| 434 | 458 | ||
| 435 | Les seuils (3, puis 3 de plus) sont fixés dans `main.go` ; `maxTurns` reste la borne extérieure d'un tour. | 459 | Les seuils (3, puis 3 de plus) sont fixés dans `main.go` ; `maxTurns` reste la borne extérieure d'un tour. |
modified
install.sh +0 -0 | old mode 100755 | ||
| new mode 100644 |
| old mode 100755 | |||
| new mode 100644 |
modified
internal/wasmtool/testdata/probe.wasm +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
local-ci-00-common.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
local-ci-01-check.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
local-ci-02-build.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
local-ci-03-create-draft.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
local-ci-04-upload.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
local-ci-05-publish.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
local-ci-06-promote.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
release-notes/README.md +2 -1 | @@ -4,7 +4,8 @@ One note per tag, in English (`.en.md`) and French (`.fr.md`). Rebuilt on 2026-1 | ||
| 4 | 4 | |
| 5 | 5 | | Version | Date | Summary | | |
| 6 | 6 | |---|---|---|---| |
| 7 | -| [v1.1.1](v1.1.1.en.md) | not tagged yet | OpenAI's reasoning models keep reasoning while they call tools with the new `openai-responses` provider, llama.cpp moves to its new default port 9931 (8080 still tried), `mm init` proposes llamacpp first, and mm stops with a clear error when there is no agent file. | [FR](v1.1.1.fr.md) | | |
| 7 | +| [v2.0.0](v2.0.0.en.md) | not tagged yet | Built-in guardrails against the silent failures of small models: wrong paths and malformed tool calls repaired, loops, cut answers and failed edits caught and reported, diagnostics without asking, background processes tracked, and `mm -p` exits 1 when a run fails. | [FR](v2.0.0.fr.md) | | |
| 8 | +| [v1.1.1](v1.1.1.en.md) | 2026-11-18 | OpenAI's reasoning models keep reasoning while they call tools with the new `openai-responses` provider, llama.cpp moves to its new default port 9931 (8080 still tried), `mm init` proposes llamacpp first, and mm stops with a clear error when there is no agent file. | [FR](v1.1.1.fr.md) | | |
| 8 | 9 | | [v1.1.0](v1.1.0.en.md) | 2026-11-15 | Create a skill from your editor with `/skillcreate` in `mm acp-create`, while the wizard lists the models from the right address, the container's account matches your user and llama.cpp is reached from a container like the other local servers. | [FR](v1.1.0.fr.md) | |
| 9 | 10 | | [v1.0.9](v1.0.9.en.md) | 2026-11-14 | Create an agent from your editor with `mm acp-create` — and its container, its sandbox and its editor settings — while `mm dockerinit` learns the `.mm` folder and an editor's reload no longer fails. | [FR](v1.0.9.fr.md) | |
| 10 | 11 | | [v1.0.8](v1.0.8.en.md) | 2026-11-13 | `mm sbxinit` writes a simpler `sbxenv.yaml` for a `.mm` project: no `PROJECT_DIR` argument and no `--env-arg` on the `sbx env` commands. | [FR](v1.0.8.fr.md) | |
| @@ -4,7 +4,8 @@ One note per tag, in English (`.en.md`) and French (`.fr.md`). Rebuilt on 2026-1 | |||
| 4 | 4 | ||
| 5 | | Version | Date | Summary | | | 5 | | Version | Date | Summary | | |
| 6 | |---|---|---|---| | 6 | |---|---|---|---| |
| 7 | -| [v1.1.1](v1.1.1.en.md) | not tagged yet | OpenAI's reasoning models keep reasoning while they call tools with the new `openai-responses` provider, llama.cpp moves to its new default port 9931 (8080 still tried), `mm init` proposes llamacpp first, and mm stops with a clear error when there is no agent file. | [FR](v1.1.1.fr.md) | | 7 | +| [v2.0.0](v2.0.0.en.md) | not tagged yet | Built-in guardrails against the silent failures of small models: wrong paths and malformed tool calls repaired, loops, cut answers and failed edits caught and reported, diagnostics without asking, background processes tracked, and `mm -p` exits 1 when a run fails. | [FR](v2.0.0.fr.md) | |
| 8 | +| [v1.1.1](v1.1.1.en.md) | 2026-11-18 | OpenAI's reasoning models keep reasoning while they call tools with the new `openai-responses` provider, llama.cpp moves to its new default port 9931 (8080 still tried), `mm init` proposes llamacpp first, and mm stops with a clear error when there is no agent file. | [FR](v1.1.1.fr.md) | | ||
| 8 | | [v1.1.0](v1.1.0.en.md) | 2026-11-15 | Create a skill from your editor with `/skillcreate` in `mm acp-create`, while the wizard lists the models from the right address, the container's account matches your user and llama.cpp is reached from a container like the other local servers. | [FR](v1.1.0.fr.md) | | 9 | | [v1.1.0](v1.1.0.en.md) | 2026-11-15 | Create a skill from your editor with `/skillcreate` in `mm acp-create`, while the wizard lists the models from the right address, the container's account matches your user and llama.cpp is reached from a container like the other local servers. | [FR](v1.1.0.fr.md) | |
| 9 | | [v1.0.9](v1.0.9.en.md) | 2026-11-14 | Create an agent from your editor with `mm acp-create` — and its container, its sandbox and its editor settings — while `mm dockerinit` learns the `.mm` folder and an editor's reload no longer fails. | [FR](v1.0.9.fr.md) | | 10 | | [v1.0.9](v1.0.9.en.md) | 2026-11-14 | Create an agent from your editor with `mm acp-create` — and its container, its sandbox and its editor settings — while `mm dockerinit` learns the `.mm` folder and an editor's reload no longer fails. | [FR](v1.0.9.fr.md) | |
| 10 | | [v1.0.8](v1.0.8.en.md) | 2026-11-13 | `mm sbxinit` writes a simpler `sbxenv.yaml` for a `.mm` project: no `PROJECT_DIR` argument and no `--env-arg` on the `sbx env` commands. | [FR](v1.0.8.fr.md) | | 11 | | [v1.0.8](v1.0.8.en.md) | 2026-11-13 | `mm sbxinit` writes a simpler `sbxenv.yaml` for a `.mm` project: no `PROJECT_DIR` argument and no `--env-arg` on the `sbx env` commands. | [FR](v1.0.8.fr.md) | |
added
release-notes/v2.0.0.en.md +91 -0 | new file mode 100644 | ||
| @@ -0,0 +1,91 @@ | ||
| 1 | +# mini-me v2.0.0 | |
| 2 | + | |
| 3 | +*[Version française](v2.0.0.fr.md)* | |
| 4 | + | |
| 5 | +Built-in guardrails against the silent failures of small models: wrong paths and malformed tool calls repaired, loops, cut answers and failed edits caught and reported, diagnostics without asking, background processes tracked, and `mm -p` exits 1 when a run fails. | |
| 6 | + | |
| 7 | +This release comes from measuring small coding models — LiquidAI LFM2.5-24B-A2B (`demos/lfm-coder`), Olala-v1.0-mini (`demos/olala-mini`) and Mellum2 12B (`demos/mellum2`). Their typical failures were silent: a file written in the wrong directory, a turn ended by a malformed call, an answer saying "Done." after a refused edit. `demos/lfm-coder` first fixed them with four Python hooks; their generic parts are now mm settings, and that demo uses no hook any more. | |
| 8 | + | |
| 9 | +## New | |
| 10 | + | |
| 11 | +### `workspace`: keep the file tools in the project, repair wrong paths (#229, #234, #248) | |
| 12 | + | |
| 13 | +```yaml | |
| 14 | +workspace: | |
| 15 | + confine: true # read_file, write_file, edit_file and lsp stay inside the project | |
| 16 | + repairPaths: true # a wrong path becomes the one the model meant | |
| 17 | +``` | |
| 18 | + | |
| 19 | +- `repairPaths` turns an absolute path with a directory missing (`<parent>/main.go`), an invented root (`/workspace/stats/stats.go`) or a relative path that starts with the project folder's own name (`olala-mini/script.js`) into the right relative path, and tells the model: `[path … is outside the project: used stats/stats.go — use relative paths]`. | |
| 20 | +- In `bash`, a leading `cd <absolute path> &&` to a directory that does not exist, to the project root or to the project's tree outside the project is dropped: `[cd … dropped: every bash command already starts in the project root — never cd to an absolute path]`. | |
| 21 | +- `confine` refuses what is still outside, suggesting a relative path — never the absolute project path. A hook that only refused such paths, quoting the project path, made LFM2.5 retry absolute paths for 80 turns. | |
| 22 | + | |
| 23 | +Both are off by default. See [`workspace` keys](../docs/en/reference/configuration.md#workspace-keys). | |
| 24 | + | |
| 25 | +### `turnReminder`: a rule next to every question (#230) | |
| 26 | + | |
| 27 | +A text appended to every question the model reads, under a `[reminder]` line, in every front end. In `demos/lfm-coder`, a rule asking the model to call `ask_user` when a decision is missing was followed 0 times out of 5 from the system prompt, and 3 out of 3 next to the question with the exact call shape. Until now this took a `preGeneration` hook script. | |
| 28 | + | |
| 29 | +### `lsp.diagnosticsAfterEdit` and `lsp.diagnosticsAfterRead` (#227, #245) | |
| 30 | + | |
| 31 | +The language server's diagnostics are appended to the output of `write_file` / `edit_file` (after a successful change) and of `read_file` (once per version of the file), without the model asking: `demos/gemma-coder` asked for them 0 times in 54 runs. Off by default; 8 s per request. | |
| 32 | + | |
| 33 | +### `bashBackground`: processes a command leaves running (#228) | |
| 34 | + | |
| 35 | +Each `bash` command runs in its own process group. With `report` (the default), what is still running when the command returns is listed in the output — `[still running in the background after this command: 4242 (server). …]` — with the advice to stop it in the same command. `stop` also stops it at the end of the turn; `allow` is the old behaviour. A timeout now stops the whole group. In `demos/lfm-coder`, servers started with `&` stayed up after the turn, and a later `curl` answered by the old server was reported as proof that the new code worked. | |
| 36 | + | |
| 37 | +Linux and macOS only. Not done: the listening port in the report, a warning when mm exits, the stop in `mm --ask`. | |
| 38 | + | |
| 39 | +### `edit_file` picks an occurrence by its line (#241) | |
| 40 | + | |
| 41 | +Each edit takes an optional `line`: when `old` occurs several times, the line where the occurrence to change starts. The "appears N times" refusal now offers it. Mellum2 and Olala both knew they wanted "line 8" but could not make `old` unique. | |
| 42 | + | |
| 43 | +### Tool calls repaired instead of ending the turn (#225, #237) | |
| 44 | + | |
| 45 | +- A call whose arguments fail the tool's schema no longer ends the turn: the model reads the error with the expected arguments and an example, and can fix its call (3 identical invalid calls still end it). | |
| 46 | +- Before validation, `"true"`, `"8"` or `"0.5"` sent for a boolean, integer or number are converted, and the names models reach for in `write_file` / `edit_file` (`file_path`, `old_text`, `edits` as a JSON string…) are repaired. | |
| 47 | + | |
| 48 | +See [tools](../docs/en/reference/tools.md#arguments-that-do-not-match-a-tools-schema). | |
| 49 | + | |
| 50 | +### Silent ends of turn, handed back once (#232, #235, #236, #238, #242) | |
| 51 | + | |
| 52 | +| What happened | What mm does now | | |
| 53 | +|---|---| | |
| 54 | +| A reply cut at the token limit while the model was still reasoning (Olala: exactly 4,096 tokens) | Handed back once, asking it to act now; if it happens again, `empty answer — the model reasoned until the limit (…): raise sampling.…` | | |
| 55 | +| One sentence repeated 20 times in a row in the reasoning or the answer (Olala: 40,000 characters of "So the assistant can output the content.") | That model call is cut and handed back once; looping again ends the turn with `the model looped: …` | | |
| 56 | +| A final answer with 20 or more identical lines (Olala: one line 473 times) | Collapsed to one line plus `[… the same line repeated N more times — removed by mm]`, in the answer and the history, and reported | | |
| 57 | +| An answer cut mid-sentence at the token limit | Reported: `answer cut at the limit (…)` | | |
| 58 | +| A final answer given while the turn's last `write_file` / `edit_file` had failed | Handed back once (the file was not changed: fix the call or say so); still so, `the last edit_file failed (…) — that change was not made, whatever the answer says` | | |
| 59 | + | |
| 60 | +See [struggle signals](../docs/en/reference/cli.md#struggle-signals). | |
| 61 | + | |
| 62 | +## Fixed | |
| 63 | + | |
| 64 | +- **`mm -p` exits 1 when the generation fails** — watchdog stall, max turns, provider or tool error. It exited 0, so a script could not tell a failed run from a good one. (#224) | |
| 65 | +- **`edit_file`: a line break where the file has a space.** A fourth, last matching pass treats any run of whitespace, line breaks included, as equal. Mellum2 sent 28 `edit_file` calls, 26 of them the same, because it remembered one line as two. (#239) | |
| 66 | +- **`edit_file`: identical `old` and `new`** for a text the file holds is reported as already done instead of failing the whole call. (#154) | |
| 67 | +- **The loop detector stops the same failing call repeated between other calls.** The same refused edit, a `read_file` between each, used to run until `maxTurns`. (#240) | |
| 68 | +- **llama.cpp in router mode** (the Llama app): mm asks `/props?model=<model>`, so the banner shows the model's window, the false "no chat template" warning is gone and `mm init` reads the model's facts. (#226) | |
| 69 | +- **`contextWindow` larger than the served window**: a start-up warning, and a request refused as too long is explained with its size and the server's window instead of "the connection broke" — and not retried. (#233) | |
| 70 | +- **Skills of an agent file named from another project** (`mm -config /elsewhere/.mm/agent.yaml`): in terminal mode, when the current project has no skill at the relative `skillsDir`, the one next to the agent file is used; the banner says `skills: N (from <dir>)`. (#231) | |
| 71 | +- **`lsp` with TypeScript**: mm now declares the diagnostics capabilities, so typescript-language-server sends its diagnostics (it sent none), and TypeScript 7's own server, `tsc --lsp --stdio`, which only answers when asked (LSP 3.17 pull diagnostics), works too. (#246, #247) | |
| 72 | + | |
| 73 | +## Demos | |
| 74 | + | |
| 75 | +- **`demos/lfm-coder`** (new): a Go coder on LFM2.5-24B-A2B. Its four hooks were replaced by the settings above. Measured with this release: 16 of 20 runs (nine Go cases twice, plus a two-run comment case). Without any hook, a short smoke test gave commit 2/2, new app 1/2, web API 0/2 — the web API case has stayed around one run in two since the first series. A full re-measure is still to do. | |
| 76 | +- **`demos/olala-mini`** (new, Olala-v1.0-mini on Blade) and **`demos/mellum2`** (new, Mellum2 12B on the Llama app): where most of the failures above were seen; their settings pages (EN + FR) describe each guardrail they use. | |
| 77 | + | |
| 78 | +## Documentation | |
| 79 | + | |
| 80 | +- Configuration reference: `workspace`, `turnReminder`, `bashBackground`, `lsp.diagnosticsAfterEdit` / `diagnosticsAfterRead`, the `contextWindow` warning, the `skillsDir` fallback. | |
| 81 | +- Tools reference: `bash` background processes, `edit_file` `line` and fourth matching pass, repaired and handed-back arguments, the loop detector's failed-call rule. | |
| 82 | +- CLI reference: the exit codes of `-p`, the new struggle signals. | |
| 83 | +- Guides: TypeScript 5/6 or 7 and the diagnostics settings in [the lsp guide](../docs/en/how-to/navigate-code-with-lsp.md); router mode in [the llama.cpp guide](../docs/en/how-to/run-with-llama-cpp.md). The [struggling models](../docs/en/explanation/struggling-models.md) explanation says why mm hands back once and repairs rather than refuses. | |
| 84 | + | |
| 85 | +## Upgrading | |
| 86 | + | |
| 87 | +- **Replace the binary**: see the install guides for [macOS](../INSTALL.MACOS.md), [Linux](../INSTALL.LINUX.md) and [Windows](../INSTALL.WINDOWS.md). | |
| 88 | +- **`bashBackground` is on by default (`report`).** A command that leaves a process running now gets a note at the end of its output, and a `bash` timeout stops the whole process group, not only the shell. Set `bashBackground: allow` for the old behaviour. | |
| 89 | +- **`mm -p` exits 1 on a failed generation.** A script that treated every run as a success now sees the failures. | |
| 90 | +- The other new settings are off by default. An agent that used hooks for these jobs (path repair, argument repair, `go vet` after edits, a reminder) can switch to the settings; `demos/lfm-coder` shows how. | |
| 91 | +- Older mm versions ignore the new keys without a word. | |
| new file mode 100644 | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | +# mini-me v2.0.0 | ||
| 2 | + | ||
| 3 | +*[Version française](v2.0.0.fr.md)* | ||
| 4 | + | ||
| 5 | +Built-in guardrails against the silent failures of small models: wrong paths and malformed tool calls repaired, loops, cut answers and failed edits caught and reported, diagnostics without asking, background processes tracked, and `mm -p` exits 1 when a run fails. | ||
| 6 | + | ||
| 7 | +This release comes from measuring small coding models — LiquidAI LFM2.5-24B-A2B (`demos/lfm-coder`), Olala-v1.0-mini (`demos/olala-mini`) and Mellum2 12B (`demos/mellum2`). Their typical failures were silent: a file written in the wrong directory, a turn ended by a malformed call, an answer saying "Done." after a refused edit. `demos/lfm-coder` first fixed them with four Python hooks; their generic parts are now mm settings, and that demo uses no hook any more. | ||
| 8 | + | ||
| 9 | +## New | ||
| 10 | + | ||
| 11 | +### `workspace`: keep the file tools in the project, repair wrong paths (#229, #234, #248) | ||
| 12 | + | ||
| 13 | +```yaml | ||
| 14 | +workspace: | ||
| 15 | + confine: true # read_file, write_file, edit_file and lsp stay inside the project | ||
| 16 | + repairPaths: true # a wrong path becomes the one the model meant | ||
| 17 | +``` | ||
| 18 | + | ||
| 19 | +- `repairPaths` turns an absolute path with a directory missing (`<parent>/main.go`), an invented root (`/workspace/stats/stats.go`) or a relative path that starts with the project folder's own name (`olala-mini/script.js`) into the right relative path, and tells the model: `[path … is outside the project: used stats/stats.go — use relative paths]`. | ||
| 20 | +- In `bash`, a leading `cd <absolute path> &&` to a directory that does not exist, to the project root or to the project's tree outside the project is dropped: `[cd … dropped: every bash command already starts in the project root — never cd to an absolute path]`. | ||
| 21 | +- `confine` refuses what is still outside, suggesting a relative path — never the absolute project path. A hook that only refused such paths, quoting the project path, made LFM2.5 retry absolute paths for 80 turns. | ||
| 22 | + | ||
| 23 | +Both are off by default. See [`workspace` keys](../docs/en/reference/configuration.md#workspace-keys). | ||
| 24 | + | ||
| 25 | +### `turnReminder`: a rule next to every question (#230) | ||
| 26 | + | ||
| 27 | +A text appended to every question the model reads, under a `[reminder]` line, in every front end. In `demos/lfm-coder`, a rule asking the model to call `ask_user` when a decision is missing was followed 0 times out of 5 from the system prompt, and 3 out of 3 next to the question with the exact call shape. Until now this took a `preGeneration` hook script. | ||
| 28 | + | ||
| 29 | +### `lsp.diagnosticsAfterEdit` and `lsp.diagnosticsAfterRead` (#227, #245) | ||
| 30 | + | ||
| 31 | +The language server's diagnostics are appended to the output of `write_file` / `edit_file` (after a successful change) and of `read_file` (once per version of the file), without the model asking: `demos/gemma-coder` asked for them 0 times in 54 runs. Off by default; 8 s per request. | ||
| 32 | + | ||
| 33 | +### `bashBackground`: processes a command leaves running (#228) | ||
| 34 | + | ||
| 35 | +Each `bash` command runs in its own process group. With `report` (the default), what is still running when the command returns is listed in the output — `[still running in the background after this command: 4242 (server). …]` — with the advice to stop it in the same command. `stop` also stops it at the end of the turn; `allow` is the old behaviour. A timeout now stops the whole group. In `demos/lfm-coder`, servers started with `&` stayed up after the turn, and a later `curl` answered by the old server was reported as proof that the new code worked. | ||
| 36 | + | ||
| 37 | +Linux and macOS only. Not done: the listening port in the report, a warning when mm exits, the stop in `mm --ask`. | ||
| 38 | + | ||
| 39 | +### `edit_file` picks an occurrence by its line (#241) | ||
| 40 | + | ||
| 41 | +Each edit takes an optional `line`: when `old` occurs several times, the line where the occurrence to change starts. The "appears N times" refusal now offers it. Mellum2 and Olala both knew they wanted "line 8" but could not make `old` unique. | ||
| 42 | + | ||
| 43 | +### Tool calls repaired instead of ending the turn (#225, #237) | ||
| 44 | + | ||
| 45 | +- A call whose arguments fail the tool's schema no longer ends the turn: the model reads the error with the expected arguments and an example, and can fix its call (3 identical invalid calls still end it). | ||
| 46 | +- Before validation, `"true"`, `"8"` or `"0.5"` sent for a boolean, integer or number are converted, and the names models reach for in `write_file` / `edit_file` (`file_path`, `old_text`, `edits` as a JSON string…) are repaired. | ||
| 47 | + | ||
| 48 | +See [tools](../docs/en/reference/tools.md#arguments-that-do-not-match-a-tools-schema). | ||
| 49 | + | ||
| 50 | +### Silent ends of turn, handed back once (#232, #235, #236, #238, #242) | ||
| 51 | + | ||
| 52 | +| What happened | What mm does now | | ||
| 53 | +|---|---| | ||
| 54 | +| A reply cut at the token limit while the model was still reasoning (Olala: exactly 4,096 tokens) | Handed back once, asking it to act now; if it happens again, `empty answer — the model reasoned until the limit (…): raise sampling.…` | | ||
| 55 | +| One sentence repeated 20 times in a row in the reasoning or the answer (Olala: 40,000 characters of "So the assistant can output the content.") | That model call is cut and handed back once; looping again ends the turn with `the model looped: …` | | ||
| 56 | +| A final answer with 20 or more identical lines (Olala: one line 473 times) | Collapsed to one line plus `[… the same line repeated N more times — removed by mm]`, in the answer and the history, and reported | | ||
| 57 | +| An answer cut mid-sentence at the token limit | Reported: `answer cut at the limit (…)` | | ||
| 58 | +| A final answer given while the turn's last `write_file` / `edit_file` had failed | Handed back once (the file was not changed: fix the call or say so); still so, `the last edit_file failed (…) — that change was not made, whatever the answer says` | | ||
| 59 | + | ||
| 60 | +See [struggle signals](../docs/en/reference/cli.md#struggle-signals). | ||
| 61 | + | ||
| 62 | +## Fixed | ||
| 63 | + | ||
| 64 | +- **`mm -p` exits 1 when the generation fails** — watchdog stall, max turns, provider or tool error. It exited 0, so a script could not tell a failed run from a good one. (#224) | ||
| 65 | +- **`edit_file`: a line break where the file has a space.** A fourth, last matching pass treats any run of whitespace, line breaks included, as equal. Mellum2 sent 28 `edit_file` calls, 26 of them the same, because it remembered one line as two. (#239) | ||
| 66 | +- **`edit_file`: identical `old` and `new`** for a text the file holds is reported as already done instead of failing the whole call. (#154) | ||
| 67 | +- **The loop detector stops the same failing call repeated between other calls.** The same refused edit, a `read_file` between each, used to run until `maxTurns`. (#240) | ||
| 68 | +- **llama.cpp in router mode** (the Llama app): mm asks `/props?model=<model>`, so the banner shows the model's window, the false "no chat template" warning is gone and `mm init` reads the model's facts. (#226) | ||
| 69 | +- **`contextWindow` larger than the served window**: a start-up warning, and a request refused as too long is explained with its size and the server's window instead of "the connection broke" — and not retried. (#233) | ||
| 70 | +- **Skills of an agent file named from another project** (`mm -config /elsewhere/.mm/agent.yaml`): in terminal mode, when the current project has no skill at the relative `skillsDir`, the one next to the agent file is used; the banner says `skills: N (from <dir>)`. (#231) | ||
| 71 | +- **`lsp` with TypeScript**: mm now declares the diagnostics capabilities, so typescript-language-server sends its diagnostics (it sent none), and TypeScript 7's own server, `tsc --lsp --stdio`, which only answers when asked (LSP 3.17 pull diagnostics), works too. (#246, #247) | ||
| 72 | + | ||
| 73 | +## Demos | ||
| 74 | + | ||
| 75 | +- **`demos/lfm-coder`** (new): a Go coder on LFM2.5-24B-A2B. Its four hooks were replaced by the settings above. Measured with this release: 16 of 20 runs (nine Go cases twice, plus a two-run comment case). Without any hook, a short smoke test gave commit 2/2, new app 1/2, web API 0/2 — the web API case has stayed around one run in two since the first series. A full re-measure is still to do. | ||
| 76 | +- **`demos/olala-mini`** (new, Olala-v1.0-mini on Blade) and **`demos/mellum2`** (new, Mellum2 12B on the Llama app): where most of the failures above were seen; their settings pages (EN + FR) describe each guardrail they use. | ||
| 77 | + | ||
| 78 | +## Documentation | ||
| 79 | + | ||
| 80 | +- Configuration reference: `workspace`, `turnReminder`, `bashBackground`, `lsp.diagnosticsAfterEdit` / `diagnosticsAfterRead`, the `contextWindow` warning, the `skillsDir` fallback. | ||
| 81 | +- Tools reference: `bash` background processes, `edit_file` `line` and fourth matching pass, repaired and handed-back arguments, the loop detector's failed-call rule. | ||
| 82 | +- CLI reference: the exit codes of `-p`, the new struggle signals. | ||
| 83 | +- Guides: TypeScript 5/6 or 7 and the diagnostics settings in [the lsp guide](../docs/en/how-to/navigate-code-with-lsp.md); router mode in [the llama.cpp guide](../docs/en/how-to/run-with-llama-cpp.md). The [struggling models](../docs/en/explanation/struggling-models.md) explanation says why mm hands back once and repairs rather than refuses. | ||
| 84 | + | ||
| 85 | +## Upgrading | ||
| 86 | + | ||
| 87 | +- **Replace the binary**: see the install guides for [macOS](../INSTALL.MACOS.md), [Linux](../INSTALL.LINUX.md) and [Windows](../INSTALL.WINDOWS.md). | ||
| 88 | +- **`bashBackground` is on by default (`report`).** A command that leaves a process running now gets a note at the end of its output, and a `bash` timeout stops the whole process group, not only the shell. Set `bashBackground: allow` for the old behaviour. | ||
| 89 | +- **`mm -p` exits 1 on a failed generation.** A script that treated every run as a success now sees the failures. | ||
| 90 | +- The other new settings are off by default. An agent that used hooks for these jobs (path repair, argument repair, `go vet` after edits, a reminder) can switch to the settings; `demos/lfm-coder` shows how. | ||
| 91 | +- Older mm versions ignore the new keys without a word. | ||
added
release-notes/v2.0.0.fr.md +91 -0 | new file mode 100644 | ||
| @@ -0,0 +1,91 @@ | ||
| 1 | +# mini-me v2.0.0 | |
| 2 | + | |
| 3 | +*[English version](v2.0.0.en.md)* | |
| 4 | + | |
| 5 | +Des garde-fous intégrés contre les échecs silencieux des petits modèles : chemins erronés et appels d'outils malformés réparés, boucles, réponses coupées et modifications ratées détectées et signalées, diagnostics sans les demander, processus d'arrière-plan suivis, et `mm -p` sort avec 1 quand une exécution échoue. | |
| 6 | + | |
| 7 | +Cette version vient de mesures sur de petits modèles de code — LiquidAI LFM2.5-24B-A2B (`demos/lfm-coder`), Olala-v1.0-mini (`demos/olala-mini`) et Mellum2 12B (`demos/mellum2`). Leurs échecs typiques étaient silencieux : un fichier écrit dans le mauvais répertoire, un tour terminé par un appel malformé, une réponse « Done. » après une modification refusée. `demos/lfm-coder` les corrigeait d'abord avec quatre hooks Python ; leurs parties génériques sont devenues des réglages de mm, et cette démo n'utilise plus aucun hook. | |
| 8 | + | |
| 9 | +## Nouveautés | |
| 10 | + | |
| 11 | +### `workspace` : garder les outils de fichiers dans le projet, réparer les chemins erronés (#229, #234, #248) | |
| 12 | + | |
| 13 | +```yaml | |
| 14 | +workspace: | |
| 15 | + confine: true # read_file, write_file, edit_file et lsp restent dans le projet | |
| 16 | + repairPaths: true # un chemin erroné devient celui que le modèle voulait dire | |
| 17 | +``` | |
| 18 | + | |
| 19 | +- `repairPaths` remplace un chemin absolu auquel il manque un répertoire (`<parent>/main.go`), une racine inventée (`/workspace/stats/stats.go`) ou un chemin relatif qui commence par le nom du dossier du projet (`olala-mini/script.js`) par le bon chemin relatif, et le dit au modèle : `[path … is outside the project: used stats/stats.go — use relative paths]`. | |
| 20 | +- Dans `bash`, un `cd <chemin absolu> &&` en tête vers un répertoire qui n'existe pas, vers la racine du projet ou vers l'arborescence du projet hors du projet est supprimé : `[cd … dropped: every bash command already starts in the project root — never cd to an absolute path]`. | |
| 21 | +- `confine` refuse ce qui reste hors du projet, en proposant un chemin relatif — jamais le chemin absolu du projet. Un hook qui se contentait de refuser ces chemins, en citant le chemin du projet, a fait réessayer des chemins absolus à LFM2.5 pendant 80 tours. | |
| 22 | + | |
| 23 | +Les deux sont désactivés par défaut. Voir les [clés de `workspace`](../docs/fr/reference/configuration.md#clés-de-workspace). | |
| 24 | + | |
| 25 | +### `turnReminder` : une règle à côté de chaque question (#230) | |
| 26 | + | |
| 27 | +Un texte ajouté à chaque question que lit le modèle, sous une ligne `[reminder]`, dans toutes les interfaces. Dans `demos/lfm-coder`, une règle demandant au modèle d'appeler `ask_user` quand une décision manque a été suivie 0 fois sur 5 depuis le prompt système, et 3 fois sur 3 à côté de la question avec la forme exacte de l'appel. Jusqu'ici, il fallait un script de hook `preGeneration`. | |
| 28 | + | |
| 29 | +### `lsp.diagnosticsAfterEdit` et `lsp.diagnosticsAfterRead` (#227, #245) | |
| 30 | + | |
| 31 | +Les diagnostics du serveur de langage sont ajoutés à la sortie de `write_file` / `edit_file` (après une modification réussie) et de `read_file` (une fois par version du fichier), sans que le modèle les demande : `demos/gemma-coder` les a demandés 0 fois en 54 exécutions. Désactivés par défaut ; 8 s par requête. | |
| 32 | + | |
| 33 | +### `bashBackground` : les processus qu'une commande laisse tourner (#228) | |
| 34 | + | |
| 35 | +Chaque commande `bash` s'exécute dans son propre groupe de processus. Avec `report` (la valeur par défaut), ce qui tourne encore quand la commande rend la main est listé dans la sortie — `[still running in the background after this command: 4242 (server). …]` — avec le conseil de l'arrêter dans la même commande. `stop` l'arrête aussi à la fin du tour ; `allow` garde l'ancien comportement. Un dépassement de délai arrête maintenant tout le groupe. Dans `demos/lfm-coder`, des serveurs lancés avec `&` restaient actifs après le tour, et un `curl` ultérieur auquel répondait l'ancien serveur a été présenté comme la preuve que le nouveau code marchait. | |
| 36 | + | |
| 37 | +Linux et macOS seulement. Pas fait : le port d'écoute dans le message, un avertissement à la sortie de mm, l'arrêt dans `mm --ask`. | |
| 38 | + | |
| 39 | +### `edit_file` choisit une occurrence par sa ligne (#241) | |
| 40 | + | |
| 41 | +Chaque modification accepte un `line` facultatif : quand `old` apparaît plusieurs fois, la ligne où commence l'occurrence à changer. Le refus « appears N times » le propose désormais. Mellum2 et Olala savaient tous deux qu'ils voulaient « la ligne 8 », mais n'arrivaient pas à rendre `old` unique. | |
| 42 | + | |
| 43 | +### Des appels d'outils réparés au lieu de terminer le tour (#225, #237) | |
| 44 | + | |
| 45 | +- Un appel dont les arguments ne respectent pas le schéma de l'outil ne termine plus le tour : le modèle lit l'erreur avec les arguments attendus et un exemple, et peut corriger son appel (3 appels invalides identiques le terminent toujours). | |
| 46 | +- Avant la validation, `"true"`, `"8"` ou `"0.5"` envoyés pour un booléen, un entier ou un nombre sont convertis, et les noms que les modèles emploient dans `write_file` / `edit_file` (`file_path`, `old_text`, `edits` sous forme de chaîne JSON…) sont réparés. | |
| 47 | + | |
| 48 | +Voir les [outils](../docs/fr/reference/tools.md#arguments-qui-ne-respectent-pas-le-schéma-dun-outil). | |
| 49 | + | |
| 50 | +### Les fins de tour silencieuses, rendues une fois (#232, #235, #236, #238, #242) | |
| 51 | + | |
| 52 | +| Ce qui s'est passé | Ce que fait mm maintenant | | |
| 53 | +|---|---| | |
| 54 | +| Une réponse coupée à la limite de tokens alors que le modèle raisonnait encore (Olala : exactement 4 096 tokens) | Rendue une fois, en lui demandant d'agir tout de suite ; si cela se reproduit, `empty answer — the model reasoned until the limit (…): raise sampling.…` | | |
| 55 | +| Une phrase répétée 20 fois de suite dans le raisonnement ou la réponse (Olala : 40 000 caractères de « So the assistant can output the content. ») | Cet appel au modèle est coupé et rendu une fois ; une nouvelle boucle termine le tour avec `the model looped: …` | | |
| 56 | +| Une réponse finale avec 20 lignes identiques ou plus (Olala : une ligne 473 fois) | Réduites à une ligne suivie de `[… the same line repeated N more times — removed by mm]`, dans la réponse et l'historique, et signalé | | |
| 57 | +| Une réponse coupée en pleine phrase à la limite de tokens | Signalé : `answer cut at the limit (…)` | | |
| 58 | +| Une réponse finale donnée alors que le dernier `write_file` / `edit_file` du tour avait échoué | Rendue une fois (le fichier n'a pas été modifié : corrige l'appel ou dis-le) ; si c'est toujours le cas, `the last edit_file failed (…) — that change was not made, whatever the answer says` | | |
| 59 | + | |
| 60 | +Voir les [signaux de difficulté](../docs/fr/reference/cli.md#signaux-de-difficulté). | |
| 61 | + | |
| 62 | +## Corrections | |
| 63 | + | |
| 64 | +- **`mm -p` sort avec 1 quand la génération échoue** — watchdog, nombre maximal de tours, erreur du fournisseur ou d'un outil. Il sortait avec 0 : un script ne pouvait pas distinguer un échec d'une réussite. (#224) | |
| 65 | +- **`edit_file` : un retour à la ligne là où le fichier a un espace.** Une quatrième et dernière passe de correspondance considère toute suite d'espaces, retours à la ligne compris, comme égale. Mellum2 a envoyé 28 appels `edit_file`, dont 26 identiques, parce qu'il se souvenait d'une ligne comme de deux. (#239) | |
| 66 | +- **`edit_file` : `old` et `new` identiques** pour un texte que le fichier contient sont signalés comme déjà faits au lieu de faire échouer tout l'appel. (#154) | |
| 67 | +- **Le détecteur de boucles arrête le même appel en échec répété entre d'autres appels.** La même modification refusée, avec un `read_file` entre chaque, allait jusqu'à `maxTurns`. (#240) | |
| 68 | +- **llama.cpp en mode routeur** (l'application Llama) : mm demande `/props?model=<modèle>`, donc la bannière affiche la fenêtre du modèle, le faux avertissement « no chat template » disparaît et `mm init` lit les caractéristiques du modèle. (#226) | |
| 69 | +- **`contextWindow` plus grand que la fenêtre servie** : un avertissement au démarrage, et une requête refusée comme trop longue est expliquée avec sa taille et la fenêtre du serveur au lieu de « the connection broke » — et n'est pas relancée. (#233) | |
| 70 | +- **Les skills d'un fichier d'agent nommé depuis un autre projet** (`mm -config /ailleurs/.mm/agent.yaml`) : en mode terminal, quand le projet courant n'a aucun skill au `skillsDir` relatif, celui qui est à côté du fichier d'agent est utilisé ; la bannière affiche `skills: N (from <dir>)`. (#231) | |
| 71 | +- **`lsp` avec TypeScript** : mm déclare désormais les capacités de diagnostics, donc typescript-language-server envoie ses diagnostics (il n'en envoyait aucun), et le serveur propre à TypeScript 7, `tsc --lsp --stdio`, qui ne répond que quand on les lui demande (diagnostics « pull » de LSP 3.17), fonctionne aussi. (#246, #247) | |
| 72 | + | |
| 73 | +## Démos | |
| 74 | + | |
| 75 | +- **`demos/lfm-coder`** (nouvelle) : un codeur Go sur LFM2.5-24B-A2B. Ses quatre hooks ont été remplacés par les réglages ci-dessus. Mesuré avec cette version : 16 exécutions réussies sur 20 (neuf cas Go deux fois, plus un cas de commentaire en deux exécutions). Sans aucun hook, un court test de fumée a donné commit 2/2, nouvelle application 1/2, API web 0/2 — le cas API web tourne autour d'une réussite sur deux depuis la première série. Une mesure complète reste à faire. | |
| 76 | +- **`demos/olala-mini`** (nouvelle, Olala-v1.0-mini sur Blade) et **`demos/mellum2`** (nouvelle, Mellum2 12B sur l'application Llama) : là où la plupart des échecs ci-dessus ont été vus ; leurs pages de réglages (EN + FR) décrivent chaque garde-fou qu'elles utilisent. | |
| 77 | + | |
| 78 | +## Documentation | |
| 79 | + | |
| 80 | +- Référence de configuration : `workspace`, `turnReminder`, `bashBackground`, `lsp.diagnosticsAfterEdit` / `diagnosticsAfterRead`, l'avertissement de `contextWindow`, le repli de `skillsDir`. | |
| 81 | +- Référence des outils : les processus d'arrière-plan de `bash`, le `line` et la quatrième passe d'`edit_file`, les arguments réparés et rendus, la règle des appels en échec du détecteur de boucles. | |
| 82 | +- Référence CLI : les codes de sortie de `-p`, les nouveaux signaux de difficulté. | |
| 83 | +- Guides : TypeScript 5/6 ou 7 et les réglages de diagnostics dans [le guide lsp](../docs/fr/how-to/navigate-code-with-lsp.md) ; le mode routeur dans [le guide llama.cpp](../docs/fr/how-to/run-with-llama-cpp.md). L'explication sur [les modèles en difficulté](../docs/fr/explanation/struggling-models.md) dit pourquoi mm rend une fois et répare plutôt que de refuser. | |
| 84 | + | |
| 85 | +## Mise à jour | |
| 86 | + | |
| 87 | +- **Remplacez le binaire** : voir les guides d'installation pour [macOS](../INSTALL.MACOS.md), [Linux](../INSTALL.LINUX.md) et [Windows](../INSTALL.WINDOWS.md). | |
| 88 | +- **`bashBackground` est actif par défaut (`report`).** Une commande qui laisse un processus en marche reçoit désormais une note à la fin de sa sortie, et un dépassement de délai de `bash` arrête tout le groupe de processus, pas seulement le shell. Mettez `bashBackground: allow` pour l'ancien comportement. | |
| 89 | +- **`mm -p` sort avec 1 sur une génération en échec.** Un script qui considérait chaque exécution comme réussie voit maintenant les échecs. | |
| 90 | +- Les autres nouveaux réglages sont désactivés par défaut. Un agent qui utilisait des hooks pour ces tâches (réparation des chemins, des arguments, `go vet` après les modifications, un rappel) peut passer aux réglages ; `demos/lfm-coder` montre comment. | |
| 91 | +- Les versions plus anciennes de mm ignorent les nouvelles clés sans rien dire. | |
| new file mode 100644 | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | +# mini-me v2.0.0 | ||
| 2 | + | ||
| 3 | +*[English version](v2.0.0.en.md)* | ||
| 4 | + | ||
| 5 | +Des garde-fous intégrés contre les échecs silencieux des petits modèles : chemins erronés et appels d'outils malformés réparés, boucles, réponses coupées et modifications ratées détectées et signalées, diagnostics sans les demander, processus d'arrière-plan suivis, et `mm -p` sort avec 1 quand une exécution échoue. | ||
| 6 | + | ||
| 7 | +Cette version vient de mesures sur de petits modèles de code — LiquidAI LFM2.5-24B-A2B (`demos/lfm-coder`), Olala-v1.0-mini (`demos/olala-mini`) et Mellum2 12B (`demos/mellum2`). Leurs échecs typiques étaient silencieux : un fichier écrit dans le mauvais répertoire, un tour terminé par un appel malformé, une réponse « Done. » après une modification refusée. `demos/lfm-coder` les corrigeait d'abord avec quatre hooks Python ; leurs parties génériques sont devenues des réglages de mm, et cette démo n'utilise plus aucun hook. | ||
| 8 | + | ||
| 9 | +## Nouveautés | ||
| 10 | + | ||
| 11 | +### `workspace` : garder les outils de fichiers dans le projet, réparer les chemins erronés (#229, #234, #248) | ||
| 12 | + | ||
| 13 | +```yaml | ||
| 14 | +workspace: | ||
| 15 | + confine: true # read_file, write_file, edit_file et lsp restent dans le projet | ||
| 16 | + repairPaths: true # un chemin erroné devient celui que le modèle voulait dire | ||
| 17 | +``` | ||
| 18 | + | ||
| 19 | +- `repairPaths` remplace un chemin absolu auquel il manque un répertoire (`<parent>/main.go`), une racine inventée (`/workspace/stats/stats.go`) ou un chemin relatif qui commence par le nom du dossier du projet (`olala-mini/script.js`) par le bon chemin relatif, et le dit au modèle : `[path … is outside the project: used stats/stats.go — use relative paths]`. | ||
| 20 | +- Dans `bash`, un `cd <chemin absolu> &&` en tête vers un répertoire qui n'existe pas, vers la racine du projet ou vers l'arborescence du projet hors du projet est supprimé : `[cd … dropped: every bash command already starts in the project root — never cd to an absolute path]`. | ||
| 21 | +- `confine` refuse ce qui reste hors du projet, en proposant un chemin relatif — jamais le chemin absolu du projet. Un hook qui se contentait de refuser ces chemins, en citant le chemin du projet, a fait réessayer des chemins absolus à LFM2.5 pendant 80 tours. | ||
| 22 | + | ||
| 23 | +Les deux sont désactivés par défaut. Voir les [clés de `workspace`](../docs/fr/reference/configuration.md#clés-de-workspace). | ||
| 24 | + | ||
| 25 | +### `turnReminder` : une règle à côté de chaque question (#230) | ||
| 26 | + | ||
| 27 | +Un texte ajouté à chaque question que lit le modèle, sous une ligne `[reminder]`, dans toutes les interfaces. Dans `demos/lfm-coder`, une règle demandant au modèle d'appeler `ask_user` quand une décision manque a été suivie 0 fois sur 5 depuis le prompt système, et 3 fois sur 3 à côté de la question avec la forme exacte de l'appel. Jusqu'ici, il fallait un script de hook `preGeneration`. | ||
| 28 | + | ||
| 29 | +### `lsp.diagnosticsAfterEdit` et `lsp.diagnosticsAfterRead` (#227, #245) | ||
| 30 | + | ||
| 31 | +Les diagnostics du serveur de langage sont ajoutés à la sortie de `write_file` / `edit_file` (après une modification réussie) et de `read_file` (une fois par version du fichier), sans que le modèle les demande : `demos/gemma-coder` les a demandés 0 fois en 54 exécutions. Désactivés par défaut ; 8 s par requête. | ||
| 32 | + | ||
| 33 | +### `bashBackground` : les processus qu'une commande laisse tourner (#228) | ||
| 34 | + | ||
| 35 | +Chaque commande `bash` s'exécute dans son propre groupe de processus. Avec `report` (la valeur par défaut), ce qui tourne encore quand la commande rend la main est listé dans la sortie — `[still running in the background after this command: 4242 (server). …]` — avec le conseil de l'arrêter dans la même commande. `stop` l'arrête aussi à la fin du tour ; `allow` garde l'ancien comportement. Un dépassement de délai arrête maintenant tout le groupe. Dans `demos/lfm-coder`, des serveurs lancés avec `&` restaient actifs après le tour, et un `curl` ultérieur auquel répondait l'ancien serveur a été présenté comme la preuve que le nouveau code marchait. | ||
| 36 | + | ||
| 37 | +Linux et macOS seulement. Pas fait : le port d'écoute dans le message, un avertissement à la sortie de mm, l'arrêt dans `mm --ask`. | ||
| 38 | + | ||
| 39 | +### `edit_file` choisit une occurrence par sa ligne (#241) | ||
| 40 | + | ||
| 41 | +Chaque modification accepte un `line` facultatif : quand `old` apparaît plusieurs fois, la ligne où commence l'occurrence à changer. Le refus « appears N times » le propose désormais. Mellum2 et Olala savaient tous deux qu'ils voulaient « la ligne 8 », mais n'arrivaient pas à rendre `old` unique. | ||
| 42 | + | ||
| 43 | +### Des appels d'outils réparés au lieu de terminer le tour (#225, #237) | ||
| 44 | + | ||
| 45 | +- Un appel dont les arguments ne respectent pas le schéma de l'outil ne termine plus le tour : le modèle lit l'erreur avec les arguments attendus et un exemple, et peut corriger son appel (3 appels invalides identiques le terminent toujours). | ||
| 46 | +- Avant la validation, `"true"`, `"8"` ou `"0.5"` envoyés pour un booléen, un entier ou un nombre sont convertis, et les noms que les modèles emploient dans `write_file` / `edit_file` (`file_path`, `old_text`, `edits` sous forme de chaîne JSON…) sont réparés. | ||
| 47 | + | ||
| 48 | +Voir les [outils](../docs/fr/reference/tools.md#arguments-qui-ne-respectent-pas-le-schéma-dun-outil). | ||
| 49 | + | ||
| 50 | +### Les fins de tour silencieuses, rendues une fois (#232, #235, #236, #238, #242) | ||
| 51 | + | ||
| 52 | +| Ce qui s'est passé | Ce que fait mm maintenant | | ||
| 53 | +|---|---| | ||
| 54 | +| Une réponse coupée à la limite de tokens alors que le modèle raisonnait encore (Olala : exactement 4 096 tokens) | Rendue une fois, en lui demandant d'agir tout de suite ; si cela se reproduit, `empty answer — the model reasoned until the limit (…): raise sampling.…` | | ||
| 55 | +| Une phrase répétée 20 fois de suite dans le raisonnement ou la réponse (Olala : 40 000 caractères de « So the assistant can output the content. ») | Cet appel au modèle est coupé et rendu une fois ; une nouvelle boucle termine le tour avec `the model looped: …` | | ||
| 56 | +| Une réponse finale avec 20 lignes identiques ou plus (Olala : une ligne 473 fois) | Réduites à une ligne suivie de `[… the same line repeated N more times — removed by mm]`, dans la réponse et l'historique, et signalé | | ||
| 57 | +| Une réponse coupée en pleine phrase à la limite de tokens | Signalé : `answer cut at the limit (…)` | | ||
| 58 | +| Une réponse finale donnée alors que le dernier `write_file` / `edit_file` du tour avait échoué | Rendue une fois (le fichier n'a pas été modifié : corrige l'appel ou dis-le) ; si c'est toujours le cas, `the last edit_file failed (…) — that change was not made, whatever the answer says` | | ||
| 59 | + | ||
| 60 | +Voir les [signaux de difficulté](../docs/fr/reference/cli.md#signaux-de-difficulté). | ||
| 61 | + | ||
| 62 | +## Corrections | ||
| 63 | + | ||
| 64 | +- **`mm -p` sort avec 1 quand la génération échoue** — watchdog, nombre maximal de tours, erreur du fournisseur ou d'un outil. Il sortait avec 0 : un script ne pouvait pas distinguer un échec d'une réussite. (#224) | ||
| 65 | +- **`edit_file` : un retour à la ligne là où le fichier a un espace.** Une quatrième et dernière passe de correspondance considère toute suite d'espaces, retours à la ligne compris, comme égale. Mellum2 a envoyé 28 appels `edit_file`, dont 26 identiques, parce qu'il se souvenait d'une ligne comme de deux. (#239) | ||
| 66 | +- **`edit_file` : `old` et `new` identiques** pour un texte que le fichier contient sont signalés comme déjà faits au lieu de faire échouer tout l'appel. (#154) | ||
| 67 | +- **Le détecteur de boucles arrête le même appel en échec répété entre d'autres appels.** La même modification refusée, avec un `read_file` entre chaque, allait jusqu'à `maxTurns`. (#240) | ||
| 68 | +- **llama.cpp en mode routeur** (l'application Llama) : mm demande `/props?model=<modèle>`, donc la bannière affiche la fenêtre du modèle, le faux avertissement « no chat template » disparaît et `mm init` lit les caractéristiques du modèle. (#226) | ||
| 69 | +- **`contextWindow` plus grand que la fenêtre servie** : un avertissement au démarrage, et une requête refusée comme trop longue est expliquée avec sa taille et la fenêtre du serveur au lieu de « the connection broke » — et n'est pas relancée. (#233) | ||
| 70 | +- **Les skills d'un fichier d'agent nommé depuis un autre projet** (`mm -config /ailleurs/.mm/agent.yaml`) : en mode terminal, quand le projet courant n'a aucun skill au `skillsDir` relatif, celui qui est à côté du fichier d'agent est utilisé ; la bannière affiche `skills: N (from <dir>)`. (#231) | ||
| 71 | +- **`lsp` avec TypeScript** : mm déclare désormais les capacités de diagnostics, donc typescript-language-server envoie ses diagnostics (il n'en envoyait aucun), et le serveur propre à TypeScript 7, `tsc --lsp --stdio`, qui ne répond que quand on les lui demande (diagnostics « pull » de LSP 3.17), fonctionne aussi. (#246, #247) | ||
| 72 | + | ||
| 73 | +## Démos | ||
| 74 | + | ||
| 75 | +- **`demos/lfm-coder`** (nouvelle) : un codeur Go sur LFM2.5-24B-A2B. Ses quatre hooks ont été remplacés par les réglages ci-dessus. Mesuré avec cette version : 16 exécutions réussies sur 20 (neuf cas Go deux fois, plus un cas de commentaire en deux exécutions). Sans aucun hook, un court test de fumée a donné commit 2/2, nouvelle application 1/2, API web 0/2 — le cas API web tourne autour d'une réussite sur deux depuis la première série. Une mesure complète reste à faire. | ||
| 76 | +- **`demos/olala-mini`** (nouvelle, Olala-v1.0-mini sur Blade) et **`demos/mellum2`** (nouvelle, Mellum2 12B sur l'application Llama) : là où la plupart des échecs ci-dessus ont été vus ; leurs pages de réglages (EN + FR) décrivent chaque garde-fou qu'elles utilisent. | ||
| 77 | + | ||
| 78 | +## Documentation | ||
| 79 | + | ||
| 80 | +- Référence de configuration : `workspace`, `turnReminder`, `bashBackground`, `lsp.diagnosticsAfterEdit` / `diagnosticsAfterRead`, l'avertissement de `contextWindow`, le repli de `skillsDir`. | ||
| 81 | +- Référence des outils : les processus d'arrière-plan de `bash`, le `line` et la quatrième passe d'`edit_file`, les arguments réparés et rendus, la règle des appels en échec du détecteur de boucles. | ||
| 82 | +- Référence CLI : les codes de sortie de `-p`, les nouveaux signaux de difficulté. | ||
| 83 | +- Guides : TypeScript 5/6 ou 7 et les réglages de diagnostics dans [le guide lsp](../docs/fr/how-to/navigate-code-with-lsp.md) ; le mode routeur dans [le guide llama.cpp](../docs/fr/how-to/run-with-llama-cpp.md). L'explication sur [les modèles en difficulté](../docs/fr/explanation/struggling-models.md) dit pourquoi mm rend une fois et répare plutôt que de refuser. | ||
| 84 | + | ||
| 85 | +## Mise à jour | ||
| 86 | + | ||
| 87 | +- **Remplacez le binaire** : voir les guides d'installation pour [macOS](../INSTALL.MACOS.md), [Linux](../INSTALL.LINUX.md) et [Windows](../INSTALL.WINDOWS.md). | ||
| 88 | +- **`bashBackground` est actif par défaut (`report`).** Une commande qui laisse un processus en marche reçoit désormais une note à la fin de sa sortie, et un dépassement de délai de `bash` arrête tout le groupe de processus, pas seulement le shell. Mettez `bashBackground: allow` pour l'ancien comportement. | ||
| 89 | +- **`mm -p` sort avec 1 sur une génération en échec.** Un script qui considérait chaque exécution comme réussie voit maintenant les échecs. | ||
| 90 | +- Les autres nouveaux réglages sont désactivés par défaut. Un agent qui utilisait des hooks pour ces tâches (réparation des chemins, des arguments, `go vet` après les modifications, un rappel) peut passer aux réglages ; `demos/lfm-coder` montre comment. | ||
| 91 | +- Les versions plus anciennes de mm ignorent les nouvelles clés sans rien dire. | ||
modified
skills/create-agent/model_facts.py +0 -0 | old mode 100755 | ||
| new mode 100644 |
| old mode 100755 | |||
| new mode 100644 |
modified
testing/common/run.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
testing/function-calling/bench.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
testing/function-calling/skills/function-calling-check/bench.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
testing/function-calling/tools/call.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
testing/model-check/skills/model-check/bench.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
tests/tool-order/proxy.py +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
tests/tool-order/session.py +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |