Code Engineering
Run the project's linter; auto-detects eslint / ruff / flake8 / pylint / golangci-lint / clippy / rubocop / checkstyle.
lintThe '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.
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.
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)
Real scenarios where agents put this tool to work.
Implementation lives at swarmai-tools/src/main/java/ai/intelliswarm/swarmai/tool/code/build/LintTool.java in the swarm-ai repository.