sandeco/reversa
Transform legacy systems into executable specifications for AI coding agents
What it solves
Reversa solves the problem of "trapped knowledge" in legacy software systems. When production systems accumulate years of undocumented business rules and architectural decisions, AI coding agents often cannot safely evolve them because they lack a formal specification of what the system is actually doing. Reversa bridges this gap by reverse-engineering existing code into operational specifications that AI agents can use as contracts to evolve the system without breaking existing logic.
How it works
Reversa is installed as a framework within a legacy project. It coordinates a team of specialized AI agents (such as the Scout, Archaeologist, and Detective) through a multi-phase "Discovery" pipeline (Reconnaissance, Excavation, Interpretation, Generation, and Review). These agents analyze the codebase, extract business rules and module contracts, and generate traceable specifications (SDD specs) in a dedicated output folder.
Once these specifications exist, the framework provides specialized workflows for different goals:
- Evolution: Moving from specs to new code via the
/reversa-forwardpipeline. - Migration: Planning a rebuild on a modern stack using
/reversa-migrate. - Documentation: Rendering the extracted knowledge into an HTML mini-site via
/reversa-docs. - Greenfield: Starting a new project from a raw idea using
/reversa-new.
Who it’s for
Software engineers and architects working with legacy systems who want to use AI agents to maintain, evolve, or migrate their software without the risk of introducing regressions due to missing documentation.
Highlights
- Non-destructive analysis: The framework guarantees that it never modifies or deletes existing project files; all writes are restricted to specific
.reversa/and_reversa_sdd/folders. - Agentic Orchestration: Uses a team of 10 specialized agent teams (Discovery, Ideation, Migration, etc.) to handle different stages of the software lifecycle.
- Operational Contracts: Produces specifications designed for AI agents rather than just human-readable documentation.
- Agent Agnostic: Does not store API keys; it delegates intelligence to the AI agent already present in the user's environment (e.g., Claude Code, Cursor, Codex).
- Causal Traceability: Includes dedicated bug agents to track and fix defects with direct links back to the specifications.
Related
- Project
- Project
- Project
- Project
- Project