Feature Request: Dynamic String Contents in Markdown Docs
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
It would be useful to be able to use the Dynamic String Contents inside the markdown documents. This syntax is already used elsewhere in the project (in the config) and so would feel naturally familiar to developers.
This would facilitate the following use cases:
Per-Device Model Selection
Some developers prefer to run models locally when their hardware supports it. This feature could facilitate developers signaling the local model is available while providing a cloud based fallback:
---
mode: subagent
description: You refactor code
model: ${env:LOCAL_MODEL:anthropic/sonnet-4.6}
---
Help the user refactor their code
Shared templating
It can be useful to compose instructions for agents using fragments. This would allow things like coding guidelines to be shared across multiple agents.
.eca/fragments/coding_style.md
## Coding Styles
Never pluralize namespace names
Prefer data driven coding
Use the `!` suffix for any side-effecting function names
.eca/agents/refactor_agent.md
---
mode: subagent
description: You refactor code
model: anthropic/sonnet-4.6
---
Help the user refactor their code.
${file:./fragments/coding_style.md}
.eca/agents/unit_test_agent.md
---
mode: subagent
description: You write unit tests for code
model: anthropic/sonnet-4.6
---
Write unit tests. Try and define and test using property based testing when possible. Avoid tests that just are just repeating the implementation.
${file:./fragments/coding_style.md}