Contributing and Upstream PRs
This project keeps two contribution paths separate:
- normal development in this repository, using the Git Flow rules in
AGENTS.md - upstream contributions back to the original repository, using small public-safe PRs
Source of Truth
AGENTS.md is the repository workflow SOT for local agents and maintainers. CONTRIBUTING.md and this page are the public contributor SOT. When workflow, behavior, or public-safety rules change, update the relevant README/docs page in the same change.
Normal Repository Work
Use develop for integration work. Start normal features from develop on a feature/<short-description> branch, then merge finished work back into develop. Push main only through a release or hotfix flow.
Before handoff, run the focused check that matches the change. For code changes this is usually:
npm run checkFor documentation changes, also run:
npm run docs:buildPublic-Safe Checklist
Do not commit local-only or sensitive files:
.codex-home*.phone-token.phone-workspaces.json.uploads/- logs
- generated session databases
- local
.envcredentials or webhook URLs
Keep examples localhost-first. The Codex app-server should remain bound to 127.0.0.1; expose only the token-protected bridge on the LAN.
Upstream Pull Requests
If this repository is a fork, an upstream PR is possible when the change is reusable by the original project and does not depend on private local setup.
Recommended flow:
- Check remotes with
git remote -v. - Fetch the upstream remote.
- Create a branch from the upstream target branch.
- Port only the reusable commits or hunks.
- Run the focused verification command.
- Push the branch to the fork.
- Open a PR from the fork branch to the upstream repository.
Do not send local workflow glue, private notification setup, tokens, machine-specific paths, or generated session data upstream. If the fork has diverged heavily, split the PR into smaller reviewable pieces or open an upstream issue first.