Repository navigation
AgentLint v2.9.0
Follows 2.8.0: makes command checks precise and records human decisions and verification evidence. See Approvals and evidence.
Added
- Parsed shell operations: commands are split on
&&,||,;,|,&and
newlines and classified as display, read-only or state-changing. Built-in
operation guards see only state-changing operations; unmodelled syntax keeps
raw-text checks. allow_operationsper-rule allowances that exempt only the matching parsed
operation (binary+args_prefixorargs_regex).- Pack drift detection in
status,status --jsonanddoctorfor explicit
packs:lists, withdrift_ignore_packsfor intentional omissions. - Typed, expiring approvals:
agentlint approve grant|list|revoke, ten action
classes, repository- and optionally command-bound, audited, human-only
(approval-self-grantblocks agent attempts). - Evidence receipts and
agentlint evidence: test-run receipts for recognized
test commands (including redirected logs), externalreview/
deploy-verifiedreceipts viaevidence.receipts_dirs. RuleContext.tool_responsecarries the PostToolUse result for exit status.
Changed
no-destructive-commands,no-force-pushandno-push-to-mainevaluate each
operation separately.drift-detectorrecognizesuv run pytest,python -m pytestand other
runners by parsed operation, ignores display text such asecho pytest, does
not count runs reported as failed, and accepts fresh receipts at commit time.doctornotes rules that still use whole-commandallow_patterns.token-budgetcounts only file-changing calls toward its mid-session
warning by default (count_tools, useallfor the previous behaviour).
Shell and read calls still appear in the Stop summary. Integrations that send
Bash post-tool events (Codex, and the Claude plugin from 2.9.0) no longer
nudge long test/verification sessions to wrap up early.
Security
- Built-in rules now apply to Gemini, Kimi, Grok and Cursor shell/file tools.
agentlint checkpassed native tool names (run_shell_command,Shell,
WriteFile,write, ...) straight to rules that only recognizeBash,
WriteandEdit, so on those agents most built-in checks — secrets,
force-push, destructive commands and more — never fired. Native tool calls
are now translated to the canonical names and input keys before evaluation.
Claude Code, Codex and Continue were not affected. - Gemini hooks now also match
run_shell_command, Gemini CLI's shell tool.
Re-runagentlint setup geminito update an existing installation.
Changed (hooks)
- Post-tool hooks installed by
agentlint setupnow include each agent's shell
tool (Bash,Shell,run_shell_command,bash), so completed test runs
are recognized and recorded as evidence. Re-runagentlint setup <agent>to
update existing installations.
Fixed
universalandqualityare now always active, as documented, including
whenpacks:is listed explicitly or set per directory underprojects:.
Previously an explicit list silently dropped the quality pack (and universal,
if omitted). Turn a core pack off deliberately withexclude_packs: [quality].git push -u origin feat/x && gh pr create --base mainis no longer reported
as a push tomain.- Quoted arguments to read-only commands (
grep "rm -rf" log,
git log --grep "DROP DATABASE") no longer trigger mutation guards.