Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This file contains counter-intuitive aspects of the Tesseract codebase that AI agents should know.

## General Principles

- **Read the codebase before proposing an architecture or approach.** Do not speculate about capabilities or patterns - look at the actual code.

## Environment setup

- **Use `uv` for dependency management.** Install with `uv pip install -e ".[dev]"`. This is faster and more reliable than plain pip.
Expand All @@ -18,6 +22,10 @@ This file contains counter-intuitive aspects of the Tesseract codebase that AI a
- **Rarely test exceptions.** Only test exception handling when control flow is complex or the error message is critical for UX. Don't write tests that just verify an exception is raised.
- **Never skip or disable tests without asking.** If a test is failing and you want to skip it, ask the user first. Don't add `@pytest.skip`, `@pytest.mark.xfail`, or comment out tests without explicit approval.

## Code Quality

- **Always run tests and verify code works end-to-end before presenting it as complete.** Do not wait for the user to ask 'did you test this?'

## Code style

- **Follow existing patterns.** Look at similar code in the codebase and match its style. Don't introduce new patterns without good reason.
Expand Down
Loading