mini-coder 0.1.1 → 0.1.2
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/.claude/settings.local.json +43 -30
- package/README.md +1 -2
- package/dist/mc-edit.js +29 -5
- package/dist/mc.js +2672 -3244
- package/docs/mini-coder.1.md +4 -19
- package/lefthook.yml +15 -0
- package/package.json +3 -2
- package/research.md +0 -38
package/docs/mini-coder.1.md
CHANGED
|
@@ -86,7 +86,7 @@ Developer-focused CLI coding agent. Prioritizes dev flow — no slow startup, no
|
|
|
86
86
|
: Remove MCP server.
|
|
87
87
|
|
|
88
88
|
`/agent` \[*name*\]
|
|
89
|
-
: Set or clear active
|
|
89
|
+
: Set or clear active agent.
|
|
90
90
|
|
|
91
91
|
`/review`
|
|
92
92
|
: Review changes (custom command, auto-created globally).
|
|
@@ -119,9 +119,6 @@ Developer-focused CLI coding agent. Prioritizes dev flow — no slow startup, no
|
|
|
119
119
|
**shell**
|
|
120
120
|
: Execute bash commands; repo inspection and `mc-edit` edits happen here.
|
|
121
121
|
|
|
122
|
-
**subagent**
|
|
123
|
-
: Spawn a focused mini-agent for parallel subtasks.
|
|
124
|
-
|
|
125
122
|
**listSkills**
|
|
126
123
|
: List discovered skills (metadata only).
|
|
127
124
|
|
|
@@ -165,16 +162,7 @@ Drop a `.md` file in `.agents/commands/` (local) or `~/.agents/commands/` (globa
|
|
|
165
162
|
: Shown in `/help`.
|
|
166
163
|
|
|
167
164
|
`model`
|
|
168
|
-
:
|
|
169
|
-
|
|
170
|
-
`context`
|
|
171
|
-
: `fork` to run as isolated subagent; default is inline.
|
|
172
|
-
|
|
173
|
-
`subtask`
|
|
174
|
-
: `true` forces subagent (OpenCode-compatible alias).
|
|
175
|
-
|
|
176
|
-
`agent`
|
|
177
|
-
: Run under named agent's system prompt (only with `context: fork`).
|
|
165
|
+
: Optional metadata field.
|
|
178
166
|
|
|
179
167
|
**Argument substitution:**
|
|
180
168
|
|
|
@@ -198,12 +186,9 @@ Drop a `.md` file in `.agents/agents/` (local) or `~/.agents/agents/` (global).
|
|
|
198
186
|
: Shown in `/help`.
|
|
199
187
|
|
|
200
188
|
`model`
|
|
201
|
-
:
|
|
202
|
-
|
|
203
|
-
`mode`
|
|
204
|
-
: `primary` excludes from subagent tool; `subagent`/`all`/omitted keeps it available.
|
|
189
|
+
: Optional metadata field.
|
|
205
190
|
|
|
206
|
-
Body is the agent system prompt.
|
|
191
|
+
Body is the agent system prompt.
|
|
207
192
|
|
|
208
193
|
## SKILLS
|
|
209
194
|
|
package/lefthook.yml
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mini-coder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A small, fast CLI coding agent",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"test": "bun test --only-failures",
|
|
19
19
|
"test:verbose": "bun test",
|
|
20
20
|
"jscpd": "jscpd src",
|
|
21
|
-
"
|
|
21
|
+
"prepare": "lefthook install"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ai-sdk/anthropic": "^3.0.60",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@types/bun": "latest",
|
|
38
38
|
"jscpd": "^4.0.8",
|
|
39
39
|
"knip": "^5.86.0",
|
|
40
|
+
"lefthook": "^2.1.4",
|
|
40
41
|
"typescript": "^5.9.3"
|
|
41
42
|
},
|
|
42
43
|
"knip": {
|
package/research.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
I want your help exploring how could we use yoctocolor to add color ouput to commonly used shell commands. Let's first check the db, check the recent past sessions for a sample. Then check for the shell usage and assert the most common commands
|
|
2
|
-
|
|
3
|
-
Response:
|
|
4
|
-
|
|
5
|
-
## Shell Usage Analysis (from 101 sessions)
|
|
6
|
-
|
|
7
|
-
Most common commands:
|
|
8
|
-
| Command | Count | Opportunity |
|
|
9
|
-
|---------|-------|-------------|
|
|
10
|
-
| `cat` | 72 | File content preview |
|
|
11
|
-
| `git` | 54 | Status/diff output |
|
|
12
|
-
| `bun` | 32 | Test/build output |
|
|
13
|
-
| `sed` | 29 | Transform preview |
|
|
14
|
-
| `mc-edit` | 26 | File edits |
|
|
15
|
-
| `nl` | 12 | Line numbers |
|
|
16
|
-
| `rg` | 11 | Search matches |
|
|
17
|
-
| `npm` | 9 | Package output |
|
|
18
|
-
| `grep` | 7 | Match highlighting |
|
|
19
|
-
| `ls` | 5 | File listings |
|
|
20
|
-
|
|
21
|
-
## Current Shell Output Coloring (in `tool-result-renderers.ts`)
|
|
22
|
-
|
|
23
|
-
The shell result renderer already uses yoctocolors:
|
|
24
|
-
|
|
25
|
-
- **Status badges**: `c.green("done")` / `c.red("error")` / `c.yellow("timeout")`
|
|
26
|
-
- **Stderr lines**: `c.red()` for error emphasis
|
|
27
|
-
- **Stdout/stderr line separators**: `c.dim()` or colored pipe character
|
|
28
|
-
|
|
29
|
-
## Enhancement Opportunities
|
|
30
|
-
|
|
31
|
-
1. **Command syntax highlighting** - Color `git`, `bun`, `npm` commands differently in the tool call line
|
|
32
|
-
2. **File path highlighting** - Use `c.cyan()` for paths in output
|
|
33
|
-
3. **Git diffs from mc-edit** - Render a colored diff
|
|
34
|
-
4. **Line numbers** - `nl` output could use `c.yellow()` for numbers
|
|
35
|
-
5. **Git output** - Branch names in `c.cyan()`, commit hashes in `c.yellow()`, file statuses (M/A/D) in color
|
|
36
|
-
6. **rg/grep matches** - Highlight matching text in `c.greenBright()` or `c.yellow()`
|
|
37
|
-
7. **Exit code** - Non-zero codes in `c.red()` or `c.yellow()`
|
|
38
|
-
8. **Test output** - `bun test` results: passes in `c.green()`, fails in `c.red()`, skips in `c.yellow()`
|