From 744aa204960f869437420d3bf98e23ff44b51b37 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sun, 15 Nov 2026 23:04:43 +0100 Subject: [PATCH] add AGENTS.md with the checks and the commit style --- AGENTS.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..73d3771 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,32 @@ +# Working in this repository + +The repository holds two Rust programs: `record-daemon/` (the recorder) and `app/` (the rune +front end). `tauri-app/` is the old front end, kept for reference. + +## Before every commit + +In `app/` and in `record-daemon/`, all of these must pass: + +```sh +cargo fmt +cargo clippy --all-targets -- -D warnings +cargo test +``` + +`cargo build` must print no warning for these crates. The vendored crates under `app/vendor/` +and the rune checkout can print their own; they are silenced at their crate root, so do not add +allows in our own code to hide a warning that is ours to fix. + +For UI work, check the screen without a window and look at the PNG: + +```sh +cd app +cargo run -- --snap /tmp/screen.png --scene history +cargo run -- --snap /tmp/live.png --live --at 40 # real daemon and recordings +``` + +## Commit messages + +History uses `: `, for example `app: open the review screen from a +card` or `record-daemon: stop writing a log per game`. Lowercase after the colon, no trailing +period, subject at most 72 characters. The body says why, wrapped at 80 columns.