lean-agents 0.0.0-stage → 0.8.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/LICENSE +21 -0
- package/README.es.md +454 -0
- package/README.md +453 -2
- package/core/AGENTS.es.md +60 -0
- package/core/AGENTS.md +60 -0
- package/core/README.md +8 -0
- package/core/agents/debug.md +14 -0
- package/core/agents/explore.md +13 -0
- package/core/agents/planner.md +14 -0
- package/core/agents/research.md +13 -0
- package/core/agents/review.md +13 -0
- package/core/copilot-usage-tui.js +186 -0
- package/core/mcp.json +38 -0
- package/core/pins.json +30 -0
- package/core/tiers.json +4 -0
- package/node_modules/@clack/core/LICENSE +9 -0
- package/node_modules/@clack/core/README.md +22 -0
- package/node_modules/@clack/core/dist/index.d.mts +503 -0
- package/node_modules/@clack/core/dist/index.mjs +1003 -0
- package/node_modules/@clack/core/package.json +63 -0
- package/node_modules/@clack/prompts/LICENSE +9 -0
- package/node_modules/@clack/prompts/README.md +396 -0
- package/node_modules/@clack/prompts/dist/index.d.mts +949 -0
- package/node_modules/@clack/prompts/dist/index.mjs +1423 -0
- package/node_modules/@clack/prompts/package.json +67 -0
- package/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/node_modules/fast-string-truncated-width/license +21 -0
- package/node_modules/fast-string-truncated-width/package.json +35 -0
- package/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-width/dist/index.js +14 -0
- package/node_modules/fast-string-width/license +21 -0
- package/node_modules/fast-string-width/package.json +34 -0
- package/node_modules/fast-string-width/readme.md +42 -0
- package/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/node_modules/fast-wrap-ansi/README.md +26 -0
- package/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/node_modules/fast-wrap-ansi/lib/main.js +218 -0
- package/node_modules/fast-wrap-ansi/package.json +51 -0
- package/node_modules/jsonc-parser/CHANGELOG.md +76 -0
- package/node_modules/jsonc-parser/LICENSE.md +21 -0
- package/node_modules/jsonc-parser/README.md +364 -0
- package/node_modules/jsonc-parser/SECURITY.md +41 -0
- package/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
- package/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
- package/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
- package/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
- package/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
- package/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
- package/node_modules/jsonc-parser/lib/esm/main.js +178 -0
- package/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
- package/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
- package/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
- package/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
- package/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
- package/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
- package/node_modules/jsonc-parser/lib/umd/main.js +194 -0
- package/node_modules/jsonc-parser/package.json +37 -0
- package/node_modules/sisteransi/license +21 -0
- package/node_modules/sisteransi/package.json +34 -0
- package/node_modules/sisteransi/readme.md +113 -0
- package/node_modules/sisteransi/src/index.js +58 -0
- package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/package.json +29 -4
- package/profiles/README.md +10 -0
- package/profiles/anthropic-api/gsd-defaults.json +26 -0
- package/profiles/anthropic-api.json +18 -0
- package/profiles/antigravity.json +12 -0
- package/profiles/claude-subscription/gsd-defaults.json +26 -0
- package/profiles/claude-subscription.json +17 -0
- package/profiles/github-copilot/gsd-defaults.json +26 -0
- package/profiles/github-copilot.json +17 -0
- package/profiles/openai-api/gsd-defaults.json +26 -0
- package/profiles/openai-api.json +17 -0
- package/profiles/opencode-go/gsd-defaults.json +26 -0
- package/profiles/opencode-go.json +17 -0
- package/profiles/vertex-gemini/gsd-defaults.json +26 -0
- package/profiles/vertex-gemini.json +18 -0
- package/scripts/adhd-skill.mjs +12 -0
- package/scripts/bump-pins.mjs +104 -0
- package/scripts/check-private.sh +52 -0
- package/scripts/check-readme.mjs +131 -0
- package/scripts/ci-download.sh +20 -0
- package/scripts/ci-install-opencode-v2.sh +6 -0
- package/scripts/ci-latest-report.mjs +38 -0
- package/scripts/copilot-context-mode.mjs +33 -0
- package/scripts/labels.sh +55 -0
- package/scripts/lean.mjs +700 -0
- package/scripts/lib/adapters/antigravity.mjs +72 -0
- package/scripts/lib/adapters/claude.mjs +122 -0
- package/scripts/lib/adapters/copilot-cli.mjs +81 -0
- package/scripts/lib/adapters/cursor.mjs +60 -0
- package/scripts/lib/adapters/opencode-v1.mjs +86 -0
- package/scripts/lib/adapters/opencode-v2.mjs +168 -0
- package/scripts/lib/adapters/vscode-copilot.mjs +56 -0
- package/scripts/lib/adhd.mjs +28 -0
- package/scripts/lib/adopt.mjs +474 -0
- package/scripts/lib/agent-lifecycle.mjs +163 -0
- package/scripts/lib/copilot-usage.mjs +49 -0
- package/scripts/lib/doctor.mjs +207 -0
- package/scripts/lib/feedback.mjs +30 -0
- package/scripts/lib/fsops.mjs +291 -0
- package/scripts/lib/gsd.mjs +42 -0
- package/scripts/lib/inventory.mjs +195 -0
- package/scripts/lib/lean-update.mjs +30 -0
- package/scripts/lib/migrate.mjs +407 -0
- package/scripts/lib/network.mjs +79 -0
- package/scripts/lib/node-runtime.mjs +85 -0
- package/scripts/lib/parallel.mjs +265 -0
- package/scripts/lib/pins.mjs +47 -0
- package/scripts/lib/project.mjs +38 -0
- package/scripts/lib/redact.mjs +30 -0
- package/scripts/lib/render.mjs +101 -0
- package/scripts/lib/system.mjs +178 -0
- package/scripts/lib/terminals.mjs +218 -0
- package/scripts/lib/ui.mjs +34 -0
- package/scripts/lib/unverified.mjs +49 -0
- package/scripts/lib/upgrade.mjs +130 -0
- package/scripts/lib/verify-commit.mjs +16 -0
- package/scripts/lib/verify-sha256.mjs +20 -0
- package/scripts/lint-workflows.mjs +25 -0
- package/scripts/models-refresh.mjs +58 -0
- package/scripts/parallel.mjs +59 -0
- package/scripts/pins-latest.mjs +43 -0
- package/scripts/release.mjs +46 -0
- package/scripts/verify-pins.mjs +36 -0
- package/scripts/version-watch.mjs +118 -0
package/README.md
CHANGED
|
@@ -1,3 +1,454 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="docs/assets/banner.svg" alt="lean-agents: your agent is only as good as its setup" width="640">
|
|
4
|
+
|
|
5
|
+
# lean-agents
|
|
6
|
+
|
|
7
|
+
**Your agent is only as good as its setup. lean-agents does the setup.**
|
|
8
|
+
|
|
9
|
+
[](LICENSE) [](https://github.com/estebanmr99/lean-agents/actions/workflows/ci.yml) [](https://github.com/estebanmr99/lean-agents/actions/workflows/secret-scan.yml) 
|
|
10
|
+
|
|
11
|
+
[Leer en español](README.es.md)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
What your agent writes is only as good as what you give it: your prompt, and the setup around it. Rules. Cheap subagents for the boring work. Tools that save tokens. Privacy you chose.
|
|
16
|
+
|
|
17
|
+
You should not have to perfect every prompt. lean-agents sets the rest up for you, once, on top of the agents you already use.
|
|
18
|
+
|
|
19
|
+
### Paste this into your agent
|
|
20
|
+
|
|
21
|
+
It asks you each choice, shows a dry run, and waits for your OK.
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
Install lean-agents for me from https://github.com/estebanmr99/lean-agents.
|
|
25
|
+
Follow docs/install-with-an-agent.md in that repo. Ask before every change.
|
|
26
|
+
Never read, print or store my API keys or tokens, and never run gh auth login for me.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Or run it yourself
|
|
30
|
+
|
|
31
|
+
macOS, Linux or Git Bash. `--dry-run` lists every file and command; nothing changes:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Windows PowerShell:
|
|
38
|
+
|
|
39
|
+
```powershell
|
|
40
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Flags, pinning a version, checksums: [Quick start](#quick-start).
|
|
44
|
+
|
|
45
|
+
### What's new
|
|
46
|
+
|
|
47
|
+
Read the [latest release notes](https://github.com/estebanmr99/lean-agents/releases/latest) and the [CHANGELOG](CHANGELOG.md). Already installed? Paste this to update; it also takes over an install you made by hand:
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
Update lean-agents for me from https://github.com/estebanmr99/lean-agents.
|
|
51
|
+
Use the lean-update skill, or follow docs/install-with-an-agent.md "Update with an agent". Show me a table first and ask before every change.
|
|
52
|
+
Never read, print or store my API keys or tokens.
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
<div align="center">
|
|
56
|
+
|
|
57
|
+
<img src="docs/assets/agents.svg" alt="Works with Claude Code, OpenCode, Copilot CLI, Antigravity CLI, VS Code Copilot and Cursor" width="520">
|
|
58
|
+
|
|
59
|
+
<img src="docs/assets/demo.gif" alt="install.sh --dry-run listing every file and command it would change" width="720">
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
## Supported agents
|
|
64
|
+
|
|
65
|
+
| Agent | macOS | Linux | Windows | Rules | Subagents | MCP tools | Real-binary CI job |
|
|
66
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
67
|
+
| Claude Code | VERIFY | ✅ | VERIFY | ✅ | ✅ | ✅ | `real-claude` |
|
|
68
|
+
| OpenCode 1.x | VERIFY | ✅ | ✅ | ✅ | ✅ | ✅ | `real-opencode-v1`, `real-windows`, `real-opencode-shell` |
|
|
69
|
+
| OpenCode 2.x | VERIFY | ✅ | VERIFY | ✅ | ✅ | ✅ | `real-opencode`, `real-opencode-shell` |
|
|
70
|
+
| Copilot CLI | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | `real-copilot`, `real-copilot-windows` |
|
|
71
|
+
| Antigravity CLI | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | `real-antigravity`, `real-antigravity-windows` |
|
|
72
|
+
| VS Code Copilot | ✅ | ✅ | VERIFY | ⚠️ | ⚠️ | ✅ | `real-vscode` |
|
|
73
|
+
| Cursor | VERIFY | ✅ | ✅ | ➖ (`--project` only) | ⚠️ | ✅ | `real-cursor`, `real-cursor-windows` |
|
|
74
|
+
|
|
75
|
+
On Windows, agents work best with Git Bash installed (RTK and bash-style commands need it); the install summary and `--doctor` tell you which shell is found and what to do if not. For OpenCode, lean-agents also sets its `shell` key to Git Bash when found, so the bash tool runs there by default (`--shell default` opts out; a `shell` you already set is kept).
|
|
76
|
+
|
|
77
|
+
✅ a CI job runs the real binary on that OS (OS columns) or lean-agents writes it (feature columns) · ⚠️ written, load unproven · ➖ not available · VERIFY not proven yet. Per-agent files and verification dates: [docs/compatibility.md](docs/compatibility.md).
|
|
78
|
+
|
|
79
|
+
**Who it's for:** solo developers · teams (`--project` writes the setup into the repo) · work PCs behind a proxy ([details](#on-a-work-pc-proxy-network-and-security-review)).
|
|
80
|
+
|
|
81
|
+
<!-- details -->
|
|
82
|
+
## Details
|
|
83
|
+
|
|
84
|
+
lean-agents works with Claude Code, OpenCode 1.x and 2.x, GitHub Copilot CLI, Antigravity CLI, VS Code Copilot and Cursor on macOS, Linux and Windows. Star the repo to get notified when `v1.0.0` ships.
|
|
85
|
+
|
|
86
|
+
**Contents**
|
|
87
|
+
|
|
88
|
+
- [Demo: OpenCode with GitHub Copilot models](#demo-opencode-with-github-copilot-models)
|
|
89
|
+
- [Quick start](#quick-start)
|
|
90
|
+
- [Why](#why) · [What you get](#what-you-get)
|
|
91
|
+
- [Warp and Orca](#warp-and-orca) · [Signed-in browser](#signed-in-browser-opt-in) · [VS Code Copilot and Cursor](#vs-code-copilot-and-cursor)
|
|
92
|
+
- [Team mode](#team-mode---project) · [Migrate](#migrate-from-another-tool---migrate) · [Parallel agent sessions](#parallel-agent-sessions) · [Claude through GitHub Copilot](#claude-through-github-copilot)
|
|
93
|
+
- [Install tiers](#install-tiers) · [On a work PC](#on-a-work-pc-proxy-network-and-security-review) · [Models that stay current](#models-that-stay-current)
|
|
94
|
+
- [Safety](#safety) · [Credits](#credits) · [Roadmap](#roadmap) · [Contributing](#contributing) · [License](#license)
|
|
95
|
+
|
|
96
|
+
## At a glance
|
|
97
|
+
|
|
98
|
+
- **Rules:** one short global rule set, rendered for each agent.
|
|
99
|
+
- **Cheap subagents:** exploration, research and review run on the cheapest fitting model tier.
|
|
100
|
+
- **Context-saving tools:** RTK, Context Mode, Serena and Playwright MCP.
|
|
101
|
+
- **Privacy presets:** `--privacy strict` or `off` for telemetry, updates and outbound calls.
|
|
102
|
+
|
|
103
|
+
```mermaid
|
|
104
|
+
flowchart LR
|
|
105
|
+
A["Your agents<br>Claude Code, OpenCode, Copilot CLI,<br>Antigravity, VS Code, Cursor"] --> L["lean-agents"]
|
|
106
|
+
L --> R["Rules"]
|
|
107
|
+
L --> S["Cheap subagents"]
|
|
108
|
+
L --> M["MCP tools"]
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Demo: OpenCode with GitHub Copilot models
|
|
112
|
+
|
|
113
|
+
1. Install OpenCode. macOS, Linux or Git Bash:
|
|
114
|
+
```bash
|
|
115
|
+
curl -fsSL https://opencode.ai/v2/install | bash
|
|
116
|
+
```
|
|
117
|
+
Windows PowerShell (the upstream script runs through Git Bash and only edits `~/.bashrc`, so this adds the folder to your user PATH; open a new terminal afterwards):
|
|
118
|
+
```powershell
|
|
119
|
+
curl.exe -fsSL https://opencode.ai/v2/install -o "$env:TEMP\opencode-install.sh"
|
|
120
|
+
& "$env:ProgramFiles\Git\bin\bash.exe" -l (($env:TEMP -replace '\\','/') + '/opencode-install.sh') --no-modify-path
|
|
121
|
+
$bin = "$HOME\.opencode\bin"; $u = [Environment]::GetEnvironmentVariable('Path','User')
|
|
122
|
+
if (($u -split ';') -notcontains $bin) { [Environment]::SetEnvironmentVariable('Path', "$u;$bin", 'User') }
|
|
123
|
+
opencode --version
|
|
124
|
+
```
|
|
125
|
+
2. Preview what lean-agents would change (`--yes` takes the defaults, so the preview asks nothing). macOS, Linux or Git Bash:
|
|
126
|
+
```bash
|
|
127
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --agents opencode-v2 --profile github-copilot --dry-run --yes
|
|
128
|
+
```
|
|
129
|
+
Windows PowerShell:
|
|
130
|
+
```powershell
|
|
131
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -Agents opencode-v2 -Profile github-copilot -DryRun -Yes
|
|
132
|
+
```
|
|
133
|
+
3. Run the same without the dry run; in a terminal it asks you the questions you skipped with `--yes`. macOS, Linux or Git Bash:
|
|
134
|
+
```bash
|
|
135
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --agents opencode-v2 --profile github-copilot
|
|
136
|
+
```
|
|
137
|
+
Windows PowerShell:
|
|
138
|
+
```powershell
|
|
139
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -Agents opencode-v2 -Profile github-copilot
|
|
140
|
+
```
|
|
141
|
+
4. Start `opencode`, run `/connect`, pick GitHub Copilot and sign in with your GitHub account (it needs a Copilot plan). lean-agents never handles the login.
|
|
142
|
+
- Subagents use the `github-copilot` profile: `fast` = claude-haiku-5.5, `balanced` = claude-sonnet-5.5, `strong` = claude-opus-5.5.
|
|
143
|
+
- No free OpenCode models are used.
|
|
144
|
+
5. Check the result:
|
|
145
|
+
```bash
|
|
146
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --doctor
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Claude Desktop and Cursor demo paths come later.
|
|
150
|
+
|
|
151
|
+
## Quick start
|
|
152
|
+
|
|
153
|
+
The commands are at the top: the agent prompt, the install command and the update prompt. The bootstraps download the latest release, check it against the release's `SHA256SUMS`, and only then run it (`LEAN_AGENTS_VERSION=0.7.0` pins a release). Once installed, `--dry-run`, `--doctor` and `--uninstall` need no network. A local checkout (`bash install.sh` from a clone) is trusted as it is; only the release download is checksum-verified.
|
|
154
|
+
|
|
155
|
+
Once the npm package is published, `npx lean-agents@latest` will run the same commands (Node.js 22.20+ and git).
|
|
156
|
+
|
|
157
|
+
The agent prompts have [a guide](docs/install-with-an-agent.md) with the steps and `--json` output; [the update steps](docs/install-with-an-agent.md#update-with-an-agent) work without the `lean-update` skill too.
|
|
158
|
+
|
|
159
|
+
Use `--lang es` to get the rules and replies in Spanish.
|
|
160
|
+
|
|
161
|
+
Always start with `--dry-run`: it shows every file and command before anything changes. Then run it again without `--dry-run`; it asks which agents, tools, privacy level, language and model profile you want.
|
|
162
|
+
|
|
163
|
+
- Useful flags: `--all-tools`, `--privacy strict`, `--lang es`, `--profile vertex-gemini`, `--update`, `--uninstall`, `--doctor`, `--json` (with `--dry-run`, `--doctor` or `--adopt`, for agents) (`--help` lists them all).
|
|
164
|
+
- `--adopt`: lists what a hand-built machine already has (MCP servers, Claude hooks and plugins, OpenCode plugins, skills, npm copies under each nvm Node, OpenCode session count), marks each one managed, user, stale, duplicate, drift or wrong-node, and prints the planned action. Alone it changes nothing; env and header values are never read. `--adopt --yes` applies the plan: it backs up every file it edits to `~/.config/lean-agents/adopt-<time>/` (owner-only), re-registers managed MCPs as `<tool Node> <entry>`, checks that each one answers `initialize` and that your own files and the OpenCode session count are unchanged, runs `--doctor`, and undoes itself if anything fails. Removing an old npm copy, a duplicate skill folder or a hand-made stopgap needs a yes (a menu on a terminal, `--confirm-removals` without one); otherwise they are listed and kept. `--keep-backup` keeps the backup after a good run; `--adopt --undo` restores every edited file byte for byte from it.
|
|
165
|
+
- `--upgrade-agent opencode`: dry run for moving OpenCode 1.x to 2.x. Sorts your 1.x config into managed (lean-agents reinstalls it), translatable (a verified 1.x key has a 2.x key: `agent` to `agents`, `mcp` to `mcp.servers`, `compaction.reserved` to `compaction.buffer`, ...) and manual (no proven 2.x equivalent, with the reason); prints the translation table; changes nothing (`--json` for one JSON object). Apply and `--undo` are not in this release yet. The opt-in `lean-migrate` skill (`--tools lean-migrate`) walks an agent through it.
|
|
166
|
+
- `--install-agent a,b` / `--uninstall-agent a,b` (opt-in): install an agent CLI (`claude`, `opencode-v2`, `copilot-cli`, `cursor`, `antigravity`) from its pinned installer (SHA256-checked before it runs; Linux and macOS, plus Copilot CLI on Windows) or remove it again. It shows the plan first (`--dry-run` stops there; `--yes` skips the question). Install records the files the installer created with their SHA256; uninstall deletes only those that still match, or runs `npm uninstall -g`, never the agent's own uninstaller, and leaves your config and data alone. An agent you installed yourself is reported as "not installed by lean-agents" and left alone. OpenCode 1.x is never installed or removed.
|
|
167
|
+
- In PowerShell the common flags are PascalCase: `-DryRun`, `-AllTools`, `-Privacy strict`, `-Profile vertex-gemini`. Any other flag is passed as it is, for example `-DryRun --network off`.
|
|
168
|
+
- Context Mode 2 needs Node.js 24.15 and GSD Core needs Node.js 24 (`engines.node` in `core/pins.json`). On an older active Node, lean-agents runs them on an nvm Node 24 without changing your default (nvm-windows: one already installed) and registers it with its absolute path; on Claude Code that means an MCP server instead of the Context Mode plugin, so its hooks and skills are not installed. Without nvm it skips them with one line. Everything else works on Node.js 22.20 or newer.
|
|
169
|
+
- With Context Mode, the installer also sets up Bun by default (faster `ctx_execute`); add `--no-bun` (`-NoBun` in PowerShell) to skip it. With Antigravity, `--no-app` (`-NoApp`) skips installing the app. See the Bun row in [Install tiers](#install-tiers).
|
|
170
|
+
|
|
171
|
+
## Why
|
|
172
|
+
|
|
173
|
+
- **Fewer tokens.** Exploration, research and review go to cheap subagents. Big outputs stay out of the context window. Agents search symbols instead of reading whole files.
|
|
174
|
+
- **Clearer answers.** One short set of global rules: answer first, state assumptions, surgical changes, verify before saying done.
|
|
175
|
+
- **Same behavior everywhere.** Rules are written once in `core/` and rendered for each agent.
|
|
176
|
+
|
|
177
|
+
## What you get
|
|
178
|
+
|
|
179
|
+
| Feature | Claude Code | OpenCode 2.x | OpenCode 1.x | Copilot CLI | Antigravity CLI |
|
|
180
|
+
| --- | --- | --- | --- | --- | --- |
|
|
181
|
+
| Global rules (AGENTS.md) | ✅ | ✅ | ✅ | ✅ | ⚠️ written, load unproven |
|
|
182
|
+
| Subagents by cost tier | ✅ | ✅ | ✅ | ✅ | ✅ flash, pro |
|
|
183
|
+
| RTK (shell output compression) | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
184
|
+
| Context Mode | ✅ plugin | ✅ MCP | ✅ plugin | ✅ MCP | ➖ skipped (no v2 setup) |
|
|
185
|
+
| Serena + Playwright MCP | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
186
|
+
| Signed-in browser (opt-in) | ➖ Claude in Chrome | ✅ opt-in | ✅ opt-in | ✅ opt-in | ➖ |
|
|
187
|
+
| Ponytail | ✅ | ✅ | ✅ | ➖ | ➖ |
|
|
188
|
+
| i-have-adhd | ✅ | ✅ | ✅ | ✅ | ⚠️ written, load unproven |
|
|
189
|
+
| Caveman and other skills | ✅ | ✅ | ✅ | ✅ | ⚠️ written, load unproven |
|
|
190
|
+
| Context compaction | ✅ auto 80% | ✅ native | ✅ native, optional DCP | ➖ | ➖ |
|
|
191
|
+
| Network presets (telemetry, updates, outbound) | ✅ | ✅ updates, sharing | ✅ | ⚠️ updates; telemetry is a reminder | ⚠️ reminders only |
|
|
192
|
+
| Proxy passed to every install command | ✅ | ✅ | ✅ | ✅ | ⚠️ checked in CI, undocumented upstream |
|
|
193
|
+
|
|
194
|
+
✅ supported · ⚠️ partial · ➖ not available for this agent. Details and verification dates: [docs/compatibility.md](docs/compatibility.md).
|
|
195
|
+
|
|
196
|
+
| Feature | VS Code Copilot | Cursor (IDE and CLI) | Team repo (`--project`) |
|
|
197
|
+
| --- | --- | --- | --- |
|
|
198
|
+
| Rules | ⚠️ written, load unproven | ➖ settings UI only, use `--project` | ✅ `AGENTS.md` |
|
|
199
|
+
| Subagents | ⚠️ written, load unproven | ⚠️ written, load unproven | ✅ `.github/agents`; ⚠️ `.cursor/agents` (Cursor CLI loading unverified) |
|
|
200
|
+
| RTK | ⚠️ through Copilot CLI only | ✅ | ➖ per user |
|
|
201
|
+
| Context Mode, Serena, Playwright | ✅ MCP | ✅ MCP | ✅ `.vscode/mcp.json`, `.cursor/mcp.json` |
|
|
202
|
+
| Signed-in browser (opt-in) | ✅ opt-in | ✅ opt-in | ➖ per user |
|
|
203
|
+
| Caveman, i-have-adhd skills | ⚠️ written, load unproven | ⚠️ written, load unproven | ➖ per user |
|
|
204
|
+
|
|
205
|
+
**Antigravity app and CLI.**
|
|
206
|
+
|
|
207
|
+
- The app and the CLI read the same `~/.gemini/config` files, so one setup serves both on macOS, Linux and Windows (the CLI on Windows is proven in CI with real `agy`).
|
|
208
|
+
- With Antigravity selected, lean-agents installs the CLI and the app with Homebrew (macOS) or the app with winget (Windows); otherwise it prints the vendor link.
|
|
209
|
+
- **VERIFY:** that the app loads the rules, subagents, skills and MCP servers, where its MCP file is, and its settings keys. CI cannot run the app or log in, so these are unproven.
|
|
210
|
+
|
|
211
|
+
## Warp and Orca
|
|
212
|
+
|
|
213
|
+
<details>
|
|
214
|
+
<summary>What the Warp and Orca integrations add</summary>
|
|
215
|
+
|
|
216
|
+
If you already use [Warp](https://www.warp.dev) or [Orca](https://github.com/stablyai/orca), lean-agents adds their agent integrations for the agents you chose. It never installs the terminals. It looks for the app (or `warp-terminal` / `orca` on PATH), preselects what it finds, and asks nothing when neither is there. `--terminal warp|orca|both|none` overrides; `none` opts out.
|
|
217
|
+
|
|
218
|
+
- **Warp:** the Claude Code plugin `warp@claude-code-warp` (needs `jq`) and the OpenCode plugin `@warp-dot-dev/opencode-warp`.
|
|
219
|
+
- **Orca:** the `orca-cli` skill for your agents. Orca manages its own status hooks (Settings > Agents, or `orca agent hooks on`); lean-agents does not touch them, but Orca's first launch writes them into `~/.claude/settings.json` and `~/.cursor/hooks.json`, and `--doctor` reports them. Its Agent Session Search indexes every agent chat on the machine and is on by default (Settings > Session History).
|
|
220
|
+
- **Windows:** with the all-off preset it sets `DO_NOT_TRACK=1` and `ORCA_TELEMETRY_DISABLED=1` in your user env (only if unset), and behind a proxy it adds `localhost`, `127.0.0.1` and `::1` to `NO_PROXY` so Orca's status hooks reach the app. With Git Bash it adds a marked `~/.bashrc` block (the Cursor `agent` aliases, and the same `NO_PROXY` entries). `--uninstall` removes only what it added.
|
|
221
|
+
- After an install it prints a "Still needed from you" list (Cursor login, User Rules, Orca's **Install CLI & Skills** and first launch); `--doctor` shows the same list with what is done.
|
|
222
|
+
- `--uninstall` removes what it added. With the all-off network preset it prints the telemetry switches (Warp `telemetry_enabled = false`, Orca `DO_NOT_TRACK=1`) and never edits the apps' settings.
|
|
223
|
+
|
|
224
|
+
Sources and unverified GUI facts: [docs/compatibility.md](docs/compatibility.md#terminals).
|
|
225
|
+
|
|
226
|
+
</details>
|
|
227
|
+
|
|
228
|
+
## Signed-in browser (opt-in)
|
|
229
|
+
|
|
230
|
+
<details>
|
|
231
|
+
<summary>How the signed-in browser works</summary>
|
|
232
|
+
|
|
233
|
+
The default `playwright` MCP opens a fresh headless browser, which fails on pages behind single sign-on. `--tools playwright-extension` adds `@playwright/mcp --extension` instead. It attaches to your own signed-in Chrome or Edge through the [Playwright Extension](https://chromewebstore.google.com/detail/playwright-extension/mmlmfjhmonkocbjadbfplnigmagldckm).
|
|
234
|
+
|
|
235
|
+
- Install the extension yourself. Extensions cannot be installed silently without an admin policy.
|
|
236
|
+
- Each session asks you to approve the connection. Auto-approve with a token is optional: see [docs/browser-extension.md](docs/browser-extension.md). The installer never asks for, stores or prints the token.
|
|
237
|
+
- Works with OpenCode, Copilot CLI, VS Code Copilot and Cursor. Claude Code and Claude Desktop use Claude in Chrome instead.
|
|
238
|
+
|
|
239
|
+
</details>
|
|
240
|
+
|
|
241
|
+
## VS Code Copilot and Cursor
|
|
242
|
+
|
|
243
|
+
<details>
|
|
244
|
+
<summary>What lands in VS Code Copilot and Cursor</summary>
|
|
245
|
+
|
|
246
|
+
lean-agents sets up the Copilot chat in VS Code and Cursor (the editor and its `agent` CLI) like the other agents:
|
|
247
|
+
|
|
248
|
+
- **VS Code Copilot:** rules in `~/.copilot/copilot-instructions.md`, subagents in `~/.copilot/agents/`, MCP servers in your VS Code user `mcp.json`, and skills. Copilot CLI reads the same `~/.copilot` files, so with both they are written once.
|
|
249
|
+
- **Cursor:** subagents in `~/.cursor/agents/`, MCP servers in `~/.cursor/mcp.json`, the RTK hook and skills. Cursor keeps user rules in its settings screen, not in a file, so lean-agents cannot write them. Use team mode below to give Cursor the rules through the repo's `AGENTS.md`.
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run --agents vscode-copilot,cursor
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
```powershell
|
|
256
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun -Agents vscode-copilot,cursor
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
Drop `--dry-run` (`-DryRun`) to apply. `--uninstall` removes it all again.
|
|
260
|
+
|
|
261
|
+
</details>
|
|
262
|
+
|
|
263
|
+
## Team mode (`--project`)
|
|
264
|
+
|
|
265
|
+
<details>
|
|
266
|
+
<summary>Files written and commands</summary>
|
|
267
|
+
|
|
268
|
+
Puts the shared setup into one repository, so everyone on the team gets it with `git pull`:
|
|
269
|
+
|
|
270
|
+
| File | What it does |
|
|
271
|
+
| --- | --- |
|
|
272
|
+
| `AGENTS.md` | The rules, in a marked block; your own text stays |
|
|
273
|
+
| `.github/copilot-instructions.md`, `.cursor/rules/lean-agents.mdc` | One line pointing to `AGENTS.md`, so rules load once |
|
|
274
|
+
| `.github/agents/*.agent.md`, `.cursor/agents/*.md` | Tiered subagents for VS Code Copilot and Cursor |
|
|
275
|
+
| `.vscode/mcp.json`, `.cursor/mcp.json` | Context Mode, plus Serena and Playwright if you pick them |
|
|
276
|
+
|
|
277
|
+
Run it from the repository root, check the plan, apply, and commit:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --project . --dry-run --tools serena --yes
|
|
281
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --project . --tools serena
|
|
282
|
+
git add AGENTS.md .github .vscode .cursor && git commit -m "chore: add lean-agents team setup"
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
On Windows:
|
|
286
|
+
|
|
287
|
+
```powershell
|
|
288
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -Project . -DryRun -Tools serena -Yes
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
- Later, `--project . --update` re-applies your saved choices, and `--project . --uninstall` removes only what lean-agents added.
|
|
292
|
+
- Team mode writes files only. Each teammate still runs the installer once for the tools the rules mention (RTK, Context Mode and the rest).
|
|
293
|
+
- Each teammate's state stays in their own home folder, never in the repo.
|
|
294
|
+
|
|
295
|
+
</details>
|
|
296
|
+
|
|
297
|
+
## Migrate from another tool (`--migrate`)
|
|
298
|
+
|
|
299
|
+
<details>
|
|
300
|
+
<summary>What is copied and what is not</summary>
|
|
301
|
+
|
|
302
|
+
Copies the setup you already have in one tool to the agents you pick (`--agents`), for your user or, with `--project`, inside a repository. Sources: `claude`, `vscode-copilot`, `cursor`, `copilot-cli`, `opencode-v1`, `opencode-v2`, `antigravity` (user scope only), or `auto` (every one found). Paths and upstream sources: [compatibility notes](docs/compatibility.md).
|
|
303
|
+
|
|
304
|
+
| Item | What happens |
|
|
305
|
+
| --- | --- |
|
|
306
|
+
| Rules, subagents, skills, prompts | Copied to the target's folders. Nothing is moved or overwritten: a name that already exists is skipped and listed |
|
|
307
|
+
| MCP servers | Command, arguments and URL are copied. Env and header values never are: only the variable names, with a line telling you to set them |
|
|
308
|
+
| Hooks | Listed only. Formats differ, so you copy them by hand |
|
|
309
|
+
|
|
310
|
+
Preview first, then drop `--dry-run` to apply:
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --migrate auto --agents claude --dry-run
|
|
314
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --migrate vscode-copilot --project . --agents claude,opencode-v2 --dry-run
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
On Windows:
|
|
318
|
+
|
|
319
|
+
```powershell
|
|
320
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -Migrate auto -Agents claude -DryRun
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
- The dry run prints a table: item, source, target, and whether it was migrated, skipped or only reported.
|
|
324
|
+
- `--uninstall` removes only what the migration wrote.
|
|
325
|
+
- Claude Code user-scope MCP servers go through `claude mcp add`, so `~/.claude.json` is never edited.
|
|
326
|
+
|
|
327
|
+
</details>
|
|
328
|
+
|
|
329
|
+
## Parallel agent sessions
|
|
330
|
+
|
|
331
|
+
<details>
|
|
332
|
+
<summary>Commands and model tiers</summary>
|
|
333
|
+
|
|
334
|
+
One agent per task, each in its own git worktree, merged one at a time. Orca is used when installed, plain `git worktree` otherwise. Each task picks a model tier (`role: plan|build|explore|research` in its prompt file: strong, balanced, cheap), mapped through the model profiles.
|
|
335
|
+
|
|
336
|
+
```bash
|
|
337
|
+
node scripts/parallel.mjs start api.md ui.md # from inside your repo
|
|
338
|
+
node scripts/parallel.mjs status
|
|
339
|
+
node scripts/parallel.mjs merge api --yes # in start order
|
|
340
|
+
node scripts/parallel.mjs clean
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
Playbook: `skills/parallel-sessions`. Details: [docs/parallel-sessions.md](docs/parallel-sessions.md).
|
|
344
|
+
|
|
345
|
+
</details>
|
|
346
|
+
|
|
347
|
+
## Claude through GitHub Copilot
|
|
348
|
+
|
|
349
|
+
If your company pays for GitHub Copilot, the official way to use Claude as an agent is the **Claude coding agent**, a Copilot partner agent that an admin turns on. lean-agents installs nothing for it, because it is a policy switch, not a package. Tools that reuse a Copilot token to run the Claude Code CLI are not official and not supported. Steps and admin settings: [docs/claude-with-copilot.md](docs/claude-with-copilot.md).
|
|
350
|
+
|
|
351
|
+
## Install tiers
|
|
352
|
+
|
|
353
|
+
| Tier | What | Default |
|
|
354
|
+
| --- | --- | --- |
|
|
355
|
+
| Minimal | Rules, tiered subagents, compaction, output limits, RTK, Context Mode | Always; `--no-core` (`-NoCore` in PowerShell) leaves out RTK and Context Mode |
|
|
356
|
+
| Optional tools | Serena, Playwright, Ponytail, Caveman, i-have-adhd, DCP (OpenCode 1.x, AGPL-3.0), Codeburn, Copilot usage (credits left in the OpenCode sidebar and the Claude Code status line, read with `gh`; `lean-agents --usage` prints them) | Asked one by one |
|
|
357
|
+
| Opt-in tools | GSD Core, AutoSkills (CC BY-NC 4.0: non-commercial use only), the `coordinate` skill (coordinator playbook, session prompt and worker watcher: [docs/agent-workflow.md](docs/agent-workflow.md)) | Asked one by one, never in `--all-tools` |
|
|
358
|
+
| Strict privacy | No telemetry, no auto-updates, no session sharing, no providers that train on your prompts | Off, opt in with `--privacy strict` |
|
|
359
|
+
| Network preset | All off (work PC), all on, or per category: telemetry, auto-updates, other outbound calls. Off sets switches only: install downloads and chosen tools are not blocked ([privacy.md](docs/privacy.md#what-each-preset-does-not-block)) | All on; `--network off` (same as `--privacy strict`) or `--telemetry`, `--auto-update`, `--outbound` |
|
|
360
|
+
| GitHub CLI (`gh`) | Installed with brew or winget at user scope; you run `gh auth login` | On when missing; `--no-gh` (`-NoGh` in PowerShell) skips it |
|
|
361
|
+
| Bun (for Context Mode) | Faster `ctx_execute` JavaScript and TypeScript; see below | On; `--no-bun` (`-NoBun` in PowerShell) |
|
|
362
|
+
|
|
363
|
+
**Bun details.**
|
|
364
|
+
|
|
365
|
+
- Linux: the pinned release zip into `~/.bun`, SHA256 checked before it is extracted, no shell-profile edit. macOS: `brew install oven-sh/bun/bun`. Windows: the same pinned zip (user PATH, no admin).
|
|
366
|
+
- A Bun you already have is reused and never removed. If the install fails, Context Mode runs on Node.
|
|
367
|
+
- With telemetry off, `~/.bunfig.toml` gets a marked `telemetry = false` block. `--uninstall` removes only what lean-agents installed.
|
|
368
|
+
|
|
369
|
+
## On a work PC: proxy, network and security review
|
|
370
|
+
|
|
371
|
+
<details>
|
|
372
|
+
<summary>Proxy, network presets and unverified settings</summary>
|
|
373
|
+
|
|
374
|
+
1. **Review first.** Paste the prompt from [docs/SECURITY-REVIEW.md](docs/SECURITY-REVIEW.md) into your agent. It lists every file, command, host and tool, checks them against the code, and asks for your company's IT or proxy pages when it cannot read them itself.
|
|
375
|
+
2. **Set your proxy in your own shell** before you run the installer, in either letter case:
|
|
376
|
+
```bash
|
|
377
|
+
export HTTPS_PROXY=http://proxy.example:8080 NO_PROXY=localhost,127.0.0.1
|
|
378
|
+
export NODE_EXTRA_CA_CERTS=/path/to/company-ca.pem # if your company inspects TLS
|
|
379
|
+
```
|
|
380
|
+
The installer passes both cases to every command it runs (brew and git read lowercase, uv uppercase) and shows them in `--dry-run` and `--doctor` with any password replaced by `***`. It never writes them to disk. Which CA variable each tool reads: [docs/compatibility.md](docs/compatibility.md#proxy-and-corporate-ca).
|
|
381
|
+
3. **Pick a network preset.** The installer asks: **all off** (enterprise PC), **all on** (personal PC) or **per category**. For scripted runs:
|
|
382
|
+
```bash
|
|
383
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run --network off # everything off
|
|
384
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --yes --network off --auto-update on # off, but keep auto-updates
|
|
385
|
+
```
|
|
386
|
+
The per-category flags are `--telemetry on|off`, `--auto-update on|off` and `--outbound on|off`. `--network off` is the same as `--privacy strict`. In PowerShell they pass as they are, for example `-DryRun --network off`. What each category turns off per agent: [docs/privacy.md](docs/privacy.md). The choice is saved and reused by `--update`.
|
|
387
|
+
4. **`gh`**: GitHub CLI is installed without admin rights when missing (`--no-gh` skips it); then run `gh auth login` yourself.
|
|
388
|
+
5. **Run-time fetches.** Besides install-time commands, agents download code each time they start an MCP server or use a skill. Every one is pinned to an exact version in [core/pins.json](core/pins.json) (Playwright MCP, Context Mode, Codeburn, AutoSkills, GSD Core, DCP, the Skills CLI and the skills Caveman, i-have-adhd and orca-cli), so nothing changes under you until you update. `--doctor` reports `changed` when the installed pins differ from that file. Not pinned yet: Serena (`git+https` source), RTK and `gh` (brew or winget), the Ponytail plugin and the Claude plugin marketplaces. Use `--no-core` to leave out RTK and Context Mode when your PC allows only specific tools.
|
|
389
|
+
|
|
390
|
+
In a real terminal the installer shows menus (arrow keys, space to toggle), a progress list and a summary. With `--yes`, a pipe or no terminal, it asks plain questions or none, as before.
|
|
391
|
+
|
|
392
|
+
**Settings upstream does not document** (Antigravity telemetry and auto-updates, Serena's config, winget's persistent proxy, download hosts, DCP, GSD and AutoSkills telemetry): lean-agents never guesses them.
|
|
393
|
+
|
|
394
|
+
- In a real terminal it asks per item: **paste your docs or IT notes** (one line, or a path to a file) or **keep the tool's default**.
|
|
395
|
+
- Notes are saved, with any proxy password hidden, to `~/.config/lean-agents/notes/<item>.md` and never applied automatically: ask your agent to apply them and show you each change first.
|
|
396
|
+
- If another agent already set the tool up, the question is skipped and lean-agents adds no notes for it.
|
|
397
|
+
- `--yes` always keeps the default.
|
|
398
|
+
|
|
399
|
+
</details>
|
|
400
|
+
|
|
401
|
+
## Models that stay current
|
|
402
|
+
|
|
403
|
+
Subagents ask for a tier (`fast`, `balanced`, `strong`), not a model ID. Claude Code maps tiers to the `haiku`, `sonnet` and `opus` aliases, which always point to the newest models. Other agents use dated [profiles](profiles/) per subscription, and the `update-models` skill refreshes them with your approval.
|
|
404
|
+
|
|
405
|
+
## Safety
|
|
406
|
+
|
|
407
|
+
- Backs up every file before touching it. `--uninstall` restores them.
|
|
408
|
+
- Never overwrites your `AGENTS.md` or `CLAUDE.md`: it imports or appends a marked block.
|
|
409
|
+
- Never asks for, stores or prints API keys. You log in to providers yourself.
|
|
410
|
+
- No admin rights needed, so it works on locked-down work laptops.
|
|
411
|
+
- Reviewable before install: [docs/SECURITY-REVIEW.md](docs/SECURITY-REVIEW.md) is a prompt your agent runs on this repo.
|
|
412
|
+
|
|
413
|
+
## Credits
|
|
414
|
+
|
|
415
|
+
lean-agents is glue. The heavy lifting is done by these projects; please star them too:
|
|
416
|
+
|
|
417
|
+
- [RTK](https://github.com/rtk-ai/rtk)
|
|
418
|
+
- [Context Mode](https://github.com/mksglu/context-mode)
|
|
419
|
+
- [Serena](https://github.com/oraios/serena)
|
|
420
|
+
- [Playwright MCP](https://github.com/microsoft/playwright-mcp)
|
|
421
|
+
- [Ponytail](https://github.com/DietrichGebert/ponytail)
|
|
422
|
+
- [Caveman](https://github.com/juliusbrussee/caveman)
|
|
423
|
+
- [i-have-adhd](https://github.com/ayghri/i-have-adhd)
|
|
424
|
+
- [OpenCode DCP](https://github.com/Opencode-DCP/opencode-dynamic-context-pruning)
|
|
425
|
+
- [GSD Core](https://github.com/open-gsd/gsd-core)
|
|
426
|
+
- [andrej-karpathy-skills](https://github.com/multica-ai/andrej-karpathy-skills)
|
|
427
|
+
- [Codeburn](https://github.com/getagentseal/codeburn)
|
|
428
|
+
- [AutoSkills](https://github.com/midudev/autoskills)
|
|
429
|
+
- [Skills CLI](https://vercel.com/changelog/introducing-skills-the-open-agent-skills-ecosystem)
|
|
430
|
+
|
|
431
|
+
## Roadmap
|
|
432
|
+
|
|
433
|
+
- [x] Spec, rules and subagent definitions
|
|
434
|
+
- [x] Installer for Claude Code and OpenCode 2.x (macOS, Linux)
|
|
435
|
+
- [x] Windows installer and OpenCode 1.x
|
|
436
|
+
- [x] Copilot CLI, Antigravity CLI, Codeburn, AutoSkills, GSD, original skills, model profiles
|
|
437
|
+
- [x] VS Code Copilot, Cursor, team mode (`--project`), Claude through Copilot
|
|
438
|
+
- [x] Parallel agent sessions (`scripts/parallel.mjs`)
|
|
439
|
+
- [x] Warp and Orca agent integrations for users who already have them
|
|
440
|
+
- [x] Antigravity app and CLI on macOS, Linux and Windows (app loading stays VERIFY)
|
|
441
|
+
- [x] `v0.6.0` (includes the planned 0.5.1): fixes from real Windows installs behind a proxy, `--no-core`, pinned MCP and skill versions, migrate from another harness, install with an agent; Node.js 22.20 or newer
|
|
442
|
+
- [ ] Next release (on hold): use-case GIFs, update from verified pins, installable CLI on npm
|
|
443
|
+
- [ ] `v1.0.0`
|
|
444
|
+
- Later: Codex CLI, Gemini CLI
|
|
445
|
+
|
|
446
|
+
Details and linked issues: [docs/ROADMAP.md](docs/ROADMAP.md).
|
|
447
|
+
|
|
448
|
+
## Contributing
|
|
449
|
+
|
|
450
|
+
Issues and PRs are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) first; every PR runs a secret and privacy scan.
|
|
451
|
+
|
|
452
|
+
## License
|
|
453
|
+
|
|
454
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Reglas globales
|
|
2
|
+
|
|
3
|
+
{{LANG_RULE}} Estas reglas aplican a todos los proyectos; las de cada proyecto mandan si chocan.
|
|
4
|
+
|
|
5
|
+
## 1. Explicar bien
|
|
6
|
+
|
|
7
|
+
- Empieza por la respuesta o la decisión. Agrega solo el contexto necesario.
|
|
8
|
+
- Estructura escaneable: títulos cortos, listas, pasos numerados, una idea por punto.
|
|
9
|
+
- Frases completas y concretas. Nada de relleno, disculpas ni repetir la pregunta.
|
|
10
|
+
- Explica el porqué de cada decisión no obvia en una línea.
|
|
11
|
+
- Si algo es incierto, dilo y di cómo lo verificarías. No inventes APIs, flags ni versiones.
|
|
12
|
+
- Cuando muestres un cambio, di qué cambió, dónde (`archivo:línea`) y cómo verificarlo.
|
|
13
|
+
- Estilo comprimido (Caveman) solo cuando se pida o la respuesta sea trivial. Nunca para depuración, seguridad ni explicaciones complejas.
|
|
14
|
+
|
|
15
|
+
## 2. Pensar antes de programar
|
|
16
|
+
|
|
17
|
+
- No asumas en silencio. Escribe tus supuestos.
|
|
18
|
+
- Si el pedido se puede leer de varias formas, enuméralas y elige la más probable, o pregunta si equivocarse es caro.
|
|
19
|
+
- Si existe un camino más simple que el pedido, dilo antes de hacerlo.
|
|
20
|
+
- Nombra lo que no esté claro.
|
|
21
|
+
|
|
22
|
+
## 3. Simplicidad primero
|
|
23
|
+
|
|
24
|
+
- El código mínimo que resuelve el problema. Nada de features no pedidas, abstracciones de un solo uso ni configuración especulativa.
|
|
25
|
+
- No manejes casos imposibles.
|
|
26
|
+
- Prueba: ¿un ingeniero senior diría que está sobrecomplicado? Entonces simplifica.
|
|
27
|
+
|
|
28
|
+
## 4. Cambios quirúrgicos
|
|
29
|
+
|
|
30
|
+
- Toca solo lo que la tarea requiere. No reformatees, no "mejores" código vecino, no refactorices lo que funciona.
|
|
31
|
+
- Sigue el estilo existente del archivo.
|
|
32
|
+
- Menciona el código muerto ajeno a la tarea; no lo borres.
|
|
33
|
+
- Borra solo lo que tu propio cambio dejó huérfano.
|
|
34
|
+
- Cada línea cambiada debe poder justificarse con el pedido.
|
|
35
|
+
|
|
36
|
+
## 5. Ejecución guiada por objetivos
|
|
37
|
+
|
|
38
|
+
- Convierte tareas vagas en criterios verificables (por ejemplo, un test que reproduce el bug y luego pasa).
|
|
39
|
+
- Para trabajo de varios pasos, un plan corto con una verificación por paso.
|
|
40
|
+
- No declares terminado sin verificar. Si no pudiste verificar, dilo.
|
|
41
|
+
|
|
42
|
+
## 6. Ahorro de tokens
|
|
43
|
+
|
|
44
|
+
- Lee lo mínimo: busca primero (grep{{SERENA_HINT}}) y abre solo las partes relevantes.
|
|
45
|
+
{{TOOL_RULES}}- No repitas en la respuesta contenido que ya está en archivos o en la conversación.
|
|
46
|
+
- Delega exploración y tareas acotadas a subagentes baratos (`explore`, `research`, `review`). El nivel fuerte solo para planear, arquitectura o bugs difíciles, y solo cuando se pida o se justifique.
|
|
47
|
+
- Subagentes en paralelo solo si no tocan los mismos archivos; si chocan, en secuencia.
|
|
48
|
+
- Cada subagente recibe objetivo, límites, archivos permitidos y formato de salida. Al final, un paso de `review`.
|
|
49
|
+
|
|
50
|
+
## 7. Seguridad
|
|
51
|
+
|
|
52
|
+
- Nunca leas, muestres, copies ni registres secretos (API keys, tokens, contraseñas, archivos de auth).
|
|
53
|
+
- Pide confirmación antes de algo irreversible: push, deploy, migraciones, borrados masivos, sobrescrituras.
|
|
54
|
+
- Respaldo antes de editar configuración del sistema o del usuario.
|
|
55
|
+
- No instales plugins, hooks ni MCPs nuevos sin revisión de seguridad explícita.
|
|
56
|
+
|
|
57
|
+
## 8. Reporte final
|
|
58
|
+
|
|
59
|
+
- Qué hice, qué verifiqué (comando o resultado), qué queda pendiente.
|
|
60
|
+
- Máximo una sugerencia de siguiente paso.
|
package/core/AGENTS.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Global rules
|
|
2
|
+
|
|
3
|
+
{{LANG_RULE}} These rules apply to every project; project rules win when they conflict.
|
|
4
|
+
|
|
5
|
+
## 1. Explain well
|
|
6
|
+
|
|
7
|
+
- Lead with the answer or the decision. Add only the context that is needed.
|
|
8
|
+
- Use skimmable structure: short headings, lists, numbered steps, one idea per point.
|
|
9
|
+
- Write complete, concrete sentences. No filler, apologies or restating the question.
|
|
10
|
+
- Explain the why of every non-obvious decision in one line.
|
|
11
|
+
- If something is uncertain, say so and say how you would verify it. Never invent APIs, flags or versions.
|
|
12
|
+
- When you show a change, say what changed, where (`file:line`) and how to verify it.
|
|
13
|
+
- Use compressed style (Caveman) only when asked or when the answer is trivial. Never for debugging, security or complex explanations.
|
|
14
|
+
|
|
15
|
+
## 2. Think before coding
|
|
16
|
+
|
|
17
|
+
- Do not assume silently. Write down your assumptions.
|
|
18
|
+
- If the request can be read several ways, list them and pick the most likely, or ask when a wrong guess is costly.
|
|
19
|
+
- If a simpler path than the one requested exists, say so before doing it.
|
|
20
|
+
- Name anything that is unclear.
|
|
21
|
+
|
|
22
|
+
## 3. Simplicity first
|
|
23
|
+
|
|
24
|
+
- Write the minimum code that solves the problem. No unrequested features, single-use abstractions or speculative configuration.
|
|
25
|
+
- Do not handle impossible cases.
|
|
26
|
+
- Test: would a senior engineer call this overcomplicated? Then simplify.
|
|
27
|
+
|
|
28
|
+
## 4. Surgical changes
|
|
29
|
+
|
|
30
|
+
- Touch only what the task needs. Do not reformat, "improve" neighboring code or refactor what works.
|
|
31
|
+
- Follow the existing style of the file.
|
|
32
|
+
- Mention unrelated dead code; do not delete it.
|
|
33
|
+
- Remove only what your own change left orphaned.
|
|
34
|
+
- Every changed line must trace back to the request.
|
|
35
|
+
|
|
36
|
+
## 5. Goal-driven execution
|
|
37
|
+
|
|
38
|
+
- Turn vague tasks into verifiable criteria (for example, a test that reproduces the bug and then passes).
|
|
39
|
+
- For multi-step work, write a short plan with one check per step.
|
|
40
|
+
- Never claim done without verifying. If you could not verify, say so.
|
|
41
|
+
|
|
42
|
+
## 6. Token efficiency
|
|
43
|
+
|
|
44
|
+
- Read the minimum: search first (grep{{SERENA_HINT}}) and open only the relevant parts.
|
|
45
|
+
{{TOOL_RULES}}- Do not repeat in your answer content that is already in files or in the conversation.
|
|
46
|
+
- Delegate exploration and bounded tasks to cheap subagents (`explore`, `research`, `review`). Use the strong tier only for planning, architecture or hard bugs, and only when asked or justified.
|
|
47
|
+
- Run subagents in parallel only when they do not touch the same files; otherwise run them in sequence.
|
|
48
|
+
- Give every subagent a goal, limits, allowed files and an output format. Finish with a `review` pass.
|
|
49
|
+
|
|
50
|
+
## 7. Safety
|
|
51
|
+
|
|
52
|
+
- Never read, print, copy or log secrets (API keys, tokens, passwords, auth files).
|
|
53
|
+
- Ask for confirmation before anything irreversible: push, deploy, migrations, mass deletes, overwrites.
|
|
54
|
+
- Back up before editing system or user configuration.
|
|
55
|
+
- Do not install new plugins, hooks or MCP servers without an explicit security review.
|
|
56
|
+
|
|
57
|
+
## 8. Final report
|
|
58
|
+
|
|
59
|
+
- What I did, what I verified (command or result), what is pending.
|
|
60
|
+
- At most one suggested next step.
|
package/core/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# core
|
|
2
|
+
|
|
3
|
+
The single source of truth. Adapters in `agents/` render these files into each agent's format.
|
|
4
|
+
|
|
5
|
+
- `AGENTS.md` / `AGENTS.es.md`: global rules. Placeholders (`{{LANG_RULE}}`, `{{SERENA_HINT}}`, `{{TOOL_RULES}}`) are filled at install time so the rules only mention tools you installed.
|
|
6
|
+
- `agents/`: neutral subagent definitions with a `tier` instead of a model ID.
|
|
7
|
+
- `mcp.json`: MCP servers rendered per agent.
|
|
8
|
+
- `tiers.json`: example tier mapping; real mappings live in `profiles/`.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: Reproduces, isolates and fixes hard bugs. Use when a failure is not obvious after a first look.
|
|
4
|
+
tier: strong
|
|
5
|
+
reasoning: high
|
|
6
|
+
access: read-write
|
|
7
|
+
---
|
|
8
|
+
You fix bugs with evidence.
|
|
9
|
+
|
|
10
|
+
1. Reproduce the failure with the smallest command or test. Show the output.
|
|
11
|
+
2. Form one hypothesis at a time and test it. Record what you ruled out.
|
|
12
|
+
3. Fix the root cause with the smallest change. Do not refactor around it.
|
|
13
|
+
4. Show the same check failing before and passing after.
|
|
14
|
+
5. Report the cause in one sentence, the fix as `path:line`, and the verification.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: explore
|
|
3
|
+
description: Fast read-only codebase search. Use to find files, symbols and call sites before reading code.
|
|
4
|
+
tier: fast
|
|
5
|
+
reasoning: low
|
|
6
|
+
access: read-only
|
|
7
|
+
---
|
|
8
|
+
You locate code. You never edit files.
|
|
9
|
+
|
|
10
|
+
- Search before reading: grep, glob and symbol tools first. Open only the lines you need.
|
|
11
|
+
- Return a list of `path:line` entries, each with a one-line summary of why it matters.
|
|
12
|
+
- Never paste whole files. Quote at most 10 lines when a snippet is essential.
|
|
13
|
+
- If the answer is not found, say what you searched and where it most likely lives.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planner
|
|
3
|
+
description: Plans features and architecture. Use only for multi-step or design-heavy work, or when the user asks for a plan.
|
|
4
|
+
tier: strong
|
|
5
|
+
reasoning: high
|
|
6
|
+
access: read-only
|
|
7
|
+
---
|
|
8
|
+
You plan. You never edit files.
|
|
9
|
+
|
|
10
|
+
- Restate the goal as verifiable success criteria.
|
|
11
|
+
- List assumptions and open questions first; propose the most likely answer for each.
|
|
12
|
+
- Give a short ordered plan. Each step names the files it touches, a check that proves it worked, and which subagent tier should do it.
|
|
13
|
+
- Point out a simpler alternative if one exists.
|
|
14
|
+
- Mark steps that can run in parallel (they must not touch the same files).
|