AGENTS.md agentsA
AGENTS.md is agent-read markdown (agents) from tailcallhq/forgecode.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified before it reaches your agent: the main file against the SHA-256 recorded here, the others against the git hashes of its source commit. The deterministic audit below grades the latest version, and the same checks always give the same file the same grade.
What the file says
# Agent Guidelines
This document contains guidelines and best practices for AI agents working with this codebase.
## Error Management
- Use `anyhow::Result` for error handling in services and repositories.
- Create domain errors using `thiserror`.
- Never implement `From` for converting domain errors, manually convert them
## Writing Tests
- All tests should be written in three discrete steps:
```rust,ignore
use pretty_assertions::assert_eq; // Always use pretty assertions
fn test_foo() {
let setup = ...; // Instantiate a fixture or setup for the test
let actual = ...; // Execute the fixture to create an output
let expected = ...; // Define a hand written expected result
assert_eq!(actual, expected); // Assert that the actual result matches the expected result
}
```
- Use `pretty_assertions` for better error messages.
- Use fixtures to create test data.
- Use `assert_eq!` for equality checks.
- Use `assert!(...)` for boolean checks.
- Use unwraps in test functions and anyhow::Result in fixtures.
- Keep the boilerplate to a minimum.
- Use words like `fixture`, `actual` and `expected` in test functions.
…Read the whole file at its exact version.
How to install
mdr add tailcallhq/forgecode/AGENTS.md@git:20251208.4905ae0mdr add tailcallhq/forgecode/AGENTS.md@sha256:f6fc40414b486564Pin to a label to follow the author's releases, or to a sha256 for exact bytes. Either way the resolved hash is written to mdr.lock, and mdr install fetches those bytes again and checks them, so it installs them exactly or fails.
[](https://markdownregistry.com/a/art_lnpn5knwhyezqz52)
2 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20251208.4905ae0 latest | 2025-12-08 | 4905ae0 | 7,331 B | A | view · diff |
| git:20251012.e685db5 | 2025-10-12 | e685db5 | 7,268 B | A | view · diff |
| git:20251004.564a24b | 2025-10-04 | 564a24b | 7,261 B | A | view · diff |
| git:20251003.fe2c09c | 2025-10-03 | fe2c09c | 7,891 B | A | view · diff |
| git:20250930.c1ebee6 | 2025-09-30 | c1ebee6 | 7,515 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (7331 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
tailcallhq/forgecode · 7,637 stars · license Apache-2.0 · pushed 2026-09-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_lnpn5knwhyezqz52 GET https://markdownregistry.com/api/v1/resolve?ref=tailcallhq/forgecode/AGENTS.md GET https://markdownregistry.com/api/v1/blob/f6fc40414b4865648b66d93f8b2ac96b924ba0bd61eedad2486397d38039285d
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from tailcallhq/forgecode
Every file in tailcallhq/forgecode