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.
Rust archive-managerdesktop-appdual-paneexplorer-alternativefile-browserfile-explorerfile-managerfluent-designgpu-acceleratedgpuimacosmicaproductivityquick-lookrustrust-guitabswindowswindows-11windows-explorer
AGENTS.md for AI coding tools, and a pull request template
gelenmedya60b0cd92ea81
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdnew file mode 100644index 00000000..9a9c0dda--- /dev/null+++ b/.github/pull_request_template.md@@ -0,0 +1,9 @@+<!-- One change per pull request. Written with an AI tool? It should have read AGENTS.md first. -->++**What was wrong** (link the issue)++**What this changes**++**How I tried it** (Windows version, the steps; a picture for anything visible)++**What I did not try**diff --git a/AGENTS.md b/AGENTS.mdnew file mode 100644index 00000000..67a16646--- /dev/null+++ b/AGENTS.md@@ -0,0 +1,63 @@+# For AI coding agents working on rustyfiles++Short rules for a tool that writes code here (and for the person driving it). The human version is+[CONTRIBUTING.md](CONTRIBUTING.md); where the two differ, this file is the stricter one.++## 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.+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`.+3. **Find the cause before the fix.** Reproduce the problem, or measure it, and say in the pull request+ what the cause was. A change that makes the symptom go away without a named cause is not taken.++## What goes into a pull request++- **One change.** No refactoring, renaming or tidying beside it.+- **Never run `cargo fmt`** and do not reformat lines you did not change: the tree is not formatted+ with rustfmt, and a reformatted file cannot be reviewed.+- **Only the files of the change.** Keep your own files out: screenshot folders+ (`.agent-screenshots/`), plans, notes, tool settings. No version bumps, no edits to+ `.github/workflows/`, `vendor/` or `Cargo.lock` unless the change is about exactly that.+- **No new dependency** without asking in the issue first.+- **A new setting is off by default** (unless it fixes something) and has its own switch in Settings.++## The code++- **Layout.** `crates/rf-app` is the interface (GPUI), `rf-win` everything that talks to Windows,+ `rf-core`, `rf-archive` and `rf-nearby` are shared with the macOS app, `rf-dialog` is the DLL that+ runs inside other programs for Open/Save, `rf-shellguard` watches the Explorer replacement. The+ macOS app (`macos/`, `crates/rf-mac`) is outside the Windows workspace and builds on a Mac only:+ if you change a public type in a shared crate, search `crates/rf-mac` for its uses.+- **Nothing waits on the interface thread.** Disk, shell and network calls run on a background+ executor; a slow or failing part must not freeze or take down another one.+- **Comments say why**, in plain English, with the issue number, the way the code around them does.+- **Interface texts** are written in Turkish inside `t!("...")`, with the English in+ `crates/rf-app/src/i18n_en.rs`. If you do not know Turkish, put the English in both places and say+ so in the pull request. Do not edit `crates/rf-app/locales/*.json`: the maintainer runs the+ translations.++## Building and trying++```+cargo test -p rf-app -p rf-win -p rf-core+cargo run -p rf-app --bin rustyfiles -- C:\some\folder+```++- **Try it in a copy with its own settings**, never on the user's real ones:+ `RUSTYFILES_CONFIG_DIR=<empty folder>` and `RUSTYFILES_MULTI_INSTANCE=1`.+- Do not end `explorer.exe`, change the shell in the registry, or do anything that asks for+ 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.++## The pull request's text++- **Title:** short, plain English, under 72 characters, saying what changed.+- **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+ run on a real window, write that. An honest "untested on Windows 10" is worth more than a+ confident summary.diff --git a/CLAUDE.md b/CLAUDE.mdnew file mode 100644index 00000000..43c994c2--- /dev/null+++ b/CLAUDE.md@@ -0,0 +1 @@diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex b1b79cda..5f287f46 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -33,6 +33,8 @@ workspace.## Pull requests+Working with an AI coding tool? Point it at [AGENTS.md](AGENTS.md) first: the same rules, written for it.+- **One change per pull request.** Small and focused PRs are reviewed and merged fastest; a PR thatdoes three things usually waits for the slowest of them.- **Say what was wrong and how you tried the fix**, with a picture for anything visible.