mini-code-cli 0.1.1.4__tar.gz → 0.2.0.0__tar.gz

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 (49) hide show
  1. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/PKG-INFO +60 -10
  2. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/README.md +59 -9
  3. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/agent_loop.py +443 -77
  4. mini_code_cli-0.2.0.0/mini_code_cli/background.py +494 -0
  5. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/persistence.py +14 -7
  6. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/runner.py +10 -2
  7. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/sandbox.py +1 -0
  8. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/subagents/__init__.py +4 -3
  9. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/subagents/base.py +3 -2
  10. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/tools.py +215 -23
  11. mini_code_cli-0.2.0.0/mini_code_cli/tui.py +1046 -0
  12. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/ui.py +114 -59
  13. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/utils.py +25 -10
  14. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli.egg-info/PKG-INFO +60 -10
  15. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli.egg-info/SOURCES.txt +4 -0
  16. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/pyproject.toml +8 -3
  17. mini_code_cli-0.2.0.0/tests/test_background.py +221 -0
  18. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_interactive.py +67 -5
  19. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_runner.py +13 -0
  20. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_subagents.py +4 -3
  21. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_tools.py +74 -0
  22. mini_code_cli-0.2.0.0/tests/test_tui.py +1148 -0
  23. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_utils.py +19 -1
  24. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/LICENSE +0 -0
  25. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/__init__.py +0 -0
  26. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/__main__.py +0 -0
  27. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/agent_files.py +0 -0
  28. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/compaction.py +0 -0
  29. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/config.py +0 -0
  30. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/permissions.py +0 -0
  31. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/plan.py +0 -0
  32. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/planning.py +0 -0
  33. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/prompts.py +0 -0
  34. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/shell_safety_utils.py +0 -0
  35. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/skills.py +0 -0
  36. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/subagents/builtin.py +0 -0
  37. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli/tokens.py +0 -0
  38. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli.egg-info/dependency_links.txt +0 -0
  39. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli.egg-info/entry_points.txt +0 -0
  40. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli.egg-info/requires.txt +0 -0
  41. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/mini_code_cli.egg-info/top_level.txt +0 -0
  42. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/setup.cfg +0 -0
  43. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_advanced_features.py +0 -0
  44. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_cli_features.py +0 -0
  45. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_config.py +0 -0
  46. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_e2e_agent_loop.py +0 -0
  47. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_permissions.py +0 -0
  48. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_release_script.py +0 -0
  49. {mini_code_cli-0.1.1.4 → mini_code_cli-0.2.0.0}/tests/test_tokens.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mini-code-cli
3
- Version: 0.1.1.4
3
+ Version: 0.2.0.0
4
4
  Summary: Mini Coding Agent. Allows you to easily experiment with a small coding agent.
5
5
  Author-email: Nikolai Rozanov <nikolai.rozanov@gmail.com>
6
6
  License-Expression: AGPL-3.0-only
@@ -67,7 +67,7 @@ mini-code --url "https://api.deepseek.com" --model "deepseek-v4-flash"
67
67
  **3 — The shortcuts** (plan mode, sub-agents, shell, auto-mode, no permission prompts):
68
68
 
69
69
  ```bash
70
- mini-code --all # = --plan --enable-subagents --enable-shell --skills --auto-mode --sudo
70
+ mini-code --all # = --plan --enable-subagents --enable-shell --skills --auto-mode --sudo --background
71
71
  mini-code --all-last # ...and continue your last session
72
72
  ```
73
73
 
@@ -100,6 +100,8 @@ given a reference implementation.
100
100
  | `--allowed-dir DIR` | `./` | sandbox for **file** tools (does not restrict the shell) |
101
101
  | `-s`, `--enable-shell` | off | allow shell execution (classifier always applies) |
102
102
  | `-g`, `--enable-subagents` | off | expose sub-agents as tools |
103
+ | `--background` | off | enable background shell/sub-agent tasks and the `background` tool; needs `--enable-shell` or `--enable-subagents` |
104
+ | `--tui [auto\|on\|off]` | `auto` | fixed full-screen dashboard. `auto` enables it only on a known interactive TTY; `on` forces it; `off` uses the scrolling console |
103
105
  | `--skills` | off | enable the `.mini` skills directory (`skill.md`s, `SKILLS.md`, runnable scripts). **`run_skill` executes those Python scripts — arbitrary code execution, even without `--enable-shell`**; only enable it for a directory you trust |
104
106
  | `-p`, `--plan` | off | plan mode (`CURRENT_GOAL.md` / `CURRENT_PLAN.md`, printed plan, `/plan`, `/skip-plan`) |
105
107
  | `--plan-strategy NAME` | `plan-verify-step` | `plan-verify-step`, `plan-verify` or `open-plan` (implies `--plan`) |
@@ -111,7 +113,7 @@ given a reference implementation.
111
113
  | `--cache-dir DIR` | `~/.cache/mini/sessions/` | where session histories are stored |
112
114
  | `--restore-session PATH` | — | continue a specific previous session |
113
115
  | `-l`, `--load-last-session` | off | continue the session recorded in the `.mini` pointer |
114
- | `--all` | off | `--plan --enable-subagents --enable-shell --skills --auto-mode --sudo` |
116
+ | `--all` | off | `--plan --enable-subagents --enable-shell --skills --auto-mode --sudo --background` |
115
117
  | `--all-last` | off | `--all` + `--load-last-session` |
116
118
  | `--verbose` | off | print full detail (default: user/assistant turns, token usage, tool calls only) |
117
119
  | `-h`, `--help` | — | show the built-in help |
@@ -123,14 +125,15 @@ parameter a model does not need is defaulted, so omitting it keeps the previous
123
125
 
124
126
  | Tool | What it does |
125
127
  | --- | --- |
126
- | `read_file` | read a file; `offset` (1-based line) and `limit` page through large files |
128
+ | `read_file` | read a file; `offset` (1-based line) and `limit` page through large files. Output is capped at 100k characters, so page or narrow instead of relying on a whole-file read |
127
129
  | `write_file` | write/overwrite; `append` adds to the end, `create_dirs` creates parents |
128
130
  | `edit` | replace an **exact** string (`old_string` → `new_string`); refuses a missing or ambiguous match unless `replace_all` |
129
- | `grep` | regex search a file or directory; `recursive`, `include`, `ignore_case`, `line_numbers`, `max_results` (noise dirs skipped) |
130
- | `glob` | list files matching a glob (one per line, `**` supported), optionally against a `root` |
131
+ | `grep` | regex search a file or directory; `recursive`, `include`, `ignore_case`, `line_numbers`, `max_results` (noise dirs skipped). Output is capped at 100k characters |
132
+ | `glob` | list files matching a glob (one per line, `**` supported), optionally against a `root`; capped at 2000 matches / 100k characters |
131
133
  | `web_search` | best-effort lookup: related queries + a short Wikipedia extract. Never raises |
132
- | `read_website` | fetch raw text/HTML of a URL (bounded by `--tool-timeout`), `max_chars` caps size |
134
+ | `read_website` | fetch raw text/HTML of a **public http/https** URL (other schemes and private/link-local hosts are rejected; `MINI_CODE_ALLOW_PRIVATE_URLS=1` overrides); `max_chars` caps size |
133
135
  | `run_shell_command` | run a shell command (needs `--enable-shell`); `cwd`, `timeout`, and stdout/stderr/exit code are all reported |
136
+ | `background` | start/list/output/wait/cancel background **shell** tasks (needs `--background --enable-shell`) or **sub-agent** tasks (needs `--background --enable-subagents`); output is captured in a per-task log |
134
137
 
135
138
  ## Sub-agents
136
139
 
@@ -185,6 +188,24 @@ to the model automatically when `--enable-subagents` is set. See
185
188
 
186
189
  </details>
187
190
 
191
+ ## Background tasks
192
+
193
+ When `--background` is enabled together with shell execution or sub-agents, the agent also gets a `background` tool:
194
+
195
+ - `background(action="start", command="pytest -q")` starts a long command in its own process group;
196
+ - `background(action="start", kind="subagent", subagent="software_engineer", task="...")` starts
197
+ a nested agent task;
198
+ - `list`, `output`, `wait` and `cancel` inspect or control the tasks.
199
+
200
+ Each task has an id (`bg-1`), a status, a log under the session folder
201
+ (`background/bg-1.log`), an output tail, and a cancellation path. Shell tasks are killed as a
202
+ process group; sub-agent tasks receive a cancellation event between steps. Background tasks are
203
+ session-local and do not survive a restart (the logs do).
204
+
205
+ Use `/background` to see the foreground activity and all tasks, or `/background bg-1` for one
206
+ task's output. Note that the main loop is synchronous, so `/background` can be typed between
207
+ steps; it shows the last/current blocking activity rather than live-during the call.
208
+
188
209
  ## In-session commands
189
210
 
190
211
  | Command | What it does |
@@ -196,6 +217,8 @@ to the model automatically when `--enable-subagents` is set. See
196
217
  | `/clear` | clear the screen (keeps the conversation history) |
197
218
  | `/plan` | show the current goal + plan (plan mode only) |
198
219
  | `/context` | show how the context window is used: tokens and percentages by category (system prompt, user/assistant messages, tool calls/outputs, reasoning, overhead) |
220
+ | `/background [id]` | show foreground activity + background tasks, or one task's output tail |
221
+ | `/expand [n]` | show the full detail of the nth most recent tool call (default: the last one) |
199
222
  | `/skip-plan <prompt>` | send `<prompt>` once without generating or reviewing a plan |
200
223
  | `/help` | show this help |
201
224
  | `/quit`, `/exit` | save the session and exit |
@@ -205,6 +228,28 @@ to the model automatically when `--enable-subagents` is set. See
205
228
  reminds you. Terminals that report `Shift+Enter` as a CSI-u/modifyOtherKeys
206
229
  sequence are recognised; elsewhere `Ctrl-J` inserts the newline.
207
230
 
231
+ With `--tui`, mini-code switches to a fixed alternate-screen dashboard: a
232
+ **Mini-Code** summary box (version/session/model/context) at the top, a core
233
+ conversation view of user/assistant turns in the middle, and an input box with
234
+ a one-line help hint at the bottom. The whole screen is redrawn on changes, so the view never
235
+ scrolls; tool/thinking status is a transient line that disappears when the
236
+ operation finishes. `Shift+↑`/`Shift+↓` scroll the middle pane one line at a
237
+ time and show `(lines scrolled / total)`; `Esc` returns to the bottom or closes
238
+ command output (`/help`, `/history`, ...). Info/warnings sit below a small
239
+ separator at the bottom of the body. The dashboard is coloured when the
240
+ terminal supports it; info/warnings/errors are shown as coloured
241
+ `ℹ`/`⚠`/`✖`/`✔` lines. Each assistant block also carries a dim line with
242
+ that turn's tool calls, background tasks and assistant-message count.
243
+ Questions (resume/permission) use a yellow "Question to User" box just above
244
+ the input. Restored sessions load their history into
245
+ the core view and mark the summary as `[restored]`; generated plans append to
246
+ the core view. Tool details can be expanded with `/expand [n]`.
247
+
248
+ The prompt has a small line editor: `↑`/`↓` recall previous turns, `←`/`→` move
249
+ the cursor, Home/End jump within the line, and `Ctrl-A/E/K/U/L` provide the
250
+ usual editing/clear shortcuts. `--tui` defaults to `auto` (known TTY only); use `--tui=off` for the old
251
+ scrolling console or `--tui=on` to force it. It is not part of `--all`.
252
+
208
253
  > [!NOTE]
209
254
  > `/history` and `/reset` are driven by `summary_history.json`, a flat recorder that maps every
210
255
  > turn to the `history_{n}.json` segment and message index it lives in — so no full history is
@@ -384,19 +429,24 @@ transcript and the segment left untouched.
384
429
  ### Exiting — the good-bye box
385
430
 
386
431
  Quitting (`/quit`, `exit`, or EOF on stdin) saves the session and then prints a short yellow
387
- box: the version, a sign-off, and what the session left behind — session id, folder, the
388
- history segments on disk, how many turns were recorded, and the token / call totals.
432
+ box: the version, a sign-off, and what the session left behind — session id, model, folder,
433
+ the history segments on disk, how many turns were recorded, run duration, token / call totals,
434
+ background tasks cancelled on exit, and a `--load-last-session` resume hint.
389
435
 
390
436
  ```
391
437
  ╔══════════ MiniCodeCLI v0.1.1.2 - goodbye ═════════════════════╗
392
438
  ║ Goodbye, and thanks for using MiniCodeCLI! ║
393
439
  ║ ║
394
440
  ║ session id : 1792666273983619-36ca3c2e ║
441
+ ║ model : ornith-ai/Ornith-1.5-35B-A3B ║
395
442
  ║ saved under : ~/.cache/mini/sessions/1792…-36ca3c2e/ ║
396
443
  ║ history : history_0.json (segment 0), 5 messages ║
397
444
  ║ conversation : 2 recorded turns ║
445
+ ║ duration : 12m 34s ║
398
446
  ║ tokens : 20 in / 10 out (30 total) ║
399
447
  ║ calls : 2 LLM, 0 tool ║
448
+ ║ background : none running ║
449
+ ║ resume : mini-code --load-last-session ║
400
450
  ╚═══════════════════════════════════════════════════════════════╝
401
451
  ```
402
452
 
@@ -429,7 +479,7 @@ If you use `mini-code-cli` in your research or writing, please cite it:
429
479
  author = {Rozanov, Nikolai},
430
480
  title = {mini-code-cli: A minimal, dependency-light coding agent},
431
481
  year = {2026},
432
- version = {0.1.1.4},
482
+ version = {0.2.0.0},
433
483
  howpublished = {\url{https://github.com/ai-nikolai/mini-code-cli}},
434
484
  note = {A no-bloat, dependency-light agent CLI for experimenting.}
435
485
  }
@@ -48,7 +48,7 @@ mini-code --url "https://api.deepseek.com" --model "deepseek-v4-flash"
48
48
  **3 — The shortcuts** (plan mode, sub-agents, shell, auto-mode, no permission prompts):
49
49
 
50
50
  ```bash
51
- mini-code --all # = --plan --enable-subagents --enable-shell --skills --auto-mode --sudo
51
+ mini-code --all # = --plan --enable-subagents --enable-shell --skills --auto-mode --sudo --background
52
52
  mini-code --all-last # ...and continue your last session
53
53
  ```
54
54
 
@@ -81,6 +81,8 @@ given a reference implementation.
81
81
  | `--allowed-dir DIR` | `./` | sandbox for **file** tools (does not restrict the shell) |
82
82
  | `-s`, `--enable-shell` | off | allow shell execution (classifier always applies) |
83
83
  | `-g`, `--enable-subagents` | off | expose sub-agents as tools |
84
+ | `--background` | off | enable background shell/sub-agent tasks and the `background` tool; needs `--enable-shell` or `--enable-subagents` |
85
+ | `--tui [auto\|on\|off]` | `auto` | fixed full-screen dashboard. `auto` enables it only on a known interactive TTY; `on` forces it; `off` uses the scrolling console |
84
86
  | `--skills` | off | enable the `.mini` skills directory (`skill.md`s, `SKILLS.md`, runnable scripts). **`run_skill` executes those Python scripts — arbitrary code execution, even without `--enable-shell`**; only enable it for a directory you trust |
85
87
  | `-p`, `--plan` | off | plan mode (`CURRENT_GOAL.md` / `CURRENT_PLAN.md`, printed plan, `/plan`, `/skip-plan`) |
86
88
  | `--plan-strategy NAME` | `plan-verify-step` | `plan-verify-step`, `plan-verify` or `open-plan` (implies `--plan`) |
@@ -92,7 +94,7 @@ given a reference implementation.
92
94
  | `--cache-dir DIR` | `~/.cache/mini/sessions/` | where session histories are stored |
93
95
  | `--restore-session PATH` | — | continue a specific previous session |
94
96
  | `-l`, `--load-last-session` | off | continue the session recorded in the `.mini` pointer |
95
- | `--all` | off | `--plan --enable-subagents --enable-shell --skills --auto-mode --sudo` |
97
+ | `--all` | off | `--plan --enable-subagents --enable-shell --skills --auto-mode --sudo --background` |
96
98
  | `--all-last` | off | `--all` + `--load-last-session` |
97
99
  | `--verbose` | off | print full detail (default: user/assistant turns, token usage, tool calls only) |
98
100
  | `-h`, `--help` | — | show the built-in help |
@@ -104,14 +106,15 @@ parameter a model does not need is defaulted, so omitting it keeps the previous
104
106
 
105
107
  | Tool | What it does |
106
108
  | --- | --- |
107
- | `read_file` | read a file; `offset` (1-based line) and `limit` page through large files |
109
+ | `read_file` | read a file; `offset` (1-based line) and `limit` page through large files. Output is capped at 100k characters, so page or narrow instead of relying on a whole-file read |
108
110
  | `write_file` | write/overwrite; `append` adds to the end, `create_dirs` creates parents |
109
111
  | `edit` | replace an **exact** string (`old_string` → `new_string`); refuses a missing or ambiguous match unless `replace_all` |
110
- | `grep` | regex search a file or directory; `recursive`, `include`, `ignore_case`, `line_numbers`, `max_results` (noise dirs skipped) |
111
- | `glob` | list files matching a glob (one per line, `**` supported), optionally against a `root` |
112
+ | `grep` | regex search a file or directory; `recursive`, `include`, `ignore_case`, `line_numbers`, `max_results` (noise dirs skipped). Output is capped at 100k characters |
113
+ | `glob` | list files matching a glob (one per line, `**` supported), optionally against a `root`; capped at 2000 matches / 100k characters |
112
114
  | `web_search` | best-effort lookup: related queries + a short Wikipedia extract. Never raises |
113
- | `read_website` | fetch raw text/HTML of a URL (bounded by `--tool-timeout`), `max_chars` caps size |
115
+ | `read_website` | fetch raw text/HTML of a **public http/https** URL (other schemes and private/link-local hosts are rejected; `MINI_CODE_ALLOW_PRIVATE_URLS=1` overrides); `max_chars` caps size |
114
116
  | `run_shell_command` | run a shell command (needs `--enable-shell`); `cwd`, `timeout`, and stdout/stderr/exit code are all reported |
117
+ | `background` | start/list/output/wait/cancel background **shell** tasks (needs `--background --enable-shell`) or **sub-agent** tasks (needs `--background --enable-subagents`); output is captured in a per-task log |
115
118
 
116
119
  ## Sub-agents
117
120
 
@@ -166,6 +169,24 @@ to the model automatically when `--enable-subagents` is set. See
166
169
 
167
170
  </details>
168
171
 
172
+ ## Background tasks
173
+
174
+ When `--background` is enabled together with shell execution or sub-agents, the agent also gets a `background` tool:
175
+
176
+ - `background(action="start", command="pytest -q")` starts a long command in its own process group;
177
+ - `background(action="start", kind="subagent", subagent="software_engineer", task="...")` starts
178
+ a nested agent task;
179
+ - `list`, `output`, `wait` and `cancel` inspect or control the tasks.
180
+
181
+ Each task has an id (`bg-1`), a status, a log under the session folder
182
+ (`background/bg-1.log`), an output tail, and a cancellation path. Shell tasks are killed as a
183
+ process group; sub-agent tasks receive a cancellation event between steps. Background tasks are
184
+ session-local and do not survive a restart (the logs do).
185
+
186
+ Use `/background` to see the foreground activity and all tasks, or `/background bg-1` for one
187
+ task's output. Note that the main loop is synchronous, so `/background` can be typed between
188
+ steps; it shows the last/current blocking activity rather than live-during the call.
189
+
169
190
  ## In-session commands
170
191
 
171
192
  | Command | What it does |
@@ -177,6 +198,8 @@ to the model automatically when `--enable-subagents` is set. See
177
198
  | `/clear` | clear the screen (keeps the conversation history) |
178
199
  | `/plan` | show the current goal + plan (plan mode only) |
179
200
  | `/context` | show how the context window is used: tokens and percentages by category (system prompt, user/assistant messages, tool calls/outputs, reasoning, overhead) |
201
+ | `/background [id]` | show foreground activity + background tasks, or one task's output tail |
202
+ | `/expand [n]` | show the full detail of the nth most recent tool call (default: the last one) |
180
203
  | `/skip-plan <prompt>` | send `<prompt>` once without generating or reviewing a plan |
181
204
  | `/help` | show this help |
182
205
  | `/quit`, `/exit` | save the session and exit |
@@ -186,6 +209,28 @@ to the model automatically when `--enable-subagents` is set. See
186
209
  reminds you. Terminals that report `Shift+Enter` as a CSI-u/modifyOtherKeys
187
210
  sequence are recognised; elsewhere `Ctrl-J` inserts the newline.
188
211
 
212
+ With `--tui`, mini-code switches to a fixed alternate-screen dashboard: a
213
+ **Mini-Code** summary box (version/session/model/context) at the top, a core
214
+ conversation view of user/assistant turns in the middle, and an input box with
215
+ a one-line help hint at the bottom. The whole screen is redrawn on changes, so the view never
216
+ scrolls; tool/thinking status is a transient line that disappears when the
217
+ operation finishes. `Shift+↑`/`Shift+↓` scroll the middle pane one line at a
218
+ time and show `(lines scrolled / total)`; `Esc` returns to the bottom or closes
219
+ command output (`/help`, `/history`, ...). Info/warnings sit below a small
220
+ separator at the bottom of the body. The dashboard is coloured when the
221
+ terminal supports it; info/warnings/errors are shown as coloured
222
+ `ℹ`/`⚠`/`✖`/`✔` lines. Each assistant block also carries a dim line with
223
+ that turn's tool calls, background tasks and assistant-message count.
224
+ Questions (resume/permission) use a yellow "Question to User" box just above
225
+ the input. Restored sessions load their history into
226
+ the core view and mark the summary as `[restored]`; generated plans append to
227
+ the core view. Tool details can be expanded with `/expand [n]`.
228
+
229
+ The prompt has a small line editor: `↑`/`↓` recall previous turns, `←`/`→` move
230
+ the cursor, Home/End jump within the line, and `Ctrl-A/E/K/U/L` provide the
231
+ usual editing/clear shortcuts. `--tui` defaults to `auto` (known TTY only); use `--tui=off` for the old
232
+ scrolling console or `--tui=on` to force it. It is not part of `--all`.
233
+
189
234
  > [!NOTE]
190
235
  > `/history` and `/reset` are driven by `summary_history.json`, a flat recorder that maps every
191
236
  > turn to the `history_{n}.json` segment and message index it lives in — so no full history is
@@ -365,19 +410,24 @@ transcript and the segment left untouched.
365
410
  ### Exiting — the good-bye box
366
411
 
367
412
  Quitting (`/quit`, `exit`, or EOF on stdin) saves the session and then prints a short yellow
368
- box: the version, a sign-off, and what the session left behind — session id, folder, the
369
- history segments on disk, how many turns were recorded, and the token / call totals.
413
+ box: the version, a sign-off, and what the session left behind — session id, model, folder,
414
+ the history segments on disk, how many turns were recorded, run duration, token / call totals,
415
+ background tasks cancelled on exit, and a `--load-last-session` resume hint.
370
416
 
371
417
  ```
372
418
  ╔══════════ MiniCodeCLI v0.1.1.2 - goodbye ═════════════════════╗
373
419
  ║ Goodbye, and thanks for using MiniCodeCLI! ║
374
420
  ║ ║
375
421
  ║ session id : 1792666273983619-36ca3c2e ║
422
+ ║ model : ornith-ai/Ornith-1.5-35B-A3B ║
376
423
  ║ saved under : ~/.cache/mini/sessions/1792…-36ca3c2e/ ║
377
424
  ║ history : history_0.json (segment 0), 5 messages ║
378
425
  ║ conversation : 2 recorded turns ║
426
+ ║ duration : 12m 34s ║
379
427
  ║ tokens : 20 in / 10 out (30 total) ║
380
428
  ║ calls : 2 LLM, 0 tool ║
429
+ ║ background : none running ║
430
+ ║ resume : mini-code --load-last-session ║
381
431
  ╚═══════════════════════════════════════════════════════════════╝
382
432
  ```
383
433
 
@@ -410,7 +460,7 @@ If you use `mini-code-cli` in your research or writing, please cite it:
410
460
  author = {Rozanov, Nikolai},
411
461
  title = {mini-code-cli: A minimal, dependency-light coding agent},
412
462
  year = {2026},
413
- version = {0.1.1.4},
463
+ version = {0.2.0.0},
414
464
  howpublished = {\url{https://github.com/ai-nikolai/mini-code-cli}},
415
465
  note = {A no-bloat, dependency-light agent CLI for experimenting.}
416
466
  }