You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adds support for template variables in `messages.responsePrefix` that
resolve dynamically at runtime with the actual model used (including
after fallback).
Supported variables (case-insensitive):
- {model} - short model name (e.g., "claude-opus-4-5", "gpt-4o")
- {modelFull} - full model identifier (e.g., "anthropic/claude-opus-4-5")
- {provider} - provider name (e.g., "anthropic", "openai")
- {thinkingLevel} or {think} - thinking level ("high", "low", "off")
- {identity.name} or {identityName} - agent identity name
Example: "[{model} | think:{thinkingLevel}]" → "[claude-opus-4-5 | think:high]"
Variables show the actual model used after fallback, not the intended
model. Unresolved variables remain as literal text.
Implementation:
- New module: src/auto-reply/reply/response-prefix-template.ts
- Template interpolation in normalize-reply.ts via context provider
- onModelSelected callback in agent-runner-execution.ts
- Updated all 6 provider message handlers (web, signal, discord,
telegram, slack, imessage)
- 27 unit tests covering all variables and edge cases
- Documentation in docs/gateway/configuration.md and JSDoc
Fixes #923
|
10 months ago | |
|---|---|---|
| .. | ||
| authentication.md | 10 months ago | |
| background-process.md | 10 months ago | |
| bonjour.md | 11 months ago | |
| bridge-protocol.md | 10 months ago | |
| cli-backends.md | 10 months ago | |
| configuration-examples.md | 10 months ago | |
| configuration.md | 10 months ago | |
| discovery.md | 10 months ago | |
| doctor.md | 10 months ago | |
| gateway-lock.md | 11 months ago | |
| health.md | 10 months ago | |
| heartbeat.md | 10 months ago | |
| index.md | 10 months ago | |
| local-models.md | 10 months ago | |
| logging.md | 10 months ago | |
| openai-http-api.md | 11 months ago | |
| pairing.md | 11 months ago | |
| protocol.md | 10 months ago | |
| remote-gateway-readme.md | 10 months ago | |
| remote.md | 10 months ago | |
| sandbox-vs-tool-policy-vs-elevated.md | 10 months ago | |
| sandboxing.md | 10 months ago | |
| security.md | 10 months ago | |
| tailscale.md | 10 months ago | |
| troubleshooting.md | 10 months ago | |