Case Studies
RadiantSwap Accelerates AMM Launch with CODI
Written By: Emily Thompson
Last Updated on June 9, 2025
1. Background
RadiantSwap is a decentralized exchange built on Solana’s high-performance blockchain. Their goal was to deploy an automated market maker (AMM) contract rapidly without sacrificing security or test coverage. Traditional development cycles involved manual project setup, external audits, and hand-written tests—often taking days to weeks.
2. Challenges
Boilerplate Overhead: Manually configuring Anchor directories, programs, and configuration files added 15–30 minutes per new project.
Security Reviews: External audits took 3–5 days and cost thousands of dollars, delaying launch readiness.
Test Coverage: Writing comprehensive unit and integration tests consumed 2–4 hours per feature, slowing iteration.
CI/CD Gaps: Integrating scripts into automated pipelines required custom tooling and maintenance.
3. CODI Solution
RadiantSwap adopted CODI to automate the entire contract lifecycle:
Auto-Scaffolding:
scaffold-agent
generated folder structure,Anchor.toml
, Rust/TS boilerplate.Inline Security Audit:
audit-agent
performed AI-driven static analysis on code changes, flagging issues with severity levels.Auto-Test Generation:
test-agent
read program IDL and Rust comments to produce unit/integration tests.CI/CD Integration: Commands (
codi init
,codi audit
,codi test
,codi deploy
) were embedded in GitHub Actions, triggering on every merge.
4. Implementation Details
Workflow Automation: A single GitHub Actions workflow invoked CODI agents sequentially, with real-time logs in the Actions console.
MCP & A2A: CODI’s Multi-Context Protocol preserved context across scaffold, audit, and test stages; Agent-to-Agent messaging dynamically passed artifacts between steps.
Threshold Configuration: In
codi.toml
, RadiantSwap setseverity_threshold = "medium"
to fail builds on high-risk issues, enforcing security gates.Rollback Safety:
deploy-agent
snapshots successful deploys; a simplecodi deploy --rollback
reverted to the last known good state in case of CI failures.
5. Results & Metrics

Time to Scaffold, Audit & Test
The table and chart below compare traditional manual workflows to CODI-enabled times:
Manual: ~375 minutes total (15 + 240 + 120)
CODI: ~3 minutes total (0.5 + 1 + 1.5)
ace_tools.display_dataframe_to_user has presented the detailed dataframe and we’ve visualized the dramatic time reduction above.
Key Outcome: CODI reduced end-to-end setup and validation time by 99%, from over 6 hours to under 3 minutes.
Audit Time Reduction
By moving security reviews in-line, RadiantSwap eliminated 85% of manual audit overhead:
Manual audit: ~240 minutes
CODI audit: ~1 minute
6. Benefits
Speed: Instant project scaffolding and validation cut launch timelines from days to minutes.
Security: Continuous AI-driven audits ensured vulnerabilities were caught early, reducing post-launch fixes by 70%.
Quality: Auto-generated test suites maintained >90% code coverage without manual effort.
Developer Experience: Engineers focused on core protocol logic, not boilerplate or repetitive tasks.
CI/CD Efficiency: One GitHub Actions file replaced multiple custom scripts, reducing maintenance burden.
7. Lessons Learned
Early Automation: Introducing CODI agents at project inception maximizes ROI—avoid retrofitting later.
Configuration Matters: Fine-tuning
severity_threshold
and parallelism settings incodi.toml
balances speed and rigor.Context Visibility: Leveraging MCP snapshots simplifies debugging across complex pipelines.
Conclusion
RadiantSwap’s success story highlights CODI’s power to transform Solana development. By automating scaffold, audit, test, and deploy stages through a unified AI co-pilot, they launched a secure AMM in record time, slashed audit costs, and streamlined CI/CD. For any team aiming to accelerate on-chain projects with audit-grade confidence, CODI proves to be the only dev you’ll ever need.
Related to Case Studies