Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

94 Commits

Repository files navigation

rebuild

Code Evolution Intelligence Engine

VersionPythonLicenseTestsCoverage

Historical deployment analysis & Code Intelligence — walk git history day by day, deploy per commit, test all endpoints, capture screenshots, and analyze code evolution to find duplicates, rank quality, and generate refactor plans.

SUMD stats (v0.1.23): 3722 functions · 161 classes · 167 files · CC̄ = 3.9


AI Cost Tracking

PyPIVersionPythonLicenseAI CostHuman TimeModel

  • 🤖 LLM usage: $96.3548 (63 commits)
  • 👤 Human dev: ~$2159 (21.6h @ $100/h, 30min dedup)

Generated on 2026-07-06 using openrouter/qwen/qwen3-coder-next


📖 Documentation

DocumentDescription
Getting StartedInstallation, quickstart, configuration
Walk CommandCore walk workflow — deploy modes, output, rebuild.yaml
AnalyzeDuplicates, service graph, truth, vector search, multi-repo
RefactorAI-powered refactor plans + execution
Auto-PRAutomated GitHub/GitLab PR creation
PluginsCustom scanners & reporters via entry points
CLI ReferenceAll commands and options
Config ReferenceFull rebuild.yaml field reference
Architecture5-layer design, services, data flow
Case Study: c2004Real-world analysis of a large ecosystem
c2004 Testing LogDetailed test log with commands & results
Usage GuideStep-by-step guide (all features)
ChangelogRelease history (current: v0.1.23)
RoadmapCompleted phases 10–16, future plans
Analysis (P1–P4)Refactoring hotspots, infra gaps, missing features, test debt + sprint plan

🚀 Quick Start

# Install
pip install rebuild
# Initialise config
rebuild init /path/to/my-service
# Walk last 14 days (dry-run, no deploy)
rebuild walk /path/to/my-service --deploy none --days 14 --dry-run
# Serve results
rebuild serve --results-dir /path/to/my-service/.rebuild

See Installation and Quick Start for details.


What it does

#LayerDescription
1IntelligenceStructural & semantic duplicates (Python/JS/TS), service graphs, vector search, quality ranking
2Decision EngineAI-powered refactoring plans + automated execution
3WalkGit history iteration (Incremental, Replay, Accelerator modes)
4DeployDocker Compose / Replay / Accelerator hot-reload per commit
5Scan & TestOpenAPI, FastAPI routes, Traefik discovery; auth, param substitution, body injection
6VisualizationD3.js graphs, health dashboards, SSE streaming, evolution playback
7AutomationAuto PR, DSL scripting, NLP commands, Plugins, Notifications

🚀 c2004 Case Study

Applying rebuild to the massive c2004 project (88 subdirectories, thousands of files). See full details: Case Study · Testing Log

1. Duplication Detection

rebuild analyze duplicates /path/to/c2004

Duplication AnalysisResult: Found 1,597 duplicate groups across Python and JS/TS files.

2. Architecture Graph

rebuild analyze services /path/to/c2004/backend --export

Architecture GraphResult: Interactive D3.js map highlighting circular dependencies.

3. AI Refactor Planning

rebuild refactor plan /path/to/c2004/backend --ai
rebuild refactor pr /path/to/c2004/backend

Result: 122 high-impact suggestions with automated PR descriptions.

4. Health Dashboard

rebuild dashboard --repo /path/to/c2004

Health DashboardResult: Correlation between technical debt and API pass rates.


Examples

Explore ready-to-run scenarios in examples/:


Project Status

All Phases 10–16 completed. See TODO.md for full roadmap.

MilestoneStatus
c2004 Testing & Intelligence (Phase 10)✅ Done
Semantic Embeddings & Vector Search (Phase 11)✅ Done
Multi-Repo & Real-time (Phase 12)✅ Done
UI/UX (Phase 13)✅ Done
Production Readiness (Phase 14)✅ Done
c2004 Integration (Phase 15)✅ Done
Production Release (Phase 16)✅ Done — PyPI, CI/CD, Docker, MkDocs, Plugins, Notifications

Current: v0.1.23 · 634 tests · 72% coverage


License

Licensed under Apache-2.0.

About

Historical deployment analysis — walk git history, deploy per day, test all endpoints, capture screenshots, restore working fragments

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages