Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

One tool layer for eleven AI coding CLIs: what we learned building SpaceApp

Описание и применение

SpaceApp объединяет конфигурацию инструментов и управление сессиями для нескольких AI‑кодирующих CLI, устраняя конфигурационную дрейф и неактивные процессы, а также разделяя UI от агентских процессов.

Задача

Managing disparate tool configurations and session lifecycles across multiple AI coding CLIs leads to configuration drift, idle processes, and fragile agent state.

Результат

SpaceApp reduces configuration drift, idle MCP processes, and improves session resilience across multiple AI coding CLIs by centralizing tool management and decoupling UI from agent processes.

Рабочий процесс

  • 1. Identify runtime‑provided capabilities (shell, file editing, image input).
  • 2. Wrap only non‑native tools in MCP calls to avoid latency.
  • 3. For Codex and Claude Code, register no MCP server at startup; use on‑demand entrypoint space-capability to start a small worker per pane when needed.
  • 4. For other runtimes, declare a single dispatcher space-mcp-dispatcher from a shared registry and spawn servers only when called.
  • 5. Ensure each operation passes its own schema, role, approval, and broker gates; treat MCP as transport, not authorization.
  • 6. Separate UI server from agent processes: run each CLI in a terminal session owned by a pane host, attach API via socket, and allow reconnection without losing session state.
  • 7. Handle TUI differences: send appropriate interrupt key per CLI, manage model picker UI interactions, and detect ready screens correctly.
  • 8. Use contract suite to validate declared start, resume, and login commands against wrapper filters.
  • 9. Deploy SpaceApp with npx --yes run-spaceapp@latest install and configure rooms for each user or project.

Доказательства

Every CLI wants its tools declared in its own file: one JSON shape for one, a TOML table for another, a command-line flag for a third.

Источник

The first rule we settled on: use what the runtime already has.

Источник

In SpaceApp each CLI runs in a terminal session owned by a separate pane host process, not by the API.

Источник

SpaceApp is open source (MIT) and installs with: npx --yes run-spaceapp@latest install

Источник

  • Дата записи: 2026-11-02T03:14:04.610Z