Skip to main content

rebuild

Code Evolution Intelligence Engine

Version Python License Tests Coverage

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

PyPI Version Python License AI Cost Human Time Model

  • 🤖 LLM usage: $41.9003 (72 commits)
  • 👤 Human dev: ~$4490 (44.9h @ $100/h, 30min dedup)

Generated on 2026-10-18 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

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

2. Architecture Graph

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

Architecture Graph 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

Health Dashboard Result: 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.

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.

Metadata

Release files for rebuild 0.1.46

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rebuild 0.1.46
File Size Uploaded Provenance Actions
rebuild-0.1.46.tar.gz 230.4 kB Without provenance Details for rebuild-0.1.46.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rebuild 0.1.46
File Interpreter ABI Platform Actions
rebuild-0.1.46-py3-none-any.whl Python 3 none any Details for rebuild-0.1.46-py3-none-any.whl

Total release size: 421.2 kB

Release files / rebuild-0.1.46.tar.gz

Download URL rebuild-0.1.46.tar.gz
Size 230.4 kB
Tags Source
SHA-256 checksum
How to use checksums
73eccaa88e6759394c61d61ef33193f0ff254dc5293836b629ac39a84befffe3
BLAKE2b-256 checksum
How to use checksums
cecf9501a26f2b0f86eb3ad01863c7a3c75d8225cf393db3cee535f2a03794d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / rebuild-0.1.46-py3-none-any.whl

Download URL rebuild-0.1.46-py3-none-any.whl
Size 190.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d27a6d41288400fd85b1b59f29b647aca6beb1c2ee0bbba4acb4ba8a6bfccbde
BLAKE2b-256 checksum
How to use checksums
19544814cc336374a4c9c7a505cefac45e5bb3284651b170503c4bc8aa921460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for rebuild 0.1.46

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.46 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page