- This file applies to the full repository.
- Keep this file concise, durable, and repository-specific.
- If a closer directory-level
AGENTS.mdis added later, it overrides this file for that subtree.
- This repository is the standalone Rad Roots application repository.
- Treat it as a public open-source repository with a direct GPUI-native application focus.
- Preserve the repository's top-level identity files and keep the root easy to understand without mount-path context.
- Prefer the smallest coherent change that fully addresses the request.
- Do not mix unrelated cleanup or speculative refactors into the same change.
- Remove obsolete code and scaffolding when they are clearly replaced.
Before making substantial changes:
- Read this file,
README.md, andCONTRIBUTING.md. - Inspect
git status --shortbefore broad edits, refactors, or file removals. - Read the current implementation before changing behavior.
- Use checked-in commands and docs as the source of truth.
- Run validation from the repository root.
- Prefer the narrowest relevant validation first.
- Use documented commands before inventing new ones.
- Current canonical commands are:
cargo metadata --format-version 1 --no-depscargo check -p radroots_appcargo testcargo run -p radroots_app./scripts/check.sh./scripts/run.sh
- Keep the repository root as the package root.
- Keep the structure minimal until a durable new boundary is required.
- Do not reintroduce deprecated egui-era scaffolding.
- Use Rust
1.92.0, edition2024, and safe Rust only. - Keep state, data flow, and side effects explicit.
- Avoid hidden panics in non-test code.
- Keep code readable and direct.
- Format commits as
<scope>: <imperative summary>. - Use lowercase scopes.
- Keep handoff summaries clear and standalone.
- In handoff, state what changed, what validation ran, and any remaining risks or assumptions.
- The requested change is implemented.
- Obsolete scaffolding is removed when clearly replaced.
- Relevant validation ran, or a concrete blocker is reported.