Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

AGENTS.md: the real repository's main, commit titles, what CI runs, a test that fails on main

gelenmedyac147c934e262
diff --git a/AGENTS.md b/AGENTS.md
index 67a16646..f1bdf267 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -5,8 +5,10 @@ Short rules for a tool that writes code here (and for the person driving it). Th
## Before you write anything
-1. **Work from today's `main`.** Fixes land every day. `git fetch origin && git rebase origin/main`
- first, and read the code on `main`, not the released version the issue was written against.
+1. **Work from today's `main` of `gelenmedya/rustyfiles`.** Fixes land every day. In a fork, `origin`
+ is the fork, and its `main` is usually behind, so name the real repository:
+ `git fetch https://github.com/gelenmedya/rustyfiles main && git rebase FETCH_HEAD`.
+ Read the code as it is there, not the released version the issue was written against.
2. **Check that the work is still open.** Read the whole issue, its last comments included, and search
the open and recently merged pull requests for the same fix (`gh pr list --state all --search "<issue number or words>"`).
Several pull requests have repeated a fix that was already on `main`.
@@ -52,10 +54,21 @@ cargo run -p rf-app --bin rustyfiles -- C:\some\folder
administrator rights as part of a test.
- Add a test for logic that can break (parsing, sorting, file operations). Tests that measure speed
depend on the machine: if one fails, run it alone before believing it, and never loosen its limit.
+- **A test fails?** Run it on a clean `main` first. If it fails there too it is not yours: say so in
+ the pull request, and do not "fix", skip or delete it on the way.
+- **What CI runs on a pull request:** `cargo test --workspace`, a release build
+ (`cargo build --release -p rf-app -p rf-dialog`), and a release build for Windows on ARM with
+ `--locked` (`--target aarch64-pc-windows-msvc`). So the code has to compile for ARM64 too (no
+ x86-only code without a `cfg`), and `Cargo.lock` has to be committed whenever a dependency changed.
-## The pull request's text
+## Commits and the pull request's text
-- **Title:** short, plain English, under 72 characters, saying what changed.
+- **Every commit of the branch lands in the history as it is** (branches are merged, not squashed).
+ So each commit title is short, plain English, under 72 characters, and says what changed for the
+ person using the program: "The tab menu has Open in terminal", not "feat: add menu item" or "fix
+ review comments". Squash work-in-progress commits before asking for review. No lines naming the
+ tool that wrote the commit.
+- **Title of the pull request:** the same style.
- **Body:** what was wrong and why, what you changed, and how you tried it (Windows version, the
steps, a picture for anything visible). Link the issue.
- **Say what you did not try.** "Compiles and the tests pass" is not "works": if the change was never