Thanks for helping improve LoopX. This project is early, so the best contributions are small, reviewable, and tied to a public task or clear bug.
Start with the current technical directions to understand the active programs and their maturity, then use CONTRIBUTOR_TASKS.md to find public work that is useful, claimable, and safe to discuss in the repository.
If you do not see a matching task:
- open a GitHub issue with the contributor task template;
- explain the problem, proposed scope, touched files, and validation command;
- wait for maintainer feedback before starting large or behavior-changing work.
Small docs typo fixes and obviously safe cleanups can go straight to a pull request.
LoopX coordinates local agent state, so some files are runtime data and must stay out of public contributions:
- do not commit
.loopx/,.codex/goals/, or liveACTIVE_GOAL_STATE.mdfiles; - do not publish private benchmark traces, verifier output, raw agent sessions, credentials, internal document links, or local machine paths;
- do not run or duplicate maintainer-owned benchmark cases unless a maintainer has split out a public issue for that work.
Safe contribution surfaces include docs, examples, smoke tests, CLI diagnostics, schema docs, dashboard UI code, and sanitized fixtures.
Run the public/private scan before sending docs or examples:
loopx check \
--scan-path README.md \
--scan-path CONTRIBUTING.md \
--scan-path CONTRIBUTOR_TASKS.md \
--scan-path docs/ \
--scan-path examples/Use the developer guide as the stable entry point. Before changing scheduler, quota, todo/gate, onboarding, agent-facing output, or release behavior, read the bilingual testing and quality guide. Before adding or consolidating a public smoke, use the bilingual good smoke guide to define its durable invariant, independent oracle, cadence, and public-safe fixture boundary.
Install and verify the checkout:
git clone https://github.com/huangruiteng/loopx ~/loopx
~/loopx/scripts/install-local.sh
export PATH="$HOME/.local/bin:$PATH"
loopx doctor
loopx demoCommon focused checks:
python -m pip install -e ".[test]"
python -m ruff check tests loopx/canary loopx/control_plane loopx/domain_packs loopx/presentation
python -m mypy
python examples/control_plane/cli-output-budget-regression-smoke.py
python -m pytest -q
loopx canary premerge --from-git-diff
loopx check --scan-path loopx/ --scan-path tests/ --scan-path examples/ --scan-path docs/
git diff --checkChoose focused smokes and broader canaries by change risk; do not run every public smoke or a live model call for every patch. The quality guide explains the CI, local/manual, and release-only boundaries.
LoopX's unified open source core is licensed under the Apache License 2.0. Unless you explicitly state otherwise before submission, contributions accepted into this repository are submitted under Apache-2.0 without additional terms or conditions. LoopX does not require a copyright assignment or contributor license agreement.
Every pull-request commit must certify the Developer Certificate of Origin 1.1 by including a sign-off trailer:
Signed-off-by: Your Name <your.email@example.com>
Create that trailer with Git's -s option:
git commit -s -m "feat: describe the change"The name and email must identify the person making the certification and must
be information you are permitted to publish in the permanent Git history. If a
commit is missing the trailer, amend it with git commit --amend -s or use an
interactive rebase to sign the affected commits, then update the pull-request
branch. The DCO pull-request check rejects unsigned commits.
Releases through v0.4.7 remain under their original MIT terms. See the
licensing and v0.4.8 transition policy for the
historical notice, patent-grant boundary, and open-core scope.
Use loopx/experiments/<experiment-id>/ for an opt-in prototype that does not
yet have a stable caller contract or participate in LoopX's default lifecycle.
Keep its tests, examples, and scripts under matching experiments/ paths so
the prototype can be evaluated or removed as one unit. Core modules must not
import experimental packages. See the
experiment placement and promotion policy.
Treat LoopX Turn and a long-running host loop as separate layers:
loopx turn run-onceis one atomic governed transaction. It may decide, invoke one bounded host segment, validate independently, write back, spend once, and project the latest scheduler phase.- A Turn Loop Controller is an outer runtime owner. It decides when to wake,
invokes
run-once, consumes the typed result, applies the sharedscheduler_hint, and either waits, routes a user action, repairs, replans, continues, or stops. - A host adapter translates one typed request and result. It owns the opaque host session and tools, but it does not own LoopX state, quota, completion, validation, scheduler policy, or replan policy.
Do not add a sleep loop, cron implementation, recurring daemon, operator
notification path, or multi-Turn replan loop inside run-once. Do not copy
Codex App heartbeat prompt rules into a second scheduler. Reuse the existing
interaction, scheduler, autonomous-replan, todo, and TurnEnvelope contracts;
only the runtime-specific act of applying a wakeup belongs in a scheduler
adapter.
A replan_required result is not permission to invoke the same todo again. A
controller must first record a bounded todo or vision delta, obtain a fresh
TurnEnvelope, and preserve the causal (goal_id, agent_id, todo_id) frontier.
An opaque resumable host session is recovery metadata, not authority to bypass
that decision.
Stage host-loop contributions in reviewable slices:
- characterize current Codex App and Turn behavior with independently derived fixtures;
- add a pure next-disposition decision table with no host or state effects;
- add one scheduler-owner adapter with a fake clock and fake host;
- add runtime-specific wakeup, notification, or presentation only after the shared transition contract is stable.
For every controller or host-loop change, prove:
- scheduler owner, host surface, and execution mode are explicit and valid;
wait, user action, monitor-only, and cadence-only paths make no model call and spend no quota;- material progress requires independent postcondition validation before durable writeback and spend;
- replay and interrupted-phase recovery are idempotent;
- repair and replan remain distinct, and replan produces a fresh frontier before another Turn; and
- fixtures contain no raw prompts, transcripts, credentials, private state, or host-local paths.
See the LoopX Turn protocol and the Contributor Task Board for the staged controller plan.
Repository roles and decision authority are defined in Governance. Creator and contributor attribution is recorded in AUTHORS.md, while path-scoped maintenance and preferred review assignments are recorded in the same governance document. The public Git history records individual contributions. Contribution does not automatically grant merge or release authority, and an agent or automation identity is not a human maintainer.
When naming or packaging a fork, integration, or hosted service, follow the project's name and marks guidance.
For dashboard changes:
cd apps/presentation/dashboard
npm install
npm run build
npm run smoke:demo-readiness- Comment on the issue before starting non-trivial work.
- If a maintainer marks it
claimedor assigns it to you, keep the scope close to the issue. - If you get stuck, comment with the blocker and what you already tried.
- If you need to change the scope, ask first.
- If there is no update for 14 days, maintainers may release the task so someone else can pick it up.
Before opening a pull request:
- link the issue or task ID when one exists;
- describe the behavior change and the validation you ran;
- keep unrelated formatting or refactors out of the PR;
- include docs or tests when changing user-visible behavior;
- confirm that no private/local runtime state was committed.
Maintainers may ask for a smaller PR if the change mixes unrelated concerns.