---
id: "action-implement-strict-linting"
type: "action-item"
source_timestamps: ["00:12:08", "00:17:21"]
tags: ["dev-ops", "code-quality"]
related: ["concept-agent-environment-readiness", "claim-agents-are-lazy-developers"]
speakers: ["Nate B. Jones"]
action: "Enforce strict linting and static analysis on codebases before introducing autonomous AI agents."
outcome: "Prevents agents from taking shortcuts and producing messy, unmaintainable code."
sources: ["s41-nvidia-open-sourced"]
sourceVaultSlug: "s41-nvidia-open-sourced"
originDay: 41
---
# Implement strict linting and static analysis before deploying agents

## Action

**Enforce strict linting and static analysis on codebases before introducing autonomous AI agents.**

## Why

Because [[claim-agents-are-lazy-developers]] (see [[quote-agents-are-lazy]]), agents will produce messy, shortcut-laden code unless the environment forbids it. Strict tooling functions as a **straightjacket** that forces production-grade output.

## Concrete Steps

1. **Adopt aggressive lint rules** — e.g., `eslint --max-warnings 0`, `ruff` with strict configs, `golangci-lint` with broad rule sets.
2. **Add formatter enforcement** — `prettier`, `black`, `gofmt` checked in CI; PRs blocked on diff.
3. **Add type/static analysis** — TypeScript strict mode, `mypy --strict`, Sorbet, etc.
4. **Wire into pre-commit / CI** so the agent cannot bypass it.
5. **Make lint output legible to the agent** — JSON or structured output it can act on.

## Expected Outcome

- Agent commits become consistently style-compliant.
- Bug class "agent skipped error handling" drops sharply.
- Code review friction drops because the agent's output starts at the same baseline as a senior engineer's.

## Connection to the Broader Framework

This is the **first pillar** of [[framework-factory-agent-readiness]] (Style and Validation) and the most concrete instantiation of [[concept-agent-environment-readiness]].

## See Also

- [[concept-agent-environment-readiness]]
- [[framework-factory-agent-readiness]]
- [[claim-agents-are-lazy-developers]]
