Project Loop Harness
Turn a coding agent's “done” into reviewable evidence, residual risk, and a resumable next step.
Understand it in 30 seconds
Coding agents can produce changes quickly. They are less reliable at preserving project state, proving completion, stopping at human decisions, and handing work to another session or model.
Project Loop Harness (pcl) gives Codex, Claude Code, and similar agents one local,
model-neutral loop:
intent → bounded work → checks → copied evidence → completion packet → next step
- SQLite keeps current state; JSONL keeps an auditable event projection.
- Tests, artifacts, reviews, and completion packets preserve what “done” means.
- Agents continue routine safe work; humans decide product, permission, security, destructive, and external-service questions.
- The runtime does not call an LLM or depend on one agent vendor.
It is for people coordinating coding agents, not another chat wrapper.
Get first value in five minutes
Install the runtime with either tool:
pipx install project-loop-harness
# or: uv tool install project-loop-harness
Inspect the adoption plan before writing anything, then initialize:
cd /path/to/your-project
pcl init --dry-run --json
pcl init
pcl doctor --strict
pcl init detects common Python and Node project metadata and safe verification
commands. It retains existing AGENTS.md, CLAUDE.md, .gitignore, and
pcl.yaml content. --force may replace generated templates, but it does not
replace existing project-instruction content.
Now tell the coding agent the outcome—not a sequence of pcl commands:
Read AGENTS.md, CLAUDE.md if present, and pcl.yaml. Use the Project Control
Loop. Start this goal: <describe the outcome>. Continue every agent-safe next
action, run the configured checks, preserve evidence, emit a completion packet,
and close the goal. Do not ask me to run routine pcl commands. Stop only for a
genuine human decision or external blocker.
The agent owns pcl start → implementation → finish → close. The operator uses
the CLI for setup, review, and deliberate maintenance.
Want to see the result before adopting it? Run the isolated 3-minute public-package demo.
What the operator needs to remember
| Moment | Command | Purpose |
|---|---|---|
| Adopt | pcl init --dry-run --json, then pcl init |
Inspect and install local policy/state |
| Start | pcl start "<outcome>" or --task T-XXXX / --goal G-XXXX |
Create minimal active work or attach without duplicates |
| Orient | pcl next --json or pcl resume |
Continue or hand off safely |
| Stop stagnation (opt-in) | pcl progress guard activate ... |
Stop repeated zero-value automatic continuation at one Exit Gate |
| Verify | pcl finish --emit-packet --goal G-XXXX |
Rerun checks and pin evidence |
| Review | pcl render |
Generate the human dashboard |
Most other commands are an agent-facing and maintainer-facing reference surface. Start with the five moments above.
What it is—and is not
Skill = instructions for agents
pcl CLI = guarded local runtime and state machine
project.db = current normalized loop memory
events.jsonl = derived append-only audit projection
dashboard.html = generated human view, never machine state
Plugin / MCP = optional integration wrappers, never the runtime
Project Loop Harness is local-only by default. Initialization enables no telemetry, cloud sync, provider call, production access, or automatic GitHub write. It is not a hosted orchestration service, a sandbox, or proof that an agent understood the code.
Agents must not edit .project-loop/project.db, .project-loop/events.jsonl, or
generated dashboard HTML. State mutations go through pcl; machine context
comes from JSON commands, evidence paths, reports, or dashboard-data.json.
The protected and internal compatibility surfaces are documented in the Alpha Stability Policy.
Install and inspect in more detail
Use a project virtual environment instead of a global tool install when that is the repository convention:
python -m pip install project-loop-harness
python -m pcl --version
For unreleased work, pin a tag or commit:
pipx install "git+https://github.com/mocchalera/project-loop-harness.git@<tag-or-commit>"
After initialization:
pcl validate --strict
pcl render --json
pcl update check # explicit, cached, advisory only
Use pcl update command to print the appropriate manual upgrade command. Set
PCL_NO_VERSION_CHECK=1 to disable version checks.
The proof boundary
A release, download, clone, dashboard, or passing internal demo is output evidence—not adoption evidence. External adoption is judged only by observed first use in real repositories: time to healthy setup, time to a verified completion packet, maintainer interventions, safety violations, and voluntary reuse.
As of v0.6.0, no version-current external cohort result has been recorded, so the project does not claim external adoption. The v0.5.2 Adoption Proof remains available as a historical study contract, not as current work or a successful outcome.
Documentation
- Adoption Guide — coexistence, distribution, and the first real repository.
- 3-minute demo — reproducible public
package path to
COMPLETED_VERIFIED. - Golden Path — complete direct and workflow examples.
- Architecture — state, events, evidence, and execution boundaries.
- Direct Setup Bundle v1 — strict one-call Goal/Task/Feature/Story/Test setup and idempotent recovery.
- CLI Guide — task-oriented command discovery.
- Recovery Playbook — safe diagnosis and repair.
- Mainline Progress Guard v1 — opt-in Goal/Exit-Gate stagnation policy and explicit security boundary.
- MCP compatibility — optional client boundary.
- Security and Contributing.
Advanced contracts stay in docs/: completion packets, evidence sets,
completion policy, Harness Gap Reports, context packs,
code context, workflow execution, Council Profile, trace/resume, reports,
migrations, and dashboard data.
Local development
python -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[dev]'
ruff check .
pytest
PYTHONPATH=src python -m pcl --help
When working in a linked worktree, prefer PYTHONPATH=src python -m pcl or a
worktree-local virtual environment instead of repointing a shared executable.
Before release, verify both install artifacts:
python -m build --outdir /tmp/pcl-release-dist --sdist --wheel
python scripts/verify_sdist_contracts.py --dist-dir /tmp/pcl-release-dist
pytest tests/test_distribution.py
Safety and current scope
The first production milestone deliberately excludes:
- hosted backends and cloud synchronization;
- production database access;
- autonomous destructive operations;
- automatic external notifications or repository writes;
- telemetry collection;
- dynamic workflows before static contracts are stable.
The current release is alpha software. Prefer pinned versions for team use, inspect the dry-run plan, keep human gates human, and preserve evidence for every terminal claim.
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 project_loop_harness-0.6.0.tar.gz.
File metadata
- Download URL: project_loop_harness-0.6.0.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57232c8668540fbe511e7b29f68341381e7851591af82c5ec6f8750d431b7913
|
|
| MD5 |
a8a84868a1661dd11a58cc468ade06fc
|
|
| BLAKE2b-256 |
d86112e88d1498513912f7cb877ef5641eb13e085089523762208639214c26e9
|
Provenance
The following attestation bundles were made for project_loop_harness-0.6.0.tar.gz:
Publisher:
publish-pypi.yml on mocchalera/project-loop-harness
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
project_loop_harness-0.6.0.tar.gz -
Subject digest:
57232c8668540fbe511e7b29f68341381e7851591af82c5ec6f8750d431b7913 - Sigstore transparency entry: 2432432305
- Sigstore integration time:
-
Permalink:
mocchalera/project-loop-harness@da59b068f27becdc6a8bc857709f899787326638 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/mocchalera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@da59b068f27becdc6a8bc857709f899787326638 -
Trigger Event:
release
-
Statement type:
File details
Details for the file project_loop_harness-0.6.0-py3-none-any.whl.
File metadata
- Download URL: project_loop_harness-0.6.0-py3-none-any.whl
- Upload date:
- Size: 879.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4857355d108f720feb93497dc17ae53bb9b7502f4549a0f26c1a97cfa655137d
|
|
| MD5 |
ae18ab066285503452b779095ac59c10
|
|
| BLAKE2b-256 |
725774c41e09e8c3c6c223cef2452dc848969ba8b7dfcc192ab0766a2e9f8029
|
Provenance
The following attestation bundles were made for project_loop_harness-0.6.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on mocchalera/project-loop-harness
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
project_loop_harness-0.6.0-py3-none-any.whl -
Subject digest:
4857355d108f720feb93497dc17ae53bb9b7502f4549a0f26c1a97cfa655137d - Sigstore transparency entry: 2432432407
- Sigstore integration time:
-
Permalink:
mocchalera/project-loop-harness@da59b068f27becdc6a8bc857709f899787326638 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/mocchalera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@da59b068f27becdc6a8bc857709f899787326638 -
Trigger Event:
release
-
Statement type: