Historical deployment analysis — walk git history, deploy per day, test all endpoints, capture screenshots, restore working fragments
Project description
rebuild
AI Cost Tracking
- 🤖 LLM usage: $4.2000 (28 commits)
- 👤 Human dev: ~$674 (6.7h @ $100/h, 30min dedup)
Generated on 2026-05-01 using openrouter/qwen/qwen3-coder-next
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.
📖 Documentation
- Full Usage Guide: Step-by-step instructions.
- Architecture: Detailed layered design.
- Changelog: Latest v0.1.10 features.
🚀 c2004 Case Study: Analyzing a Complex Ecosystem
Applying rebuild to the massive c2004 project (88 subdirectories, thousands of files).
1. Eliminating Cross-Component Duplication
Scenario: Identifying structural clones between the main backend and auxiliary modules like connect-test or frontend.
rebuild analyze duplicates /path/to/c2004
Result: Found 1,597 duplicate groups across Python and JS/TS files.
2. Architecture Visualization & Cycle Detection
Scenario: Mapping dependencies between connect-manager, workshop, and scenario to find architectural bottlenecks.
rebuild analyze services /path/to/c2004/backend --export
Result: Generated interactive D3.js map highlighting circular dependencies in the service layer.
3. AI-Powered Refactor Planning
Scenario: Generating an automated refactor plan with an AI Executive Summary for the team.
rebuild refactor plan /path/to/c2004/backend --ai
rebuild refactor pr /path/to/c2004/backend
Result: 122 high-impact suggestions with automated Markdown PR descriptions.
4. Health & Quality Timeline
Scenario: Tracking how code complexity affects system stability over time.
rebuild dashboard --repo /path/to/c2004
Result: Visualized correlation between technical debt and API pass rates.
What it does
- Intelligence Layer — Detects structural & semantic duplicates (Python/JS/TS), builds service graphs, vector search embeddings, and ranks code quality across history.
- Decision Engine — Generates and executes refactoring plans with AI support.
- Walk — Iterates through git history day by day (Incremental, Replay, Accelerator modes).
- Deploy — Starts the service per commit (Isolated Docker, Replay with code sync, Accelerator with hot reload).
- Scan & Test — Automated endpoint discovery (OpenAPI, FastAPI routes, Traefik), TestQL execution, auth login, param substitution.
- Visualization — D3.js interactive graphs, health dashboards, SSE live event streaming, code evolution playback.
- Automation — Auto PR creation, DSL scripting, NLP natural language commands.
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.
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.14.tar.gz.
File metadata
- Download URL: rebuild-0.1.14.tar.gz
- Upload date:
- Size: 116.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42223c6d539f29c78387b085cbec99b4d78575db071cb12e16ab2cc390323225
|
|
| MD5 |
f1468340005aa5e7104c9790561d62d2
|
|
| BLAKE2b-256 |
f98f8531ffe0b55176a4e9028d3fb7def3bf910528c75bbac88be242e0bfbe84
|
File details
Details for the file rebuild-0.1.14-py3-none-any.whl.
File metadata
- Download URL: rebuild-0.1.14-py3-none-any.whl
- Upload date:
- Size: 125.1 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 |
75f3dd6ff1ef35ac9851ba271833efe8e08e11deba29e260165925a87518c796
|
|
| MD5 |
43547db6ec2fa6a935b2a2559ec1ec3d
|
|
| BLAKE2b-256 |
b37c7209001c46420d81136788719479d2a5bb01fb7ab0f7b81498bcdda76b10
|