sandeco/reversa
sandeco/reversaTransform legacy systems into executable specifications for AI coding agents
From the README
Reversa
by sandeco
Turn legacy systems into executable specifications for AI agents.
Reversa is a specification reverse-engineering framework. Install it inside a legacy project and it coordinates a team of specialized AI agents to analyze the existing code and generate complete, traceable specifications ready for use by any coding agent.
Why Reversa exists
Most production systems carry years of accumulated knowledge: implicit business rules, undocumented architectural decisions, critical logic buried in code nobody wants to touch. That knowledge exists, but it's trapped.
AI agents are transformative for creating and evolving software, but they depend on specifications to operate safely. For new systems, you write the spec and the agent executes. For legacy systems — or those built with pure vibe coding — there is no spec: the agent has no way of knowing what it cannot break.
Reversa is the bridge between the legacy system and AI agents.
It analyzes the existing code, extracts accumulated knowledge (business rules, flows, module contracts, retroactive architectural decisions) and transforms everything into executable, traceable specifications ready for any coding agent.
The result is not documentation for humans to read. These are operational contracts that allow an agent to evolve the system with fidelity to what already exists.
Installation
In the root of the legacy project:
npx reversa install
The installer will:
- Detect the AI engines present in the environment (Claude Code, Codex, Cursor, etc.)
- Ask which agents to install — all selected by default
- Collect project name, language, and preferences
- Copy agents to
.agents/skills/(and.claude/skills/for Claude Code) - Create the engine entry file (
CLAUDE.md,AGENTS.md, etc.) - Create the
.reversa/structure with state, configuration, and plan - Generate SHA-256 manifest for safe updates
Reversa never deletes or modifies existing files in your project. Agents write only to
.reversa/and the output folder (_reversa_sdd/by default).
Requirements: Node.js 18+
[!IMPORTANT]
🔒 Guaranteed immutability of the legacy project
The installer only creates new files (
CLAUDE.md,AGENTS.md,.agents/skills/, etc.) and never modifies or deletes any existing file in your project. During analysis, agents operate under a strict and inviolable directive: all writes are restricted to.reversa/and_reversa_sdd/— no other file in your project is touched.
[!CAUTION]
💾 Back up your project before starting
Although Reversa never modifies your files, AI agents can make mistakes. We strongly recommend:
- Version the project in Git — make sure all files are committed before starting the analysis
- Have the repository on GitHub (or GitLab, Bitbucket) — so you have a safe remote copy
- Make a local copy of the folder — a simple
cp -r my-project my-project-backupprot