@urielsh/prodify
v0.5.0
Published
> **A compiler that turns chaotic AI-generated code into production-grade systems**
Readme
🚀 Prodify
A compiler that turns chaotic AI-generated code into production-grade systems
⚡ TL;DR
AI writes messy code
↓
Prodify enforces structure, refactoring, validation, and scoring
↓
You get measurable production-grade improvement — or the run fails💡 What is Prodify?
Prodify is not a coding agent.
It is a deterministic execution runtime that forces AI agents to:
- understand a codebase
- diagnose real structural problems
- define architecture
- plan safe refactors
- execute real code changes
- validate improvements
- measure impact
Prodify is designed for messy, AI-generated, inconsistent, or fast-grown repositories that need to become production-grade.
🔥 Core Principle
Prodify does not win by giving better suggestions.
Prodify wins by enforcing a workflow where agents must:
- change real files
- satisfy stage contracts
- pass validation
- improve measurable quality
If the run does not produce meaningful change, it should fail.
🧠 The Pipeline
Prodify executes a strict staged workflow:
1. Understand
2. Diagnose
3. Architecture
4. Plan
5. Refactor
6. ValidateEach stage is:
- contract-driven
- validated
- stateful
- blocking
That means stages do not advance just because the agent “says it is done.”
💣 Enforcement
Prodify is built to prevent no-op runs.
Refactor must:
- modify real files
- follow the selected plan step
- introduce meaningful structural improvement
Validate must:
- verify actual code changes
- verify contract compliance
- verify impact/scoring improvement
- fail low-impact runs
📊 Built-in Scoring
Scoring is required in the normal workflow.
A healthy run is expected to capture:
Baseline Score → When `$prodify-init` starts execution
Final Score → Before a successful run completes
Delta → Used in validation, status, and result interpretationExample:
Baseline: 41
Final: 73
Delta: +32Low or insignificant impact should not be treated as success.
If score artifacts are missing during a normal run, prodify status and prodify doctor should flag the repository as degraded until the run is repaired.
⚙️ Usage
1. One-time setup (per machine / per agent)
prodify setup-agent codex
# or
prodify setup-agent claudeThis installs or registers the $prodify-* commands for that agent environment.
2. Initialize a repository
prodify initThis creates the .prodify/ workspace inside the repo.
Repo initialization stays agent-agnostic inside the repository.
That means:
- the repo is not locked to a single agent
- the same repo can be used with multiple supported agents
- the active agent is resolved at runtime when
$prodify-initruns
You can inspect the current runtime at any time with:
prodify status3. Run inside the agent
$prodify-init
$prodify-executeTo continue later:
$prodify-resume$prodify-init is the only normal bootstrap entrypoint inside the agent.
You should not need a separate manual bootstrap prompt as part of the primary flow.
🧱 Architecture
.prodify/
contracts-src/ # human-readable source contracts
contracts/ # compiled runtime contracts
artifacts/ # stage outputs
metrics/ # baseline/final scoring
skills/ # product-owned skill definitions
runtime/ # compact runtime bootstrap + context packs
state.json
version.json⚡ Runtime Model
Prodify is designed to be token-efficient.
Runtime uses compact machine-readable files such as:
.prodify/runtime/bootstrap.json
.prodify/runtime/current-stage.json.prodify/AGENTS.md is a compact human pointer into the runtime, while .prodify/runtime/bootstrap.json is the machine-readable bootstrap manifest.
The goal is to avoid forcing agents to repeatedly reload broad context from many files.
Runtime should rely on:
- one compact bootstrap manifest
- one stage-local context pack
- compiled contracts
- cached repo/skill/freshness metadata
- validators as execution gates
- scoring artifacts and score thresholds as execution gates
- compact artifact summaries where possible
.prodify/skills/for product-owned stage-bounded skills
Optional extension surfaces such as .prodify/tasks/, .prodify/rules/, and .prodify/templates/ can exist for repository-specific planning or overlays, but they are not primary runtime control inputs.
Contracts remain the execution input, runtime manifests/context remain the execution control plane, and validators plus scoring remain the execution gates.
🪞 Fresh Init vs Self-Hosted Repo
This repository keeps a checked-in root .prodify/ because Prodify is self-hosting here.
That workspace is not a byte-for-byte template for every new repository.
| View | What you should expect | Why it exists |
| --- | --- | --- |
| Fresh prodify init repo | Core runtime files such as .prodify/AGENTS.md, .prodify/runtime/, .prodify/contracts-src/, .prodify/contracts/, .prodify/state.json, .prodify/artifacts/, .prodify/metrics/, .prodify/skills/, and lightweight optional extension directories like .prodify/tasks/, .prodify/rules/, and .prodify/templates/. | This is the default product model users bootstrap into their own repo. |
| This Prodify repository | The same canonical runtime core plus checked-in development artifacts, historical notes, and repository-local task/rule/template content used to build Prodify itself. | This repo is the self-hosting development workspace for the product, not just a fresh-init sample. |
If you are reading the checked-in .prodify/ tree in this repository, treat it as a self-hosting/dev workspace layered on top of the generic runtime model.
🤖 Agent-Agnostic by Design
Inside the repo, Prodify does not lock execution to one agent.
That means:
prodify initstays agent-neutral- multiple supported agents can be used on the same repo
- agent-specific setup is global, not embedded in the repo
- runtime behavior is resolved when the active agent runs
$prodify-init - No root-level agent files are required
- the root
AGENTS.mdis repository-local contributor guidance, not a second runtime bootstrap
🧠 Skills
Prodify supports stage-bounded skills.
Skills may improve execution quality by adding targeted expertise such as:
- codebase scanning
- TypeScript backend refactoring
- architecture design
- test hardening
- maintainability review
But skills are not a second source of truth.
Contracts and validators remain authoritative.
🔁 State and Resume
Prodify persists execution state under .prodify/.
That allows:
- resumable runs
- deterministic stage progression
- strict stage blocking
- validation-aware continuation
Resume flow:
$prodify-resume📦 Typical Outputs
After a run, you should expect artifacts such as:
.prodify/artifacts/
01-understand.md
02-diagnose.md
03-architecture.md
04-plan.md
05-refactor.md
06-validate.mdAnd metrics such as:
.prodify/metrics/
baseline.json
final.json❌ What Prodify is NOT
Prodify is not:
- a generic code generator
- a linter
- a formatter
- a framework
- a replacement for an agent
✅ What Prodify IS
Prodify is:
a deterministic runtime that forces AI agents to produce real, validated, measurable code transformation
🚀 Vision
Turn this:
AI output → chaotic codeinto this:
AI execution → structured, validated, production-grade systems⚡ One-liner
Prodify is a compiler for AI-driven software development.
