PatchLoop is early-stage infrastructure for running GitHub agent loops locally. Contributions are welcome, especially around safety gates, queue reliability, adapter support, documentation, and tests.
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
pip install pytestRun the review service tests:
cd openreview
python3 -m pytest tests -qRun the coding service tests:
cd autocode
python3 -m pytest tests -q- Do not commit real
.envfiles, tokens, state snapshots, logs, patches, or local worktrees. - Keep
DRY_RUN=truein examples unless a section explicitly explains production setup. - Preserve the safety model: PatchLoop must not merge PRs automatically or push directly to a default branch.
- Prefer small, reviewable changes with focused tests.
- Update
README.mdwhen behavior, configuration, state, polling, or safety boundaries change.
Changes touching authentication, GitHub write permissions, webhook verification, branch protection, command execution, or path filtering should include tests and clear documentation of the risk model.