Use this file as the first-step runbook for autonomous work in this repository.
- Read
AGENTS.mdfully. - Check current branch and working tree:
git status --short --branch
- If the tree is dirty, do not revert unrelated user changes.
- Install deps if needed:
just install
- Optional Nix shell (recommended):
nix develop
- Client task:
- Do not start Android/iOS simulators or emulators locally.
- Validate with static checks:
just check
- Server task:
- Validate with local checks:
cargo fmt --checkandcargo test
- Validate with local checks:
- Integration/regtest task:
- Only run
just setup-everythingif explicitly requested by the user.
- Only run
- Locate existing implementation before adding new files.
- Keep changes local to the relevant layer:
- UI/hooks/lib in
client/src - API handlers in
server/src/routes - SQL in
server/src/db
- UI/hooks/lib in
- Preserve existing auth, middleware, and background coordination behavior.
- Reuse existing wrappers/hooks for wallet and server interactions.
Run the smallest valid check set for the changed surface:
- Client-only edits:
bun client check
- Server-only edits:
cargo fmt --checkcargo test
- Cross-cutting edits:
- both sets above
If server payload types changed, verify generated TS contract changes in:
client/src/types/serverTypes.ts
- Create a feature branch prefixed with
codex/. - Commit with a concise descriptive message.
- Push branch and open PR with:
- what changed
- why
- validation commands run
- any risks/follow-ups
- After opening PR, monitor status checks:
gh pr checks --watch
- Once checks pass and PR is merged, sync local
masterimmediately:git checkout mastergit pull --ff-only origin master
Pause and ask for clarification if:
- requested behavior conflicts with security/auth model,
- required environment secrets/services are missing,
- task needs destructive git actions.