Repository navigation
Backlog
Feature
3 / 53 of 5 issues completed
Copy link
Labels
Milestone
Description
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 inai_provider_configsnext 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::ActionProposedand 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
- Extension point: register AI provider kinds through Wiring (storage, factory, commands) #1637
- AI requests carry their purpose and the saved chat session id #1638
- Provider activity notices and provider-requested confirmations in the chat turn #1639
- Settings: offer registered AI provider kinds with their own form #1640
- Chat: show provider activity and provider confirmation requests #1641
Sub-issues
Collapse Sub-issuesSub-issues
Loading 5 sub-issues
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
None yet
Activity