sandwalk-dev-loop
Run Sandwalk locally from this checkout for development: start the agent API (cli/) on :8787, the dashboard UI (Vite / Tauri) on :1420, stop the packaged…
от fastfold-ai★ 23 звезды на GitHub
Установить sandwalk-dev-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Sandwalk dev loop
Two processes, two terminals. The UI never spawns the API.
| Process | Command | Port | Reloads on edit? |
|---|---|---|---|
Agent API (cli/) |
scripts/dev-api.sh |
8787 | No — Ctrl+C and re-run after editing cli/src |
| Dashboard UI | scripts/dev-ui.sh (Tauri window) or scripts/dev-ui.sh web (browser) |
1420 | TS/React: HMR. Rust in src-tauri/: auto rebuild + relaunch |
Start
scripts/stop-packaged-app.sh # only if Sandwalk.app / the menubar server is running (it owns :8787)
scripts/dev-api.sh # terminal 1
scripts/dev-ui.sh # terminal 2 (add `web` for browser-only)
curl -fsS http://127.0.0.1:8787/v1/health # API up?
Run long-lived processes in the background and read their output files; do not
block on them. The API prints Bench runtime started when ready; the Tauri dev
prints Finished \dev` profilethenRunning …/sandwalk-desktop`.
Put something on screen
node scripts/dev-grid.mjs 4x4 # 16 fresh chats in a 4×4 split, one prompt each
node scripts/dev-grid.mjs 2x3 --quiet # grid only, no messages
node scripts/dev-grid.mjs 3x3 --provider anthropic --model claude-sonnet-5
node scripts/dev-grid.mjs --cleanup # delete every "[grid]" chat
It creates the chats over REST and POST /v1/ui/commands
({action: "open_split", sessionIds, layout: {rows, cols}}) — the running UI
(Tauri window or browser tab) builds the group itself, so it works without
touching the webview's localStorage. Pin a model that answers the agent prompt
(Fable 5.x refuses it today).
Rules
- Never Start/Restart the menubar "Sandwalk Server" app when testing checkout
code — it runs the bundled API from the last DMG, not
cli/src. - Auth is on: the UI reads the API key from the app's
settings.json(SANDWALK_SETTINGS_PATH, set bydev-api.sh). A401right after an HMR reload is transient; persistent 401s mean the key insettings.jsonchanged. - API keys for LLM providers live in
~/.sandwalk/config.jsonandsettings.json. Never print them or commit them; redact log lines that containtoken=orBearer. Sandwalk.appin~/Applicationsis frozen until you rebuild the DMG; use the dev loop for UI work, the packaged app only for notifications/signing.- Native banner-click deep links do not fire in
tauri:dev(UN delegate skipped (not bundled)); test those on a signed build. - In dev builds
window.__sandwalkPerfexposes render/terminal counters (see thesandwalk-testingskill); leaveperfCount()calls in place.
Common problems
| Symptom | Cause / fix |
|---|---|
dev-api.sh says something listens on :8787 |
Packaged menubar server → scripts/stop-packaged-app.sh; or an older sandwalk serve → lsof -nP -iTCP:8787 -sTCP:LISTEN and kill -INT <pid> |
| Python change has no effect | API does not hot-reload — restart dev-api.sh |
| After an API restart the UI goes quiet (no requests in the API log) | Known: the desktop SPA does not reconnect on its own yet — force a reload (touch apps/local-web/index.html triggers a Vite full reload) |
| Models page shows an old catalog | Restart the API (catalog is read at start) |
| Terminal in a split shows a prompt but typing does nothing | PTY socket not open yet; wait for terminal.wsOpen counter |
Invalid layout total size: 65%, 40% console warning |
Pre-existing, cosmetic (chat 65 + draft-terminal 40) |
Task was destroyed but it is pending! after PUT /v1/capy/scope |
Pre-existing on main, Capy scope handler |
Where things are
- API server:
cli/src/agent_server/(routes, PTY manager, stores); LLM runtime:cli/src/agent/ - UI:
apps/local-web/src/(components/agents/grid + terminal layer,hooks/,lib/) - Tauri shell:
apps/local-web/src-tauri/; menubar helper:apps/sandwalk-mac/ - Packaging / signing:
apps/packaging/(APPLE-SIGNING.md)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sandwalk-dev-loop?
Run Sandwalk locally from this checkout for development: start the agent API (cli/) on :8787, the dashboard UI (Vite / Tauri) on :1420, stop the packaged Sandwalk.app that holds the same port, and know what hot-reloads vs. what needs a restart. Use when asked to run, restart, or debug the app in dev mode, when a port is busy, or when UI/Python changes are not showing up.
Как установить скилл sandwalk-dev-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sandwalk-dev-loop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…