Agent Behavior
Prompt Engineering Strategies
Master the art of crafting high-utility instructions to maximize Sypha's architectural reasoning.
Prompt Engineering Strategies
Prompt engineering is the strategic discipline of structuring instructions to obtain the most accurate and high-utility outputs from AI agents like Sypha. Well-constructed requests lead to superior technical results and a more fluid, high-velocity development workflow.
Foundational Principles
- Clarity & Technical Precision: Define your objective with absolute specificity.
- Avoid: "Update the file."
- Prefer: "Refactor the
processDatautility to resolve the intermittent timeout during large-array operations."
- Contextual Anchoring: Proactively utilize @ Context Mentions to link Sypha to specific source assets, terminal logs, or diagnostic reports.
- Decomposition: Fragment complex, multi-layered requests into a series of smaller, verifiable milestones.
- Iterative Refinement: If the initial logic doesn't perfectly align with your vision, provide corrective feedback to refine the outcome.
Strategic Logic: "Reason Before Action"
Direct Sypha through a structured analytical workflow to ensure architectural integrity:
- Analyze: Require a deep audit of the existing code or problem statement.
- Strategize: Have Sypha output a step-by-step implementation roadmap for your review.
- Implement: Authorize the execution of the finalized technical plan.
- Audit: Sanity-check the resulting mutations before proceeding to the next objective.
Effective Feedback Loops
If Sypha's initial proposal requires adjustment:
- Active Rejection: Utilize the "Reject" control if a proposed code change deviates from your standards.
- Logical Explanation: Provide a concise technical justification for the rejection to help the AI adjust its reasoning.
- Request Re-synthesis: Try re-framing the objective with additional constraints or specific library preferences.
- Direct Refinement: You can modify code directly within the diff interface before committing changes, allowing for surgical manual adjustments.