min-agent 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +111 -28
  2. package/dist/agent.js +1119 -256
  3. package/dist/cli/commands/chat.js +10 -0
  4. package/dist/cli/commands/exec.js +32 -0
  5. package/dist/cli/commands/history.js +58 -0
  6. package/dist/cli/commands/index.js +224 -0
  7. package/dist/cli/commands/init.js +18 -0
  8. package/dist/cli/commands/mcp.js +173 -0
  9. package/dist/cli/commands/memory.js +69 -0
  10. package/dist/cli/commands/models.js +21 -0
  11. package/dist/cli/commands/permission.js +12 -0
  12. package/dist/cli/commands/rules.js +33 -0
  13. package/dist/cli/commands/sandbox.js +13 -0
  14. package/dist/cli/commands/serve.js +9 -0
  15. package/dist/cli/commands/setup.js +4 -0
  16. package/dist/cli/commands/shared.js +16 -0
  17. package/dist/cli/commands/skills.js +119 -0
  18. package/dist/cli/commands/update.js +7 -0
  19. package/dist/cli/commands/write-config.js +30 -0
  20. package/dist/cli/errors.js +36 -0
  21. package/dist/cli/exec-prompt.js +26 -0
  22. package/dist/cli/option-helpers.js +53 -0
  23. package/dist/cli/program.js +180 -0
  24. package/dist/cli.js +5 -888
  25. package/dist/code-mode.js +32 -14
  26. package/dist/compaction.js +347 -160
  27. package/dist/config.js +119 -10
  28. package/dist/confirm.js +56 -9
  29. package/dist/context-window.js +107 -39
  30. package/dist/doom-loop.js +264 -29
  31. package/dist/fetch-timeout.js +152 -0
  32. package/dist/http-approvals.js +60 -0
  33. package/dist/instructions.js +21 -0
  34. package/dist/logger.js +33 -4
  35. package/dist/markdown.js +37 -11
  36. package/dist/mcp.js +328 -30
  37. package/dist/memory.js +97 -56
  38. package/dist/output.js +7 -5
  39. package/dist/permission-cli.js +43 -0
  40. package/dist/plugins.js +46 -8
  41. package/dist/pricing.js +4 -4
  42. package/dist/provider.js +23 -6
  43. package/dist/question-format.js +60 -0
  44. package/dist/sandbox-cli.js +82 -0
  45. package/dist/sandbox.js +403 -0
  46. package/dist/save-throttle.js +45 -0
  47. package/dist/serve/common.js +404 -0
  48. package/dist/serve/routes-chat.js +347 -0
  49. package/dist/serve/routes-mcp.js +212 -0
  50. package/dist/serve/routes-memory.js +66 -0
  51. package/dist/serve/routes-meta.js +205 -0
  52. package/dist/serve/routes-sessions.js +61 -0
  53. package/dist/serve/routes-skills.js +70 -0
  54. package/dist/serve.js +33 -883
  55. package/dist/sessions.js +53 -9
  56. package/dist/skills.js +82 -18
  57. package/dist/title-gen.js +8 -2
  58. package/dist/token-display.js +36 -0
  59. package/dist/tool-display.js +5 -0
  60. package/dist/tool-output.js +1 -3
  61. package/dist/tools/apply_patch.js +85 -11
  62. package/dist/tools/atomic-file.js +35 -0
  63. package/dist/tools/backend.js +2 -2
  64. package/dist/tools/bash.js +57 -19
  65. package/dist/tools/code_search.js +7 -1
  66. package/dist/tools/edit.js +11 -10
  67. package/dist/tools/explore.js +74 -14
  68. package/dist/tools/glob.js +4 -0
  69. package/dist/tools/grep.js +17 -10
  70. package/dist/tools/index.js +6 -21
  71. package/dist/tools/question.js +28 -9
  72. package/dist/tools/read.js +6 -4
  73. package/dist/tools/search-searxng.js +223 -0
  74. package/dist/tools/search-serper.js +189 -0
  75. package/dist/tools/task.js +84 -30
  76. package/dist/tools/todo.js +120 -19
  77. package/dist/tools/web_fetch.js +11 -3
  78. package/dist/tools/web_search.js +66 -556
  79. package/dist/tools/write.js +23 -6
  80. package/dist/tui/App.js +63 -14
  81. package/dist/tui/ConfirmBar.js +45 -13
  82. package/dist/tui/InputBar.js +150 -35
  83. package/dist/tui/MessageList.js +266 -125
  84. package/dist/tui/ModelPicker.js +8 -3
  85. package/dist/tui/QuestionBar.js +51 -19
  86. package/dist/tui/SessionPicker.js +79 -0
  87. package/dist/tui/StatusBar.js +8 -14
  88. package/dist/tui/agent-runner.js +142 -22
  89. package/dist/tui/caret-pos.js +48 -5
  90. package/dist/tui/caret.js +1 -1
  91. package/dist/tui/click-count.js +13 -0
  92. package/dist/tui/drag-state.js +8 -3
  93. package/dist/tui/hydrate.js +129 -0
  94. package/dist/tui/index.js +42 -13
  95. package/dist/tui/input-history.js +92 -11
  96. package/dist/tui/layout.js +75 -4
  97. package/dist/tui/prompt-queue.js +24 -0
  98. package/dist/tui/selection.js +113 -21
  99. package/dist/tui/session-switch.js +28 -0
  100. package/dist/tui/slash-commands.js +22 -6
  101. package/dist/tui/slash-handler.js +233 -58
  102. package/dist/tui/text-width.js +38 -16
  103. package/dist/tui/token-info.js +7 -0
  104. package/dist/tui/tool-children.js +19 -0
  105. package/dist/tui/undo-stack.js +1 -1
  106. package/dist/tui/use-sgr-mouse.js +3 -1
  107. package/dist/tui-chat.js +276 -40
  108. package/dist/updater.js +88 -29
  109. package/dist/xml-search.js +194 -0
  110. package/docs/API.md +257 -25
  111. package/docs/superpowers/plans/2026-08-20-tui-completeness.md +873 -0
  112. package/docs/superpowers/plans/2026-08-20-unified-tui-default.md +631 -0
  113. package/docs/superpowers/specs/2026-08-20-config-http-alignment-design.md +47 -0
  114. package/docs/superpowers/specs/2026-08-20-mcp-plugins-alignment-design.md +37 -0
  115. package/docs/superpowers/specs/2026-08-20-sandbox-permissions-design.md +68 -0
  116. package/docs/superpowers/specs/2026-08-20-tui-completeness-design.md +273 -0
  117. package/docs/superpowers/specs/2026-08-20-unified-tui-default-design.md +165 -0
  118. package/package.json +6 -1
  119. package/skills/self-config/SKILL.md +90 -0
  120. package/skills/self-config/reference.md +149 -0
package/README.md CHANGED
@@ -6,15 +6,17 @@ Minimal AI coding agent for the terminal. Works with any OpenAI-compatible API.
6
6
 
7
7
  ```bash
8
8
  npm install -g min-agent
9
+ min-agent update # Upgrade to the latest npm release
9
10
  ```
10
11
 
11
12
  ## Quick Start
12
13
 
13
14
  ```bash
14
15
  min-agent setup # Configure provider
15
- min-agent chat "hello" # Single message
16
- min-agent chat # Interactive session
17
- min-agent code # Project-aware coding mode
16
+ min-agent # Interactive session
17
+ min-agent "hello" # Interactive session, send immediately
18
+ min-agent exec "hello" # One-shot, then exit
19
+ min-agent exec --resume <id> "continue" # Continue a saved one-shot session
18
20
  ```
19
21
 
20
22
  ---
@@ -22,46 +24,63 @@ min-agent code # Project-aware coding mode
22
24
  ## Commands
23
25
 
24
26
  ```bash
25
- min-agent chat [message] # Chat (interactive if no message)
26
- min-agent chat -m <model> "msg" # Override model
27
- min-agent chat --provider <name> "msg" # Use a specific provider
28
- min-agent chat -i img.png "msg" # Attach image
29
- min-agent chat --resume <id> # Resume session
30
- min-agent code # AI coding mode (project scan)
27
+ min-agent # Interactive session
28
+ min-agent "msg" # Interactive session, send immediately
29
+ min-agent exec "msg" # One-shot, then exit
30
+ min-agent exec --resume <id> "msg" # Continue a saved one-shot session
31
+ min-agent -m <model> "msg" # Override model
32
+ min-agent --provider <name> "msg" # Use a specific provider
33
+ min-agent -i img.png "msg" # Attach image
34
+ min-agent --resume <id> # Resume session
35
+ min-agent chat | code # Same as interactive session (compat)
31
36
  min-agent setup # Configure API provider
32
37
  min-agent models # List available models
33
38
  min-agent history # List saved sessions
34
39
  min-agent history delete <id> # Delete a session
35
40
  min-agent history rename <id> <t> # Rename a session
36
41
  min-agent history export <id> [-o file] # Export a session as JSON
37
- min-agent update # Check for updates and upgrade
42
+ min-agent update # Upgrade to the latest npm release
38
43
  min-agent rules # Show loaded rules
39
44
  min-agent rules edit # Edit global rules
40
- min-agent memory # List memories
41
- min-agent memory add "text" # Save memory
45
+ min-agent memory # List project + global memories
46
+ min-agent memory add "text" # Save memory (project if .min-agent exists)
47
+ min-agent memory add "text" --project
48
+ min-agent memory add "text" --global
42
49
  min-agent mcp -h # MCP server management
43
50
  min-agent skills -h # Skills management
51
+ min-agent sandbox # Show isolation
52
+ min-agent sandbox off # Write isolation to config and exit
53
+ min-agent --sandbox workspace "msg" # This session only; does not write config
54
+ min-agent sandbox network deny --project
55
+ min-agent permission # Show confirmation mode
56
+ min-agent --permission ask # Write confirmation mode to config and exit
57
+ min-agent --permission accept-edits --project
58
+ min-agent --permission allow-all "msg" # This session only
44
59
  min-agent serve # Start HTTP API server
45
60
  ```
46
61
 
47
62
  ## Interactive Commands
48
63
 
49
- Type `/` in the interactive session to pop up a command menu (↑↓ navigate, Enter select, Esc close). All commands also work by typing them directly:
64
+ Type `/` in the interactive session to pop up a command menu (type to filter, Tab/Enter select, Esc close). **↑↓** in the input box recall previously sent messages, skipping slash commands. All commands also work by typing them directly:
50
65
 
51
66
  | Command | Description |
52
67
  |---------|-------------|
53
- | `/clear` | Clear history |
68
+ | `/new` | Start a new session (keeps the current one) |
54
69
  | `/compact` | Force compaction |
55
70
  | `/model [name]` | Interactive model picker (↑↓ navigate, Enter confirm) |
56
71
  | `/provider [name]` | List/switch provider |
57
72
  | `/plan` | Toggle read-only plan mode |
58
- | `/memory [text]` | List/save memory |
59
- | `/tokens` | Context usage & cost |
60
- | `/budget [n]` | Show/set cost budget (USD) |
73
+ | `/memory [text]` | List/save memory (`--project` writes to this repo) |
74
+ | `/tokens` | Context occupancy, session totals & cost |
75
+ | `/budget [n]` | Show/set cost budget (USD; `--project` writes to this repo) |
76
+ | `/permission` | Show/set confirmation (`ask` / `accept-edits` / `allow-all`; `--project` writes to this repo) |
77
+ | `/sandbox` | Show/set isolation (`off` / `workspace` / `strict`; `--project` writes to this repo) |
61
78
  | `/undo` | Undo last turn |
62
79
  | `/redo` | Resend last message |
63
80
  | `/diff` | Show working tree diff |
64
- | `/sessions` | List saved sessions |
81
+ | `/sessions [id]` | List or switch saved sessions |
82
+ | `/resume [id]` | Same as `/sessions` |
83
+ | `/reload` | Reload rules |
65
84
  | `/rename <title>` | Rename current session |
66
85
  | `/attach <path>` | Attach a local image |
67
86
  | `/paste [text]` | Clipboard image |
@@ -72,9 +91,11 @@ Type `/` in the interactive session to pop up a command menu (↑↓ navigate, E
72
91
  | `/help` | All commands |
73
92
  | `/exit` | Exit |
74
93
 
75
- **Ctrl+C** interrupts current generation.
94
+ **Ctrl+C** clears the input box and saves it to history (↑ / ↓ to recall). Press **Ctrl+C twice** on an empty input to exit; the current session is saved. While generating, it interrupts the current run. **Ctrl+B** enters message selection mode (arrow keys expand the selection, Enter copies, Esc exits). **↑ / ↓** in the input box recall previously typed or sent messages. **Home / End** move to the start or end of the line.
76
95
 
77
- **鼠标拖拽** 在消息区拖拽选择文本,松开自动复制到剪贴板(状态栏会短暂提示"已复制")。
96
+ 授权确认时 **[y] / [N]** 始终留在窗口底部;详情过长时用 **↑↓** 或 **PageUp / PageDown** 滚动,不必翻到消息区底部。提问输入行同样固定可见。
97
+
98
+ **鼠标** 在消息区拖拽选择文本,松开自动复制;双击选词、三击选中该条可见内容。复制时不含 `>` 与工具前缀。状态栏会短暂提示"已复制"。
78
99
 
79
100
  ---
80
101
 
@@ -92,7 +113,7 @@ All config in `~/.min-agent/`:
92
113
  "baseURL": "https://api.openai.com/v1",
93
114
  "apiKey": "sk-...",
94
115
  "defaultModel": "gpt-5.5",
95
- "contextWindow": 128000
116
+ "contextWindow": 1000000
96
117
  }
97
118
  ],
98
119
  "activeProvider": "default",
@@ -106,25 +127,80 @@ All config in `~/.min-agent/`:
106
127
  }
107
128
  ```
108
129
 
109
- Project-level config lives in `.min-agent/config.json` and currently holds skill state only:
130
+ Project-level config lives in `.min-agent/config.json`. It can override skill state and selected global settings; API keys stay in `~/.min-agent/config.json` only:
110
131
 
111
132
  ```json
112
133
  // .min-agent/config.json
113
134
  {
114
135
  "disabledSkills": ["noisy-skill"],
115
- "enabledSkills": ["skill-disabled-globally"]
136
+ "enabledSkills": ["skill-disabled-globally"],
137
+ "activeProvider": "default",
138
+ "defaultModel": "gpt-5.5",
139
+ "sampling": { "temperature": 0.4 },
140
+ "budget": { "maxCostUSD": 2 },
141
+ "permission": "ask",
142
+ "sandbox": { "mode": "workspace", "network": "allow" },
143
+ "compaction": { "autoContinue": false }
144
+ }
145
+ ```
146
+
147
+ Project values overlay the global file when present (`sampling` / `budget` / `sandbox` / `compaction` / `agent` merge field-by-field). `/budget 5 --project` writes the project budget. `/sandbox workspace --project` writes project isolation. `/permission accept-edits --project` writes project confirmation mode.
148
+
149
+ Isolation is **off by default**. `--permission` / `--yes` only skip confirmations; they do not change isolation.
150
+
151
+ `--permission ask|accept-edits|allow-all` without a message writes config and exits (same as `min-agent permission …`). With a message, `--resume`, `--model`, or `--provider`, it only overrides that session. `--yes` / `-y` is this session only (same as `--permission allow-all`) and does not write config.
152
+
153
+ ```bash
154
+ min-agent permission # show current confirmation mode
155
+ min-agent --permission ask # write global config, then exit
156
+ min-agent --permission accept-edits --project
157
+ min-agent --permission allow-all "msg" # this session only; does not write config
158
+ ```
159
+
160
+ `ask` (default) prompts before dangerous operations. `accept-edits` auto-approves file writes and still prompts for dangerous commands. `allow-all` auto-approves everything.
161
+
162
+ Without a message, `--sandbox` / `--network` write config and exit (same as `min-agent sandbox …`). With a message, `--resume`, `--model`, or `--provider`, they only override that session:
163
+
164
+ ```bash
165
+ min-agent sandbox # show current isolation
166
+ min-agent --sandbox off # write global config, then exit
167
+ min-agent --sandbox workspace --project
168
+ min-agent --sandbox workspace "msg" # this session only; does not write config
169
+ min-agent sandbox network deny
170
+ ```
171
+
172
+ ```json
173
+ "sandbox": {
174
+ "mode": "workspace",
175
+ "network": "allow",
176
+ "extraWriteRoots": ["/path/allowed-to-write"],
177
+ "extraReadRoots": []
116
178
  }
117
179
  ```
118
180
 
181
+ `mode`: `off` (default) | `workspace` (write only in the working directory, plus temp/cache) | `strict` (read and write only there). `extraWriteRoots` / `extraReadRoots` add extra directories when isolation is on. Env: `MIN_AGENT_SANDBOX`, `MIN_AGENT_SANDBOX_NETWORK`.
182
+
183
+ Project memories live in `.min-agent/memory.json`; global memories in `~/.min-agent/memory.json`. The agent reads project first, then global. Saving without `--project` / `--global` uses the project file when `.min-agent/` exists.
184
+
119
185
  `pricing` 覆盖模型价格(USD / 1M tokens),用于成本估算;未配置时自动从 models.dev 获取。
120
186
 
121
187
  Multiple providers are supported: add entries to `providers` and set `activeProvider` (or use `min-agent setup`). Old single-provider configs are migrated automatically on first run.
122
188
 
189
+ `contextWindow` 填写该模型的上下文长度(token)。自定义接口请按实际容量填写,例如 100 万填 `1000000`。未填写时会向接口查询;查不到时按 512k 处理。旧的工具输出会自动省略,避免占满上下文。
190
+
123
191
  `sampling` sets defaults for temperature/maxTokens/topP (overridable per request). `budget.maxCostUSD` aborts the current run as soon as cumulative cost exceeds the limit (checked after each model step).
124
192
 
193
+ A run continues in one model pass until the model finishes, the context fills (~75% of the window), the reply comes back empty, or a tool-only turn has no final answer. Context overflow and empty turns auto-continue up to `agent.maxContinues` times (default 40). Set `agent.autoContinue` to `false` to stop and wait for the next message (web research that has not yet produced the requested file or answer still continues, and further search/fetch calls return a notice to write from what is already known). If `agent.autoContinue` is omitted, `compaction.autoContinue` is used (default true). Optional `agent.maxSteps` is a hard tool-step ceiling for one pass (unset means no ceiling). When the provider answers with an empty stream (HTTP 200 and no content at all — usually an upstream timeout), the same request is re-sent up to `agent.maxEmptyAttempts` times (default 4; first retry immediate, then exponential backoff from `agent.emptyRetryDelayMs`, default 1000 ms) regardless of `autoContinue`, and the run then reports that the provider returned nothing instead of a vague "incomplete". Task lists and the original request are stored with the session and survive compaction. Repeated identical tool calls are stopped. Long stretches of web search/fetch without producing the requested output are redirected to finish the work; further search/fetch calls then return that same notice instead of new results.
194
+
195
+ A turn also has a time / step budget (`agent.turnTimeLimitMs`, default 20 min; `agent.softStepLimit`, default 120 tool steps). When it runs out the model is asked once to wrap up and summarise, then the turn stops — a finished answer is never overridden by the budget. Model requests are guarded by a first-byte timeout (`agent.requestTimeoutMs`, default 180 s) and a stream idle timeout (`agent.streamIdleTimeoutMs`, default 90 s); a stalled request is aborted and retried like an empty reply. Old tool payloads are only trimmed once the context is filling up (60% of the window), biggest first, and each stub keeps the path of the full output on disk so the model can read it again. Sessions are written incrementally during a run, so a crash keeps the work done so far. `bash` commands are killed after `tools.bashTimeoutMs` (default 10 min) unless the call sets its own timeout. Sub-agents (`task`, `explore`) share the parent's research and cost budget; their step ceilings are `agent.subAgentMaxSteps` / `agent.exploreMaxSteps`.
196
+
197
+ Research is judged by what it returns: rounds that bring new URLs or domains are free (up to `agent.researchTotalCap`, default 24 calls per turn), while `agent.researchSteerAfter` (default 3) rounds without a new source steer the model to write, and `agent.researchStopAfter` (default 5) removes `search_web` / `web_fetch` for the rest of the turn.
198
+
125
199
  Provider types: `openai-compatible` | `openai` | `ollama`
126
200
 
127
- Logs: `~/.min-agent/logs/min-agent.YYYY-MM-DD.log` (rotated daily, kept 7 days)
201
+ Logs: `~/.min-agent/logs/min-agent.YYYY-MM-DD.log` (rotated daily, kept 7 days). Lines inside a run carry `[run=<id> pass=<n>]`. Set `MIN_AGENT_TRACE=1` to also log a summary of every model request and response (model, message/tool counts, status, time to first byte).
202
+
203
+ Input history: `~/.min-agent/input-history.json` (up to 1000 entries)
128
204
 
129
205
  ---
130
206
 
@@ -147,6 +223,8 @@ min-agent mcp check # Test connectivity
147
223
 
148
224
  配置合并规则:`~/.min-agent/mcp.json`(全局)与 `.min-agent/mcp.json`(项目)按名称合并,项目条目覆盖同名全局条目;`mcp list` 会标注 `[project]`。
149
225
 
226
+ Connected servers expose resources and prompts to the agent via `mcp_list_resources` / `mcp_read_resource` / `mcp_list_prompts` / `mcp_get_prompt`. `/mcp` shows counts when a server advertises them.
227
+
150
228
  远程服务器如需 OAuth 登录(部分云端 MCP),在 mcp.json 里加 `"oauth": {}`(或用 `"clientId"`/`"clientSecret"`/`"scope"` 显式指定),连接时自动打开浏览器完成授权,令牌缓存在 `~/.min-agent/mcp-oauth/`。`"oauth": false` 关闭。
151
229
 
152
230
  mcp.json 完整字段(`min-agent mcp add` 只生成子集,其余手写):
@@ -216,8 +294,9 @@ metadata:
216
294
 
217
295
  - `description` may use a YAML block scalar (`|` / `>`) for multi-line text.
218
296
  - Discovery paths, in override order: `~/.agents/skills/` → `.min-agent/skills/` → `.agents/skills/` → `.opencode/skills/` → `.claude/skills/`. Symlinked skill directories are followed, so one shared skill library can be linked into several of these.
219
- - A same-named skill in a later path overrides the earlier one; within one path the top-level `SKILL.md` wins over a nested copy.
220
- - `MIN_AGENT_SKILLS_DIRS` (path-delimiter separated) replaces the discovery list entirely.
297
+ - A same-named skill in a later user path overrides the earlier one; within one path the top-level `SKILL.md` wins over a nested copy.
298
+ - Built-in skills shipped with min-agent (including `self-config`, which the agent loads automatically when changing its own settings) are always discovered and win on name over user copies.
299
+ - `MIN_AGENT_SKILLS_DIRS` (path-delimiter separated) replaces the user discovery list; built-in skills still load unless `MIN_AGENT_NO_BUILTIN_SKILLS=1`.
221
300
  - Files next to `SKILL.md` (including subdirectories such as `scripts/`) are listed for the agent when the skill loads; `metadata.requires.bins` entries missing from `PATH` are reported.
222
301
 
223
302
  ## Rules
@@ -232,6 +311,8 @@ metadata:
232
311
 
233
312
  Custom tools: `.min-agent/tools/*.ts` or `~/.min-agent/tools/*.ts`
234
313
 
314
+ By default a custom tool asks before it runs. Set `readOnly: true` (or `dangerous: false`) to skip the prompt. Plan mode only keeps `readOnly` custom tools.
315
+
235
316
  ```typescript
236
317
  export const myTool = {
237
318
  description: "...",
@@ -243,6 +324,7 @@ export const myTool = {
243
324
  ```typescript
244
325
  export const dockerPs = {
245
326
  description: "List running docker containers",
327
+ readOnly: true,
246
328
  parameters: { limit: { type: "number", description: "Max containers to show" } },
247
329
  execute: async ({ limit }) => {
248
330
  const { execSync } = await import("child_process")
@@ -270,11 +352,12 @@ Full reference: [docs/API.md](docs/API.md)
270
352
  | Variable | Description |
271
353
  |----------|-------------|
272
354
  | `EXA_API_KEY` | Enable Exa code search |
273
- | `MIN_AGENT_SERPER_API_KEY` | Serper key for `search_web` (default backend; takes precedence over `serperApiKey` in config) |
355
+ | `MIN_AGENT_SERPER_API_KEY` | Optional Serper key override for `search_web` (takes precedence over `serperApiKey` in config; a built-in default is used otherwise) |
274
356
  | `MIN_AGENT_SEARXNG_URL` | Use SearXNG instead of Serper for `search_web` (takes precedence over `webSearchURL` in config) |
275
357
  | `MIN_AGENT_SEARXNG_FALLBACK_ENGINES` | Engines retried when the SearXNG instance's default engines return nothing (default `google,bing`; empty string disables the retry) |
276
358
  | `MIN_AGENT_FIRECRAWL_URL` | Firecrawl instance for `web_fetch` (takes precedence over `webFetchURL` in config) |
277
- | `MIN_AGENT_SKILLS_DIRS` | `:`-separated dirs that replace the default skill discovery list |
359
+ | `MIN_AGENT_SKILLS_DIRS` | `:`-separated dirs that replace the user skill discovery list (built-in skills still load) |
360
+ | `MIN_AGENT_NO_BUILTIN_SKILLS` | `1` to skip skills shipped with min-agent |
278
361
  | `MIN_AGENT_SHOW_THINKING` | `0` to hide thinking |
279
362
  | `MIN_AGENT_SERVE_TOKEN` | API auth token |
280
363
  | `MIN_AGENT_SERVE_CORS` | `1` to enable CORS (without a token, only localhost origins are allowed) |