Skip to content
lake
Browse this documentation section

AGENT.md Requirements

Lake is a Rust workspace with a single lane; the repo-level entry points are CLAUDE.md and AGENT.md at the root (AGENTS.md is a symlink to CLAUDE.md) — thin progressive-disclosure catalogs that point into docs/. The per-directory AGENT.md convention applies below that level: any significant module directory MUST have an AGENT.md file that guides AI agents working in that area.

When to Create

Template

# {module-name} — Agent Guidelines

## Purpose
One sentence: what this module does and why it exists.

## Architecture
Key sub-modules, data flow, and public API surface. Point to real source files rather than abstract descriptions.

## Critical Invariants
Constraints that MUST NOT be violated (thread safety, ordering guarantees, immutability boundaries).
Explain the consequence of violation.

## What NOT To Do
Explicit anti-patterns with reasoning. Format: "Do NOT X — because Y".

## Dependencies
Upstream/downstream module relationships and external service dependencies (RocksDB, DynamoDB, object store).

Rules