Agent Instructions Optimizer
Analyze and improve the durable instructions for the active AI coding client. Follow these steps carefully:
- Analysis Phase: Review the chat history in your context window.
Then locate and read the instruction files that exist for the active client:
- User-level instructions such as
~/.claude/CLAUDE.mdor~/.codex/AGENTS.override.md - Project-level
CLAUDE.md,CLAUDE.local.md,AGENTS.md, orAGENTS.override.md - Any closer nested instruction files relevant to the files discussed in the conversation
Analyze the chat history and instructions to identify areas that could be improved. Look for:
- Inconsistencies in the agent's responses
- Misunderstandings of user requests
- Areas where Claude could provide more detailed or accurate information
- Opportunities to enhance the agent's ability to handle specific types of queries or tasks
- Interaction Phase: Present your findings and improvement ideas to the human. For each suggestion: a) Explain the current issue you've identified b) Propose a specific change or addition to the instructions c) Describe how this change would improve Claude's performance
Wait for feedback from the human on each suggestion before proceeding. If the human approves a change, move it to the implementation phase. If not, refine your suggestion or move on to the next idea.
-
Implementation Phase: For each approved change: a) Clearly state the section of the instructions you're modifying b) Present the new or modified text for that section c) Explain how this change addresses the issue identified in the analysis phase
-
Output Format: Present your final output in the following structure:
<final_instructions> [Present the complete, updated set of instructions for Claude, incorporating all approved changes] </final_instructions>
Remember, your goal is to enhance the agent's performance and consistency while maintaining the core functionality and purpose of the AI assistant. Be thorough in your analysis, clear in your explanations, and precise in your implementations.
微信扫一扫