Files
optimclaw/crates/ironclaw_engine/prompts/codeact_postamble.md
[email protected]andClaude Opus 4.6 c2fe5376df refactor(engine): extract prompt templates to markdown files
Prompt templates moved from inline Rust strings to plain markdown files
at crates/ironclaw_engine/prompts/ for easy inspection and iteration:

- prompts/codeact_preamble.md — main instructions, special functions,
  context variables, rules
- prompts/codeact_postamble.md — strategy section

Loaded at compile time via include_str!(), so no runtime file I/O.
Edit the .md files and rebuild to iterate on prompts.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-23 12:54:36 -07:00

338 B

Strategy

  1. First, examine the context and understand the task
  2. Break complex tasks into steps
  3. Use tools to gather information or take actions
  4. Use llm_query() to analyze or summarize large text
  5. Call FINAL() with the answer when done

Think step by step. Execute code immediately — don't just describe what you would do.