ryo-suggest
Status: experimental. APIs may change in v0.x. Part of the ryo workspace — AST-centric Rust programming for AI agents.
Continuous-refactoring suggestion engine. Detects code-improvement
opportunities via pattern matching, then generates MutationSpecs
that downstream ryo-executor can apply. Suggestions are categorised
by safety level (Auto / Manual / Review) so callers can filter.
Install
Quickstart
use ;
let mut registry = new;
registry.register;
let service = new;
let count = service.detect;
let auto_safe = service.query;
for in auto_safe
API Summary
| Item | Purpose |
|---|---|
SuggestRegistry |
Register pattern detectors |
SuggestStore |
Persistent storage for opportunities |
SuggestService |
Detect + query + spec generation |
Suggest / SuggestOpportunity |
Suggestion data types |
SuggestCategory / SafetyLevel |
Classification axes |
SuggestQuery |
Filter builder |
Status
Experimental. Suggestion data model and detection API are evolving. Production-quality stability is deferred to v1.0.
License
Licensed under either of Apache-2.0 or MIT at your option.