77917203fd
server/lib/ai-tools.js loads server/data/ai-tools/*.json (38 tools, data from Orca, MIT) plus DASHBOARD_AI_TOOLS_DIR, detects each CLI by walking PATH, and keeps enable/default in <data dir>/ai-tools.json. shell-path.js merges the login shell's PATH at startup and on Refresh. /api/ai-tools lists, refreshes and toggles; /api/run/binary resolves through the catalog. Lanes accept any catalog id (EDISABLED for a disabled one on creation, ENOTOOL at start once a tool left the catalog). pty-run keeps the Claude/Codex builders and builds every other tool's argv from its catalog file, pasting an after-start prompt through a tmux buffer; every pane gets the hydrated PATH. A per-run bypass switch appends the catalog's bypass args (Codex included). POST /api/run now forwards sandbox/approval/resumeLast, which it dropped. agenthub lanes add gains --tool.
16 lines
668 B
Markdown
16 lines
668 B
Markdown
# AI Tools catalog
|
|
|
|
One JSON file per AI coding CLI AgentHub can run in a lane. Loaded by
|
|
`server/lib/ai-tools.js`; the fields are described in
|
|
`docs/superpowers/specs/2026-09-28-ai-tools-a1-design.md` § 1. A file in
|
|
`DASHBOARD_AI_TOOLS_DIR` with the same `id` replaces the built-in one (it may
|
|
not set `launcher`).
|
|
|
|
## Attribution
|
|
|
|
The commands, prompt modes, permission-bypass flags and homepages of the tools
|
|
other than Claude Code, Codex and Antigravity come from Orca
|
|
(<https://github.com/stablyai/orca>, MIT License, Copyright (c) Stably AI):
|
|
`src/renderer/src/lib/agent-catalog.tsx`, `src/shared/tui-agent-config.ts` and
|
|
`src/shared/tui-agent-permissions.ts`.
|