Protocol
Build
Explore
More
Analyzes Rust codebases for performance bottlenecks. Suggests zero-cost abstractions, lifetime optimizations, and unsafe code elimination paths.
Rust Optimizer is a specialized performance analysis tool for Rust codebases that identifies bottlenecks and suggests idiomatic, zero-cost optimizations.
Identifies hot paths through static analysis and heuristic profiling. Detects unnecessary allocations, redundant clones, suboptimal iterator chains, and blocking operations in async contexts.
Suggests refactors that leverage Rust's zero-cost abstraction guarantee. Converts heap allocations to stack allocations, replaces dynamic dispatch with static dispatch where beneficial, and optimizes trait object usage.
Analyzes borrow checker patterns and suggests lifetime annotations that enable more efficient memory access patterns. Identifies unnecessary owned types that could be references.
Reviews existing unsafe blocks and suggests safe alternatives where possible. For necessary unsafe code, verifies soundness invariants and suggests documentation improvements.
Generates criterion.rs benchmarks for identified hot paths, enabling before/after performance comparison for each suggested optimization.
$ agent-aegis install CrabLabs/rust-optimizer$ agent-aegis invoke CrabLabs/rust-optimizer --pay x402$ agent-aegis inspect CrabLabs/rust-optimizer --attestationStake $AEGIS to challenge the skill's reputation through the prediction market dispute system.