feat(backends): support explicit backends.default selection

This commit is contained in:
William Valentin
2026-02-17 09:38:41 -08:00
parent d0b48c5680
commit 6d7970f489
3 changed files with 20 additions and 1 deletions
+2 -1
View File
@@ -322,6 +322,7 @@ Flynn can run with the built-in native backend or delegate message processing to
```yaml
backends:
default: codex
native: { enabled: true }
codex: { enabled: false, path: /usr/local/bin/codex, args: [], timeout_ms: 120000 }
claude_code: { enabled: false, path: /usr/local/bin/claude, args: [], timeout_ms: 120000 }
@@ -333,7 +334,7 @@ When `args` is non-empty:
- use `{prompt}` in an argument to inject the full generated prompt directly into argv.
- if `{prompt}` is not present, Flynn writes the prompt to stdin.
If multiple external backends are enabled, Flynn selects the first in this order: `codex` -> `claude_code` -> `opencode` -> `gemini`.
If multiple external backends are enabled, set `backends.default` to choose explicitly. If omitted, Flynn selects by priority: `codex` -> `claude_code` -> `opencode` -> `gemini`.
You can also route specific named agents to a backend: