@givolt/i3-composer-agent 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,25 +11,60 @@ Based on [Agent Skills](https://github.com/addyosmani/agent-skills) by Addy Osma
11
11
  The npm package is `@givolt/i3-composer-agent`; the plugin and marketplace ID is
12
12
  `i3-composer-agent`. Skill IDs retain their upstream names.
13
13
 
14
- ## Prepare the complete plugin
14
+ ## Install with the wizard
15
15
 
16
- Run in the project where you want to prepare the plugin:
16
+ Run in the project where you want to use the skills:
17
17
 
18
18
  ```bash
19
+ npx @givolt/i3-composer-agent
20
+ # Preselect a tool; the wizard still allows multiple selections:
19
21
  npx @givolt/i3-composer-agent --codebuddy
20
- # Other hosts:
21
- npx @givolt/i3-composer-agent --codex
22
- npx @givolt/i3-composer-agent --claude
23
22
  ```
24
23
 
25
- The command prepares a persistent `./i3-composer-agent/` directory containing
26
- {{SKILL_COUNT}} skills, {{COMMAND_COUNT}} commands, {{PERSONA_COUNT}} personas,
27
- and shared references. It prints native registration commands; run those in
28
- the selected host to enable the plugin. Preparing files does not select a host
29
- installation scope. See [CodeBuddy setup](docs/codebuddy-setup.md) and
30
- [Codex setup](docs/codex-setup.md).
24
+ The interactive terminal wizard offers multiple tools, project or global scope,
25
+ an installation summary, and confirmation. Its 79 tool directory presets come
26
+ from the pinned [Vercel Skills CLI registry](https://github.com/vercel-labs/skills/blob/48dc9e8eb8aa19040e91cb90ba0b642c9cbad57e/src/agents.ts).
27
+ Choose by tool ID or comma-separated menu numbers. Use `--list-agents` to list
28
+ the choices. Directory presets are not an execution test of every host.
29
+
30
+ Every selected tool receives all {{SKILL_COUNT}} skills and shared references.
31
+ CodeBuddy and Claude Code also receive {{COMMAND_COUNT}} short command workflows
32
+ and {{PERSONA_COUNT}} persona files. Other tools use their native skill support;
33
+ short lifecycle commands depend on the host. Shared destinations are installed
34
+ once. License and attribution files accompany each native installation.
35
+ Reload the IDE window or start a new session after installation. See
36
+ [CodeBuddy setup](docs/codebuddy-setup.md) and [Codex setup](docs/codex-setup.md).
37
+
38
+ For an explicit installation without prompts:
39
+
40
+ ```bash
41
+ npx @givolt/i3-composer-agent --agents codebuddy,codex --scope project --yes
42
+ npx @givolt/i3-composer-agent --claude --scope global --yes
43
+ npx @givolt/i3-composer-agent --codebuddy --scope project --dry-run
44
+ ```
45
+
46
+ Existing assets require confirmation; use `--force` with noninteractive installs.
47
+ Replacement preserves previous files in a `.i3-composer-agent-backup-*` directory
48
+ under each tool configuration root. Unrelated settings are left in place.
49
+ `npx -y` accepts npm's package download prompt; the package's own `--yes` flag
50
+ accepts the explicit installation plan.
51
+
52
+ ## Prepare the complete plugin
53
+
54
+ For native plugin registration, including plugin hooks, explicitly prepare a
55
+ persistent `./i3-composer-agent/` bundle:
56
+
57
+ ```bash
58
+ npx @givolt/i3-composer-agent --prepare --codebuddy
59
+ npx @givolt/i3-composer-agent --prepare --codex
60
+ npx @givolt/i3-composer-agent --prepare --claude
61
+ ```
62
+
63
+ The bundle includes skills, commands, personas, hooks and references. Run the
64
+ registration commands printed by the CLI in the intended host. This preparation
65
+ mode does not install native skills or choose the host plugin manager's scope.
31
66
 
32
- CodeBuddy / Claude Code:
67
+ CodeBuddy Code (terminal) / Claude Code:
33
68
 
34
69
  ```text
35
70
  /plugin marketplace add ./i3-composer-agent
@@ -49,7 +84,9 @@ is maintained separately.
49
84
 
50
85
  ## Commands
51
86
 
52
- Hosts supporting Claude-compatible plugin commands load these workflows:
87
+ Native CodeBuddy and Claude Code installations use short filenames such as
88
+ `/spec`, `/plan`, `/build` and `/ship`. Hosts supporting Claude-compatible plugin
89
+ commands load the same workflows under the plugin namespace:
53
90
 
54
91
  | Command | Description |
55
92
  | --- | --- |
@@ -71,7 +108,8 @@ npx @givolt/i3-composer-agent --codebuddy --dir /path/to/plugin --dry-run
71
108
  npx @givolt/i3-composer-agent --codebuddy --dir /path/to/plugin --force
72
109
  ```
73
110
 
74
- Replacement preserves the previous i3 bundle as a backup. Repository-scoped
111
+ Explicit `--dir` retains the original plugin preparation behavior. Replacement
112
+ preserves the previous i3 bundle as a backup. Repository-scoped
75
113
  AGENTS.md and CLAUDE.md are not copied into business projects.
76
114
 
77
115
  ## Maintaining this fork
@@ -1,12 +1,60 @@
1
1
  # Using i3 Composer Agent with CodeBuddy
2
2
 
3
- Prepare the complete plugin inside the project where you want to use it:
3
+ ## Desktop IDE installation
4
+
5
+ Run inside your business project:
4
6
 
5
7
  ```bash
6
8
  npx @givolt/i3-composer-agent --codebuddy
7
9
  ```
8
10
 
9
- In the CodeBuddy chat, register the prepared directory and install the plugin:
11
+ The terminal wizard preselects CodeBuddy, still allows multiple tools, and asks
12
+ for project or global scope before installing. Project scope writes these paths:
13
+
14
+ - `.codebuddy/skills/` — all {{SKILL_COUNT}} skills with their original IDs.
15
+ - `.codebuddy/references/` — shared checklists used by skill-relative links.
16
+ - `.codebuddy/commands/` — all {{COMMAND_COUNT}} existing lifecycle workflows.
17
+ - `.codebuddy/agents/` — all {{PERSONA_COUNT}} persona definitions.
18
+
19
+ Global scope uses the same layout under `~/.codebuddy/`. Existing assets require
20
+ confirmed replacement and are preserved in backup directories. Settings are
21
+ not replaced. Reload the CodeBuddy window or start a new chat, then inspect
22
+ the Skills list and type `/` to inspect the command menu.
23
+
24
+ ```text
25
+ /spec
26
+ /plan
27
+ /build
28
+ /build auto
29
+ /review
30
+ /ship
31
+ ```
32
+
33
+ The command wrappers reference installed skill IDs without the plugin namespace.
34
+ Their workflow content and approval gates are retained. File installation does
35
+ not itself prove that the IDE has discovered or executed every workflow.
36
+
37
+ For multiple tools or a noninteractive installation:
38
+
39
+ ```bash
40
+ npx @givolt/i3-composer-agent --agents codebuddy,codex --scope project --yes
41
+ npx @givolt/i3-composer-agent --codebuddy --scope global --yes
42
+ ```
43
+
44
+ CodeBuddy documents [IDE skills](https://www.codebuddy.cn/docs/ide/Features/Skills)
45
+ and [IDE custom commands](https://www.codebuddy.cn/docs/ide/User-guide/Slash-Commands).
46
+ The directory layout follows its [configuration directory reference](https://www.codebuddy.cn/docs/cli/codebuddy-dir).
47
+
48
+ ## CodeBuddy Code native plugin registration
49
+
50
+ For the terminal CodeBuddy Code plugin manager, explicitly prepare the full
51
+ plugin instead of native skill installation:
52
+
53
+ ```bash
54
+ npx @givolt/i3-composer-agent --prepare --codebuddy
55
+ ```
56
+
57
+ In CodeBuddy Code, register the prepared directory and install the plugin:
10
58
 
11
59
  ```text
12
60
  /plugin marketplace add ./i3-composer-agent
@@ -14,10 +62,10 @@ In the CodeBuddy chat, register the prepared directory and install the plugin:
14
62
  ```
15
63
 
16
64
  Use the absolute directory printed by the CLI if CodeBuddy has a different
17
- working directory. Choose the intended installation scope in CodeBuddy's native
65
+ working directory. Choose the intended installation scope in CodeBuddy Code's native
18
66
  plugin manager. Reload plugins or start a new session after installation.
19
67
 
20
- CodeBuddy supports the existing `.claude-plugin/plugin.json` compatibility
68
+ CodeBuddy Code supports the existing `.claude-plugin/plugin.json` compatibility
21
69
  manifest. It declares `.claude/commands/` and `commands/`, preserving the nine
22
70
  original lifecycle commands and their workflow content.
23
71
 
@@ -33,9 +81,8 @@ original lifecycle commands and their workflow content.
33
81
  Skill IDs, persona names, artifact paths, and workflow gates retain their
34
82
  upstream behavior. The plugin namespace changes to `i3-composer-agent`.
35
83
 
36
- The bundle includes all skills and shared `references/`. Installing individual
37
- skills is a different distribution method and does not install the command
38
- wrappers or persona definitions.
84
+ The prepared plugin includes all skills, personas, commands, hooks and shared
85
+ `references/`. Native skill installation above does not enable plugin hooks.
39
86
 
40
- The CLI prepares files and prints registration commands. Actual host discovery
87
+ In this explicit mode the CLI prepares files and prints registration commands. Actual host discovery
41
88
  and model execution should be verified after registering the plugin.
@@ -1,12 +1,23 @@
1
1
  # Using i3 Composer Agent with Codex
2
2
 
3
- Prepare the complete plugin inside the project where you want to use it:
3
+ For the multi-tool native skill wizard, run in your project:
4
4
 
5
5
  ```bash
6
6
  npx @givolt/i3-composer-agent --codex
7
7
  ```
8
8
 
9
- The CLI copies a persistent `./i3-composer-agent/` bundle and prints these
9
+ Choose project or global scope. Native installation uses `.agents/skills/`
10
+ or `~/.agents/skills/`, plus the sibling `references/` directory. It retains
11
+ the {{SKILL_COUNT}} original skill IDs. This mode does not add short lifecycle
12
+ slash commands or enable plugin hooks.
13
+
14
+ For complete plugin registration, prepare a persistent bundle explicitly:
15
+
16
+ ```bash
17
+ npx @givolt/i3-composer-agent --prepare --codex
18
+ ```
19
+
20
+ This mode copies a persistent `./i3-composer-agent/` bundle and prints these
10
21
  native registration commands. Run them to enable the plugin:
11
22
 
12
23
  ```bash
@@ -14,7 +25,7 @@ codex plugin marketplace add ./i3-composer-agent
14
25
  codex plugin add i3-composer-agent@i3-composer-agent
15
26
  ```
16
27
 
17
- Start a new Codex session after registration. All 25 existing skills keep their
28
+ Start a new Codex session after registration. All {{SKILL_COUNT}} existing skills keep their
18
29
  original IDs. In CLI/IDE, use `/skills` or `$spec-driven-development`; in chat,
19
30
  explicitly request the relevant skill from i3 Composer Agent.
20
31
 
@@ -0,0 +1,193 @@
1
+ 'use strict';
2
+
3
+ const test = require('node:test');
4
+ const assert = require('node:assert/strict');
5
+ const fs = require('node:fs');
6
+ const os = require('node:os');
7
+ const path = require('node:path');
8
+ const { spawnSync } = require('node:child_process');
9
+ const root = path.resolve(__dirname, '..');
10
+ const cli = path.join(root, 'bin/i3-composer-agent.cjs');
11
+ const upstream = require('../rebrand/upstream.json');
12
+ function workspace(t) {
13
+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'i3-agent-install-'));
14
+ t.after(() => fs.rmSync(directory, { recursive: true, force: true }));
15
+ return fs.realpathSync(directory);
16
+ }
17
+ function run(directory, args) {
18
+ return spawnSync(process.execPath, [cli, ...args], { cwd: directory, encoding: 'utf8' });
19
+ }
20
+ test('native CodeBuddy installation includes short commands, personas and usable references', t => {
21
+ const directory = workspace(t);
22
+ const result = run(directory, ['--codebuddy', '--scope', 'project', '--yes']);
23
+ assert.equal(result.status, 0, result.stderr);
24
+ const base = path.join(directory, '.codebuddy');
25
+ assert.equal(fs.readdirSync(path.join(base, 'skills')).length, upstream.skills.length);
26
+ assert.equal(fs.readdirSync(path.join(base, 'commands')).length, upstream.commands.length);
27
+ assert.equal(fs.readdirSync(path.join(base, 'agents')).length, upstream.personas.length);
28
+ const command = fs.readFileSync(path.join(base, 'commands/spec.md'), 'utf8');
29
+ assert.match(command, /Invoke the spec-driven-development skill/);
30
+ assert.doesNotMatch(command, /i3-composer-agent:/);
31
+ const ship = fs.readFileSync(path.join(base, 'commands/ship.md'), 'utf8');
32
+ assert.match(ship, /\.codebuddy\/agents\//);
33
+ assert.doesNotMatch(ship, /\.claude\/agents\//);
34
+ assert.ok(fs.existsSync(path.join(base, 'references/definition-of-done.md')));
35
+ assert.equal(fs.readFileSync(path.join(base, 'i3-composer-agent-LICENSE'), 'utf8'), fs.readFileSync(path.join(root, 'LICENSE'), 'utf8'));
36
+ assert.match(fs.readFileSync(path.join(base, 'i3-composer-agent-NOTICE.md'), 'utf8'), /Addy Osmani/);
37
+ assert.equal(fs.existsSync(path.join(directory, 'AGENTS.md')), false);
38
+ assert.equal(fs.existsSync(path.join(directory, 'i3-composer-agent')), false);
39
+ assert.match(result.stdout, /\/spec/);
40
+ });
41
+ test('multiple tools retain their own destinations and share universal skills without duplicate work', t => {
42
+ const directory = workspace(t);
43
+ const result = run(directory, ['--agents', 'codebuddy,codex,cursor,claude-code', '--scope', 'project', '--yes']);
44
+ assert.equal(result.status, 0, result.stderr);
45
+ for (const base of ['.codebuddy', '.agents', '.claude']) {
46
+ assert.equal(fs.readdirSync(path.join(directory, base, 'skills')).length, upstream.skills.length);
47
+ assert.ok(fs.existsSync(path.join(directory, base, 'references/testing-patterns.md')));
48
+ }
49
+ const manifest = JSON.parse(fs.readFileSync(path.join(directory, '.agents/.i3-composer-agent.json')));
50
+ assert.deepEqual(manifest.agents.sort(), ['codex', 'cursor']);
51
+ assert.equal(fs.existsSync(path.join(directory, '.agents/commands')), false);
52
+ });
53
+ test('installation dry run describes scope and destinations without changing project files', t => {
54
+ const directory = workspace(t);
55
+ const result = run(directory, ['--agents', 'codebuddy,codex', '--scope', 'project', '--dry-run']);
56
+ assert.equal(result.status, 0, result.stderr);
57
+ const plan = JSON.parse(result.stdout);
58
+ assert.equal(plan.mode, 'install');
59
+ assert.equal(plan.scope, 'project');
60
+ assert.equal(plan.targets.length, 2);
61
+ assert.deepEqual(fs.readdirSync(directory), []);
62
+ });
63
+ test('all copied Markdown reference links and stable skill frontmatter remain valid', t => {
64
+ const directory = workspace(t);
65
+ assert.equal(run(directory, ['--codebuddy', '--scope', 'project', '--yes']).status, 0);
66
+ const base = path.join(directory, '.codebuddy');
67
+ function visit(folder) {
68
+ for (const entry of fs.readdirSync(folder, { withFileTypes: true })) {
69
+ const file = path.join(folder, entry.name);
70
+ if (entry.isDirectory()) visit(file);
71
+ else if (entry.name.endsWith('.md')) {
72
+ const content = fs.readFileSync(file, 'utf8');
73
+ for (const match of content.matchAll(/\]\(([^)]+)\)/g)) {
74
+ const relative = match[1].split('#')[0];
75
+ if (relative.includes('references/') && !/^[a-z]+:/i.test(relative)) {
76
+ assert.ok(fs.existsSync(path.resolve(path.dirname(file), relative)), `${file}: ${relative}`);
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ visit(path.join(base, 'skills'));
83
+ for (const id of upstream.skills) {
84
+ const head = content => content.match(/^---\r?\n[\s\S]*?\r?\n---/)[0];
85
+ assert.equal(head(fs.readFileSync(path.join(base, 'skills', id, 'SKILL.md'), 'utf8')), head(fs.readFileSync(path.join(root, 'skills', id, 'SKILL.md'), 'utf8')));
86
+ }
87
+ });
88
+ test('existing assets are protected; confirmed replacement backs them up and preserves unrelated settings', t => {
89
+ const directory = workspace(t);
90
+ const base = path.join(directory, '.codebuddy');
91
+ fs.mkdirSync(path.join(base, 'commands'), { recursive: true });
92
+ fs.writeFileSync(path.join(base, 'commands/spec.md'), 'my custom command');
93
+ fs.writeFileSync(path.join(base, 'settings.json'), '{"keep":"my settings"}\n');
94
+ const args = ['--codebuddy', '--scope', 'project', '--yes'];
95
+ assert.equal(run(directory, args).status, 1);
96
+ assert.equal(fs.existsSync(path.join(base, 'skills')), false);
97
+ const result = run(directory, [...args, '--force']);
98
+ assert.equal(result.status, 0, result.stderr);
99
+ const backups = fs.readdirSync(base).filter(file => file.startsWith('.i3-composer-agent-backup-'));
100
+ assert.equal(backups.length, 1);
101
+ assert.equal(fs.readFileSync(path.join(base, backups[0], 'commands/spec.md'), 'utf8'), 'my custom command');
102
+ assert.equal(fs.readFileSync(path.join(base, 'settings.json'), 'utf8'), '{"keep":"my settings"}\n');
103
+ assert.equal(fs.existsSync(path.join(base, backups[0], 'settings.json')), false);
104
+ });
105
+ test('global installation uses injected home and config roots without touching the real user configuration', t => {
106
+ const directory = workspace(t);
107
+ const { planInstallation, executeInstallation } = require('../bin/install.cjs');
108
+ const plan = planInstallation({ agents: ['codebuddy', 'codex', 'claude-code', 'opencode'], scope: 'global', home: directory, env: { XDG_CONFIG_HOME: path.join(directory, 'config'), CLAUDE_CONFIG_DIR: path.join(directory, 'custom-claude') } });
109
+ assert.ok(plan.targets.every(target => target.skillsDirectory.startsWith(directory + path.sep)));
110
+ assert.ok(plan.targets.some(target => target.skillsDirectory === path.join(directory, 'custom-claude/skills')));
111
+ assert.ok(plan.targets.some(target => target.skillsDirectory === path.join(directory, 'config/opencode/skills')));
112
+ executeInstallation(plan);
113
+ for (const target of plan.targets) {
114
+ assert.equal(fs.readdirSync(target.skillsDirectory).length, upstream.skills.length);
115
+ assert.ok(fs.existsSync(path.join(target.referencesDirectory, 'definition-of-done.md')));
116
+ }
117
+ });
118
+ test('the pinned tool catalog plans all project choices and rejects unsupported global choices before writing', t => {
119
+ const directory = workspace(t);
120
+ const { registry, planInstallation } = require('../bin/install.cjs');
121
+ assert.equal(registry.agents.length, 79);
122
+ assert.equal(registry.commit, '48dc9e8eb8aa19040e91cb90ba0b642c9cbad57e');
123
+ const plan = planInstallation({ agents: registry.agents.map(agent => agent.id), scope: 'project', projectDir: directory });
124
+ assert.equal(plan.agents.length, registry.agents.length);
125
+ assert.ok(plan.targets.length < plan.agents.length);
126
+ assert.equal(new Set(plan.assets.map(asset => asset.destination)).size, plan.assets.length);
127
+ for (const agent of registry.agents) {
128
+ if (agent.globalSkillsDir) assert.ok(planInstallation({ agents: [agent.id], scope: 'global', home: directory, env: {} }).targets[0].skillsDirectory.startsWith(directory + path.sep));
129
+ else assert.throws(() => planInstallation({ agents: [agent.id], scope: 'global', home: directory, env: {} }), /project installation only/);
130
+ }
131
+ assert.deepEqual(fs.readdirSync(directory), []);
132
+ });
133
+ test('failed installation restores prior assets and removes all newly written files', t => {
134
+ const directory = workspace(t);
135
+ const { planInstallation, executeInstallation } = require('../bin/install.cjs');
136
+ const prior = path.join(directory, '.codebuddy/skills/api-and-interface-design');
137
+ fs.mkdirSync(prior, { recursive: true });
138
+ fs.writeFileSync(path.join(prior, 'custom.md'), 'prior skill content');
139
+ const plan = planInstallation({ agents: ['codebuddy', 'codex'], scope: 'project', projectDir: directory });
140
+ const realRename = fs.renameSync;
141
+ let failed = false;
142
+ fs.renameSync = (source, destination) => {
143
+ if (!failed && destination === plan.assets[1].destination) { failed = true; throw new Error('simulated disk failure'); }
144
+ return realRename(source, destination);
145
+ };
146
+ try { assert.throws(() => executeInstallation(plan, { force: true }), /simulated disk failure/); }
147
+ finally { fs.renameSync = realRename; }
148
+ assert.equal(fs.readFileSync(path.join(prior, 'custom.md'), 'utf8'), 'prior skill content');
149
+ assert.deepEqual(fs.readdirSync(path.dirname(prior)), ['api-and-interface-design']);
150
+ assert.deepEqual(fs.readdirSync(path.join(directory, '.codebuddy')), ['skills']);
151
+ assert.equal(fs.existsSync(path.join(directory, '.agents')), false);
152
+ });
153
+ test('replacing a skill symlink backs up the link and leaves its external source untouched', t => {
154
+ const directory = workspace(t);
155
+ const external = path.join(directory, 'external-skill');
156
+ const skills = path.join(directory, '.codebuddy/skills');
157
+ fs.mkdirSync(external);
158
+ fs.writeFileSync(path.join(external, 'custom.md'), 'external source');
159
+ fs.mkdirSync(skills, { recursive: true });
160
+ fs.symlinkSync(external, path.join(skills, 'spec-driven-development'), 'dir');
161
+ const result = run(directory, ['--codebuddy', '--scope', 'project', '--yes', '--force']);
162
+ assert.equal(result.status, 0, result.stderr);
163
+ assert.deepEqual(fs.readdirSync(external), ['custom.md']);
164
+ assert.equal(fs.lstatSync(path.join(skills, 'spec-driven-development')).isSymbolicLink(), false);
165
+ const base = path.dirname(skills);
166
+ const backup = fs.readdirSync(base).find(file => file.startsWith('.i3-composer-agent-backup-'));
167
+ assert.equal(fs.lstatSync(path.join(base, backup, 'skills/spec-driven-development')).isSymbolicLink(), true);
168
+ });
169
+ test('package destinations, shared directory symlinks and ambiguous noninteractive flags fail without writes', t => {
170
+ const directory = workspace(t);
171
+ for (const args of [ ['--codebuddy'], ['--codebuddy', '--yes'], ['--agents', 'unknown', '--scope', 'project', '--yes'], ['--codebuddy', '--scope', 'invalid', '--yes'], ['--codebuddy', '--scope', 'project', '--global', '--yes'] ]) {
172
+ assert.equal(run(directory, args).status, 1);
173
+ assert.deepEqual(fs.readdirSync(directory), []);
174
+ }
175
+ assert.equal(run(directory, ['--codebuddy', '--scope', 'project', '--yes', '--project-dir', root]).status, 1);
176
+ fs.mkdirSync(path.join(directory, '.codebuddy'));
177
+ fs.symlinkSync(path.join(root, 'skills'), path.join(directory, '.codebuddy/skills'), 'dir');
178
+ assert.equal(run(directory, ['--codebuddy', '--scope', 'project', '--yes', '--force']).status, 1);
179
+ assert.deepEqual(fs.readdirSync(path.join(directory, '.codebuddy')), ['skills']);
180
+ });
181
+ test('explicit plugin preparation remains available and does not install native host files', t => {
182
+ const directory = workspace(t);
183
+ const result = run(directory, ['--prepare', '--codebuddy']);
184
+ assert.equal(result.status, 0, result.stderr);
185
+ assert.match(result.stdout, /\/plugin install/);
186
+ assert.equal(fs.existsSync(path.join(directory, 'i3-composer-agent/plugin.json')), true);
187
+ assert.equal(fs.existsSync(path.join(directory, '.codebuddy')), false);
188
+ const listing = run(directory, ['--list-agents']);
189
+ assert.equal(listing.status, 0, listing.stderr);
190
+ assert.equal(listing.stdout.trim().split('\n').length, 79);
191
+ assert.match(listing.stdout, /codebuddy/);
192
+ assert.match(listing.stdout, /windsurf/);
193
+ });