---
title: Reviewing a file
description: Documents the `agency review` command, which combines the type checker with an LLM-driven review pass to catch common mistakes and anti-patterns in an Agency file.
---

# Reviewing a file

*work in progress*

```
agency review foo.agency
```

Reviews an Agency file for type errors and code quality issues. This goes beyond what `typecheck` covers — it uses an LLM to look for common mistakes, anti-patterns, and improvements, in addition to running the type checker.

Use this when you've finished writing a file and want a second pair of eyes before committing.
