Skip to content

Epic: AI provider kinds contributed by the embedding application #1636

Backlog
3 of 5 issues completed
Backlog

Description

@smart-ssh-planner

Goal

Let an application that embeds the core (through Wiring) contribute its own AI provider kinds, for example providers that are not a remote HTTP API but a local program, and let such providers show their own activity and ask the user for a decision inside the chat. The Community build registers no extension kind, so its behaviour stays exactly as it is.

Scope

In scope:

  • a registry of provider kinds contributed through Wiring, stored in ai_provider_configs next to the built-in kinds, with opaque per-config settings and an optional credential
  • AI requests that tell the provider why they are made (chat turn, compaction, title, second opinion …) and for which saved chat session
  • provider activity notices and provider-requested confirmations in the chat turn, shown in the chat
  • a frontend registry so the settings dialog can offer registered kinds with their own form

Out of scope: any concrete extension provider. The core ships no new provider kind.

Shared decisions

  • Extension kinds are stored as provider_type = 'extension' plus a kind id column and a JSON settings column. Built-in kinds keep their values and code paths unchanged.
  • Kind ids match ^[a-z][a-z0-9_]{0,63}$.
  • Fail closed: a stored config whose kind is not registered (or whose kind refuses to build) is listed as unavailable and cannot connect. It is never silently replaced by another provider.
  • Extension settings never hold secrets. A kind that needs a secret declares it, and the secret goes through the credential store like every API key today.
  • Nothing a provider emits executes anything. Server actions still come only as AiEvent::ActionProposed and go through the filter engine, risk check and confirmation unchanged. Activity text and confirmation texts from a provider are untrusted display content.
  • A provider confirmation that is not answered (turn stopped, session closed, stream dropped) resolves as "rejected".

Sub-issues

Sub-issues

Sub-issues

3 of 5 Issues completed
Loading 5 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepic

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions