agent-providers Specification
Purpose
Die Fork-App erkennt lokale Agent-CLIs, lässt Profile und Aktionen in den Einstellungen pflegen und startet Agent-Läufe inkl. Chat-Runs aus der UI.
Requirements
Requirement: Installed CLIs are discoverable
The app SHALL scan for known agent CLIs on the host (including user bin directories that a desktop session often omits from PATH) and offer them as installable profiles.
Scenario: Claude on PATH or user bin
- WHEN a
claudebinary exists on PATH or under~/.local/bin - THEN the agents settings can offer it as an installable host profile
Scenario: Cursor agent binary aliases
- WHEN
cursor-agentoragentis available as the Cursor CLI - THEN it appears as a Cursor host profile candidate
Requirement: Agent settings persist profiles and actions
Agent settings SHALL store profiles, actions, recent working directories, and which agent is used for «write with», and SHALL reject unknown placeholders and empty commands.
Scenario: Invalid action is rejected
- WHEN an action references an agent id that is not in the profile list
- THEN settings validation reports that problem
- AND the invalid configuration is not treated as healthy
Scenario: Write-with can target a chat profile
- WHEN the user picks a chat-capable agent for «write with»
- THEN that choice is stored in agent settings
- AND empty write-with means Microsoft Copilot
Requirement: Chat and task runs are started from the app
The user SHALL be able to start agent runs and chat runs from the app against a configured profile, with working-directory context remembered per agent.
Scenario: Recent working directories are remembered
- WHEN the user runs an agent with a working directory
- THEN that directory is kept in the recent list for that agent (capped)
- AND it can be chosen again later without retyping
Requirement: Write-with identity brands assistant surfaces
When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL present that profile's name and a non-Copilot icon instead of Microsoft Copilot branding. When «Write with» is empty, those surfaces SHALL keep Microsoft Copilot branding.
Scenario: Local writer rebrands composer and island
- WHEN the user has chosen a chat profile under Settings > Agents > Write with
- THEN the composer rewrite tooltip, working and failure copy name that profile
- AND the chat-header island title, open/close labels, placeholder and working/failure copy name that profile
- AND neither surface shows the Copilot colour logo as its identity mark
Scenario: Empty write-with keeps Copilot branding
- WHEN Write with is left empty (Microsoft Copilot)
- THEN composer rewrite and the chat-header island keep Copilot labels and the Copilot logo where they already appear today
Requirement: Chat island asks through the write-with profile
When «Write with» selects a chat profile, questions from the chat-header assistant island SHALL be answered by that profile. The prompt SHALL include up to the newest twenty non-deleted messages of the open chat as plain text plus the user's question. The island SHALL NOT call Microsoft Copilot for those asks. Empty Write with keeps the Microsoft ask path.
Scenario: Local ask uses recent chat messages
- WHEN Write with is a chat profile and the user asks a question in the chat-header island
- THEN the answer comes from that profile
- AND the model input includes at most the newest twenty non-deleted messages of that chat plus the question
- AND Microsoft Copilot is not invoked for that ask
Scenario: Empty write-with still uses Microsoft ask
- WHEN Write with is empty and the user asks in the chat-header island
- THEN the ask follows the existing Microsoft Copilot path
Requirement: Local writer surfaces work without a Teams engine
When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL remain available for an open chat even if the Teams sync engine is absent, so users without a Microsoft Copilot licence can still use the local writer.
Scenario: Island opens without engine when a local writer is set
- WHEN Write with is a chat profile, a chat is open, and no Teams sync engine is connected
- THEN the user can still open the chat-header assistant island and send a question to that profile
Source
| 1 | # agent-providers Specification |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | Die Fork-App erkennt lokale Agent-CLIs, lässt Profile und Aktionen in den Einstellungen pflegen und startet Agent-Läufe inkl. Chat-Runs aus der UI. |
| 6 | |
| 7 | ## Requirements |
| 8 | |
| 9 | ### Requirement: Installed CLIs are discoverable |
| 10 | |
| 11 | The app SHALL scan for known agent CLIs on the host (including user bin directories that a desktop session often omits from PATH) and offer them as installable profiles. |
| 12 | |
| 13 | #### Scenario: Claude on PATH or user bin |
| 14 | |
| 15 | - **WHEN** a `claude` binary exists on PATH or under `~/.local/bin` |
| 16 | - **THEN** the agents settings can offer it as an installable host profile |
| 17 | |
| 18 | #### Scenario: Cursor agent binary aliases |
| 19 | |
| 20 | - **WHEN** `cursor-agent` or `agent` is available as the Cursor CLI |
| 21 | - **THEN** it appears as a Cursor host profile candidate |
| 22 | |
| 23 | ### Requirement: Agent settings persist profiles and actions |
| 24 | |
| 25 | Agent settings SHALL store profiles, actions, recent working directories, and which agent is used for «write with», and SHALL reject unknown placeholders and empty commands. |
| 26 | |
| 27 | #### Scenario: Invalid action is rejected |
| 28 | |
| 29 | - **WHEN** an action references an agent id that is not in the profile list |
| 30 | - **THEN** settings validation reports that problem |
| 31 | - **AND** the invalid configuration is not treated as healthy |
| 32 | |
| 33 | #### Scenario: Write-with can target a chat profile |
| 34 | |
| 35 | - **WHEN** the user picks a chat-capable agent for «write with» |
| 36 | - **THEN** that choice is stored in agent settings |
| 37 | - **AND** empty write-with means Microsoft Copilot |
| 38 | |
| 39 | ### Requirement: Chat and task runs are started from the app |
| 40 | |
| 41 | The user SHALL be able to start agent runs and chat runs from the app against a configured profile, with working-directory context remembered per agent. |
| 42 | |
| 43 | #### Scenario: Recent working directories are remembered |
| 44 | |
| 45 | - **WHEN** the user runs an agent with a working directory |
| 46 | - **THEN** that directory is kept in the recent list for that agent (capped) |
| 47 | - **AND** it can be chosen again later without retyping |
| 48 | |
| 49 | ### Requirement: Write-with identity brands assistant surfaces |
| 50 | |
| 51 | When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL present that profile's name and a non-Copilot icon instead of Microsoft Copilot branding. When «Write with» is empty, those surfaces SHALL keep Microsoft Copilot branding. |
| 52 | |
| 53 | #### Scenario: Local writer rebrands composer and island |
| 54 | |
| 55 | - **WHEN** the user has chosen a chat profile under Settings > Agents > Write with |
| 56 | - **THEN** the composer rewrite tooltip, working and failure copy name that profile |
| 57 | - **AND** the chat-header island title, open/close labels, placeholder and working/failure copy name that profile |
| 58 | - **AND** neither surface shows the Copilot colour logo as its identity mark |
| 59 | |
| 60 | #### Scenario: Empty write-with keeps Copilot branding |
| 61 | |
| 62 | - **WHEN** Write with is left empty (Microsoft Copilot) |
| 63 | - **THEN** composer rewrite and the chat-header island keep Copilot labels and the Copilot logo where they already appear today |
| 64 | |
| 65 | ### Requirement: Chat island asks through the write-with profile |
| 66 | |
| 67 | When «Write with» selects a chat profile, questions from the chat-header assistant island SHALL be answered by that profile. The prompt SHALL include up to the newest twenty non-deleted messages of the open chat as plain text plus the user's question. The island SHALL NOT call Microsoft Copilot for those asks. Empty Write with keeps the Microsoft ask path. |
| 68 | |
| 69 | #### Scenario: Local ask uses recent chat messages |
| 70 | |
| 71 | - **WHEN** Write with is a chat profile and the user asks a question in the chat-header island |
| 72 | - **THEN** the answer comes from that profile |
| 73 | - **AND** the model input includes at most the newest twenty non-deleted messages of that chat plus the question |
| 74 | - **AND** Microsoft Copilot is not invoked for that ask |
| 75 | |
| 76 | #### Scenario: Empty write-with still uses Microsoft ask |
| 77 | |
| 78 | - **WHEN** Write with is empty and the user asks in the chat-header island |
| 79 | - **THEN** the ask follows the existing Microsoft Copilot path |
| 80 | |
| 81 | ### Requirement: Local writer surfaces work without a Teams engine |
| 82 | |
| 83 | When «Write with» selects a chat profile, the composer rewrite control and the chat-header assistant island SHALL remain available for an open chat even if the Teams sync engine is absent, so users without a Microsoft Copilot licence can still use the local writer. |
| 84 | |
| 85 | #### Scenario: Island opens without engine when a local writer is set |
| 86 | |
| 87 | - **WHEN** Write with is a chat profile, a chat is open, and no Teams sync engine is connected |
| 88 | - **THEN** the user can still open the chat-header assistant island and send a question to that profile |