# AGENTS Before implementing a code change, check the `STYLE` guide. After you're done implementing a code or test change, run: scripts/check To ensure that everything's in a good place. Fix any warnings or errors surfaced by these tools. When modifying only documentation files, such as Markdown or plain text files, do not run the check. If asked to commit, check the `CONTRIBUTING` file. In general, don't commit on the `master` branch, but feel free to commit on other branches. When modifying code, keep these things in mind: 1. Adding lots of new code to fix an issue is almost always wrong. 2. Removing code to fix an issue is almost always right. 3. Code has a cost of maintenance and prefer changing existing code rather than adding new code. 4. All code added should be written in the most performant way, if that doesn't result in more code. And follow these rules: * NEVER add a new dependency to Cargo.toml without first asking me. * ALWAYS document top-level symbols, even the private ones. * ALWAYS document struct fields and enum variants, even the private ones. * ALWAYS use the existing repository command helper to invoke Git when one is available. * ALWAYS structure human-facing terminal output with the existing UI primitives (`Table`, `VStack`, `HStack`, `Line`, labels, and related renderable types) instead of hand-aligning text with ad hoc spacing. * Always do things the proper, idiomatic, robust way. NO HACKS. * After the tests pass, run the benchmarks for the crate to ensure no regressions. * Don't use unicode characters in comments, outside of diagrams. * NEVER perform destructive actions if I ask a question that ends in a question mark `?`. When modifying tests: * NEVER add assertions whose purpose is to reject a previous implementation's output or behavior. Tests should assert the current required behavior and externally meaningful invariants, not historical states.