Skip to main content

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

Project description

rebuild

AI Cost Tracking

PyPI Version Python License AI Cost Human Time Model

  • 🤖 LLM usage: $5.2500 (35 commits)
  • 👤 Human dev: ~$809 (8.1h @ $100/h, 30min dedup)

Generated on 2026-05-01 using openrouter/qwen/qwen3-coder-next


Code Evolution Intelligence Engine

Version Python License Tests

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


🚀 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

Duplication Analysis Mockup 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

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

Health Dashboard Mockup Result: Visualized correlation between technical debt and API pass rates.


What it does

  1. Intelligence Layer — Detects structural & semantic duplicates (Python/JS/TS), builds service graphs, vector search embeddings, and ranks code quality across history.
  2. Decision Engine — Generates and executes refactoring plans with AI support.
  3. Walk — Iterates through git history day by day (Incremental, Replay, Accelerator modes).
  4. Deploy — Starts the service per commit (Isolated Docker, Replay with code sync, Accelerator with hot reload).
  5. Scan & Test — Automated endpoint discovery (OpenAPI, FastAPI routes, Traefik), TestQL execution, auth login, param substitution.
  6. Visualization — D3.js interactive graphs, health dashboards, SSE live event streaming, code evolution playback.
  7. Automation — Auto PR creation, DSL scripting, NLP natural language commands.

Examples

Explore ready-to-run scenarios in examples/:


License

Licensed under Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rebuild-0.1.19.tar.gz (134.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rebuild-0.1.19-py3-none-any.whl (136.0 kB view details)

Uploaded Python 3

File details

Details for the file rebuild-0.1.19.tar.gz.

File metadata

  • Download URL: rebuild-0.1.19.tar.gz
  • Upload date:
  • Size: 134.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rebuild-0.1.19.tar.gz
Algorithm Hash digest
SHA256 016ccee8bc0701c53750e9bbf5a605fcc0ffda8ef028293ec2b579d887ace215
MD5 6dc49c7fe7ba53ee60a6f626fcfa1c1b
BLAKE2b-256 cc460e814901a763b5beefde80bcb73b95a1961dcbaa4cc36c7fb8525e2773b7

See more details on using hashes here.

File details

Details for the file rebuild-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: rebuild-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 136.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rebuild-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 6a5a14c4298b875f91aff8956c02186e0412c0121a07461af79775680c650663
MD5 de9b69a8607f06062b20f3816ec5199e
BLAKE2b-256 d247d3fe50787fc3c7c6ac624c78ea0654f841bb38bed4b85ff81e7cbe74fa99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page