feat(backends): support {prompt} substitution in external CLI args

This commit is contained in:
William Valentin
2026-02-17 09:32:16 -08:00
parent 1d84d69f4f
commit 891ee59527
+4
View File
@@ -329,6 +329,10 @@ backends:
gemini: { enabled: false, path: /usr/local/bin/gemini, args: [], timeout_ms: 120000 }
```
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`.
You can also route specific named agents to a backend: