SOVEREIGN AGENTIC CAPABILITIES

Autonomous Agent Workflows

From multi-file codebase refactoring to self-healing test loops. LEGECY CLI runs locally inside your repo, executes commands with your permission, and synthesizes diffs directly in your editor.

account_tree

Multi-File Code Refactor

Parses AST trees, traverses import graphs, and executes atomic rewrites across dozens of files simultaneously with dependency preservation.

legecy "Migrate to TS strict mode"
autorenew

Self-Healing Test Loops (TDD)

Executes your test runner (Jest, Vitest, Pytest, Cargo), inspects stack traces, isolates failing assertions, and iteratively patches code until all tests pass.

legecy --loop "npm test"
security

Security & CVE Remediation

Performs static taint analysis to detect SQL injections, remote code execution risks, prototype pollution, and hardcoded secrets before deployment.

legecy audit --fix-cves
terminal

Interactive Terminal TUI

Full-screen keyboard-driven terminal user interface with live syntax-highlighted diffs, tab-completed slash commands, and multi-line editor.

legecy (launches TUI mode)
call_merge

Smart Git PR & Commits

Analyzes your working tree diff, generates semantic conventional commits, writes markdown release notes, and pushes ready-to-merge GitHub pull requests.

legecy pr "Feature: Stripe webhooks"
layers

Full-Stack Scaffolding

Synthesizes database migrations, ORM schemas, REST/gRPC endpoints, and typed frontend client hooks in one coordinated agent execution.

legecy scaffold "Prisma + Next.js"
terminal — autonomous test-fix loop trace ● 4 Files Patched · All Tests Passing
user@workstation:~/repo$ legecy "Fix race condition in session checkout"
⚙ Scanning workspace tree (48 files indexed in 12ms)...
→ Detected failing test in src/checkout.test.ts:34
⚡ Applying atomic lock on Redis distributed mutex in src/session.ts
✓ Running npm test: PASS 14/14 tests in 410ms
★ Ready to commit. Credit used: 1.2 Cr (Claude 3.5 Sonnet)