Historical deployment analysis — walk git history, deploy per day, test all endpoints, capture screenshots, restore working fragments
Project description
rebuild
Code Evolution Intelligence Engine
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
- 🤖 LLM usage: $7.5000 (52 commits)
- 👤 Human dev: ~$1463 (14.6h @ $100/h, 30min dedup)
Generated on 2026-05-07 using openrouter/qwen/qwen3-coder-next
📖 Documentation
| Document | Description |
|---|---|
| Getting Started | Installation, quickstart, configuration |
| Walk Command | Core walk workflow — deploy modes, output, rebuild.yaml |
| Analyze | Duplicates, service graph, truth, vector search, multi-repo |
| Refactor | AI-powered refactor plans + execution |
| Auto-PR | Automated GitHub/GitLab PR creation |
| Plugins | Custom scanners & reporters via entry points |
| CLI Reference | All commands and options |
| Config Reference | Full rebuild.yaml field reference |
| Architecture | 5-layer design, services, data flow |
| Case Study: c2004 | Real-world analysis of a large ecosystem |
| c2004 Testing Log | Detailed test log with commands & results |
| Usage Guide | Step-by-step guide (all features) |
| Changelog | Release history (current: v0.1.23) |
| Roadmap | Completed 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
| # | Layer | Description |
|---|---|---|
| 1 | Intelligence | Structural & semantic duplicates (Python/JS/TS), service graphs, vector search, quality ranking |
| 2 | Decision Engine | AI-powered refactoring plans + automated execution |
| 3 | Walk | Git history iteration (Incremental, Replay, Accelerator modes) |
| 4 | Deploy | Docker Compose / Replay / Accelerator hot-reload per commit |
| 5 | Scan & Test | OpenAPI, FastAPI routes, Traefik discovery; auth, param substitution, body injection |
| 6 | Visualization | D3.js graphs, health dashboards, SSE streaming, evolution playback |
| 7 | Automation | Auto 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
Result: Found 1,597 duplicate groups across Python and JS/TS files.
2. Architecture Graph
rebuild analyze services /path/to/c2004/backend --export
Result: 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
Result: Correlation between technical debt and API pass rates.
Examples
Explore ready-to-run scenarios in examples/:
- 01-dry-run-walk: Standard walk + intelligence.
- 02-docker-compose-project: Full pipeline with Docker isolation.
- 03-restore-endpoint: Discovering "truth" and extracting endpoints.
Project Status
All Phases 10–16 completed. See TODO.md for full roadmap.
| Milestone | Status |
|---|---|
| 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rebuild-0.1.28.tar.gz.
File metadata
- Download URL: rebuild-0.1.28.tar.gz
- Upload date:
- Size: 202.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1908d87270a4c405e4a502d67d30ea179ea34c5d1645e3038c1233bd06568401
|
|
| MD5 |
2d9d7a8ba9266ffcd2cdb66b5571855d
|
|
| BLAKE2b-256 |
f12d750bbf42321a2af94ba4c7376bebcd506614d5e14cf9acead635bbca1d4f
|
File details
Details for the file rebuild-0.1.28-py3-none-any.whl.
File metadata
- Download URL: rebuild-0.1.28-py3-none-any.whl
- Upload date:
- Size: 173.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f85fca2db2f4bd251a4b4cb50b9f64a42d23e2833bbb50ab1063b5dc40a36d67
|
|
| MD5 |
0dd4a44dfc991ff80b94d94045cf3aa5
|
|
| BLAKE2b-256 |
18f971682b0e2fc37d70e217084d2de1d1b39ce9ffb235195ab9309db8aac0fe
|