Give your LLM more DSLs
10 hours ago
- LLMs excel at writing code, not free-form prompts; use DSLs for better results.
- Capture state as DSL, let LLM manipulate it, then translate back to domain.
- Example: captain-hook uses DSL to codify user corrections into hooks.
- Example: Aneta's context compiler uses DSL for image inclusion decisions.
- DSL approach: sidecar LLM writes scoring function once, then runs cheaply per message.
- Benefits: faster, cheaper, effective compared to sidecar calls each turn.