rumpelpod
AGENTS.md22 starsChanged 38 days agoApache-2.0View on GitHub
This is a rust project implementing an isolated LLM agent runner (rumpelpod). - Comments and commit messages should explain "why", not "what". Don't paraphrase code next to the comment. - If you write code, you should commit your changes. - Every commit must be signed off (git commit -s). - Always run tests via cargo pipeline, not cargo xtest directly. The pipeline records xtest output to target/xtest/<timestamp>.log. --continue parses that log to skip already-passed tests. Running xtest directly loses that…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
22 rules. About 0 are common, 18 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 4
Don't paraphrase code next to the comment.
- Distinctive: line 5
If you write code, you should commit your changes.
- Distinctive: line 6
Every commit must be signed off (git commit -s).
- Very specific: line 7
Always run tests via cargo pipeline, not cargo xtest directly.
- Very specific: line 13
Run smoke tests first: enter_smoke_test, enter_verifies_user_and_repo_path, claude_smoke, gateway_pod_commit_triggers_push, plus tests …
- Very specific: line 17
Use cargo pipeline --continue to resume from a previous run, skipping tests that already passed.
- Distinctive: line 19
If a test takes longer, suspect a hang rather than normal slowness.
- Distinctive: line 24
If a test fails flakily, rerun it in isolation to confirm before dismissing it as unrelated to your changes.
- Very specific: line 25
When adding or substantially changing integration tests, verify both runtime and repeatability.
- Distinctive: line 35
Every test is automatically retried once on failure (subject to a global retry budget).
- Distinctive: line 43
No unicode (e.g. emojis, em dashes) in comments, code, commit messages etc.
- Distinctive: line 44
Only if needed to test unicode support etc.
- Distinctive: line 46
Prefer integration tests/ over unit tests.
- Distinctive: line 49
Never fall through to a "default" when matching known variants.
- Distinctive: line 52
Prefer failing over continuing in degraded state in most cases.
- Distinctive: line 53
When an error is expected in normal operation, be as specific about the error as possible.
- Distinctive: line 55
When there's no choice but to continue after an error has occurred (e.g.
- Distinctive: line 56
No local imports (use inside function bodies).
- Distinctive: line 60
Prefer explicit control flow over anyhow macros like bail!
- Distinctive: line 62
If you can't log on but your change should be tested on macos, report to the user.
- Distinctive: line 63
Before awaiting review for a patch set, review your change relative to the merge base of your upstream, typically host/master.
- Distinctive: line 65
Check which files you touched, then invoke git diff once per file.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
This is a rust project implementing an isolated LLM agent runner (rumpelpod).
- Comments and commit messages should explain "why", not "what". Don't paraphrase code next to the comment.
- If you write code, you should commit your changes.
- Every commit must be signed off (
git commit -s). - Always run tests via
cargo pipeline, notcargo xtestdirectly. The pipeline records xtest output totarget/xtest/<timestamp>.log.--continueparses that log to skip already-passed tests. Running xtest directly loses that record. The other pipeline steps (fmt, build, clippy, git-status) are cheap.cargo pipelineis expensive overall because of the tests. Run smoke tests first:enter_smoke_test,enter_verifies_user_and_repo_path,claude_smoke,gateway_pod_commit_triggers_push, plus tests related to what you changed. Changes in src/ that affect the rumpel binary need a full pipeline run after smoke and feature tests pass.cargo pipelineaccepts a single substring filter for test names (not a regex, no alternation), e.g.cargo pipeline enter_. The pipeline runs all tests to completion even when some fail. Usecargo pipeline --continueto resume from a previous run, skipping tests that already passed. Most individual test cases finish in under 60 seconds with the localhost executor (the default). If a test takes longer, suspect a hang rather than normal slowness. The full pipeline takes around 300 seconds (including compilation, clippy, and ~394 tests). First run after a clean build is slower (~5 minutes) due to compilation. Subsequent runs reuse cached builds. Inside a rumpelpod, a parallel run in an adjacent devcontainer can slow things down. If a test fails flakily, rerun it in isolation to confirm before dismissing it as unrelated to your changes. When adding or substantially changing integration tests, verify both runtime and repeatability. Run them repeatedly in isolation viacargo pipeline --retries 0 <filter>and inspect each run's duration. Investigate unusually slow runs and any failures; a single pass or a pass after an automatic retry does not establish reliability. Report the number of repetitions and observed runtimes when handing off the change. - xtest is the test runner used by the pipeline.
It builds cross-architecture binaries, sets up the test environment,
and runs each test as a separate process with timeouts and retries.
Flags:
--test-threads N,--timeout SECS,--retries N,--retry-budget N. Every test is automatically retried once on failure (subject to a global retry budget). The shared budget defaults to 10; CI uses 2 retries per test and a budget of 20. Runs all tests to completion even when some fail.--timeout/XTEST_TIMEOUTset the default per-test deadline (120s). Non-default deadlines live intools/xtest-timeouts.json5as integer multiples of that default. The suite starts highest-timeout tests first. - Unless prompted otherwise, don't try to remain backwards compatible. Assume all containers/files/databases were created with the current version.
- No unicode (e.g. emojis, em dashes) in comments, code, commit messages etc. Only if needed to test unicode support etc.
- Most features should have tests. Prefer integration tests/ over unit tests.
- Readers should not require a lot of context to understand tests. Some fixtures are OK, but bias towards some duplication across test cases over introducing new helpers.
- Never fall through to a "default" when matching known variants. Be explicit about every case and fail hard on unknown values rather than silently continuing in a potentially invalid state.
- You should almost never ignore errors: Prefer failing over continuing in degraded state in most cases. When an error is expected in normal operation, be as specific about the error as possible. E.g. when reading a file that is not expected to exist, ignore only not found errors but not others. When there's no choice but to continue after an error has occurred (e.g. in Drop, or while cleaning up after a previous error), log to stderr.
- No local imports (use inside function bodies). Place all imports at module level.
- Multiline strings: Use indoc, formatdoc, printdoc etc.
- Format strings: Prefer the format!("{var}") variant over format!("{}", v). Introduce variables if necessary, e.g. let var = var.display(); for paths.
- Prefer explicit control flow over anyhow macros like bail! and ensure!.
- For changes that require testing on macos, log onto a macbook via
ssh macosand clone your checkout to /tmp/<your-hostname>/rumpelpod. If you can't log on but your change should be tested on macos, report to the user. - Before awaiting review for a patch set, review your change relative to the merge base of your upstream, typically host/master. You usually want to spawn a subagent for this. Check which files you touched, then invoke git diff once per file. Things to look out for: Is the latest version internally consistent? Clean up left-overs from earlier iterations. Comments should describe the code as it exists in the current version, not a change.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

