Repository navigation
AgentLint v2.7.1
AgentLint 2.7.1 fixes no-bash-file-write false positives for simple literal Python -c commands that construct pathlib paths or read files. The rule inspects syntax without executing submitted Python.
Visible writes, unknown open modes, opener references, and dynamic execution remain blocked. Unsupported flags and shell syntax retain conservative text detection. An unrelated redirect to a scratch or allowed shell path cannot exempt a Python write.
Codex post-tool warnings, including session-activity budget notices, remain visible as advisory context instead of emitting a blocking decision. Effective errors still block, including warnings promoted by strict policy. Ambiguous patch inspection continues to fail closed.
Validation: 2,989 tests passed locally with 96.25% branch-aware coverage, Ruff lint and formatting, lockfile consistency, source/wheel packaging, and a clean wheel CLI smoke test. GitHub CI also checks Python 3.11, 3.12, and 3.13 before merge.
This is detection of visible file operations, not proof that imported functions are pure or a general Python sandbox. Update with uv tool upgrade agentlint or your usual package installer after publication to PyPI.