@swarmify/agents-cli 1.13.3 → 1.14.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/README.md +2 -319
- package/bin/agents.js +2 -0
- package/package.json +13 -79
- package/scripts/postinstall.js +4 -71
- package/CHANGELOG.md +0 -316
- package/LICENSE +0 -21
- package/dist/commands/__tests__/sessions-tail.test.d.ts +0 -2
- package/dist/commands/__tests__/sessions-tail.test.d.ts.map +0 -1
- package/dist/commands/__tests__/sessions-tail.test.js +0 -108
- package/dist/commands/__tests__/sessions-tail.test.js.map +0 -1
- package/dist/commands/__tests__/sessions.test.d.ts +0 -2
- package/dist/commands/__tests__/sessions.test.d.ts.map +0 -1
- package/dist/commands/__tests__/sessions.test.js +0 -636
- package/dist/commands/__tests__/sessions.test.js.map +0 -1
- package/dist/commands/cloud.d.ts +0 -11
- package/dist/commands/cloud.d.ts.map +0 -1
- package/dist/commands/cloud.js +0 -363
- package/dist/commands/cloud.js.map +0 -1
- package/dist/commands/commands.d.ts +0 -12
- package/dist/commands/commands.d.ts.map +0 -1
- package/dist/commands/commands.js +0 -629
- package/dist/commands/commands.js.map +0 -1
- package/dist/commands/daemon.d.ts +0 -11
- package/dist/commands/daemon.d.ts.map +0 -1
- package/dist/commands/daemon.js +0 -119
- package/dist/commands/daemon.js.map +0 -1
- package/dist/commands/drive.d.ts +0 -11
- package/dist/commands/drive.d.ts.map +0 -1
- package/dist/commands/drive.js +0 -175
- package/dist/commands/drive.js.map +0 -1
- package/dist/commands/exec.d.ts +0 -11
- package/dist/commands/exec.d.ts.map +0 -1
- package/dist/commands/exec.js +0 -251
- package/dist/commands/exec.js.map +0 -1
- package/dist/commands/factory.d.ts +0 -11
- package/dist/commands/factory.d.ts.map +0 -1
- package/dist/commands/factory.js +0 -445
- package/dist/commands/factory.js.map +0 -1
- package/dist/commands/fork.d.ts +0 -11
- package/dist/commands/fork.d.ts.map +0 -1
- package/dist/commands/fork.js +0 -147
- package/dist/commands/fork.js.map +0 -1
- package/dist/commands/hooks.d.ts +0 -12
- package/dist/commands/hooks.d.ts.map +0 -1
- package/dist/commands/hooks.js +0 -690
- package/dist/commands/hooks.js.map +0 -1
- package/dist/commands/init.d.ts +0 -15
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -137
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -12
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -583
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/models.d.ts +0 -11
- package/dist/commands/models.d.ts.map +0 -1
- package/dist/commands/models.js +0 -170
- package/dist/commands/models.js.map +0 -1
- package/dist/commands/packages.d.ts +0 -11
- package/dist/commands/packages.d.ts.map +0 -1
- package/dist/commands/packages.js +0 -551
- package/dist/commands/packages.js.map +0 -1
- package/dist/commands/permissions.d.ts +0 -12
- package/dist/commands/permissions.d.ts.map +0 -1
- package/dist/commands/permissions.js +0 -724
- package/dist/commands/permissions.js.map +0 -1
- package/dist/commands/plugins.d.ts +0 -11
- package/dist/commands/plugins.d.ts.map +0 -1
- package/dist/commands/plugins.js +0 -393
- package/dist/commands/plugins.js.map +0 -1
- package/dist/commands/profiles.d.ts +0 -12
- package/dist/commands/profiles.d.ts.map +0 -1
- package/dist/commands/profiles.js +0 -255
- package/dist/commands/profiles.js.map +0 -1
- package/dist/commands/pty.d.ts +0 -21
- package/dist/commands/pty.d.ts.map +0 -1
- package/dist/commands/pty.js +0 -391
- package/dist/commands/pty.js.map +0 -1
- package/dist/commands/pull.d.ts +0 -11
- package/dist/commands/pull.d.ts.map +0 -1
- package/dist/commands/pull.js +0 -456
- package/dist/commands/pull.js.map +0 -1
- package/dist/commands/push.d.ts +0 -11
- package/dist/commands/push.d.ts.map +0 -1
- package/dist/commands/push.js +0 -188
- package/dist/commands/push.js.map +0 -1
- package/dist/commands/refresh-memory.d.ts +0 -16
- package/dist/commands/refresh-memory.d.ts.map +0 -1
- package/dist/commands/refresh-memory.js +0 -52
- package/dist/commands/refresh-memory.js.map +0 -1
- package/dist/commands/resource-view.d.ts +0 -39
- package/dist/commands/resource-view.d.ts.map +0 -1
- package/dist/commands/resource-view.js +0 -197
- package/dist/commands/resource-view.js.map +0 -1
- package/dist/commands/routines.d.ts +0 -11
- package/dist/commands/routines.d.ts.map +0 -1
- package/dist/commands/routines.js +0 -590
- package/dist/commands/routines.js.map +0 -1
- package/dist/commands/rules.d.ts +0 -12
- package/dist/commands/rules.d.ts.map +0 -1
- package/dist/commands/rules.js +0 -489
- package/dist/commands/rules.js.map +0 -1
- package/dist/commands/secrets.d.ts +0 -11
- package/dist/commands/secrets.d.ts.map +0 -1
- package/dist/commands/secrets.js +0 -352
- package/dist/commands/secrets.js.map +0 -1
- package/dist/commands/sessions-picker.d.ts +0 -18
- package/dist/commands/sessions-picker.d.ts.map +0 -1
- package/dist/commands/sessions-picker.js +0 -265
- package/dist/commands/sessions-picker.js.map +0 -1
- package/dist/commands/sessions-tail.d.ts +0 -20
- package/dist/commands/sessions-tail.d.ts.map +0 -1
- package/dist/commands/sessions-tail.js +0 -236
- package/dist/commands/sessions-tail.js.map +0 -1
- package/dist/commands/sessions.d.ts +0 -18
- package/dist/commands/sessions.d.ts.map +0 -1
- package/dist/commands/sessions.js +0 -1173
- package/dist/commands/sessions.js.map +0 -1
- package/dist/commands/skills.d.ts +0 -12
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -717
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/status.d.ts +0 -10
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -26
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/subagents.d.ts +0 -11
- package/dist/commands/subagents.d.ts.map +0 -1
- package/dist/commands/subagents.js +0 -361
- package/dist/commands/subagents.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -11
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -70
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/teams-picker.d.ts +0 -18
- package/dist/commands/teams-picker.d.ts.map +0 -1
- package/dist/commands/teams-picker.js +0 -290
- package/dist/commands/teams-picker.js.map +0 -1
- package/dist/commands/teams.d.ts +0 -18
- package/dist/commands/teams.d.ts.map +0 -1
- package/dist/commands/teams.js +0 -1144
- package/dist/commands/teams.js.map +0 -1
- package/dist/commands/utils.d.ts +0 -45
- package/dist/commands/utils.d.ts.map +0 -1
- package/dist/commands/utils.js +0 -106
- package/dist/commands/utils.js.map +0 -1
- package/dist/commands/versions.d.ts +0 -11
- package/dist/commands/versions.d.ts.map +0 -1
- package/dist/commands/versions.js +0 -701
- package/dist/commands/versions.js.map +0 -1
- package/dist/commands/view.d.ts +0 -43
- package/dist/commands/view.d.ts.map +0 -1
- package/dist/commands/view.js +0 -894
- package/dist/commands/view.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -496
- package/dist/index.js.map +0 -1
- package/dist/lib/__tests__/bugfixes.test.d.ts +0 -2
- package/dist/lib/__tests__/bugfixes.test.d.ts.map +0 -1
- package/dist/lib/__tests__/bugfixes.test.js +0 -192
- package/dist/lib/__tests__/bugfixes.test.js.map +0 -1
- package/dist/lib/__tests__/exec.test.d.ts +0 -2
- package/dist/lib/__tests__/exec.test.d.ts.map +0 -1
- package/dist/lib/__tests__/exec.test.js +0 -446
- package/dist/lib/__tests__/exec.test.js.map +0 -1
- package/dist/lib/__tests__/git-sync.test.d.ts +0 -2
- package/dist/lib/__tests__/git-sync.test.d.ts.map +0 -1
- package/dist/lib/__tests__/git-sync.test.js +0 -138
- package/dist/lib/__tests__/git-sync.test.js.map +0 -1
- package/dist/lib/__tests__/hooks.test.d.ts +0 -2
- package/dist/lib/__tests__/hooks.test.d.ts.map +0 -1
- package/dist/lib/__tests__/hooks.test.js +0 -203
- package/dist/lib/__tests__/hooks.test.js.map +0 -1
- package/dist/lib/__tests__/memory-compile.test.d.ts +0 -2
- package/dist/lib/__tests__/memory-compile.test.d.ts.map +0 -1
- package/dist/lib/__tests__/memory-compile.test.js +0 -95
- package/dist/lib/__tests__/memory-compile.test.js.map +0 -1
- package/dist/lib/__tests__/models.test.d.ts +0 -2
- package/dist/lib/__tests__/models.test.d.ts.map +0 -1
- package/dist/lib/__tests__/models.test.js +0 -239
- package/dist/lib/__tests__/models.test.js.map +0 -1
- package/dist/lib/__tests__/rotate.test.d.ts +0 -2
- package/dist/lib/__tests__/rotate.test.d.ts.map +0 -1
- package/dist/lib/__tests__/rotate.test.js +0 -80
- package/dist/lib/__tests__/rotate.test.js.map +0 -1
- package/dist/lib/__tests__/secrets-bundles.test.d.ts +0 -2
- package/dist/lib/__tests__/secrets-bundles.test.d.ts.map +0 -1
- package/dist/lib/__tests__/secrets-bundles.test.js +0 -104
- package/dist/lib/__tests__/secrets-bundles.test.js.map +0 -1
- package/dist/lib/__tests__/secrets.test.d.ts +0 -2
- package/dist/lib/__tests__/secrets.test.d.ts.map +0 -1
- package/dist/lib/__tests__/secrets.test.js +0 -90
- package/dist/lib/__tests__/secrets.test.js.map +0 -1
- package/dist/lib/__tests__/shims.test.d.ts +0 -2
- package/dist/lib/__tests__/shims.test.d.ts.map +0 -1
- package/dist/lib/__tests__/shims.test.js +0 -57
- package/dist/lib/__tests__/shims.test.js.map +0 -1
- package/dist/lib/__tests__/usage.test.d.ts +0 -2
- package/dist/lib/__tests__/usage.test.d.ts.map +0 -1
- package/dist/lib/__tests__/usage.test.js +0 -220
- package/dist/lib/__tests__/usage.test.js.map +0 -1
- package/dist/lib/__tests__/versions.test.d.ts +0 -2
- package/dist/lib/__tests__/versions.test.d.ts.map +0 -1
- package/dist/lib/__tests__/versions.test.js +0 -63
- package/dist/lib/__tests__/versions.test.js.map +0 -1
- package/dist/lib/agents.d.ts +0 -158
- package/dist/lib/agents.d.ts.map +0 -1
- package/dist/lib/agents.js +0 -1159
- package/dist/lib/agents.js.map +0 -1
- package/dist/lib/artifact-actions.d.ts +0 -27
- package/dist/lib/artifact-actions.d.ts.map +0 -1
- package/dist/lib/artifact-actions.js +0 -58
- package/dist/lib/artifact-actions.js.map +0 -1
- package/dist/lib/cloud/codex.d.ts +0 -26
- package/dist/lib/cloud/codex.d.ts.map +0 -1
- package/dist/lib/cloud/codex.js +0 -237
- package/dist/lib/cloud/codex.js.map +0 -1
- package/dist/lib/cloud/factory.d.ts +0 -32
- package/dist/lib/cloud/factory.d.ts.map +0 -1
- package/dist/lib/cloud/factory.js +0 -43
- package/dist/lib/cloud/factory.js.map +0 -1
- package/dist/lib/cloud/registry.d.ts +0 -16
- package/dist/lib/cloud/registry.d.ts.map +0 -1
- package/dist/lib/cloud/registry.js +0 -68
- package/dist/lib/cloud/registry.js.map +0 -1
- package/dist/lib/cloud/rush.d.ts +0 -37
- package/dist/lib/cloud/rush.d.ts.map +0 -1
- package/dist/lib/cloud/rush.js +0 -230
- package/dist/lib/cloud/rush.js.map +0 -1
- package/dist/lib/cloud/rush.test.d.ts +0 -2
- package/dist/lib/cloud/rush.test.d.ts.map +0 -1
- package/dist/lib/cloud/rush.test.js +0 -63
- package/dist/lib/cloud/rush.test.js.map +0 -1
- package/dist/lib/cloud/store.d.ts +0 -23
- package/dist/lib/cloud/store.d.ts.map +0 -1
- package/dist/lib/cloud/store.js +0 -116
- package/dist/lib/cloud/store.js.map +0 -1
- package/dist/lib/cloud/stream.d.ts +0 -24
- package/dist/lib/cloud/stream.d.ts.map +0 -1
- package/dist/lib/cloud/stream.js +0 -145
- package/dist/lib/cloud/stream.js.map +0 -1
- package/dist/lib/cloud/types.d.ts +0 -109
- package/dist/lib/cloud/types.d.ts.map +0 -1
- package/dist/lib/cloud/types.js +0 -33
- package/dist/lib/cloud/types.js.map +0 -1
- package/dist/lib/cloud/types.test.d.ts +0 -2
- package/dist/lib/cloud/types.test.d.ts.map +0 -1
- package/dist/lib/cloud/types.test.js +0 -41
- package/dist/lib/cloud/types.test.js.map +0 -1
- package/dist/lib/commands.d.ts +0 -141
- package/dist/lib/commands.d.ts.map +0 -1
- package/dist/lib/commands.js +0 -514
- package/dist/lib/commands.js.map +0 -1
- package/dist/lib/convert.d.ts +0 -21
- package/dist/lib/convert.d.ts.map +0 -1
- package/dist/lib/convert.js +0 -54
- package/dist/lib/convert.js.map +0 -1
- package/dist/lib/daemon.d.ts +0 -43
- package/dist/lib/daemon.d.ts.map +0 -1
- package/dist/lib/daemon.js +0 -332
- package/dist/lib/daemon.js.map +0 -1
- package/dist/lib/drive-sync.d.ts +0 -46
- package/dist/lib/drive-sync.d.ts.map +0 -1
- package/dist/lib/drive-sync.js +0 -209
- package/dist/lib/drive-sync.js.map +0 -1
- package/dist/lib/exec.d.ts +0 -101
- package/dist/lib/exec.d.ts.map +0 -1
- package/dist/lib/exec.js +0 -450
- package/dist/lib/exec.js.map +0 -1
- package/dist/lib/factory/__tests__/config.test.d.ts +0 -2
- package/dist/lib/factory/__tests__/config.test.d.ts.map +0 -1
- package/dist/lib/factory/__tests__/config.test.js +0 -128
- package/dist/lib/factory/__tests__/config.test.js.map +0 -1
- package/dist/lib/factory/config.d.ts +0 -49
- package/dist/lib/factory/config.d.ts.map +0 -1
- package/dist/lib/factory/config.js +0 -127
- package/dist/lib/factory/config.js.map +0 -1
- package/dist/lib/factory.d.ts +0 -57
- package/dist/lib/factory.d.ts.map +0 -1
- package/dist/lib/factory.js +0 -107
- package/dist/lib/factory.js.map +0 -1
- package/dist/lib/git.d.ts +0 -157
- package/dist/lib/git.d.ts.map +0 -1
- package/dist/lib/git.js +0 -647
- package/dist/lib/git.js.map +0 -1
- package/dist/lib/help.d.ts +0 -10
- package/dist/lib/help.d.ts.map +0 -1
- package/dist/lib/help.js +0 -66
- package/dist/lib/help.js.map +0 -1
- package/dist/lib/hooks.d.ts +0 -125
- package/dist/lib/hooks.d.ts.map +0 -1
- package/dist/lib/hooks.js +0 -846
- package/dist/lib/hooks.js.map +0 -1
- package/dist/lib/ledger/__tests__/local.test.d.ts +0 -2
- package/dist/lib/ledger/__tests__/local.test.d.ts.map +0 -1
- package/dist/lib/ledger/__tests__/local.test.js +0 -177
- package/dist/lib/ledger/__tests__/local.test.js.map +0 -1
- package/dist/lib/ledger/__tests__/sync.test.d.ts +0 -2
- package/dist/lib/ledger/__tests__/sync.test.d.ts.map +0 -1
- package/dist/lib/ledger/__tests__/sync.test.js +0 -117
- package/dist/lib/ledger/__tests__/sync.test.js.map +0 -1
- package/dist/lib/ledger/index.d.ts +0 -18
- package/dist/lib/ledger/index.d.ts.map +0 -1
- package/dist/lib/ledger/index.js +0 -32
- package/dist/lib/ledger/index.js.map +0 -1
- package/dist/lib/ledger/local.d.ts +0 -22
- package/dist/lib/ledger/local.d.ts.map +0 -1
- package/dist/lib/ledger/local.js +0 -333
- package/dist/lib/ledger/local.js.map +0 -1
- package/dist/lib/ledger/r2.d.ts +0 -41
- package/dist/lib/ledger/r2.d.ts.map +0 -1
- package/dist/lib/ledger/r2.js +0 -335
- package/dist/lib/ledger/r2.js.map +0 -1
- package/dist/lib/ledger/sync.d.ts +0 -33
- package/dist/lib/ledger/sync.d.ts.map +0 -1
- package/dist/lib/ledger/sync.js +0 -106
- package/dist/lib/ledger/sync.js.map +0 -1
- package/dist/lib/ledger/types.d.ts +0 -100
- package/dist/lib/ledger/types.d.ts.map +0 -1
- package/dist/lib/ledger/types.js +0 -21
- package/dist/lib/ledger/types.js.map +0 -1
- package/dist/lib/manifest.d.ts +0 -14
- package/dist/lib/manifest.d.ts.map +0 -1
- package/dist/lib/manifest.js +0 -48
- package/dist/lib/manifest.js.map +0 -1
- package/dist/lib/markdown.d.ts +0 -5
- package/dist/lib/markdown.d.ts.map +0 -1
- package/dist/lib/markdown.js +0 -17
- package/dist/lib/markdown.js.map +0 -1
- package/dist/lib/mcp.d.ts +0 -64
- package/dist/lib/mcp.d.ts.map +0 -1
- package/dist/lib/mcp.js +0 -327
- package/dist/lib/mcp.js.map +0 -1
- package/dist/lib/memory-compile.d.ts +0 -65
- package/dist/lib/memory-compile.d.ts.map +0 -1
- package/dist/lib/memory-compile.js +0 -174
- package/dist/lib/memory-compile.js.map +0 -1
- package/dist/lib/memory.d.ts +0 -64
- package/dist/lib/memory.d.ts.map +0 -1
- package/dist/lib/memory.js +0 -275
- package/dist/lib/memory.js.map +0 -1
- package/dist/lib/models.d.ts +0 -98
- package/dist/lib/models.d.ts.map +0 -1
- package/dist/lib/models.js +0 -728
- package/dist/lib/models.js.map +0 -1
- package/dist/lib/permissions.d.ts +0 -227
- package/dist/lib/permissions.d.ts.map +0 -1
- package/dist/lib/permissions.js +0 -1071
- package/dist/lib/permissions.js.map +0 -1
- package/dist/lib/picker.d.ts +0 -27
- package/dist/lib/picker.d.ts.map +0 -1
- package/dist/lib/picker.js +0 -110
- package/dist/lib/picker.js.map +0 -1
- package/dist/lib/plugins.d.ts +0 -80
- package/dist/lib/plugins.d.ts.map +0 -1
- package/dist/lib/plugins.js +0 -556
- package/dist/lib/plugins.js.map +0 -1
- package/dist/lib/profiles-keychain.d.ts +0 -11
- package/dist/lib/profiles-keychain.d.ts.map +0 -1
- package/dist/lib/profiles-keychain.js +0 -14
- package/dist/lib/profiles-keychain.js.map +0 -1
- package/dist/lib/profiles-presets.d.ts +0 -25
- package/dist/lib/profiles-presets.d.ts.map +0 -1
- package/dist/lib/profiles-presets.js +0 -104
- package/dist/lib/profiles-presets.js.map +0 -1
- package/dist/lib/profiles.d.ts +0 -70
- package/dist/lib/profiles.d.ts.map +0 -1
- package/dist/lib/profiles.js +0 -145
- package/dist/lib/profiles.js.map +0 -1
- package/dist/lib/pty-client.d.ts +0 -23
- package/dist/lib/pty-client.d.ts.map +0 -1
- package/dist/lib/pty-client.js +0 -181
- package/dist/lib/pty-client.js.map +0 -1
- package/dist/lib/pty-server.d.ts +0 -21
- package/dist/lib/pty-server.d.ts.map +0 -1
- package/dist/lib/pty-server.js +0 -427
- package/dist/lib/pty-server.js.map +0 -1
- package/dist/lib/registry.d.ts +0 -45
- package/dist/lib/registry.d.ts.map +0 -1
- package/dist/lib/registry.js +0 -220
- package/dist/lib/registry.js.map +0 -1
- package/dist/lib/resources.d.ts +0 -55
- package/dist/lib/resources.d.ts.map +0 -1
- package/dist/lib/resources.js +0 -103
- package/dist/lib/resources.js.map +0 -1
- package/dist/lib/rotate.d.ts +0 -58
- package/dist/lib/rotate.d.ts.map +0 -1
- package/dist/lib/rotate.js +0 -93
- package/dist/lib/rotate.js.map +0 -1
- package/dist/lib/routines.d.ts +0 -99
- package/dist/lib/routines.d.ts.map +0 -1
- package/dist/lib/routines.js +0 -352
- package/dist/lib/routines.js.map +0 -1
- package/dist/lib/runner.d.ts +0 -26
- package/dist/lib/runner.d.ts.map +0 -1
- package/dist/lib/runner.js +0 -325
- package/dist/lib/runner.js.map +0 -1
- package/dist/lib/sandbox.d.ts +0 -26
- package/dist/lib/sandbox.d.ts.map +0 -1
- package/dist/lib/sandbox.js +0 -218
- package/dist/lib/sandbox.js.map +0 -1
- package/dist/lib/scheduler.d.ts +0 -26
- package/dist/lib/scheduler.d.ts.map +0 -1
- package/dist/lib/scheduler.js +0 -77
- package/dist/lib/scheduler.js.map +0 -1
- package/dist/lib/secrets-bundles.d.ts +0 -38
- package/dist/lib/secrets-bundles.d.ts.map +0 -1
- package/dist/lib/secrets-bundles.js +0 -176
- package/dist/lib/secrets-bundles.js.map +0 -1
- package/dist/lib/secrets.d.ts +0 -53
- package/dist/lib/secrets.d.ts.map +0 -1
- package/dist/lib/secrets.js +0 -140
- package/dist/lib/secrets.js.map +0 -1
- package/dist/lib/session/__tests__/db.test.d.ts +0 -2
- package/dist/lib/session/__tests__/db.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/db.test.js +0 -54
- package/dist/lib/session/__tests__/db.test.js.map +0 -1
- package/dist/lib/session/__tests__/discover.test.d.ts +0 -2
- package/dist/lib/session/__tests__/discover.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/discover.test.js +0 -63
- package/dist/lib/session/__tests__/discover.test.js.map +0 -1
- package/dist/lib/session/__tests__/prompt.test.d.ts +0 -2
- package/dist/lib/session/__tests__/prompt.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/prompt.test.js +0 -44
- package/dist/lib/session/__tests__/prompt.test.js.map +0 -1
- package/dist/lib/session/__tests__/render.test.d.ts +0 -2
- package/dist/lib/session/__tests__/render.test.d.ts.map +0 -1
- package/dist/lib/session/__tests__/render.test.js +0 -602
- package/dist/lib/session/__tests__/render.test.js.map +0 -1
- package/dist/lib/session/active.d.ts +0 -44
- package/dist/lib/session/active.d.ts.map +0 -1
- package/dist/lib/session/active.js +0 -379
- package/dist/lib/session/active.js.map +0 -1
- package/dist/lib/session/artifacts.d.ts +0 -15
- package/dist/lib/session/artifacts.d.ts.map +0 -1
- package/dist/lib/session/artifacts.js +0 -86
- package/dist/lib/session/artifacts.js.map +0 -1
- package/dist/lib/session/db.d.ts +0 -140
- package/dist/lib/session/db.d.ts.map +0 -1
- package/dist/lib/session/db.js +0 -599
- package/dist/lib/session/db.js.map +0 -1
- package/dist/lib/session/discover.d.ts +0 -72
- package/dist/lib/session/discover.d.ts.map +0 -1
- package/dist/lib/session/discover.js +0 -1315
- package/dist/lib/session/discover.js.map +0 -1
- package/dist/lib/session/parse.d.ts +0 -34
- package/dist/lib/session/parse.d.ts.map +0 -1
- package/dist/lib/session/parse.js +0 -663
- package/dist/lib/session/parse.js.map +0 -1
- package/dist/lib/session/prompt.d.ts +0 -13
- package/dist/lib/session/prompt.d.ts.map +0 -1
- package/dist/lib/session/prompt.js +0 -79
- package/dist/lib/session/prompt.js.map +0 -1
- package/dist/lib/session/prompt.test.d.ts +0 -2
- package/dist/lib/session/prompt.test.d.ts.map +0 -1
- package/dist/lib/session/prompt.test.js +0 -57
- package/dist/lib/session/prompt.test.js.map +0 -1
- package/dist/lib/session/render.d.ts +0 -103
- package/dist/lib/session/render.d.ts.map +0 -1
- package/dist/lib/session/render.js +0 -798
- package/dist/lib/session/render.js.map +0 -1
- package/dist/lib/session/team-filter.d.ts +0 -35
- package/dist/lib/session/team-filter.d.ts.map +0 -1
- package/dist/lib/session/team-filter.js +0 -75
- package/dist/lib/session/team-filter.js.map +0 -1
- package/dist/lib/session/team-filter.test.d.ts +0 -2
- package/dist/lib/session/team-filter.test.d.ts.map +0 -1
- package/dist/lib/session/team-filter.test.js +0 -157
- package/dist/lib/session/team-filter.test.js.map +0 -1
- package/dist/lib/session/types.d.ts +0 -84
- package/dist/lib/session/types.d.ts.map +0 -1
- package/dist/lib/session/types.js +0 -11
- package/dist/lib/session/types.js.map +0 -1
- package/dist/lib/shims.d.ts +0 -272
- package/dist/lib/shims.d.ts.map +0 -1
- package/dist/lib/shims.js +0 -1322
- package/dist/lib/shims.js.map +0 -1
- package/dist/lib/skills.d.ts +0 -142
- package/dist/lib/skills.d.ts.map +0 -1
- package/dist/lib/skills.js +0 -791
- package/dist/lib/skills.js.map +0 -1
- package/dist/lib/state.d.ts +0 -87
- package/dist/lib/state.d.ts.map +0 -1
- package/dist/lib/state.js +0 -333
- package/dist/lib/state.js.map +0 -1
- package/dist/lib/subagents.d.ts +0 -84
- package/dist/lib/subagents.d.ts.map +0 -1
- package/dist/lib/subagents.js +0 -410
- package/dist/lib/subagents.js.map +0 -1
- package/dist/lib/teams/__tests__/oracle.test.d.ts +0 -2
- package/dist/lib/teams/__tests__/oracle.test.d.ts.map +0 -1
- package/dist/lib/teams/__tests__/oracle.test.js +0 -89
- package/dist/lib/teams/__tests__/oracle.test.js.map +0 -1
- package/dist/lib/teams/__tests__/supervisor.test.d.ts +0 -2
- package/dist/lib/teams/__tests__/supervisor.test.d.ts.map +0 -1
- package/dist/lib/teams/__tests__/supervisor.test.js +0 -179
- package/dist/lib/teams/__tests__/supervisor.test.js.map +0 -1
- package/dist/lib/teams/agents.d.ts +0 -247
- package/dist/lib/teams/agents.d.ts.map +0 -1
- package/dist/lib/teams/agents.js +0 -1244
- package/dist/lib/teams/agents.js.map +0 -1
- package/dist/lib/teams/api.d.ts +0 -91
- package/dist/lib/teams/api.d.ts.map +0 -1
- package/dist/lib/teams/api.js +0 -239
- package/dist/lib/teams/api.js.map +0 -1
- package/dist/lib/teams/cloud.d.ts +0 -11
- package/dist/lib/teams/cloud.d.ts.map +0 -1
- package/dist/lib/teams/cloud.js +0 -169
- package/dist/lib/teams/cloud.js.map +0 -1
- package/dist/lib/teams/debug.d.ts +0 -8
- package/dist/lib/teams/debug.d.ts.map +0 -1
- package/dist/lib/teams/debug.js +0 -12
- package/dist/lib/teams/debug.js.map +0 -1
- package/dist/lib/teams/file_ops.d.ts +0 -13
- package/dist/lib/teams/file_ops.d.ts.map +0 -1
- package/dist/lib/teams/file_ops.js +0 -66
- package/dist/lib/teams/file_ops.js.map +0 -1
- package/dist/lib/teams/index.d.ts +0 -16
- package/dist/lib/teams/index.d.ts.map +0 -1
- package/dist/lib/teams/index.js +0 -15
- package/dist/lib/teams/index.js.map +0 -1
- package/dist/lib/teams/oracle.d.ts +0 -20
- package/dist/lib/teams/oracle.d.ts.map +0 -1
- package/dist/lib/teams/oracle.js +0 -59
- package/dist/lib/teams/oracle.js.map +0 -1
- package/dist/lib/teams/parsers.d.ts +0 -9
- package/dist/lib/teams/parsers.d.ts.map +0 -1
- package/dist/lib/teams/parsers.js +0 -837
- package/dist/lib/teams/parsers.js.map +0 -1
- package/dist/lib/teams/persistence.d.ts +0 -43
- package/dist/lib/teams/persistence.d.ts.map +0 -1
- package/dist/lib/teams/persistence.js +0 -299
- package/dist/lib/teams/persistence.js.map +0 -1
- package/dist/lib/teams/ralph.d.ts +0 -8
- package/dist/lib/teams/ralph.d.ts.map +0 -1
- package/dist/lib/teams/ralph.js +0 -59
- package/dist/lib/teams/ralph.js.map +0 -1
- package/dist/lib/teams/registry.d.ts +0 -18
- package/dist/lib/teams/registry.d.ts.map +0 -1
- package/dist/lib/teams/registry.js +0 -68
- package/dist/lib/teams/registry.js.map +0 -1
- package/dist/lib/teams/summarizer.d.ts +0 -73
- package/dist/lib/teams/summarizer.d.ts.map +0 -1
- package/dist/lib/teams/summarizer.js +0 -780
- package/dist/lib/teams/summarizer.js.map +0 -1
- package/dist/lib/teams/supervisor.d.ts +0 -49
- package/dist/lib/teams/supervisor.d.ts.map +0 -1
- package/dist/lib/teams/supervisor.js +0 -74
- package/dist/lib/teams/supervisor.js.map +0 -1
- package/dist/lib/template.d.ts +0 -27
- package/dist/lib/template.d.ts.map +0 -1
- package/dist/lib/template.js +0 -60
- package/dist/lib/template.js.map +0 -1
- package/dist/lib/types.d.ts +0 -331
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js +0 -29
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/usage.d.ts +0 -105
- package/dist/lib/usage.d.ts.map +0 -1
- package/dist/lib/usage.js +0 -686
- package/dist/lib/usage.js.map +0 -1
- package/dist/lib/versions.d.ts +0 -253
- package/dist/lib/versions.d.ts.map +0 -1
- package/dist/lib/versions.js +0 -1796
- package/dist/lib/versions.js.map +0 -1
- package/scripts/rebuild-sqlite.sh +0 -46
package/README.md
CHANGED
|
@@ -1,324 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
<img src="assets/logo.png" alt="agents" width="120" />
|
|
3
|
-
</p>
|
|
1
|
+
# @swarmify/agents-cli
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
<a href="https://www.npmjs.com/package/@phnx-labs/agents-cli"><img src="https://img.shields.io/npm/v/@phnx-labs/agents-cli.svg?style=flat-square" alt="npm version" /></a>
|
|
9
|
-
<a href="./LICENSE"><img src="https://img.shields.io/npm/l/@phnx-labs/agents-cli.svg?style=flat-square" alt="license" /></a>
|
|
10
|
-
<a href="https://www.npmjs.com/package/@phnx-labs/agents-cli"><img src="https://img.shields.io/npm/dm/@phnx-labs/agents-cli.svg?style=flat-square" alt="downloads" /></a>
|
|
11
|
-
<a href="https://agents-cli.sh"><img src="https://img.shields.io/badge/homepage-agents--cli.sh-blue?style=flat-square" alt="homepage" /></a>
|
|
12
|
-
</p>
|
|
13
|
-
|
|
14
|
-
**One CLI for all your AI coding agents.** Pin versions per project. Share config across Claude Code, Codex, Gemini CLI, and Cursor. Stop setting up the same MCP server three times.
|
|
15
|
-
|
|
16
|
-
<p align="center">
|
|
17
|
-
<video src="https://github.com/phnx-labs/agents-cli/raw/main/assets/demo.mp4" autoplay loop muted playsinline width="800"></video>
|
|
18
|
-
</p>
|
|
3
|
+
> This package has moved to [@phnx-labs/agents-cli](https://www.npmjs.com/package/@phnx-labs/agents-cli).
|
|
19
4
|
|
|
20
5
|
```bash
|
|
21
|
-
curl -fsSL agents-cli.sh | sh
|
|
22
|
-
# or
|
|
23
6
|
npm install -g @phnx-labs/agents-cli
|
|
24
7
|
```
|
|
25
|
-
|
|
26
|
-
Also available as `ag` -- all commands work with both `agents` and `ag`.
|
|
27
|
-
|
|
28
|
-
- [Pin versions per project](#pin-versions-per-project)
|
|
29
|
-
- [One config, every agent](#one-config-every-agent)
|
|
30
|
-
- [Run any agent](#run-any-agent)
|
|
31
|
-
- [Sessions across agents](#sessions-across-agents)
|
|
32
|
-
- [Run open models through Claude Code](#run-open-models-through-claude-code)
|
|
33
|
-
- [Teams](#teams)
|
|
34
|
-
- [Secrets](#secrets)
|
|
35
|
-
- [Routines](#routines)
|
|
36
|
-
- [PTY](#pty)
|
|
37
|
-
- [Portable setup](#portable-setup)
|
|
38
|
-
- [Compatibility](#compatibility)
|
|
39
|
-
- [FAQ](#faq)
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Pin versions per project
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# This project needs claude@2.0.65 -- newer versions changed tool calling.
|
|
47
|
-
agents use claude@2.0.65 -p
|
|
48
|
-
|
|
49
|
-
# The monorepo uses codex@0.116.0 across the team.
|
|
50
|
-
agents use codex@0.116.0 -p
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Like `.nvmrc` for Node. A shim reads `agents.yaml` from the project root and routes `claude` / `codex` / `gemini` to the right version automatically. Each version gets its own isolated home -- switching backs up config and re-syncs resources.
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
agents add claude@2.0.65 # Install a specific version
|
|
57
|
-
agents add codex@latest # Install latest
|
|
58
|
-
agents view # See everything installed
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
## One config, every agent
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
# Set up the Notion MCP server once.
|
|
67
|
-
agents install mcp:com.notion/mcp
|
|
68
|
-
|
|
69
|
-
# It's now registered with Claude Code, Codex, Gemini CLI, and Cursor.
|
|
70
|
-
agents mcp list
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Skills, slash commands, rules, hooks, and permissions work the same way -- install once in `~/.agents/`, synced to every agent's native format automatically.
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
agents skills add gh:yourteam/python-expert # Knowledge pack -> all agents
|
|
77
|
-
agents commands add gh:yourteam/commands # Slash commands -> all agents
|
|
78
|
-
agents rules add gh:team/rules # AGENTS.md -> CLAUDE.md, GEMINI.md, .cursorrules
|
|
79
|
-
agents permissions add ./perms # Permissions -> auto-converted per agent
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Write one `AGENTS.md`. It becomes `CLAUDE.md` for Claude Code, `GEMINI.md` for Gemini CLI, `.cursorrules` for Cursor.
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## Run any agent
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
agents run claude "Find all auth vulnerabilities in src/"
|
|
90
|
-
agents run codex "Fix the issues Claude found"
|
|
91
|
-
agents run gemini "Write tests for the fixed code"
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Each resolves to the project-pinned version with skills, MCP servers, and permissions already synced.
|
|
95
|
-
|
|
96
|
-
### Rate-limited? Keep working.
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
# Claude Code hits a rate limit -> Codex picks up automatically. Same project, same config.
|
|
100
|
-
agents run claude "refactor auth module" --mode edit --fallback codex,gemini
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### Multiple accounts? Spread the load.
|
|
104
|
-
|
|
105
|
-
```bash
|
|
106
|
-
# Picks the signed-in account you haven't used recently.
|
|
107
|
-
agents run claude "summarize recent commits" --rotate
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
`--rotate` cycles across installed versions of the same agent -- useful when you have multiple accounts and want to spread usage instead of burning through one.
|
|
111
|
-
|
|
112
|
-
### Chain agents
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
agents run claude "Review PRs merged this week, summarize risks" \
|
|
116
|
-
| agents run codex "Write regression tests for the top 3 risks"
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Supports plan (read-only) and edit modes, effort levels, JSON output for scripting, and timeout limits.
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## Sessions across agents
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
# Where was that auth conversation? Search Claude Code, Codex, Gemini CLI, OpenCode at once.
|
|
127
|
-
agents sessions "auth middleware"
|
|
128
|
-
|
|
129
|
-
# Filter by agent, project, or time window
|
|
130
|
-
agents sessions --agent codex --since 7d
|
|
131
|
-
agents sessions --project my-app
|
|
132
|
-
|
|
133
|
-
# Read a full conversation
|
|
134
|
-
agents sessions a1b2c3d4 --markdown
|
|
135
|
-
|
|
136
|
-
# Just the last 3 turns, user messages only
|
|
137
|
-
agents sessions a1b2c3d4 --last 3 --include user
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
Interactive picker when you're in a terminal. Structured output (`--json`, `--markdown`, filtered by role or turn count) when piped.
|
|
141
|
-
|
|
142
|
-
Backed by a SQLite + FTS5 index at `~/.agents/sessions/sessions.db` with incremental scanning -- warm reads in ~100ms. External tools can consume `--json` output as a programmatic observability layer; see [docs/05-sessions.md](docs/05-sessions.md) for the schema and [docs/06-observability.md](docs/06-observability.md) for the consumption patterns.
|
|
143
|
-
|
|
144
|
-
---
|
|
145
|
-
|
|
146
|
-
## Run open models through Claude Code
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
# Kimi K2.5 responding inside Claude Code's UI, tools, and skills.
|
|
150
|
-
# No proxy server. No LiteLLM. One OpenRouter key, stored in Keychain.
|
|
151
|
-
agents profiles add kimi
|
|
152
|
-
agents run kimi "refactor this file"
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
Built-in presets (all via OpenRouter, one shared key):
|
|
156
|
-
|
|
157
|
-
| Preset | Model | Notes |
|
|
158
|
-
|---|---|---|
|
|
159
|
-
| `kimi` | Kimi K2.5 | #1 HumanEval. Reasoning -- interactive only. |
|
|
160
|
-
| `minimax` | MiniMax M2.5 | #1 SWE-bench Verified. Reasoning. |
|
|
161
|
-
| `glm` | GLM 5 | #1 Chatbot Arena (open-weight). |
|
|
162
|
-
| `qwen` | Qwen3 Coder Next | Latest coding Qwen. Print-safe. |
|
|
163
|
-
| `deepseek` | DeepSeek Chat V3 | Latest non-reasoning. Print-safe. |
|
|
164
|
-
|
|
165
|
-
A profile swaps the model while keeping Claude Code as the agent runtime -- same UI, slash commands, skills, MCP tools. Under the hood: `ANTHROPIC_BASE_URL` + `ANTHROPIC_MODEL`, auth from Keychain at spawn time.
|
|
166
|
-
|
|
167
|
-
Custom endpoints (Ollama, vLLM) work too -- drop a YAML in `~/.agents/profiles/`:
|
|
168
|
-
|
|
169
|
-
```yaml
|
|
170
|
-
name: local-qwen
|
|
171
|
-
host: { agent: claude }
|
|
172
|
-
env:
|
|
173
|
-
ANTHROPIC_BASE_URL: https://ollama.internal
|
|
174
|
-
ANTHROPIC_MODEL: qwen3.6:35b
|
|
175
|
-
auth:
|
|
176
|
-
envVar: ANTHROPIC_AUTH_TOKEN
|
|
177
|
-
keychainItem: agents-cli.ollama.token
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
Profile YAML has no secrets -- safe to `agents push` to a shared repo. `agents profiles presets` lists the full catalog.
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
## Teams
|
|
185
|
-
|
|
186
|
-
```bash
|
|
187
|
-
agents teams create auth-feature
|
|
188
|
-
|
|
189
|
-
# Research first, then implement, then test.
|
|
190
|
-
agents teams add auth-feature claude "Research auth libraries" --name researcher
|
|
191
|
-
agents teams add auth-feature codex "Draft the migration" --name migrator --after researcher
|
|
192
|
-
agents teams add auth-feature claude "Write tests for the new code" --name tester --after migrator
|
|
193
|
-
|
|
194
|
-
agents teams start auth-feature # Fires teammates whose deps are done
|
|
195
|
-
agents teams status auth-feature # Who's working, what they changed, what they said
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
Teammates run detached -- close your terminal, they keep working. Check in with `teams status`, read full output with `teams logs <name>`, clean up with `teams disband`.
|
|
199
|
-
|
|
200
|
-
Team state is observable via `agents teams list --json` / `agents teams status --json`. External tools join it with `sessions --json` (teammates get `isTeamOrigin: true`) and `cloud list --json` (for `--cloud` teammates) to build a unified fleet view. See [docs/06-observability.md](docs/06-observability.md).
|
|
201
|
-
|
|
202
|
-
---
|
|
203
|
-
|
|
204
|
-
## Secrets
|
|
205
|
-
|
|
206
|
-
```bash
|
|
207
|
-
# API keys in Keychain, not in .env files.
|
|
208
|
-
agents secrets add prod-stripe
|
|
209
|
-
agents secrets set prod-stripe STRIPE_SECRET_KEY # Prompts, stores in Keychain
|
|
210
|
-
agents secrets set prod-stripe TEST_CARD --value "4242..."
|
|
211
|
-
|
|
212
|
-
# Injected at run time. The YAML on disk has only refs.
|
|
213
|
-
agents run claude "charge a test card" --secrets prod-stripe
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
Merge order: profile env < `--secrets` < `--env K=V`. A missing keychain item aborts before the child starts.
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
## Routines
|
|
221
|
-
|
|
222
|
-
```bash
|
|
223
|
-
# Claude Code reviews PRs every weekday at 9 AM. Scheduler auto-starts.
|
|
224
|
-
agents routines add daily-digest \
|
|
225
|
-
--schedule "0 9 * * 1-5" \
|
|
226
|
-
--agent claude \
|
|
227
|
-
--prompt "Review yesterday's PRs and summarize key changes"
|
|
228
|
-
|
|
229
|
-
agents routines list # All jobs + next run times
|
|
230
|
-
agents routines run daily-digest # Test it now, ignore the schedule
|
|
231
|
-
agents routines logs daily-digest # Check last execution
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
Jobs run sandboxed -- agents only see directories and tools you explicitly allow.
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## PTY
|
|
239
|
-
|
|
240
|
-
```bash
|
|
241
|
-
# Give agents a real terminal for REPLs, TUIs, interactive programs.
|
|
242
|
-
SID=$(agents pty start)
|
|
243
|
-
agents pty exec $SID "python3"
|
|
244
|
-
agents pty screen $SID # Clean text, no ANSI -- what a human sees
|
|
245
|
-
agents pty write $SID "print('hello')\n"
|
|
246
|
-
agents pty stop $SID
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
A sidecar server holds sessions alive between CLI calls. `screen` renders via xterm-headless. Sessions auto-clean after 30 minutes idle.
|
|
250
|
-
|
|
251
|
-
---
|
|
252
|
-
|
|
253
|
-
## Portable setup
|
|
254
|
-
|
|
255
|
-
```bash
|
|
256
|
-
# New machine? One command.
|
|
257
|
-
agents pull
|
|
258
|
-
|
|
259
|
-
# Installs CLIs, registers MCP servers, syncs skills/commands/rules/hooks,
|
|
260
|
-
# sets up shims, configures defaults. Done.
|
|
261
|
-
|
|
262
|
-
agents push # Snapshot your config to git
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
---
|
|
266
|
-
|
|
267
|
-
## Compatibility
|
|
268
|
-
|
|
269
|
-
| Agent | Versions | MCP | Commands | Skills | Rules | Hooks | Permissions | Routines | Teams |
|
|
270
|
-
|-------|----------|-----|----------|--------|-------|-------|-------------|----------|-------|
|
|
271
|
-
| Claude Code | yes | yes | yes | yes | CLAUDE.md | yes | yes | yes | yes |
|
|
272
|
-
| Codex CLI | yes | yes | yes | yes | AGENTS.md | yes | yes | yes | yes |
|
|
273
|
-
| Gemini CLI | yes | yes | yes | yes | GEMINI.md | yes | -- | yes | yes |
|
|
274
|
-
| Cursor | yes | yes | yes | yes | .cursorrules | -- | -- | -- | yes |
|
|
275
|
-
| OpenCode | yes | yes | yes | yes | AGENTS.md | yes | yes | -- | yes |
|
|
276
|
-
| OpenClaw | yes | yes | -- | yes | workspace/AGENTS.md | yes | -- | -- | -- |
|
|
277
|
-
|
|
278
|
-
## FAQ
|
|
279
|
-
|
|
280
|
-
### Why use `agents` instead of `claude` / `codex` / `gemini` directly?
|
|
281
|
-
|
|
282
|
-
Claude Code, Codex CLI, and Gemini CLI each have their own config format, MCP setup, version management, and skill system. If you use more than one, you maintain N copies of everything. `agents` gives you one interface, one config source, and one place to pin versions -- plus features the individual CLIs don't ship: cross-agent pipelines, shared teams, unified session search, and project-pinned versions like `.nvmrc`.
|
|
283
|
-
|
|
284
|
-
### Is this like `nvm` / `mise` / `asdf` for AI agents?
|
|
285
|
-
|
|
286
|
-
For version management, yes. `agents-cli` reads `agents.yaml` from the project root, walks up the directory tree, and routes to the correct binary per project. But it also manages agent-native resources (skills, MCP servers, commands, hooks, permissions) that language version managers don't touch.
|
|
287
|
-
|
|
288
|
-
### Does it store my API keys or send telemetry?
|
|
289
|
-
|
|
290
|
-
No. API keys come from your shell environment or each agent CLI's existing auth. No telemetry, no phone-home. All state lives in `~/.agents/`.
|
|
291
|
-
|
|
292
|
-
### Which platforms?
|
|
293
|
-
|
|
294
|
-
macOS and Linux. Windows via WSL works but isn't first-class yet.
|
|
295
|
-
|
|
296
|
-
### Do I need Node.js?
|
|
297
|
-
|
|
298
|
-
The installer tries Bun first (faster), falls back to npm. Node 18+ required at runtime.
|
|
299
|
-
|
|
300
|
-
### Can I use it in CI?
|
|
301
|
-
|
|
302
|
-
Yes -- `agents run` is non-interactive by default. `--yes` auto-accepts prompts, `--json` for structured output. Pass explicit names and IDs instead of relying on interactive pickers.
|
|
303
|
-
|
|
304
|
-
### Can I add support for a new agent?
|
|
305
|
-
|
|
306
|
-
Agents are defined in [src/lib/agents.ts](src/lib/agents.ts) -- each is a config object declaring commands dir, memory file, and capabilities. PRs welcome.
|
|
307
|
-
|
|
308
|
-
### What's the relationship to Phoenix Labs / Rush?
|
|
309
|
-
|
|
310
|
-
`agents-cli` is an open client maintained by Phoenix Labs. Rush is a separate product. No Rush account required, no upsell.
|
|
311
|
-
|
|
312
|
-
## Contributing
|
|
313
|
-
|
|
314
|
-
```bash
|
|
315
|
-
git clone https://github.com/phnx-labs/agents-cli
|
|
316
|
-
cd agents-cli
|
|
317
|
-
bun install && bun run build && bun test
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
Commands in [src/commands/](src/commands/), libraries in [src/lib/](src/lib/), tests as `*.test.ts` under vitest. [CLAUDE.md](CLAUDE.md) has the full style guide. [docs/04-landscape.md](docs/04-landscape.md) covers the competitive landscape.
|
|
321
|
-
|
|
322
|
-
## License
|
|
323
|
-
|
|
324
|
-
MIT -- see [LICENSE](./LICENSE).
|
package/bin/agents.js
ADDED
package/package.json
CHANGED
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swarmify/agents-cli",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.js"
|
|
11
|
-
},
|
|
12
|
-
"./teams": {
|
|
13
|
-
"types": "./dist/lib/teams/index.d.ts",
|
|
14
|
-
"import": "./dist/lib/teams/index.js"
|
|
15
|
-
}
|
|
3
|
+
"version": "1.14.0",
|
|
4
|
+
"description": "This package has moved to @phnx-labs/agents-cli. Install that instead.",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@phnx-labs/agents-cli": ">=1.13.4"
|
|
16
7
|
},
|
|
17
8
|
"bin": {
|
|
18
|
-
"agents": "
|
|
19
|
-
"ag": "
|
|
9
|
+
"agents": "bin/agents.js",
|
|
10
|
+
"ag": "bin/agents.js"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"postinstall": "node scripts/postinstall.js"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=18.0.0"
|
|
20
17
|
},
|
|
21
|
-
"
|
|
22
|
-
"dist",
|
|
23
|
-
"scripts",
|
|
24
|
-
"CHANGELOG.md"
|
|
25
|
-
],
|
|
18
|
+
"license": "MIT",
|
|
26
19
|
"repository": {
|
|
27
20
|
"type": "git",
|
|
28
21
|
"url": "git+https://github.com/phnx-labs/agents-cli.git"
|
|
@@ -30,64 +23,5 @@
|
|
|
30
23
|
"homepage": "https://agents-cli.sh",
|
|
31
24
|
"bugs": {
|
|
32
25
|
"url": "https://github.com/phnx-labs/agents-cli/issues"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "tsc",
|
|
36
|
-
"prepublishOnly": "tsc",
|
|
37
|
-
"postinstall": "node scripts/postinstall.js",
|
|
38
|
-
"dev": "tsx src/index.ts",
|
|
39
|
-
"start": "node dist/index.js",
|
|
40
|
-
"pretest": "./scripts/rebuild-sqlite.sh",
|
|
41
|
-
"test": "vitest run",
|
|
42
|
-
"test:watch": "vitest"
|
|
43
|
-
},
|
|
44
|
-
"keywords": [
|
|
45
|
-
"agents",
|
|
46
|
-
"cli",
|
|
47
|
-
"dotfiles",
|
|
48
|
-
"claude",
|
|
49
|
-
"codex",
|
|
50
|
-
"gemini",
|
|
51
|
-
"cursor",
|
|
52
|
-
"opencode",
|
|
53
|
-
"mcp",
|
|
54
|
-
"skills",
|
|
55
|
-
"ai",
|
|
56
|
-
"sync",
|
|
57
|
-
"multi-agent"
|
|
58
|
-
],
|
|
59
|
-
"author": "Phoenix Labs",
|
|
60
|
-
"license": "MIT",
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=18.0.0"
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"@aws-sdk/client-s3": "^3.700.0",
|
|
66
|
-
"@inquirer/prompts": "^7.0.0",
|
|
67
|
-
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
68
|
-
"@xterm/headless": "^6.0.0",
|
|
69
|
-
"better-sqlite3": "^12.9.0",
|
|
70
|
-
"chalk": "^5.3.0",
|
|
71
|
-
"commander": "^12.1.0",
|
|
72
|
-
"croner": "^9.0.0",
|
|
73
|
-
"diff": "^7.0.0",
|
|
74
|
-
"marked": "^17.0.3",
|
|
75
|
-
"marked-terminal": "^7.3.0",
|
|
76
|
-
"node-pty": "^1.1.0",
|
|
77
|
-
"ora": "^8.1.0",
|
|
78
|
-
"semver": "^7.6.0",
|
|
79
|
-
"simple-git": "^3.27.0",
|
|
80
|
-
"smol-toml": "^1.6.0",
|
|
81
|
-
"yaml": "^2.6.0"
|
|
82
|
-
},
|
|
83
|
-
"devDependencies": {
|
|
84
|
-
"@types/better-sqlite3": "^7.6.13",
|
|
85
|
-
"@types/diff": "^6.0.0",
|
|
86
|
-
"@types/marked-terminal": "^6.1.1",
|
|
87
|
-
"@types/node": "^22.0.0",
|
|
88
|
-
"@types/semver": "^7.5.0",
|
|
89
|
-
"tsx": "^4.19.0",
|
|
90
|
-
"typescript": "^5.5.0",
|
|
91
|
-
"vitest": "^2.0.0"
|
|
92
26
|
}
|
|
93
27
|
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -1,72 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import * as path from 'path';
|
|
7
|
-
import * as os from 'os';
|
|
8
|
-
|
|
9
|
-
const HOME = os.homedir();
|
|
10
|
-
const SHIMS_DIR = path.join(HOME, '.agents', 'shims');
|
|
11
|
-
const AGENTS_DIR = path.join(HOME, '.agents');
|
|
12
|
-
|
|
13
|
-
// Only run for global installs
|
|
14
|
-
if (!process.env.npm_config_global && !process.argv.includes('-g')) {
|
|
15
|
-
process.exit(0);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Create directories
|
|
19
|
-
fs.mkdirSync(SHIMS_DIR, { recursive: true });
|
|
20
|
-
fs.mkdirSync(AGENTS_DIR, { recursive: true });
|
|
21
|
-
|
|
22
|
-
// Detect shell rc file
|
|
23
|
-
function getShellRc() {
|
|
24
|
-
const shell = process.env.SHELL || '/bin/bash';
|
|
25
|
-
const shellName = path.basename(shell);
|
|
26
|
-
|
|
27
|
-
switch (shellName) {
|
|
28
|
-
case 'zsh':
|
|
29
|
-
return path.join(HOME, '.zshrc');
|
|
30
|
-
case 'fish':
|
|
31
|
-
return path.join(HOME, '.config', 'fish', 'config.fish');
|
|
32
|
-
case 'bash':
|
|
33
|
-
const bashProfile = path.join(HOME, '.bash_profile');
|
|
34
|
-
if (fs.existsSync(bashProfile)) {
|
|
35
|
-
return bashProfile;
|
|
36
|
-
}
|
|
37
|
-
return path.join(HOME, '.bashrc');
|
|
38
|
-
default:
|
|
39
|
-
return path.join(HOME, '.profile');
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const rcFile = getShellRc();
|
|
44
|
-
const shellName = path.basename(process.env.SHELL || '/bin/bash');
|
|
45
|
-
|
|
46
|
-
// Check if already configured
|
|
47
|
-
let alreadyConfigured = false;
|
|
48
|
-
if (fs.existsSync(rcFile)) {
|
|
49
|
-
const content = fs.readFileSync(rcFile, 'utf-8');
|
|
50
|
-
alreadyConfigured = content.includes('.agents/shims');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (alreadyConfigured) {
|
|
54
|
-
process.exit(0);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Add to shell rc
|
|
58
|
-
const exportLine = shellName === 'fish'
|
|
59
|
-
? `fish_add_path ${SHIMS_DIR}`
|
|
60
|
-
: `export PATH="${SHIMS_DIR}:$PATH"`;
|
|
61
|
-
|
|
62
|
-
const addition = `
|
|
63
|
-
# agents-cli: version switching for AI coding agents
|
|
64
|
-
${exportLine}
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
// Ensure parent directory exists (for fish)
|
|
68
|
-
fs.mkdirSync(path.dirname(rcFile), { recursive: true });
|
|
69
|
-
fs.appendFileSync(rcFile, addition);
|
|
70
|
-
|
|
71
|
-
console.log(`\n Added ${SHIMS_DIR} to PATH in ${path.basename(rcFile)}`);
|
|
72
|
-
console.log(` Restart your shell to enable version switching\n`);
|
|
2
|
+
console.log(
|
|
3
|
+
'\n @swarmify/agents-cli has moved to @phnx-labs/agents-cli\n' +
|
|
4
|
+
' To switch: npm install -g @phnx-labs/agents-cli\n'
|
|
5
|
+
);
|