xonecas.io
64875
Mc

mini-coder / commit a769291

Add MIT license

Sean2026-02-25 a769291f8a66c81832d4738ccfeb90eb3a2640da parent b8ef12d

5 files changed

.npmignore+23−0
@@ -0,0 +1,23 @@
1+# Source & tests
2+src/
3+scripts/
4+
5+# Config & tooling
6+biome.json
7+tsconfig.json
8+*.db
9+*.db-shm
10+*.db-wal
11+.env
12+.env.*
13+.DS_Store
14+
15+# Dev/repo files
16+.agents/
17+assets/
18+TODO.md
19+SHARE.md
20+mini-coder-idea.md
21+AGENTS.md
22+bun.lock
23+node_modules/
LICENSE+9−0
@@ -0,0 +1,9 @@
1+MIT License
2+
3+Copyright (c) 2026 Sean Caetano Martin
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SHARE.md+20−0
@@ -0,0 +1,20 @@
1+# 👾 mini-coder — small, fast CLI coding agent
2+
3+> A terminal-native AI coding agent that stays out of your way.
4+
5+```bash
6+bun add -g mini-coder
7+mc
8+```
9+
10+- **Multi-provider** — Anthropic, OpenAI, Google, Ollama, auto-detected from env vars
11+- **Session memory** — local SQLite, resume with `mc -c`
12+- **Shell integration** — `!command` inline, `@file` references with tab completion
13+- **Subagents** — spawns parallel agents for independent subtasks
14+- **MCP support** — connect tools like Exa web search
15+- **Hooks** — auto-run scripts after any tool call via `.agents/hooks/`
16+- **16 ANSI colors** — inherits your terminal theme, always
17+
18+No telemetry. No cloud accounts. No bloat.
19+
20+🔗 https://github.com/sacenox/mini-coder
TODO.md+17−11
@@ -53,15 +53,21 @@ persistence alongside `preferred_model`.
5353 The idea says: *"Reference files, skills, agents from the working directory and
5454 global community configs with `@` in prompt input."*
5555
56-Currently `getFileCompletions()` in `src/cli/input.ts` only scans `cwd` with
57-`Bun.Glob`, and `resolveFileRefs()` in `src/agent/agent.ts` (line 501) only reads
58-files relative to `cwd` or as absolute paths. Global skill/agent files under
59-`~/.agents/` (the convention referenced in the idea from `skills.sh`) are never
60-surfaced.
56+Skills:
6157
62-**Fix:**
63-- Extend `getFileCompletions()` to also scan `~/.agents/` for skill/agent files and
64- surface them as `@~/.agents/<name>` completions alongside local results.
65-- In `resolveFileRefs()`, resolve `@`-refs that start with `~/` or match a known
66- global skill name against `homedir() + "/.agents/"` in addition to `cwd`.
67-- Optionally distinguish global refs visually in Tab-completion output.
58+- Should autocomplete from global `~/.agents/skills` and the local agents folder.
59+
60+Custom Agents:
61+
62+- [Claude's flow](https://code.claude.com/docs/en/sub-agents)
63+- [Opencode's flow](https://opencode.ai/docs/agents/#options)
64+
65+Let's implement our own with config in `~/.agents/agents/`. Skip the `/agent` command.
66+
67+---
68+
69+Custom commands:
70+
71+https://opencode.ai/docs/commands/ I want to copy this approach to custom commands.
72+
73+Let's also create a local command to this repo, `/search` that fires a small model to explore the codebase for the arguments given.
package.json+3−2
@@ -5,7 +5,7 @@
55 "module": "src/index.ts",
66 "type": "module",
77 "bin": {
8- "mc": "./dist/mc.js"
8+ "mc": "dist/mc.js"
99 },
1010 "scripts": {
1111 "build": "bun run scripts/build.ts",
@@ -30,5 +30,6 @@
3030 "@biomejs/biome": "^1.9.4",
3131 "@types/bun": "latest",
3232 "typescript": "^5.8.3"
33- }
33+ },
34+ "license": "MIT"
3435 }