Solution Strategy

The table maps each Chapter 1 quality goal to the concrete approach the code uses to reach it. The approaches themselves are visible in code; the reason each was chosen over alternatives is deferred — recorded as Architecture Decisions in [section-design-decisions] with status "Accepted (inferred)".

Quality Goal Approach in the code

Security / Safety

Every tool call resolves to a permission tier — ALWAYS / ASK / NEVER — before it runs; file tools enforce a working-directory boundary; a folder must be trusted before its project config loads [vibe/core/tools/base.py:83-113, vibe/core/tools/utils.py:64-125, vibe/core/trusted_folders.py:75-122]. The active agent profile (plan, accept-edits, auto-approve) bounds how much the agent may do without asking [vibe/core/agents/models.py:110-199].

Usability

A Textual TUI renders the conversation with key bindings, slash commands and @-path / /-command autocompletion; a first-run wizard handles API-key setup [vibe/cli/textual_ui/app.py:327-348, vibe/cli/commands.py:39, vibe/setup/onboarding/screens/welcome.py:46-80].

Maintainability

The engine is structured as hexagonal ports (*_port.py) with adapters at the edges, so LLM providers, audio, TTS and gateways are swappable; strict pyright and ruff gate every change [vibe/core/llm/backend/base.py:13-126, AGENTS.md:24-69].

Compatibility

An LLM backend factory selects a provider-specific backend, and API-style adapters cover OpenAI, Anthropic and Vertex shapes; an MCP registry and the vibe-acp server integrate the MCP and ACP protocols [vibe/core/llm/backend/factory.py:7, vibe/core/llm/format.py:58-185, vibe/core/tools/mcp/registry.py:21].

Reliability

The Mistral backend retries with exponential backoff; a middleware pipeline enforces turn and price limits and triggers auto-compaction when the context nears the model threshold; user interruption cancels in-flight tool tasks cleanly [vibe/core/llm/backend/mistral.py:212-222, vibe/core/middleware.py:49-96, vibe/core/agent_loop.py:1244-1259].

Key architectural patterns