← All tools

Code Engineering

Lint

Run the project's linter; auto-detects eslint / ruff / flake8 / pylint / golangci-lint / clippy / rubocop / checkstyle.

lint

Overview

The 'one button to run whatever lint the repo configured'. Useful in a code-quality loop where the agent's job is to leave the tree cleaner than it found it.

How it works

Detection order: ESLint config → Ruff → Flake8 → Pylint → golangci-lint → clippy → Rubocop → Checkstyle. Output capped at 50 KB; default timeout 180s. fix=true escalates to WORKSPACE_WRITE permission semantically.

Example

When a user asks:

Lint the src/ tree and fix what you can.

the agent calls the tool:

lint(fix=true)

and gets back: ruff: 6 issues fixed, 1 remaining (E501 line too long at src/api/handlers.py:142)

What it's good for

Real scenarios where agents put this tool to work.

Cleanup pass before opening a PR
Iterative loop where a reviewer agent demands a lint-clean diff before approval

Source

Implementation lives at swarmai-tools/src/main/java/ai/intelliswarm/swarmai/tool/code/build/LintTool.java in the swarm-ai repository.

Open lint on GitHub →