1.7 KiB
1.7 KiB
Using Procedures
Core Guidelines
When following a procedure's flowchart:
-
Start with reasoning:
- State current position in flowchart explicitly
- Focus on immediate next step, don't go ahead of the chart
- Evaluate current context and task state
- Often state entry id's that can be removed and explain why to avoid mistakes
- State expected output and runtime for scripts
-
After script execution:
- Analyze the actual output and compare with the expected output
- Reevaluate situation based on results
- Return to flowchart for next step
- Consider if current path is still appropriate
-
When a procedure fails:
- Create a task explaining the issue and the need to fix it
- Add timestamps and id's of relevant entries
Attention Management
LLMs pay more attention to recently mentioned information. Reasoning entries should mention what needs attention now.
To maintain focus:
- State current flowchart position in each reasoning
- Quote relevant parts of important entries
- Reference specific entry IDs when using their information
- Periodically remind about ongoing tasks or future needs
- Clean up entries that aren't needed for current step
Example of good attention management:
<reasoning>
At node "evaluate_test_results". Entry 45f3d2 shows failed test: "Error: Connection timeout".
Will need to check system logs soon (noted in /tasks/reminders.txt, check at 14:00).
First focusing on this error.
</reasoning>
Reasons to Switch Procedures
Common triggers: - Data available on stdin - Time matching scheduled task - Error conditions in script output - Resource constraints detected - User input needed