codemini-cli 0.1.1
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/LICENSE +21 -0
- package/OPERATIONS.md +202 -0
- package/README.md +138 -0
- package/bin/coder.js +7 -0
- package/deployment.md +205 -0
- package/package.json +54 -0
- package/skills/brainstorming-lite/SKILL.md +37 -0
- package/skills/executing-plan-lite/SKILL.md +41 -0
- package/skills/superpowers-lite/SKILL.md +44 -0
- package/souls/anime.md +3 -0
- package/souls/default.md +3 -0
- package/souls/playful.md +3 -0
- package/souls/professional.md +3 -0
- package/src/cli.js +62 -0
- package/src/commands/chat.js +106 -0
- package/src/commands/config.js +61 -0
- package/src/commands/doctor.js +87 -0
- package/src/commands/run.js +64 -0
- package/src/commands/skill.js +264 -0
- package/src/core/agent-loop.js +281 -0
- package/src/core/chat-runtime.js +2075 -0
- package/src/core/checkpoint-store.js +66 -0
- package/src/core/command-loader.js +201 -0
- package/src/core/command-policy.js +71 -0
- package/src/core/config-store.js +196 -0
- package/src/core/context-compact.js +90 -0
- package/src/core/default-system-prompt.js +5 -0
- package/src/core/fs-utils.js +16 -0
- package/src/core/input-history-store.js +48 -0
- package/src/core/input-parser.js +15 -0
- package/src/core/paths.js +109 -0
- package/src/core/provider/openai-compatible.js +228 -0
- package/src/core/session-store.js +178 -0
- package/src/core/shell-profile.js +122 -0
- package/src/core/shell.js +71 -0
- package/src/core/skill-registry.js +55 -0
- package/src/core/soul.js +55 -0
- package/src/core/task-store.js +116 -0
- package/src/core/tools.js +237 -0
- package/src/tui/chat-app.js +2007 -0
- package/src/tui/input-escape.js +21 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 havingautism
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/OPERATIONS.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Operations Guide
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
This document is the day-to-day operator guide for CodeMini CLI.
|
|
6
|
+
|
|
7
|
+
Use it for:
|
|
8
|
+
- common commands
|
|
9
|
+
- interactive chat workflow
|
|
10
|
+
- plan/spec flow
|
|
11
|
+
- session recovery
|
|
12
|
+
- troubleshooting combos
|
|
13
|
+
|
|
14
|
+
Use [deployment.md](/mnt/e/Git%20Projects/qurio-coder/deployment.md) for packaging, installation, and deployment instead.
|
|
15
|
+
|
|
16
|
+
## Core Commands
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
codemini [prompt]
|
|
20
|
+
codemini chat [prompt]
|
|
21
|
+
codemini run <task>
|
|
22
|
+
codemini config set|get|list <key> [value]
|
|
23
|
+
codemini doctor
|
|
24
|
+
codemini skill list|install|enable|disable|inspect|reindex
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## First-Time Setup
|
|
28
|
+
|
|
29
|
+
### Windows / PowerShell
|
|
30
|
+
|
|
31
|
+
```powershell
|
|
32
|
+
codemini config set gateway.base_url https://your-internal-gateway/v1
|
|
33
|
+
codemini config set gateway.api_key your_token
|
|
34
|
+
codemini config set model.name your_model_id
|
|
35
|
+
codemini config set shell.default powershell
|
|
36
|
+
codemini config set ui.language en
|
|
37
|
+
codemini doctor
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### macOS / Linux
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
codemini config set gateway.base_url https://your-internal-gateway/v1
|
|
44
|
+
codemini config set gateway.api_key your_token
|
|
45
|
+
codemini config set model.name your_model_id
|
|
46
|
+
codemini config set shell.default bash
|
|
47
|
+
codemini config set ui.language en
|
|
48
|
+
codemini doctor
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Common Command Combos
|
|
52
|
+
|
|
53
|
+
### Start an interactive session
|
|
54
|
+
|
|
55
|
+
```powershell
|
|
56
|
+
codemini
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Good first prompts:
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
Read the README and summarize what this repository does.
|
|
63
|
+
Search for auth-related code and show me the key entrypoints.
|
|
64
|
+
Locate where shell.default is applied and explain the flow.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Run a one-off task
|
|
68
|
+
|
|
69
|
+
```powershell
|
|
70
|
+
codemini run "Search the repo for configuration loading logic, inspect the relevant files, and summarize how config is merged."
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Inspect current configuration
|
|
74
|
+
|
|
75
|
+
```powershell
|
|
76
|
+
codemini config get shell.default
|
|
77
|
+
codemini config get model.name
|
|
78
|
+
codemini config get ui.language
|
|
79
|
+
codemini config list
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Change runtime mode quickly
|
|
83
|
+
|
|
84
|
+
```powershell
|
|
85
|
+
codemini config set shell.default powershell
|
|
86
|
+
codemini config set ui.language en
|
|
87
|
+
codemini config set soul.preset professional
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
codemini config set shell.default bash
|
|
92
|
+
codemini config set ui.language zh
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Run diagnostics
|
|
96
|
+
|
|
97
|
+
```powershell
|
|
98
|
+
codemini doctor
|
|
99
|
+
codemini config list
|
|
100
|
+
codemini --plain
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Use this when you want to separate:
|
|
104
|
+
- gateway issues
|
|
105
|
+
- config issues
|
|
106
|
+
- TUI-only issues
|
|
107
|
+
|
|
108
|
+
## TUI Slash Commands
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
/help
|
|
112
|
+
/commands
|
|
113
|
+
/config list
|
|
114
|
+
/config get <key>
|
|
115
|
+
/history list
|
|
116
|
+
/history current
|
|
117
|
+
/history resume <session_id>
|
|
118
|
+
/spec <topic>
|
|
119
|
+
/plan <goal>
|
|
120
|
+
/plan auto <goal>
|
|
121
|
+
/plan from-spec <path?>
|
|
122
|
+
/agents list
|
|
123
|
+
/agents run <role> <task>
|
|
124
|
+
/compact
|
|
125
|
+
/retry
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Available sub-agent roles:
|
|
129
|
+
|
|
130
|
+
```text
|
|
131
|
+
planner
|
|
132
|
+
coder
|
|
133
|
+
reviewer
|
|
134
|
+
tester
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Useful Workflows
|
|
138
|
+
|
|
139
|
+
### Repo exploration
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
Search the README for skill-related documentation.
|
|
143
|
+
Continue into the relevant files and explain how skill loading works.
|
|
144
|
+
Find where shell.default is used and summarize the config path.
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Spec and plan flow
|
|
148
|
+
|
|
149
|
+
```text
|
|
150
|
+
/spec Write a Windows PowerShell-first coding CLI usage spec
|
|
151
|
+
/plan from-spec
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Then continue with:
|
|
155
|
+
|
|
156
|
+
```text
|
|
157
|
+
Execute this plan step by step.
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Session recovery
|
|
161
|
+
|
|
162
|
+
```text
|
|
163
|
+
/history list
|
|
164
|
+
/history current
|
|
165
|
+
/history resume <session_id>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Skill management
|
|
169
|
+
|
|
170
|
+
```powershell
|
|
171
|
+
codemini skill list
|
|
172
|
+
codemini skill inspect superpowers-lite
|
|
173
|
+
codemini skill enable brainstorming-lite
|
|
174
|
+
codemini skill disable brainstorming-lite
|
|
175
|
+
codemini skill reindex
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Better Prompt Patterns
|
|
179
|
+
|
|
180
|
+
These usually work better:
|
|
181
|
+
|
|
182
|
+
- `Search for auth-related code, inspect the most relevant files, then summarize the login flow.`
|
|
183
|
+
- `Locate where shell.default takes effect and point me to the key files.`
|
|
184
|
+
- `Update the README so English is first, but keep a Chinese section below.`
|
|
185
|
+
- `Investigate why run_command keeps failing. Check config first, then the execution chain.`
|
|
186
|
+
|
|
187
|
+
These are usually weaker:
|
|
188
|
+
|
|
189
|
+
- `Look at this project.`
|
|
190
|
+
- `Optimize this.`
|
|
191
|
+
|
|
192
|
+
Better prompts usually specify:
|
|
193
|
+
- what to search
|
|
194
|
+
- what to inspect
|
|
195
|
+
- what output format you want back
|
|
196
|
+
|
|
197
|
+
## TUI Keys
|
|
198
|
+
|
|
199
|
+
- `Tab`: autocomplete slash commands
|
|
200
|
+
- `Up/Down`: navigate input history
|
|
201
|
+
- `Ctrl+T`: expand or collapse tool details
|
|
202
|
+
- `Ctrl+C`: exit
|
package/README.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# CodeMini CLI
|
|
2
|
+
|
|
3
|
+
[](#english)
|
|
4
|
+
[](#简体中文)
|
|
5
|
+
|
|
6
|
+
## English
|
|
7
|
+
|
|
8
|
+
CodeMini CLI is a coding assistant CLI optimized for small-model workflows, with a strong focus on Windows and PowerShell.
|
|
9
|
+
|
|
10
|
+
It is designed for teams that want a coding assistant that feels practical, controllable, and fast in real development environments, especially when smaller internal models are part of the workflow.
|
|
11
|
+
|
|
12
|
+
### Why CodeMini CLI
|
|
13
|
+
|
|
14
|
+
- Optimized for small-model workflows rather than assuming frontier-scale reasoning
|
|
15
|
+
- Built with Windows and PowerShell as first-class environments
|
|
16
|
+
- Keeps the default tool surface intentionally small and easier to control
|
|
17
|
+
- Uses shell-aware execution policy instead of exposing unrestricted system access
|
|
18
|
+
- Supports sub-agent workflows without forcing full-history context sharing
|
|
19
|
+
|
|
20
|
+
### Highlights
|
|
21
|
+
|
|
22
|
+
- Minimal default tools: `run_command`, `read_file`, `write_file`
|
|
23
|
+
- Windows-aware shell profile with PowerShell-focused defaults
|
|
24
|
+
- Safe mode enabled by default
|
|
25
|
+
- Built-in lite skills for planning, execution, and collaboration
|
|
26
|
+
- Tone presets through `soul`, without changing plans or code behavior
|
|
27
|
+
- Sub-agents for planning, coding, review, and testing
|
|
28
|
+
|
|
29
|
+
### Quick Start
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
codemini config set gateway.base_url http://your-internal-gateway/v1
|
|
33
|
+
codemini config set gateway.api_key your_token
|
|
34
|
+
codemini config set shell.default powershell
|
|
35
|
+
codemini config set model.name your-30b-model
|
|
36
|
+
codemini doctor
|
|
37
|
+
codemini
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
For macOS or Linux:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
codemini config set shell.default bash
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Command Overview
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
codemini [prompt]
|
|
50
|
+
codemini chat [prompt]
|
|
51
|
+
codemini run <task>
|
|
52
|
+
codemini config set|get|list <key> [value]
|
|
53
|
+
codemini doctor
|
|
54
|
+
codemini skill list|install|enable|disable|inspect|reindex
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Documentation
|
|
58
|
+
|
|
59
|
+
- Operator guide and common command patterns: [OPERATIONS.md](/mnt/e/Git%20Projects/qurio-coder/OPERATIONS.md)
|
|
60
|
+
- Packaging and deployment guide: [deployment.md](/mnt/e/Git%20Projects/qurio-coder/deployment.md)
|
|
61
|
+
|
|
62
|
+
### Data Layout
|
|
63
|
+
|
|
64
|
+
- Project-scoped workspace data: `.coder/`
|
|
65
|
+
- Global user data on Windows: `%APPDATA%\\codemini-cli\\`
|
|
66
|
+
- Restricted-environment fallback: `.codemini-cli/`
|
|
67
|
+
|
|
68
|
+
### Positioning
|
|
69
|
+
|
|
70
|
+
CodeMini CLI is a better fit if you want:
|
|
71
|
+
- a coding CLI that behaves well with smaller models
|
|
72
|
+
- a Windows and PowerShell-friendly workflow
|
|
73
|
+
- a more controlled execution surface
|
|
74
|
+
- multi-agent execution with stronger review and verification steps
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 简体中文
|
|
79
|
+
|
|
80
|
+
CodeMini CLI 是一个为小模型工作流优化过的代码助手 CLI,重点针对 Windows 和 PowerShell 做了打磨。
|
|
81
|
+
|
|
82
|
+
它更适合那些希望代码助手在真实开发环境里更稳、更可控、更实用的团队,尤其是在内部小模型参与日常工作的场景下。
|
|
83
|
+
|
|
84
|
+
### 为什么做这个
|
|
85
|
+
|
|
86
|
+
- 面向小模型工作流优化,而不是默认假设超大模型能力
|
|
87
|
+
- 把 Windows 和 PowerShell 当作一等公民
|
|
88
|
+
- 默认工具面更小,更容易控制
|
|
89
|
+
- 使用 shell-aware 的执行策略,而不是无边界暴露系统能力
|
|
90
|
+
- 支持 sub-agent 协作,但不会强制共享整段上下文历史
|
|
91
|
+
|
|
92
|
+
### 主要特点
|
|
93
|
+
|
|
94
|
+
- 默认工具极简:`run_command`、`read_file`、`write_file`
|
|
95
|
+
- 面向 Windows 的 PowerShell 默认配置
|
|
96
|
+
- safe mode 默认开启
|
|
97
|
+
- 内置 lite skills,覆盖规划、执行和协作
|
|
98
|
+
- `soul` 只影响语气,不影响计划和代码行为
|
|
99
|
+
- 支持 planner、coder、reviewer、tester 多角色 sub-agent
|
|
100
|
+
|
|
101
|
+
### 快速开始
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
codemini config set gateway.base_url http://your-internal-gateway/v1
|
|
105
|
+
codemini config set gateway.api_key your_token
|
|
106
|
+
codemini config set shell.default powershell
|
|
107
|
+
codemini config set model.name your-30b-model
|
|
108
|
+
codemini doctor
|
|
109
|
+
codemini
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
如果你在 macOS 或 Linux:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
codemini config set shell.default bash
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### 命令概览
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
codemini [prompt]
|
|
122
|
+
codemini chat [prompt]
|
|
123
|
+
codemini run <task>
|
|
124
|
+
codemini config set|get|list <key> [value]
|
|
125
|
+
codemini doctor
|
|
126
|
+
codemini skill list|install|enable|disable|inspect|reindex
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 文档入口
|
|
130
|
+
|
|
131
|
+
- 操作手册与常见命令组合:[OPERATIONS.md](/mnt/e/Git%20Projects/qurio-coder/OPERATIONS.md)
|
|
132
|
+
- 打包与部署手册:[deployment.md](/mnt/e/Git%20Projects/qurio-coder/deployment.md)
|
|
133
|
+
|
|
134
|
+
### 数据目录
|
|
135
|
+
|
|
136
|
+
- 项目工作区数据:`.coder/`
|
|
137
|
+
- Windows 全局用户数据:`%APPDATA%\\codemini-cli\\`
|
|
138
|
+
- 受限环境回退目录:`.codemini-cli/`
|
package/bin/coder.js
ADDED
package/deployment.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# Deployment Guide
|
|
2
|
+
|
|
3
|
+
This document describes how to package, copy, install, configure, and verify `codemini-cli` from a `.tgz` file.
|
|
4
|
+
|
|
5
|
+
## 1. Build The TGZ Package
|
|
6
|
+
|
|
7
|
+
Run this in the project root on the packaging machine:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm pack
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Expected output:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
codemini-cli-0.1.0.tgz
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
If you want to verify the package contents:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
tar -tf codemini-cli-0.1.0.tgz
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 2. Copy To The Target Machine
|
|
26
|
+
|
|
27
|
+
Copy the generated `.tgz` file to the Win10 machine by one of these methods:
|
|
28
|
+
|
|
29
|
+
- company internal file share
|
|
30
|
+
- USB drive
|
|
31
|
+
- secure artifact repository
|
|
32
|
+
- SCP or similar internal transfer tool
|
|
33
|
+
|
|
34
|
+
Recommended target path:
|
|
35
|
+
|
|
36
|
+
```powershell
|
|
37
|
+
C:\temp\codemini-cli-0.1.0.tgz
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## 3. Environment Requirements
|
|
41
|
+
|
|
42
|
+
Target machine requirements:
|
|
43
|
+
|
|
44
|
+
- Windows 10
|
|
45
|
+
- Node.js 20 or newer
|
|
46
|
+
- npm available
|
|
47
|
+
- PowerShell available
|
|
48
|
+
|
|
49
|
+
Check:
|
|
50
|
+
|
|
51
|
+
```powershell
|
|
52
|
+
node -v
|
|
53
|
+
npm -v
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 4. Install From TGZ
|
|
57
|
+
|
|
58
|
+
Global install:
|
|
59
|
+
|
|
60
|
+
```powershell
|
|
61
|
+
npm install -g C:\temp\codemini-cli-0.1.0.tgz
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
If global install is blocked by company policy, install in a working directory instead:
|
|
65
|
+
|
|
66
|
+
```powershell
|
|
67
|
+
mkdir C:\temp\coder-test
|
|
68
|
+
cd C:\temp\coder-test
|
|
69
|
+
npm install C:\temp\codemini-cli-0.1.0.tgz
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 5. Confirm Installation
|
|
73
|
+
|
|
74
|
+
If installed globally:
|
|
75
|
+
|
|
76
|
+
```powershell
|
|
77
|
+
codemini --help
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
If installed locally without global bin exposure:
|
|
81
|
+
|
|
82
|
+
```powershell
|
|
83
|
+
npx codemini --help
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Or:
|
|
87
|
+
|
|
88
|
+
```powershell
|
|
89
|
+
node .\node_modules\codemini-cli\bin\coder.js --help
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## 6. Initial Configuration
|
|
93
|
+
|
|
94
|
+
Set your internal gateway, key, model, and shell:
|
|
95
|
+
|
|
96
|
+
```powershell
|
|
97
|
+
codemini config set gateway.base_url https://your-internal-gateway/v1
|
|
98
|
+
codemini config set gateway.api_key your_token
|
|
99
|
+
codemini config set model.name your_model_id
|
|
100
|
+
codemini config set model.max_context_tokens 32768
|
|
101
|
+
codemini config set shell.default powershell
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Optional but recommended:
|
|
105
|
+
|
|
106
|
+
```powershell
|
|
107
|
+
codemini config set gateway.timeout_ms 180000
|
|
108
|
+
codemini config set gateway.max_retries 2
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Check current config:
|
|
112
|
+
|
|
113
|
+
```powershell
|
|
114
|
+
codemini config list
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## 7. Smoke Test
|
|
118
|
+
|
|
119
|
+
Run the built-in environment check:
|
|
120
|
+
|
|
121
|
+
```powershell
|
|
122
|
+
codemini doctor
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Then launch the TUI:
|
|
126
|
+
|
|
127
|
+
```powershell
|
|
128
|
+
codemini
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Inside the TUI, test these:
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
/config list
|
|
135
|
+
/history list
|
|
136
|
+
/spec 写一个Win10内部CLI权限规范
|
|
137
|
+
/plan from-spec
|
|
138
|
+
帮我创建一个 hello.js
|
|
139
|
+
读取 hello.js
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 8. Installed Data Locations
|
|
143
|
+
|
|
144
|
+
Project-scoped data:
|
|
145
|
+
|
|
146
|
+
```text
|
|
147
|
+
.coder\
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Global user/tool data on Win10:
|
|
151
|
+
|
|
152
|
+
```text
|
|
153
|
+
%APPDATA%\codemini-cli\
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Typical contents:
|
|
157
|
+
|
|
158
|
+
- `config.json`
|
|
159
|
+
- `sessions\`
|
|
160
|
+
- `skills\`
|
|
161
|
+
- `input-history.json`
|
|
162
|
+
|
|
163
|
+
## 9. Skills
|
|
164
|
+
|
|
165
|
+
List installed skills:
|
|
166
|
+
|
|
167
|
+
```powershell
|
|
168
|
+
codemini skill list
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Install a local skill:
|
|
172
|
+
|
|
173
|
+
```powershell
|
|
174
|
+
codemini skill install C:\path\to\skill-folder
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Rebuild the local registry:
|
|
178
|
+
|
|
179
|
+
```powershell
|
|
180
|
+
codemini skill reindex
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## 10. Uninstall
|
|
184
|
+
|
|
185
|
+
Global uninstall:
|
|
186
|
+
|
|
187
|
+
```powershell
|
|
188
|
+
npm uninstall -g codemini-cli
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Local uninstall inside a test directory:
|
|
192
|
+
|
|
193
|
+
```powershell
|
|
194
|
+
npm uninstall codemini-cli
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## 11. Known Limitation
|
|
198
|
+
|
|
199
|
+
This `.tgz` package is suitable for package distribution, but it is not a fully self-contained offline dependency bundle.
|
|
200
|
+
|
|
201
|
+
If the target machine is completely air-gapped and does not already have the required npm dependencies available, prepare one of these instead:
|
|
202
|
+
|
|
203
|
+
- a tested `node_modules` bundle
|
|
204
|
+
- a company internal npm mirror
|
|
205
|
+
- a dedicated offline installer bundle
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "codemini-cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Coding CLI optimized for small-model workflows and Windows PowerShell",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"ai",
|
|
8
|
+
"coding-assistant",
|
|
9
|
+
"developer-tools",
|
|
10
|
+
"terminal",
|
|
11
|
+
"windows",
|
|
12
|
+
"powershell"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"homepage": "https://github.com/havingautism/Codemini-CLI#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/havingautism/Codemini-CLI/issues"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/havingautism/Codemini-CLI.git"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"codemini": "bin/coder.js",
|
|
25
|
+
"coder": "bin/coder.js"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"start": "node bin/coder.js",
|
|
29
|
+
"test": "node --test tests/*.test.js",
|
|
30
|
+
"pack:offline": "npm pack"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"bin",
|
|
34
|
+
"src",
|
|
35
|
+
"souls",
|
|
36
|
+
"templates",
|
|
37
|
+
"skills",
|
|
38
|
+
"README.md",
|
|
39
|
+
"OPERATIONS.md",
|
|
40
|
+
"deployment.md"
|
|
41
|
+
],
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=20"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"ink": "^6.3.1",
|
|
50
|
+
"openai": "^6.33.0",
|
|
51
|
+
"react": "^19.0.0"
|
|
52
|
+
},
|
|
53
|
+
"license": "MIT"
|
|
54
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming-lite
|
|
3
|
+
description: Lightweight brainstorming skill for 30B-class models. Clarify scope, ask one question at a time, compare a few options, and converge before implementation.
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Use this skill before adding new behavior, new features, or meaningful workflow changes.
|
|
8
|
+
|
|
9
|
+
Rules:
|
|
10
|
+
|
|
11
|
+
1. Ask one question at a time.
|
|
12
|
+
Do not dump a long questionnaire. Pick the most important uncertainty and resolve it first.
|
|
13
|
+
|
|
14
|
+
2. Stay concrete.
|
|
15
|
+
Focus on purpose, constraints, success criteria, and what should be intentionally left out.
|
|
16
|
+
|
|
17
|
+
3. Offer 2-3 approaches.
|
|
18
|
+
Keep each option short. Lead with the recommended option and say why.
|
|
19
|
+
|
|
20
|
+
4. Keep the design small.
|
|
21
|
+
Write only enough design for the current scope. Do not inflate a simple task into a full spec process unless needed.
|
|
22
|
+
|
|
23
|
+
5. Confirm before implementation.
|
|
24
|
+
Summarize the chosen direction in a few bullets or a short paragraph, then move to execution only after alignment.
|
|
25
|
+
|
|
26
|
+
Suggested flow:
|
|
27
|
+
- Restate the task briefly
|
|
28
|
+
- Ask the next best question
|
|
29
|
+
- Propose options with tradeoffs
|
|
30
|
+
- Confirm the chosen approach
|
|
31
|
+
- Hand off to plan execution
|
|
32
|
+
|
|
33
|
+
Avoid:
|
|
34
|
+
- large ceremonies
|
|
35
|
+
- repeating the full conversation
|
|
36
|
+
- asking multiple independent questions in one turn
|
|
37
|
+
- proposing implementation details before the problem is clear
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: executing-plan-lite
|
|
3
|
+
description: Lightweight plan execution skill for 30B-class models. Execute the plan in small verified steps with narrow context and frequent checks.
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Use this skill when a direction is chosen and the next job is to carry out implementation reliably.
|
|
8
|
+
|
|
9
|
+
Rules:
|
|
10
|
+
|
|
11
|
+
1. Execute the plan in small verified steps.
|
|
12
|
+
Take one bounded step at a time. Avoid mixing planning, implementation, and verification into one big jump.
|
|
13
|
+
|
|
14
|
+
2. Keep the active context narrow.
|
|
15
|
+
Work from the smallest relevant file set and recent evidence. If needed, use sub-agents for independent subtasks.
|
|
16
|
+
|
|
17
|
+
3. Search before editing.
|
|
18
|
+
Use `rg` to locate code, inspect the smallest useful context, then edit.
|
|
19
|
+
|
|
20
|
+
4. Verify after each meaningful change.
|
|
21
|
+
Run the most relevant test or command before claiming success.
|
|
22
|
+
|
|
23
|
+
5. Report progress briefly.
|
|
24
|
+
Summarize what changed, what was verified, and what remains.
|
|
25
|
+
|
|
26
|
+
Suggested flow:
|
|
27
|
+
- identify the next step
|
|
28
|
+
- search and inspect
|
|
29
|
+
- edit
|
|
30
|
+
- verify
|
|
31
|
+
- either continue or stop at a clear checkpoint
|
|
32
|
+
|
|
33
|
+
Use sub-agents when:
|
|
34
|
+
- the task can be split cleanly
|
|
35
|
+
- the write scope is disjoint
|
|
36
|
+
- the result can be reviewed independently
|
|
37
|
+
|
|
38
|
+
Avoid:
|
|
39
|
+
- broad refactors without a reason
|
|
40
|
+
- carrying full history into each step
|
|
41
|
+
- declaring completion without verification
|