Quickstart: Deep review
Run a multi-pass code review that covers security, quality, and test gaps in one consolidated report.
from attune.workflows.deep_review import DeepReviewAgentSDKWorkflow
result = DeepReviewAgentSDKWorkflow().execute(path="src/")
print(result)
Result: A consolidated report with an overall health score (0–100), security findings, quality findings, test gap findings, and up to ten prioritized suggestions — each tied to a specific finding.
Steps
1. Import and instantiate
from attune.workflows.deep_review import DeepReviewAgentSDKWorkflow
workflow = DeepReviewAgentSDKWorkflow()
2. Run the review against your codebase
Pass the path you want reviewed:
result = workflow.execute(path="src/")
The workflow coordinates three specialized subagents — security-reviewer, quality-reviewer, and test-gap-reviewer — then synthesizes their findings.
3. Read the report
print(result)
Your output will be structured as:
## Summary
Overall code health score (0-100) ...
## Security
...
## Quality
...
## Test Gaps
...
## Suggestions
...
If you see all five sections, the review completed successfully.
Next: Run attune workflow run code-review --path "src/" for a faster, single-pass quality check you can use on every commit.