kimiflare 0.1.2 → 0.2.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.
- package/README.md +57 -10
- package/dist/index.js +1073 -149
- package/dist/index.js.map +1 -1
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -77,16 +77,63 @@ kimiflare --reasoning # (print mode) stream chain-of-thought to
|
|
|
77
77
|
|
|
78
78
|
Interactive slash commands:
|
|
79
79
|
|
|
80
|
-
| Command
|
|
81
|
-
|
|
82
|
-
| `/
|
|
83
|
-
| `/
|
|
84
|
-
| `/
|
|
85
|
-
| `/
|
|
86
|
-
| `/
|
|
87
|
-
| `/
|
|
80
|
+
| Command | Effect |
|
|
81
|
+
|-----------------------------|---------------------------------------------------------------------------------|
|
|
82
|
+
| `/mode edit\|plan\|auto` | Switch mode. `edit` prompts for permission (default), `plan` is read-only research, `auto` auto-approves every tool call. |
|
|
83
|
+
| `/plan` `/auto` `/edit` | Shortcuts for the three modes. |
|
|
84
|
+
| `/thinking low\|medium\|high` | Reasoning effort. `low` = fastest, shallow; `medium` = balanced (default); `high` = deepest, slowest. Saved to config. |
|
|
85
|
+
| `/theme NAME` | Switch color scheme: `dark` (default), `light` (bright terminals), `high-contrast`. Saved to config. |
|
|
86
|
+
| `/resume` | Pick a past conversation to restore. |
|
|
87
|
+
| `/compact` | Summarize older turns to free context. Suggested automatically at ~80% full. |
|
|
88
|
+
| `/reasoning` | Toggle chain-of-thought display. |
|
|
89
|
+
| `/clear` | Reset the current conversation. |
|
|
90
|
+
| `/cost` `/model` `/update` | Info commands. |
|
|
91
|
+
| `/logout` | Clear saved credentials. |
|
|
92
|
+
| `/help` `/exit` | List commands / quit. |
|
|
88
93
|
|
|
89
|
-
Keys: `Ctrl-R` toggles reasoning
|
|
94
|
+
Keys: `Shift+Tab` cycles mode · `Ctrl-R` toggles reasoning · `Ctrl-O` toggles verbose tool output · `Ctrl-C` interrupts an in-flight turn (press again to exit) · `↑`/`↓` walks prompt history.
|
|
95
|
+
|
|
96
|
+
Editing keys (macOS):
|
|
97
|
+
|
|
98
|
+
- `⌥←` / `⌥→` — jump word left/right (also works with `Esc b` / `Esc f`)
|
|
99
|
+
- `⌘←` / `⌘→` — jump to start / end of line (in iTerm2's default profile; in Terminal.app you may need to map these to send `Ctrl-A` / `Ctrl-E`)
|
|
100
|
+
- `⌥⌫` — delete word backward
|
|
101
|
+
- `⌘⌫` — delete to start of line (iTerm2 sends this as `Ctrl-U`; map in Terminal.app if needed)
|
|
102
|
+
- `⌥⌦` — delete word forward
|
|
103
|
+
- `Ctrl-A` / `Ctrl-E` — start / end of line (always works)
|
|
104
|
+
- `Ctrl-W` / `Ctrl-U` / `Ctrl-K` — delete word backward / to start of line / to end of line
|
|
105
|
+
|
|
106
|
+
### Modes
|
|
107
|
+
|
|
108
|
+
- **edit** — default. The agent calls tools freely for read-only work; mutating tools (`write`, `edit`, `bash`) pause for your approval.
|
|
109
|
+
- **plan** — read-only. Mutating tools are hard-blocked. Ask "plan a refactor" and the agent will investigate and produce a plan without touching the filesystem. Exit plan mode to execute.
|
|
110
|
+
- **auto** — autonomous. Every tool call is auto-approved. Use for trusted, well-scoped tasks.
|
|
111
|
+
|
|
112
|
+
### Thinking level (quality vs speed)
|
|
113
|
+
|
|
114
|
+
Kimi-K2.6 always reasons, but you can cap the effort:
|
|
115
|
+
|
|
116
|
+
- **low** — fastest. Best for chat, small edits, running commands.
|
|
117
|
+
- **medium** — balanced (default). Solid reasoning on real edits without the latency of deep thinking on trivial prompts.
|
|
118
|
+
- **high** — deepest. Best for multi-file refactors, subtle bugs, architectural decisions.
|
|
119
|
+
|
|
120
|
+
Set with `/thinking medium` (persists), or per-launch via `KIMI_REASONING_EFFORT=high`.
|
|
121
|
+
|
|
122
|
+
### Type-ahead queue
|
|
123
|
+
|
|
124
|
+
You can type the next prompt while the model is still executing. Submitted prompts show up as `⏳ …` and fire in order as each turn completes. `Ctrl-C` aborts the current turn and clears the queue.
|
|
125
|
+
|
|
126
|
+
### Session persistence
|
|
127
|
+
|
|
128
|
+
Sessions are saved to `~/.local/share/kimiflare/sessions/` after each turn. `/resume` lists the most recent (with first prompt + message count) so you can pick one up later.
|
|
129
|
+
|
|
130
|
+
### Task panel
|
|
131
|
+
|
|
132
|
+
For multi-step requests, the agent can publish a live task list via the `tasks_set` tool. The panel shows progress inline with status icons (`■` active, `☐` pending, `✓` done), elapsed time, and tokens consumed for the current task batch. Press `Ctrl-O` while a turn is running to switch tool output between compact (first line) and verbose (full output) modes.
|
|
133
|
+
|
|
134
|
+
### Paste collapse
|
|
135
|
+
|
|
136
|
+
Paste a large block (≥ 200 chars or ≥ 3 newlines in one paste) into the prompt and the input collapses it to `[pasted N lines #id]`. The full content still goes to the model on submit — only the on-screen display and chat history are collapsed, so scrollback doesn't get buried by a wall of code.
|
|
90
137
|
|
|
91
138
|
## Why
|
|
92
139
|
|
|
@@ -142,7 +189,7 @@ npm link # or: ln -s "$PWD/bin/kimiflare.mjs" ~/.local/bin/kimiflare
|
|
|
142
189
|
|
|
143
190
|
## Status
|
|
144
191
|
|
|
145
|
-
Early. Transport + tools + agent loop + print mode are verified end-to-end
|
|
192
|
+
Early but functional. Transport + tools + agent loop + print mode are verified end-to-end. Interactive TUI ships modes, themes, thinking levels, session resume, compaction, and type-ahead queue.
|
|
146
193
|
|
|
147
194
|
## License
|
|
148
195
|
|