lean-agents 0.0.0-stage → 1.0.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/CHANGELOG.md +407 -0
- package/LICENSE +21 -0
- package/README.es.md +560 -0
- package/README.md +559 -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 +189 -0
- package/core/mcp.json +38 -0
- package/core/pins.json +39 -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 +30 -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/behavior-diff.sh +47 -0
- package/scripts/bump-pins.mjs +115 -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/ci-timing.mjs +61 -0
- package/scripts/copilot-context-mode.mjs +33 -0
- package/scripts/labels.sh +56 -0
- package/scripts/lean.mjs +1319 -0
- package/scripts/lib/adapters/antigravity.mjs +83 -0
- package/scripts/lib/adapters/claude.mjs +127 -0
- package/scripts/lib/adapters/copilot-cli.mjs +82 -0
- package/scripts/lib/adapters/cursor.mjs +60 -0
- package/scripts/lib/adapters/opencode-v1.mjs +79 -0
- package/scripts/lib/adapters/opencode-v2.mjs +216 -0
- package/scripts/lib/adapters/vscode-copilot.mjs +56 -0
- package/scripts/lib/adhd.mjs +28 -0
- package/scripts/lib/adopt.mjs +619 -0
- package/scripts/lib/agent-lifecycle.mjs +280 -0
- package/scripts/lib/backup-stamp.mjs +25 -0
- package/scripts/lib/copilot-usage.mjs +49 -0
- package/scripts/lib/doctor.mjs +279 -0
- package/scripts/lib/feedback.mjs +48 -0
- package/scripts/lib/fsops.mjs +319 -0
- package/scripts/lib/gsd.mjs +42 -0
- package/scripts/lib/inventory.mjs +196 -0
- package/scripts/lib/lean-update.mjs +30 -0
- package/scripts/lib/logins.mjs +28 -0
- package/scripts/lib/migrate.mjs +407 -0
- package/scripts/lib/network.mjs +119 -0
- package/scripts/lib/node-runtime.mjs +85 -0
- package/scripts/lib/opencode-backup.mjs +204 -0
- package/scripts/lib/opencode-upgrade.mjs +441 -0
- package/scripts/lib/opencode1.mjs +203 -0
- package/scripts/lib/parallel.mjs +270 -0
- package/scripts/lib/pins-diff.mjs +33 -0
- package/scripts/lib/pins.mjs +52 -0
- package/scripts/lib/plugin-health.mjs +191 -0
- package/scripts/lib/prereqs.mjs +203 -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/shell-path.mjs +22 -0
- package/scripts/lib/summary-data.mjs +30 -0
- package/scripts/lib/summary-html.mjs +159 -0
- package/scripts/lib/system.mjs +269 -0
- package/scripts/lib/terminals.mjs +316 -0
- package/scripts/lib/ui.mjs +34 -0
- package/scripts/lib/unverified.mjs +49 -0
- package/scripts/lib/update-plan.mjs +60 -0
- package/scripts/lib/upgrade.mjs +231 -0
- package/scripts/lib/verify-commit.mjs +16 -0
- package/scripts/lib/verify-prompt.mjs +46 -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 +66 -0
- package/scripts/release.mjs +71 -0
- package/scripts/verify-pins.mjs +36 -0
- package/scripts/version-watch.mjs +124 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# sister ANSI [](https://www.npmjs.com/package/sisteransi) [](https://travis-ci.org/terkelg/sisteransi) [](https://www.npmjs.com/package/sisteransi)
|
|
2
|
+
|
|
3
|
+
> Ansi escape codes faster than you can say "[Bam bam](https://www.youtube.com/watch?v=OcaPu9JPenU)".
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install sisteransi
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const ansi = require('sisteransi');
|
|
16
|
+
// or const { cursor } = require('sisteransi');
|
|
17
|
+
|
|
18
|
+
const p = str => process.stdout.write(str);
|
|
19
|
+
|
|
20
|
+
// move cursor to 2, 1
|
|
21
|
+
p(ansi.cursor.to(2, 1));
|
|
22
|
+
|
|
23
|
+
// to up, one down
|
|
24
|
+
p(ansi.cursor.up(2)+ansi.cursor.down(1));
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## API
|
|
28
|
+
|
|
29
|
+
### cursor
|
|
30
|
+
|
|
31
|
+
#### to(x, y)
|
|
32
|
+
Set the absolute position of the cursor. `x0` `y0` is the top left of the screen.
|
|
33
|
+
|
|
34
|
+
#### move(x, y)
|
|
35
|
+
Set the position of the cursor relative to its current position.
|
|
36
|
+
|
|
37
|
+
#### up(count = 1)
|
|
38
|
+
Move cursor up a specific amount of rows. Default is `1`.
|
|
39
|
+
|
|
40
|
+
#### down(count = 1)
|
|
41
|
+
Move cursor down a specific amount of rows. Default is `1`.
|
|
42
|
+
|
|
43
|
+
#### forward(count = 1)
|
|
44
|
+
Move cursor forward a specific amount of rows. Default is `1`.
|
|
45
|
+
|
|
46
|
+
#### backward(count = 1)
|
|
47
|
+
Move cursor backward a specific amount of rows. Default is `1`.
|
|
48
|
+
|
|
49
|
+
#### nextLine(count = 1)
|
|
50
|
+
Move cursor to the next line a specific amount of lines. Default is `1`.
|
|
51
|
+
|
|
52
|
+
#### prevLine(count = 1)
|
|
53
|
+
Move cursor to the previous a specific amount of lines. Default is `1`.
|
|
54
|
+
|
|
55
|
+
#### left
|
|
56
|
+
Move cursor to the left side.
|
|
57
|
+
|
|
58
|
+
#### hide
|
|
59
|
+
Hide cursor.
|
|
60
|
+
|
|
61
|
+
#### show
|
|
62
|
+
Show cursor.
|
|
63
|
+
|
|
64
|
+
#### save
|
|
65
|
+
|
|
66
|
+
Save cursor position.
|
|
67
|
+
|
|
68
|
+
#### restore
|
|
69
|
+
|
|
70
|
+
Restore cursor position.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### scroll
|
|
74
|
+
|
|
75
|
+
#### up(count = 1)
|
|
76
|
+
Scroll display up a specific amount of lines. Default to `1`.
|
|
77
|
+
|
|
78
|
+
#### down(count = 1)
|
|
79
|
+
Scroll display down a specific amount of lines. Default to `1`.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### erase
|
|
83
|
+
|
|
84
|
+
#### screen
|
|
85
|
+
Erase the screen and move the cursor the top left position.
|
|
86
|
+
|
|
87
|
+
#### up(count = 1)
|
|
88
|
+
Erase the screen from the current line up to the top of the screen. Default to `1`.
|
|
89
|
+
|
|
90
|
+
#### down(count = 2)
|
|
91
|
+
Erase the screen from the current line down to the bottom of the screen. Default to `1`.
|
|
92
|
+
|
|
93
|
+
#### line
|
|
94
|
+
Erase the entire current line.
|
|
95
|
+
|
|
96
|
+
#### lineEnd
|
|
97
|
+
Erase from the current cursor position to the end of the current line.
|
|
98
|
+
|
|
99
|
+
#### lineStart
|
|
100
|
+
Erase from the current cursor position to the start of the current line.
|
|
101
|
+
|
|
102
|
+
#### lines(count)
|
|
103
|
+
Erase from the current cursor position up the specified amount of rows.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## Credit
|
|
107
|
+
|
|
108
|
+
This is a fork of [ansi-escapes](https://github.com/sindresorhus/ansi-escapes).
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## License
|
|
112
|
+
|
|
113
|
+
MIT © [Terkel Gjervig](https://terkel.com)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ESC = '\x1B';
|
|
4
|
+
const CSI = `${ESC}[`;
|
|
5
|
+
const beep = '\u0007';
|
|
6
|
+
|
|
7
|
+
const cursor = {
|
|
8
|
+
to(x, y) {
|
|
9
|
+
if (!y) return `${CSI}${x + 1}G`;
|
|
10
|
+
return `${CSI}${y + 1};${x + 1}H`;
|
|
11
|
+
},
|
|
12
|
+
move(x, y) {
|
|
13
|
+
let ret = '';
|
|
14
|
+
|
|
15
|
+
if (x < 0) ret += `${CSI}${-x}D`;
|
|
16
|
+
else if (x > 0) ret += `${CSI}${x}C`;
|
|
17
|
+
|
|
18
|
+
if (y < 0) ret += `${CSI}${-y}A`;
|
|
19
|
+
else if (y > 0) ret += `${CSI}${y}B`;
|
|
20
|
+
|
|
21
|
+
return ret;
|
|
22
|
+
},
|
|
23
|
+
up: (count = 1) => `${CSI}${count}A`,
|
|
24
|
+
down: (count = 1) => `${CSI}${count}B`,
|
|
25
|
+
forward: (count = 1) => `${CSI}${count}C`,
|
|
26
|
+
backward: (count = 1) => `${CSI}${count}D`,
|
|
27
|
+
nextLine: (count = 1) => `${CSI}E`.repeat(count),
|
|
28
|
+
prevLine: (count = 1) => `${CSI}F`.repeat(count),
|
|
29
|
+
left: `${CSI}G`,
|
|
30
|
+
hide: `${CSI}?25l`,
|
|
31
|
+
show: `${CSI}?25h`,
|
|
32
|
+
save: `${ESC}7`,
|
|
33
|
+
restore: `${ESC}8`
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const scroll = {
|
|
37
|
+
up: (count = 1) => `${CSI}S`.repeat(count),
|
|
38
|
+
down: (count = 1) => `${CSI}T`.repeat(count)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const erase = {
|
|
42
|
+
screen: `${CSI}2J`,
|
|
43
|
+
up: (count = 1) => `${CSI}1J`.repeat(count),
|
|
44
|
+
down: (count = 1) => `${CSI}J`.repeat(count),
|
|
45
|
+
line: `${CSI}2K`,
|
|
46
|
+
lineEnd: `${CSI}K`,
|
|
47
|
+
lineStart: `${CSI}1K`,
|
|
48
|
+
lines(count) {
|
|
49
|
+
let clear = '';
|
|
50
|
+
for (let i = 0; i < count; i++)
|
|
51
|
+
clear += this.line + (i < count - 1 ? cursor.up() : '');
|
|
52
|
+
if (count)
|
|
53
|
+
clear += cursor.left;
|
|
54
|
+
return clear;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
module.exports = { cursor, scroll, erase, beep };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const beep: string;
|
|
2
|
+
export const clear: string;
|
|
3
|
+
|
|
4
|
+
export namespace cursor {
|
|
5
|
+
export const left: string;
|
|
6
|
+
export const hide: string;
|
|
7
|
+
export const show: string;
|
|
8
|
+
export const save: string;
|
|
9
|
+
export const restore: string;
|
|
10
|
+
|
|
11
|
+
export function to(x: number, y?: number): string;
|
|
12
|
+
export function move(x: number, y: number): string;
|
|
13
|
+
export function up(count?: number): string;
|
|
14
|
+
export function down(count?: number): string;
|
|
15
|
+
export function forward(count?: number): string;
|
|
16
|
+
export function backward(count?: number): string;
|
|
17
|
+
export function nextLine(count?: number): string;
|
|
18
|
+
export function prevLine(count?: number): string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export namespace scroll {
|
|
22
|
+
export function up(count?: number): string;
|
|
23
|
+
export function down(count?: number): string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace erase {
|
|
27
|
+
export const screen: string;
|
|
28
|
+
export const line: string;
|
|
29
|
+
export const lineEnd: string;
|
|
30
|
+
export const lineStart: string;
|
|
31
|
+
|
|
32
|
+
export function up(count?: number): string;
|
|
33
|
+
export function down(count?: number): string;
|
|
34
|
+
export function lines(count: number): string;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lean-agents",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Cross-agent, token-efficient AI coding setup.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/estebanmr99/lean-agents.git"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=22.20"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"lean-agents": "scripts/lean.mjs"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"scripts/",
|
|
19
|
+
"core/",
|
|
20
|
+
"profiles/",
|
|
21
|
+
"CHANGELOG.md"
|
|
22
|
+
],
|
|
23
|
+
"bundleDependencies": true,
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "node --test tests/*.test.mjs",
|
|
26
|
+
"check-private": "bash scripts/check-private.sh"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@clack/prompts": "1.8.1",
|
|
30
|
+
"jsonc-parser": "^3.3.1"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Model profiles
|
|
2
|
+
|
|
3
|
+
Dated templates that map tiers (`fast`, `balanced`, `strong`) to concrete models for one subscription or provider. The `update-models` skill keeps your local copy current. See [docs/SPEC.md section 9](../docs/SPEC.md#9-models-that-stay-current).
|
|
4
|
+
|
|
5
|
+
## Review notes
|
|
6
|
+
|
|
7
|
+
`node scripts/models-refresh.mjs` (monthly in CI) reports a newer model of the same family unless the profile already uses it or it produces other outputs (for example images). Check price and training terms before changing a profile.
|
|
8
|
+
|
|
9
|
+
- 2026-11-03, issue #6. `opencode-go` stays on `kimi-k3` (balanced) and `kimi-k3.1-pro` (strong). K3.1 Pro costs less per token ($2 / $10 per 1M input / output against $3 / $15), and OpenCode Go says neither is used for training ([opencode.ai/docs/go](https://opencode.ai/docs/go)). It is the deeper-reasoning tier, so it is kept for `strong` and the two tiers stay different. **VERIFY:** its speed and output-token use against K3.
|
|
10
|
+
- 2026-11-03, issue #6. `vertex-gemini` stays on `gemini-3.8-flash`: `gemini-nano-banana-2.1` outputs images and is not a coding model ([models.dev](https://models.dev/api.json)).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Maps GSD agents to tiers; lean-agents resolves each tier to this profile's model and writes model_overrides to ~/.gsd/defaults.json.",
|
|
3
|
+
"model_overrides": {
|
|
4
|
+
"gsd-planner": "strong",
|
|
5
|
+
"gsd-roadmapper": "strong",
|
|
6
|
+
"gsd-debugger": "strong",
|
|
7
|
+
"gsd-debug-session-manager": "strong",
|
|
8
|
+
"gsd-security-auditor": "strong",
|
|
9
|
+
"gsd-executor": "balanced",
|
|
10
|
+
"gsd-verifier": "balanced",
|
|
11
|
+
"gsd-advisor-researcher": "balanced",
|
|
12
|
+
"gsd-code-fixer": "balanced",
|
|
13
|
+
"gsd-code-reviewer": "balanced",
|
|
14
|
+
"gsd-phase-researcher": "fast",
|
|
15
|
+
"gsd-project-researcher": "fast",
|
|
16
|
+
"gsd-research-synthesizer": "fast",
|
|
17
|
+
"gsd-domain-researcher": "fast",
|
|
18
|
+
"gsd-ai-researcher": "fast",
|
|
19
|
+
"gsd-ui-researcher": "fast",
|
|
20
|
+
"gsd-plan-checker": "fast",
|
|
21
|
+
"gsd-integration-checker": "fast",
|
|
22
|
+
"gsd-ui-checker": "fast",
|
|
23
|
+
"gsd-codebase-mapper": "fast",
|
|
24
|
+
"gsd-pattern-mapper": "fast"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "anthropic-api",
|
|
3
|
+
"description": "OpenCode with an Anthropic API key or Claude login.",
|
|
4
|
+
"verified_on": "2026-10-31",
|
|
5
|
+
"agents": ["opencode-v2", "opencode-v1"],
|
|
6
|
+
"provider": "anthropic",
|
|
7
|
+
"tiers": {
|
|
8
|
+
"fast": { "model": "anthropic/claude-haiku-5-5" },
|
|
9
|
+
"balanced": { "model": "anthropic/claude-sonnet-5-5" },
|
|
10
|
+
"strong": { "model": "anthropic/claude-opus-5-5" }
|
|
11
|
+
},
|
|
12
|
+
"primary": {
|
|
13
|
+
"plan": "strong",
|
|
14
|
+
"build": "balanced"
|
|
15
|
+
},
|
|
16
|
+
"main_model": "anthropic/claude-sonnet-5-5",
|
|
17
|
+
"notes": "Confirm IDs with `opencode models anthropic`."
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "antigravity",
|
|
3
|
+
"description": "Antigravity CLI tiers. Subagents take flash, pro or inherit, not model IDs.",
|
|
4
|
+
"verified_on": "2026-10-30",
|
|
5
|
+
"agents": ["antigravity"],
|
|
6
|
+
"tiers": {
|
|
7
|
+
"fast": { "model": "flash" },
|
|
8
|
+
"balanced": { "model": "flash" },
|
|
9
|
+
"strong": { "model": "pro" }
|
|
10
|
+
},
|
|
11
|
+
"notes": "Set by the adapter; not a choice for --profile."
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Maps GSD agents to tiers; lean-agents resolves each tier to this profile's model and writes model_overrides to ~/.gsd/defaults.json.",
|
|
3
|
+
"model_overrides": {
|
|
4
|
+
"gsd-planner": "strong",
|
|
5
|
+
"gsd-roadmapper": "strong",
|
|
6
|
+
"gsd-debugger": "strong",
|
|
7
|
+
"gsd-debug-session-manager": "strong",
|
|
8
|
+
"gsd-security-auditor": "strong",
|
|
9
|
+
"gsd-executor": "balanced",
|
|
10
|
+
"gsd-verifier": "balanced",
|
|
11
|
+
"gsd-advisor-researcher": "balanced",
|
|
12
|
+
"gsd-code-fixer": "balanced",
|
|
13
|
+
"gsd-code-reviewer": "balanced",
|
|
14
|
+
"gsd-phase-researcher": "fast",
|
|
15
|
+
"gsd-project-researcher": "fast",
|
|
16
|
+
"gsd-research-synthesizer": "fast",
|
|
17
|
+
"gsd-domain-researcher": "fast",
|
|
18
|
+
"gsd-ai-researcher": "fast",
|
|
19
|
+
"gsd-ui-researcher": "fast",
|
|
20
|
+
"gsd-plan-checker": "fast",
|
|
21
|
+
"gsd-integration-checker": "fast",
|
|
22
|
+
"gsd-ui-checker": "fast",
|
|
23
|
+
"gsd-codebase-mapper": "fast",
|
|
24
|
+
"gsd-pattern-mapper": "fast"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claude-subscription",
|
|
3
|
+
"description": "Claude Code with a Claude Pro or Max plan. Uses aliases, so it always tracks the newest models.",
|
|
4
|
+
"verified_on": "2026-10-31",
|
|
5
|
+
"agents": ["claude"],
|
|
6
|
+
"tiers": {
|
|
7
|
+
"fast": { "model": "haiku" },
|
|
8
|
+
"balanced": { "model": "sonnet" },
|
|
9
|
+
"strong": { "model": "opus" }
|
|
10
|
+
},
|
|
11
|
+
"overrides": {
|
|
12
|
+
"review": "fast",
|
|
13
|
+
"debug": "balanced"
|
|
14
|
+
},
|
|
15
|
+
"main_model": "sonnet",
|
|
16
|
+
"notes": "Opus is for planning and hard problems only. Pro plans hit Opus limits quickly."
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Maps GSD agents to tiers; lean-agents resolves each tier to this profile's model and writes model_overrides to ~/.gsd/defaults.json.",
|
|
3
|
+
"model_overrides": {
|
|
4
|
+
"gsd-planner": "strong",
|
|
5
|
+
"gsd-roadmapper": "strong",
|
|
6
|
+
"gsd-debugger": "strong",
|
|
7
|
+
"gsd-debug-session-manager": "strong",
|
|
8
|
+
"gsd-security-auditor": "strong",
|
|
9
|
+
"gsd-executor": "balanced",
|
|
10
|
+
"gsd-verifier": "balanced",
|
|
11
|
+
"gsd-advisor-researcher": "balanced",
|
|
12
|
+
"gsd-code-fixer": "balanced",
|
|
13
|
+
"gsd-code-reviewer": "balanced",
|
|
14
|
+
"gsd-phase-researcher": "fast",
|
|
15
|
+
"gsd-project-researcher": "fast",
|
|
16
|
+
"gsd-research-synthesizer": "fast",
|
|
17
|
+
"gsd-domain-researcher": "fast",
|
|
18
|
+
"gsd-ai-researcher": "fast",
|
|
19
|
+
"gsd-ui-researcher": "fast",
|
|
20
|
+
"gsd-plan-checker": "fast",
|
|
21
|
+
"gsd-integration-checker": "fast",
|
|
22
|
+
"gsd-ui-checker": "fast",
|
|
23
|
+
"gsd-codebase-mapper": "fast",
|
|
24
|
+
"gsd-pattern-mapper": "fast"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "github-copilot",
|
|
3
|
+
"description": "GitHub Copilot subscription, in Copilot CLI or in OpenCode through /connect.",
|
|
4
|
+
"verified_on": "2026-10-30",
|
|
5
|
+
"agents": ["copilot-cli", "opencode-v2", "opencode-v1"],
|
|
6
|
+
"provider": "github-copilot",
|
|
7
|
+
"tiers": {
|
|
8
|
+
"fast": { "model": "github-copilot/claude-haiku-5.5" },
|
|
9
|
+
"balanced": { "model": "github-copilot/claude-sonnet-5.5" },
|
|
10
|
+
"strong": { "model": "github-copilot/claude-opus-5.5" }
|
|
11
|
+
},
|
|
12
|
+
"primary": {
|
|
13
|
+
"plan": "strong", "build": "balanced"
|
|
14
|
+
},
|
|
15
|
+
"main_model": "github-copilot/claude-sonnet-5.5",
|
|
16
|
+
"notes": "Copilot CLI uses the IDs without the github-copilot/ prefix. Copilot bills by usage since 2026-06-01, so check current rates. Your plan or organization may hide some models; the update-models skill lists what you can use."
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Maps GSD agents to tiers; lean-agents resolves each tier to this profile's model and writes model_overrides to ~/.gsd/defaults.json.",
|
|
3
|
+
"model_overrides": {
|
|
4
|
+
"gsd-planner": "strong",
|
|
5
|
+
"gsd-roadmapper": "strong",
|
|
6
|
+
"gsd-debugger": "strong",
|
|
7
|
+
"gsd-debug-session-manager": "strong",
|
|
8
|
+
"gsd-security-auditor": "strong",
|
|
9
|
+
"gsd-executor": "balanced",
|
|
10
|
+
"gsd-verifier": "balanced",
|
|
11
|
+
"gsd-advisor-researcher": "balanced",
|
|
12
|
+
"gsd-code-fixer": "balanced",
|
|
13
|
+
"gsd-code-reviewer": "balanced",
|
|
14
|
+
"gsd-phase-researcher": "fast",
|
|
15
|
+
"gsd-project-researcher": "fast",
|
|
16
|
+
"gsd-research-synthesizer": "fast",
|
|
17
|
+
"gsd-domain-researcher": "fast",
|
|
18
|
+
"gsd-ai-researcher": "fast",
|
|
19
|
+
"gsd-ui-researcher": "fast",
|
|
20
|
+
"gsd-plan-checker": "fast",
|
|
21
|
+
"gsd-integration-checker": "fast",
|
|
22
|
+
"gsd-ui-checker": "fast",
|
|
23
|
+
"gsd-codebase-mapper": "fast",
|
|
24
|
+
"gsd-pattern-mapper": "fast"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "openai-api",
|
|
3
|
+
"description": "OpenCode with an OpenAI API key.",
|
|
4
|
+
"verified_on": "2026-10-30",
|
|
5
|
+
"agents": ["opencode-v2", "opencode-v1"],
|
|
6
|
+
"provider": "openai",
|
|
7
|
+
"tiers": {
|
|
8
|
+
"fast": { "model": "openai/gpt-6-luna" },
|
|
9
|
+
"balanced": { "model": "openai/gpt-6.1-sol" },
|
|
10
|
+
"strong": { "model": "openai/gpt-6-astra" }
|
|
11
|
+
},
|
|
12
|
+
"primary": {
|
|
13
|
+
"plan": "strong", "build": "balanced"
|
|
14
|
+
},
|
|
15
|
+
"main_model": "openai/gpt-6.1-sol",
|
|
16
|
+
"notes": "Confirm IDs with `opencode models openai`."
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Maps GSD agents to tiers; lean-agents resolves each tier to this profile's model and writes model_overrides to ~/.gsd/defaults.json.",
|
|
3
|
+
"model_overrides": {
|
|
4
|
+
"gsd-planner": "strong",
|
|
5
|
+
"gsd-roadmapper": "strong",
|
|
6
|
+
"gsd-debugger": "strong",
|
|
7
|
+
"gsd-debug-session-manager": "strong",
|
|
8
|
+
"gsd-security-auditor": "strong",
|
|
9
|
+
"gsd-executor": "balanced",
|
|
10
|
+
"gsd-verifier": "balanced",
|
|
11
|
+
"gsd-advisor-researcher": "balanced",
|
|
12
|
+
"gsd-code-fixer": "balanced",
|
|
13
|
+
"gsd-code-reviewer": "balanced",
|
|
14
|
+
"gsd-phase-researcher": "fast",
|
|
15
|
+
"gsd-project-researcher": "fast",
|
|
16
|
+
"gsd-research-synthesizer": "fast",
|
|
17
|
+
"gsd-domain-researcher": "fast",
|
|
18
|
+
"gsd-ai-researcher": "fast",
|
|
19
|
+
"gsd-ui-researcher": "fast",
|
|
20
|
+
"gsd-plan-checker": "fast",
|
|
21
|
+
"gsd-integration-checker": "fast",
|
|
22
|
+
"gsd-ui-checker": "fast",
|
|
23
|
+
"gsd-codebase-mapper": "fast",
|
|
24
|
+
"gsd-pattern-mapper": "fast"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "opencode-go",
|
|
3
|
+
"description": "OpenCode Go subscription: low-cost open models, in OpenCode through /connect.",
|
|
4
|
+
"verified_on": "2026-10-30",
|
|
5
|
+
"agents": ["opencode-v2", "opencode-v1"],
|
|
6
|
+
"provider": "opencode-go",
|
|
7
|
+
"tiers": {
|
|
8
|
+
"fast": { "model": "opencode-go/glm-5.3-flash" },
|
|
9
|
+
"balanced": { "model": "opencode-go/kimi-k3" },
|
|
10
|
+
"strong": { "model": "opencode-go/kimi-k3.1-pro" }
|
|
11
|
+
},
|
|
12
|
+
"primary": {
|
|
13
|
+
"plan": "strong", "build": "balanced"
|
|
14
|
+
},
|
|
15
|
+
"main_model": "opencode-go/kimi-k3",
|
|
16
|
+
"notes": "Chosen models are not used for training per opencode.ai/docs/go. Avoid models named Contributor or Free: some train on your prompts. Confirm IDs with `opencode models opencode-go`."
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Maps GSD agents to tiers; lean-agents resolves each tier to this profile's model and writes model_overrides to ~/.gsd/defaults.json.",
|
|
3
|
+
"model_overrides": {
|
|
4
|
+
"gsd-planner": "strong",
|
|
5
|
+
"gsd-roadmapper": "strong",
|
|
6
|
+
"gsd-debugger": "strong",
|
|
7
|
+
"gsd-debug-session-manager": "strong",
|
|
8
|
+
"gsd-security-auditor": "strong",
|
|
9
|
+
"gsd-executor": "balanced",
|
|
10
|
+
"gsd-verifier": "balanced",
|
|
11
|
+
"gsd-advisor-researcher": "balanced",
|
|
12
|
+
"gsd-code-fixer": "balanced",
|
|
13
|
+
"gsd-code-reviewer": "balanced",
|
|
14
|
+
"gsd-phase-researcher": "fast",
|
|
15
|
+
"gsd-project-researcher": "fast",
|
|
16
|
+
"gsd-research-synthesizer": "fast",
|
|
17
|
+
"gsd-domain-researcher": "fast",
|
|
18
|
+
"gsd-ai-researcher": "fast",
|
|
19
|
+
"gsd-ui-researcher": "fast",
|
|
20
|
+
"gsd-plan-checker": "fast",
|
|
21
|
+
"gsd-integration-checker": "fast",
|
|
22
|
+
"gsd-ui-checker": "fast",
|
|
23
|
+
"gsd-codebase-mapper": "fast",
|
|
24
|
+
"gsd-pattern-mapper": "fast"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vertex-gemini",
|
|
3
|
+
"description": "OpenCode with Gemini models on Google Vertex AI (good fit for Google Cloud credits).",
|
|
4
|
+
"verified_on": "2026-10-26",
|
|
5
|
+
"agents": ["opencode-v2", "opencode-v1"],
|
|
6
|
+
"provider": "google-vertex",
|
|
7
|
+
"tiers": {
|
|
8
|
+
"fast": { "model": "google-vertex/gemini-3.5-flash-lite" },
|
|
9
|
+
"balanced": { "model": "google-vertex/gemini-3.8-flash" },
|
|
10
|
+
"strong": { "model": "google-vertex/gemini-4-argon", "options": { "reasoningEffort": "high" } }
|
|
11
|
+
},
|
|
12
|
+
"primary": {
|
|
13
|
+
"plan": "strong",
|
|
14
|
+
"build": "balanced"
|
|
15
|
+
},
|
|
16
|
+
"main_model": "google-vertex/gemini-3.8-flash",
|
|
17
|
+
"notes": "Requires GOOGLE_CLOUD_PROJECT and a Vertex location in your environment. Confirm IDs with `opencode models google-vertex`; the update-models skill refreshes them."
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Usage: adhd-skill.mjs on|off <home>. See scripts/lib/adhd.mjs for why this exists.
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import { adhdSkillFiles, setInvocable } from './lib/adhd.mjs';
|
|
5
|
+
|
|
6
|
+
const [mode, home] = process.argv.slice(2);
|
|
7
|
+
const files = adhdSkillFiles(home);
|
|
8
|
+
for (const f of files) fs.writeFileSync(f, setInvocable(fs.readFileSync(f, 'utf8'), mode === 'on'));
|
|
9
|
+
if (mode === 'on' && !files.length) {
|
|
10
|
+
console.error('i-have-adhd skill not found');
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Local behavior diff (#226): runs the same engine flows at a base ref and at the working tree, each in a throwaway
|
|
3
|
+
# HOME with --no-exec, and diffs the output and the files written (normalized: temp paths, times, hashes). Not a CI job; nothing touches the real HOME.
|
|
4
|
+
# bash scripts/behavior-diff.sh [base-ref] (default: origin/main; exit 1 when anything differs)
|
|
5
|
+
set -eu -o pipefail
|
|
6
|
+
base=${1:-origin/main}
|
|
7
|
+
root=$(cd "$(dirname "$0")/.." && pwd -P)
|
|
8
|
+
tmp=$(cd "$(mktemp -d)" && pwd -P) # -P: macOS /tmp is /private/tmp, and the engine prints real paths
|
|
9
|
+
trap 'git -C "$root" worktree remove --force "$tmp/base" >/dev/null 2>&1 || true; rm -rf "$tmp"' EXIT
|
|
10
|
+
git -C "$root" worktree add --detach -q "$tmp/base" "$base"
|
|
11
|
+
ln -s "$root/node_modules" "$tmp/base/node_modules"
|
|
12
|
+
|
|
13
|
+
# One flow per line: name|step;step;... Every step runs in the same HOME, in order.
|
|
14
|
+
FLOWS='dry-run|--yes --dry-run --agents claude,opencode-v2,copilot-cli,cursor --all-tools --lang en --profile none
|
|
15
|
+
install-doctor-uninstall|--yes --agents claude,opencode-v2 --all-tools --lang en --profile none;--doctor;--yes --uninstall
|
|
16
|
+
opencode1|--yes --agents opencode-v1 --tools dcp,ponytail --lang en --profile none;--doctor
|
|
17
|
+
update|--yes --agents claude --lang en --profile none;--update --yes --dry-run
|
|
18
|
+
adopt|--yes --agents claude,opencode-v2 --lang en --profile none;--adopt;--adopt --json
|
|
19
|
+
upgrade-dry-run|--upgrade-agent opencode --dry-run;--upgrade-agent opencode --dry-run --json
|
|
20
|
+
version|--version'
|
|
21
|
+
|
|
22
|
+
# Temp paths, timestamps and pids differ on every run: normalize them so only behavior shows. <home> <tree>
|
|
23
|
+
norm() {
|
|
24
|
+
sed -e "s#$1#~#g" -e "s#$2#ROOT#g" -e 's/[0-9]\{8\}T[0-9]\{6\}Z/STAMP/g' -e 's/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}T[0-9:.-]*Z/TIME/g' \
|
|
25
|
+
-e 's/[0-9a-f]\{64\}/SHA/g' -e 's/[0-9]\{13\}/MS/g' -e 's/(node:[0-9]*)/(node:PID)/g'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
run() { # <tree> <out dir>
|
|
29
|
+
mkdir -p "$2"
|
|
30
|
+
printf '%s\n' "$FLOWS" | while IFS='|' read -r name steps; do
|
|
31
|
+
home=$(mktemp -d "$tmp/home.XXXXXX")
|
|
32
|
+
printf '%s\n' "$steps" | tr ';' '\n' | while read -r step; do
|
|
33
|
+
echo "\$ lean $step"
|
|
34
|
+
# shellcheck disable=SC2086 # each step is a list of flags
|
|
35
|
+
(cd "$home" && HOME="$home" USERPROFILE="$home" node "$1/scripts/lean.mjs" --home "$home" --no-exec $step 2>&1) || echo "[exit $?]"
|
|
36
|
+
done | norm "$home" "$1" > "$2/$name.out"
|
|
37
|
+
# A normalized copy of every file written, so the diff shows changed lines, not only changed files.
|
|
38
|
+
(cd "$home" && find . -type f ! -path './.config/lean-agents/backups/*' | while read -r f; do
|
|
39
|
+
t="$2/$name.home/$(printf '%s' "$f" | norm "$home" "$1")"
|
|
40
|
+
mkdir -p "$(dirname "$t")" && norm "$home" "$1" < "$f" > "$t"
|
|
41
|
+
done)
|
|
42
|
+
done
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
run "$tmp/base" "$tmp/a"
|
|
46
|
+
run "$root" "$tmp/b"
|
|
47
|
+
if diff -ru "$tmp/a" "$tmp/b" | sed "s#$tmp/[ab]/##g"; then echo "no behavior change against $base"; else exit 1; fi
|