Troubleshooting
Common issues and fixes
Use verbose logging
promd -v weatherThis helps you see which .promd config files were loaded and which steps ran.
"opencode" not found / command fails
- Ensure
opencodeis installed and on yourPATH - If you set
opencode.attach, ensure the target is reachable (default ishttp://localhost:4096)
Prompt file not found
promd weatherlooks forweather(exact path) and then triesweather.md- Use a relative path if the file is not in your current directory:
promd prompts/weather
Directory run says no prompt files found
- Directory execution only includes files ending in
.md - Files are executed in sorted filename order
Template variables not replaced
- Variables come from CLI flags like
--city Berlin - If you see
{{city}}unchanged, run with-vand confirm the flag is being passed as--city Berlin(two tokens)
Structured output is empty or not parsed
- For
subprocess, print a single JSON object to stdout - For
opencode, ensure your prompt clearly instructs the model to output a JSON object