Master the art of directing AI coding agents for maximum productivity and quality outcomes.Documentation Index
Fetch the complete documentation index at: https://docs.igent.ai/llms.txt
Use this file to discover all available pages before exploring further.
The Mental Model
Think of Maestro as an over-confident, incredibly fast, and very literal developer.This mental model is crucial for success. Maestro isn’t a magical oracle—it’s a powerful tool that requires clear direction, explicit constraints, and rigorous verification. Success doesn’t come from “clever” phrasing, but from engineering discipline: providing context, setting boundaries, and enforcing quality standards. Key principles:
- Be direct and imperative - No hedging or excessive politeness
- Provide complete context - Maestro only knows what you show it
- Define constraints explicitly - State what NOT to do as clearly as what to do
- Demand evidence - Never accept claims without proof
Core Philosophy
The primary friction point with coding agents is ambiguity. Agents crave specificity. To move from frustration to flow, adopt these foundational behaviors:1. Be Imperative and Direct
Avoid hedging or politeness markers. Your agent does not need to be coaxed; it needs to be commanded. Avoid: “Can you maybe look into this bug?” Adopt: “Fix the null pointer exception inUserService.ts when email is undefined.”
2. Context is King
An agent only knows what you show it. You must curate its reality. When requesting a fix or feature, provide the “scene of the crime”: file names, error logs, stack traces, and relevant design constraints.3. Constraints are Creative
You must define what the agent cannot do. Explicit negatives prevent the agent from taking architectural shortcuts or introducing bloat. Example: “Implement this entirely in Python, with no dependencies.” Example: “Do not change public APIs.”The Architecture of a Prompt
A robust prompt is structured like a ticket for a human engineer. It should contain four distinct components:| Component | Purpose | Example |
|---|---|---|
| Goal | The specific outcome desired. | ”Create a complete Python port of this library.” |
| Context | The environment and reference material. | ”Clone this library to /tmp… The goal is an implementation that passes all tests in /tmp/mquickjs/tests.” |
| Constraints | What to avoid. | ”Never use React… Javascript should be two space indents.” |
| Verification | How to prove it works. | ”Run pytest to confirm the test harness works correctly.” |
Essential Communication Patterns
The Goal-Driven Request Pattern
Structure your requests around outcomes, not implementation steps: Instead of:The Constraint-Specification Pattern
Make constraints explicit rather than implicit: Weak:The Evidence-Demand Pattern
Never accept claims without proof: Maestro: “The optimization improved performance” You: “Show me the benchmark comparing old vs new implementation using identical test conditions and workload” Maestro: “All tests pass” You: “Display the full test output with coverage report” Maestro: “The implementation is production-ready” You: “Prove it: show me the tests, benchmarks, edge case handling, and error scenarios”Strategic Workflows
Move beyond simple Q&A by employing these structured workflows for complex development.The “Plan First” Pattern
For substantial undertakings, do not let the agent write code immediately. Separate the “thinking” from the “doing.”- Request a Specification: Ask the agent to analyze the requirements and build a detailed spec with TODOs, have a back and forth to define all the requirements well.
- Review and Approve: Validate the plan before a single line of production code is written. This should include a goal and a way for the agent to test the project so it can course correct whenever needed.
The “Reference” Pattern
Describing complex logic is tedious and error-prone. If you have existing code that works, point to it. The Prompt: “That button should do the same trick thatopenai-audio-output.html does…”
The Mechanism: The agent reads the referenced code, extracts the pattern, and applies it to the new context. This builds a compound advantage: every tool you build becomes a reference for the next.
The “Two-Phase” Flow
Vary your management style based on your certainty level. Research Mode (Exploratory): “What are the options for HTTP libraries in Rust? Include usage examples.” Accept code without deep review; iterate to learn. Implementation Mode (Directive): Once you know the solution, dictate exact implementation details, library choices, and function signatures.Tactical Techniques
1. Function Signature Prompting
Maintain design control by defining the interface yourself, identifying the specific inputs and outputs you require.2. Debugging by Symptom
Do not diagnose; describe. State the symptom and the expected behavior, allowing the agent to determine the root cause.3. Visual & Browser Tasks
For visual tasks, focus on goals rather than procedures. Browser agents work best with outcome-oriented prompts.4. Custom Instructions (The “Config File”)
Use project-level custom instructions to enforce style and prevent repetitive corrections.Managing Complex Projects
Breaking Down Large Goals
For substantial projects, decompose into phases: Example: Building a Microservices Architecture Phase 1: Research & DesignThe Discovery Pattern
Before making changes to existing code, ensure understanding:The Benchmark-Driven Pattern
For performance-critical work:Managing the “Developer”
Even the best agents drift or hallucinate. Here is how to keep them on the rails.Verify, Don’t Trust
Agents may “cheat” by simplifying requirements or skipping edge cases. Always inspect the actual approach, not just whether it runs. Verification Strategy: Request that the agent write a test for a trivial case (e.g.,assert 1 + 1 == 2) to prove the infrastructure works before building complex logic.
The “YOLO” Check: If you let an agent run in “YOLO mode” (unsupervised), be prepared to coach it back to reality if it rewrites your Python project in JavaScript.
Iterate Relentlessly
Treat bad results as a starting point, not a failure. Refinement: “Write that better!” is a valid prompt once expectations are established. Session Hygiene: If the context gets messy, reset.When to Push Back
Push back when you see:- Unvalidated claims (“it should work”)
- Incomplete test coverage
- Missing edge case handling
- Performance assertions without benchmarks
- Shortcuts that compromise quality
- Unclear or confusing code
How to Push Back Effectively
Ineffective: “This isn’t good enough” Effective: “The error handling is incomplete. What happens when Redis is unavailable? Add tests that simulate connection failure and prove the system degrades gracefully.” Ineffective: “Did you test this?” Effective: “Run the full test suite and show me the output. Then add integration tests that verify cache invalidation works correctly.”Validation and Quality Control
The Comprehensive Validation Request
Don’t let Maestro declare success without proof:The Test-First Pattern
Ensure testing isn’t an afterthought:The Test-Preservation Pattern
Protect against regressions:Handling Challenges
When Maestro Gets Stuck
Symptoms:- Repeated similar errors
- Circular debugging
- No progress after multiple attempts
When Tests Fail Unexpectedly
Don’t let Maestro skip or comment out tests:When Requirements Aren’t Clear
Maestro can help clarify:Request Quality Checklist
Before submitting a request to Maestro, verify:- Is the context clear? Did I include relevant files, errors, logs, or references?
- Are constraints specified? Did I define what NOT to do?
- Is success defined? Did I specify success criteria, tests, or benchmarks?
- Is the scope manageable? Is this one focused task, or multiple tasks bundled together?
- Are quality standards explicit? Did I specify testing, performance, or code quality requirements?
Common Patterns at a Glance
Starting a Feature
Debugging an Issue
Performance Optimization
Code Review Request
Next Steps
Now that you understand effective prompting:- Working with Maestro: Advanced collaboration patterns
- Session Strategies: Patterns for different project types
- Best Practices: Production-ready standards
- Commands Reference: Master session control tools

