agentleFS
Baba01hacker666Baba01hacker666/tigerstyle/AGENTS.md

tigerstyle

AGENTS.md0 starsChanged 3 months agoApache-2.0View on GitHub

This project enforces TigerStyle (TigerBeetle engineering methodology and coding philosophy). When generating, modifying, or reviewing code in this repository, you MUST strictly adhere to the following rules:

  • 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 35,117 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.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Explicit Bounds: Every loop must have an iteration counter with an asserted upper limit (assert(iterations < LIMIT)).

    line 11
  2. Very specific:

    No Recursion: Use simple, explicit iterative control flow.

    line 13
  3. Distinctive:

    Control Plane vs. Data Plane: Keep complex branching and orchestration in the control plane.

    line 22
  4. Distinctive:

    4 Spaces Indent: Use 4 spaces for indentation.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

TigerStyle Agent Guidelines & System Rules

This project enforces TigerStyle (TigerBeetle engineering methodology and coding philosophy). When generating, modifying, or reviewing code in this repository, you MUST strictly adhere to the following rules:


1. Safety & Correctness (Highest Priority)

  • Assertion Density: Average at least 2 assertions per function. Assert all function arguments, return values, preconditions, postconditions, and internal state invariants.
  • Pair Assertions: Assert invariants at both ends of a lifecycle (e.g. before write and after read).
  • Positive & Negative Space: Assert what is expected AND explicitly what is forbidden.
  • Explicit Bounds: Every loop must have an iteration counter with an asserted upper limit (assert(iterations < LIMIT)). Unbounded loops are strictly prohibited.
  • Static Memory Allocation: Allocate memory at startup. Zero dynamic heap allocation (malloc, free, realloc) during steady state/data plane.
  • No Recursion: Use simple, explicit iterative control flow. Push ifs up to coordinator functions and for loops down into pure leaf helpers.
  • Narrowest Scope: Declare variables at the smallest possible scope. Never keep unused variables in scope.
  • 70-Line Function Limit: Hard limit of 70 lines per function.
  • 100% Error Handling: Handle every error explicitly.

2. Performance & Hardware Sympathy

  • Primary Colors: Optimize across Network, Storage, Memory, and Compute (Bandwidth and Latency).
  • Control Plane vs. Data Plane: Keep complex branching and orchestration in the control plane; keep data plane zero-copy, direct memory, and sprintable.
  • Zero-Copy & Zero-Deserialization: Direct binary layouts, cache-line aligned (64B), fields ordered largest to smallest.
  • In-Place Initialization: Construct large structs via out-pointers (target: *Struct) to eliminate stack copy/moves.
  • Zero Buffer Bleeds: Explicitly zero unused padding and buffers.

3. Developer Experience & Style

  • Big-Endian Naming: Most significant noun first, unit/qualifier last (latency_ms_max, latency_ms_min, connection_count_limit).
  • Symmetrical Variable Names: Equal character length for paired concepts (source / target).
  • 100 Columns Max: Hard limit of 100 columns per line.
  • 4 Spaces Indent: Use 4 spaces for indentation.
  • Always Say Why: Comments must explain the rationale (why and how), written in complete punctuated English sentences.
  • Zero Technical Debt: Fix showstoppers and bugs immediately. Do it right the first time.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.