1.9 KiB
Brainwave agent guide
This file is the short repository entry point. The detailed, authoritative map is
docs/README.md.
Start here
- Read
docs/agent-playbook.mdbefore changing files. - Read
docs/environment.mdbefore build, SDK, device, or dependency work. - Read the relevant product/domain/architecture document from
docs/README.md. - Follow
docs/implementation-plan.md; never silently turn an item indocs/decisions.md#未决问题into a product fact.
Discovery
Prefer the configured codebase knowledge-graph tools in this order:
search_graph, trace_path, get_code_snippet, query_graph, then
get_architecture. Fall back to rg for literals, non-code files, or when those
tools are unavailable or insufficient. State the fallback in the handoff.
Non-negotiable domain rules
- The three physical coins are entered manually; do not add random casting.
字 = 2,背 = 3; record six lines from bottom to top.- Sums
6and9move; sums7and8remain static. - King Wen numbering is a lookup table, never
binary + 1. - Casting code remains pure Kotlin with no Android, Compose, database, or network dependency.
- AI is opt-in explanation only. Do not place provider secrets in the app or repo.
Current build boundary
The repository keeps brainwave only as its code name. The accepted Android
identity is product name 灵机, namespace/application ID net.opcapp.flash, and
minSdk 26. The app project is an installable Android application; the app icon
and store assets remain product decisions and must not be silently finalized.
Verification
Run from the repository root:
.\gradlew.bat verifyLocal
verifyLocal includes Android lint, debug unit tests, APK assembly, repository
checks, and dependency-license coverage. Run connectedDebugAndroidTest separately
when an authorized device is present, and report skipped device checks explicitly.