Skip to main content

Project Loop Harness

Turn a coding agent's “done” into reviewable evidence, residual risk, and a resumable next step.

Project Loop Harness completion dashboard

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

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

project_loop_harness-0.6.0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

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

project_loop_harness-0.6.0-py3-none-any.whl (879.3 kB view details)

Uploaded Python 3

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

Hashes for project_loop_harness-0.6.0.tar.gz
Algorithm Hash digest
SHA256 57232c8668540fbe511e7b29f68341381e7851591af82c5ec6f8750d431b7913
MD5 a8a84868a1661dd11a58cc468ade06fc
BLAKE2b-256 d86112e88d1498513912f7cb877ef5641eb13e085089523762208639214c26e9

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file project_loop_harness-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for project_loop_harness-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4857355d108f720feb93497dc17ae53bb9b7502f4549a0f26c1a97cfa655137d
MD5 ae18ab066285503452b779095ac59c10
BLAKE2b-256 725774c41e09e8c3c6c223cef2452dc848969ba8b7dfcc192ab0766a2e9f8029

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.3

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.1

2 files

0.3.0

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

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