Skip to content

AI Agent v1: "Terminal Doctor" (read-heavy MVP) #56

Description

@kipavy

AI Agent v1 — "Terminal Doctor" (read-heavy MVP)

First vertical slice — proves the whole stack with a small blast radius.

Part of the BYOK AI Agent epic: #55

Depends on #59 (UI/UX design & anti-clutter pass) for the panel / palette / terminal surfaces.

Scope

In the chat panel and via the terminal shortcut, the agent can:

  1. Open a connection (prompts — network/auth).
  2. Run read-only commands.
  3. Read terminal output (the key new gated verb).
  4. Explain / diagnose errors, suggest fixes.
  5. Any write / risky command still prompts (Approve / Edit / Reject).

Proves

Provider loop · tool registry · terminal-output read (gated tier) · approval UX ·
chat panel + terminal surface.

Requires

  • Gated capability tier: terminal-read + session-open (see capability-layer issue).
  • Provider/BYOK layer (Vercel AI SDK, key in keychain).
  • Agent loop + a small tool registry.
  • Approval/permission state machine.
  • Chat panel + terminal-context surface.
  • Agent settings (provider, key, model).

Acceptance criteria

  • User configures a provider + key; agent connects.
  • From a terminal, "why did this fail?" reads recent output and explains.
  • Agent can open a saved connection and run a read-only command after approval.
  • Any mutating command is blocked behind an approval prompt.
  • Actions recorded in the audit trail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-agentBYOK AI agent featureenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions