nanocode-cli 0.3.16__tar.gz → 0.3.26__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nanocode-cli
3
- Version: 0.3.16
3
+ Version: 0.3.26
4
4
  Summary: A lightweight terminal-based AI coding assistant
5
5
  Author-email: hit9 <hit9@icloud.com>
6
6
  License-Expression: BSD-3-Clause
@@ -34,6 +34,8 @@ A lightweight terminal-based AI coding assistant.
34
34
 
35
35
  nanocode is used to help building itself, including features such as `@file` path completion.
36
36
 
37
+ Pre-1.0 note: nanocode is still evolving quickly. Functionality, commands, configuration, and behavior may change incompatibly before a 1.0 release.
38
+
37
39
  ## Screenshots
38
40
 
39
41
  | | |
@@ -89,7 +91,8 @@ Ask a source-aware question about nanocode itself:
89
91
  CLI arguments:
90
92
 
91
93
  - `--yolo`: Skip tool execution confirmations.
92
- - `--debug`: Write request prompts to `.nanocode/debug`.
94
+ - `--plan`: Plan changes without editing files or running commands.
95
+ - `--debug`: Write request prompts to the current session directory under `~/.nanocode/sessions/`.
93
96
  - `--config <path>`: Path to config file (default: `~/.nanocode/config.toml`).
94
97
  - `--init-config`: Create a default config file.
95
98
  - `-v`, `--version`: Show program version.
@@ -105,25 +108,31 @@ USE AT YOUR OWN RISK.
105
108
  ## Tools
106
109
 
107
110
  - File: `Read`, `LineCount`, `ListDir`, `Search`.
108
- - Edit: `Edit`, `ReplaceRange`, `ApplyPatch`.
111
+ - Edit: `Edit`, `ReplaceRange`.
109
112
  - Shell: `Bash`, `Git`.
110
113
  - Memory: `Recall` reads stored tool results by key.
111
114
 
112
115
  ## Commands
113
116
 
114
- - Info: `/help [question]`, `/status`, `/rules`, `/knowledge [update]`, `/compact`.
115
- - Config: `/config`, `/set <key> <value>`, `/model [model_name]`, `/provider [name]`, `/yolo`.
116
- - Maintenance: `/clean-logs`.
117
+ - Info: `/help [question]`, `/status`, `/rules`, `/knowledge`, `/compact`.
118
+ - Config: `/config`, `/set <key> <value>`, `/model [model_name]`, `/reason`, `/provider [name]`, `/plan [on|off|question]`, `/yolo`.
119
+ - Maintenance: `/clean`.
117
120
  - Exit: `/exit`, `/quit`.
118
121
 
122
+ `/model` groups configured `available_models` first, then any extra models automatically discovered from the provider. In selectors, use `j`/`k` or arrow keys to move, `/keyword` to filter choices, Enter to select, and Esc to step back or cancel. `/model <model_name>` sets a model directly. Changing model also opens a reasoning effort selector: choose `off` to disable reasoning, or choose an effort to enable reasoning and set it. Use `/reason` to change reasoning without changing model.
123
+
119
124
  ## Configuration
120
125
 
121
126
  Run `nanocode --init-config` to create `~/.nanocode/config.toml`.
122
127
 
123
- - Provider config: `[provider] active = "<name>"` plus `[provider.<name>]` url, key, model, and model options.
124
- - Runtime config: `[paths]` and `[runtime]`.
128
+ - Provider config: `[provider] active = "<name>"` plus `[provider.<name>]` url, key, model, `available_models`, and model options. `reasoning_payload` controls whether effort is sent as `reasoning`, `reasoning_effort`, or not sent.
129
+ - Path config: `[paths] data_dir = "~/.nanocode"`.
130
+ - Runtime config: `[runtime]`.
131
+ - Session data: debug prompts and tool-result logs are stored under `~/.nanocode/sessions/<session_id>/`.
132
+ - Tool-result logs from inactive sessions are auto-cleaned after `runtime.auto_clean_recent` (default `3d`; use `off` to disable). `/clean` removes inactive session logs immediately.
133
+ - Project data: user rules are stored under `~/.nanocode/projects/<project_key>/`.
125
134
 
126
135
  ## Status
127
136
 
128
- - Status bar: active model, reasoning, conversation context, current-turn tool calls, tokens, elapsed time, and active model-call time.
129
- - `/status`: active provider, model state, runtime state, conversation/tool counters, per-model calls/tokens, task, goal, and verification.
137
+ - Status bar: active model, reasoning, active yolo/plan modes, conversation context, current-turn tool calls, tokens, elapsed time, and active model-call time.
138
+ - `/status`: active provider, model state, session id, runtime state, conversation/tool counters, per-model calls/tokens, task, goal, and verification.
@@ -4,6 +4,8 @@ A lightweight terminal-based AI coding assistant.
4
4
 
5
5
  nanocode is used to help building itself, including features such as `@file` path completion.
6
6
 
7
+ Pre-1.0 note: nanocode is still evolving quickly. Functionality, commands, configuration, and behavior may change incompatibly before a 1.0 release.
8
+
7
9
  ## Screenshots
8
10
 
9
11
  | | |
@@ -59,7 +61,8 @@ Ask a source-aware question about nanocode itself:
59
61
  CLI arguments:
60
62
 
61
63
  - `--yolo`: Skip tool execution confirmations.
62
- - `--debug`: Write request prompts to `.nanocode/debug`.
64
+ - `--plan`: Plan changes without editing files or running commands.
65
+ - `--debug`: Write request prompts to the current session directory under `~/.nanocode/sessions/`.
63
66
  - `--config <path>`: Path to config file (default: `~/.nanocode/config.toml`).
64
67
  - `--init-config`: Create a default config file.
65
68
  - `-v`, `--version`: Show program version.
@@ -75,25 +78,31 @@ USE AT YOUR OWN RISK.
75
78
  ## Tools
76
79
 
77
80
  - File: `Read`, `LineCount`, `ListDir`, `Search`.
78
- - Edit: `Edit`, `ReplaceRange`, `ApplyPatch`.
81
+ - Edit: `Edit`, `ReplaceRange`.
79
82
  - Shell: `Bash`, `Git`.
80
83
  - Memory: `Recall` reads stored tool results by key.
81
84
 
82
85
  ## Commands
83
86
 
84
- - Info: `/help [question]`, `/status`, `/rules`, `/knowledge [update]`, `/compact`.
85
- - Config: `/config`, `/set <key> <value>`, `/model [model_name]`, `/provider [name]`, `/yolo`.
86
- - Maintenance: `/clean-logs`.
87
+ - Info: `/help [question]`, `/status`, `/rules`, `/knowledge`, `/compact`.
88
+ - Config: `/config`, `/set <key> <value>`, `/model [model_name]`, `/reason`, `/provider [name]`, `/plan [on|off|question]`, `/yolo`.
89
+ - Maintenance: `/clean`.
87
90
  - Exit: `/exit`, `/quit`.
88
91
 
92
+ `/model` groups configured `available_models` first, then any extra models automatically discovered from the provider. In selectors, use `j`/`k` or arrow keys to move, `/keyword` to filter choices, Enter to select, and Esc to step back or cancel. `/model <model_name>` sets a model directly. Changing model also opens a reasoning effort selector: choose `off` to disable reasoning, or choose an effort to enable reasoning and set it. Use `/reason` to change reasoning without changing model.
93
+
89
94
  ## Configuration
90
95
 
91
96
  Run `nanocode --init-config` to create `~/.nanocode/config.toml`.
92
97
 
93
- - Provider config: `[provider] active = "<name>"` plus `[provider.<name>]` url, key, model, and model options.
94
- - Runtime config: `[paths]` and `[runtime]`.
98
+ - Provider config: `[provider] active = "<name>"` plus `[provider.<name>]` url, key, model, `available_models`, and model options. `reasoning_payload` controls whether effort is sent as `reasoning`, `reasoning_effort`, or not sent.
99
+ - Path config: `[paths] data_dir = "~/.nanocode"`.
100
+ - Runtime config: `[runtime]`.
101
+ - Session data: debug prompts and tool-result logs are stored under `~/.nanocode/sessions/<session_id>/`.
102
+ - Tool-result logs from inactive sessions are auto-cleaned after `runtime.auto_clean_recent` (default `3d`; use `off` to disable). `/clean` removes inactive session logs immediately.
103
+ - Project data: user rules are stored under `~/.nanocode/projects/<project_key>/`.
95
104
 
96
105
  ## Status
97
106
 
98
- - Status bar: active model, reasoning, conversation context, current-turn tool calls, tokens, elapsed time, and active model-call time.
99
- - `/status`: active provider, model state, runtime state, conversation/tool counters, per-model calls/tokens, task, goal, and verification.
107
+ - Status bar: active model, reasoning, active yolo/plan modes, conversation context, current-turn tool calls, tokens, elapsed time, and active model-call time.
108
+ - `/status`: active provider, model state, session id, runtime state, conversation/tool counters, per-model calls/tokens, task, goal, and verification.