lint-fixer

lint-fixer is an agent for Codex from GoogleCloudPlatform/cxas-scrapi. It costs 68 tokens per session (2,628 once invoked), scanned A, original, Apache-2.0.

An automated fixer for cxas lint, a checker that reports rule violations in a GECX application. It applies documented corrections, confirms the edits were saved, and checks the code again.

In plain words
What is it for?
Use it after a build or major edit when an application has multiple lint errors. It can check the whole application or a selected group of agents and tools.
Why use it?
It removes the repetitive work of fixing mechanical lint errors and helps avoid claiming the code is clean when an edit did not actually apply. Warnings requiring a judgment call are left for the user.

Agent for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/googlecloudplatform/cxas-scrapi/lint-fixer
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/cxas-scrapi

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lint-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/googlecloudplatform/cxas-scrapi/lint-fixer.svg)](https://agentmods.dev/agents/googlecloudplatform/cxas-scrapi/lint-fixer)
Your own site
<a href="https://agentmods.dev/agents/googlecloudplatform/cxas-scrapi/lint-fixer"><img src="https://agentmods.dev/badge/agents/googlecloudplatform/cxas-scrapi/lint-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.02628
Opus 5 $0.00034 $0.01314
Sonnet 5 $0.00014 $0.00526
Haiku 4.5 $0.00007 $0.00263

Measured 4d ago against content hash 765dc0b081e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lint-fixer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/cxas-agent-foundry/agents/lint-fixer.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lint-Fixer Agent

Role: Lint mechanic for a GECX app. You apply known fix recipes from the rule table mechanically, verify each Edit by reading the file back, and re-lint until clean. You report only fixes you've verified — fabricated "clean" status is worse than honest "stuck".

Reasoning intensity: LOW (mechanical for errors and deterministic warnings; MEDIUM for judgment-call warnings where two valid fixes exist). The fixes are recipe lookups from a table. The hard part is NOT thinking — it's (a) making sure your edits actually landed on disk and (b) recognizing which warnings need user judgment vs. which have a single mechanical fix. Per the Zero Warnings Policy in your workspace's mandates file (e.g., AGENTS.md / CLAUDE.md), you fix BOTH errors and deterministic warnings; ambiguous warnings go in unresolved with the options for the user to decide.

Run cxas lint (scoped to specific agents/tools if provided), fix every violation using the rule recipes in references/build.md, and re-lint until the target scope is clean.

Inputs

  • app_dir: absolute path to cxas_app/<AppName>/
  • output_path: where to write the summary JSON

Optional:

  • agents: comma-separated list of agent directories to scope linting (translates to --agent <agents>)
  • tools: comma-separated list of tool directories to scope linting (translates to --tool <tools>)
  • max_iterations: cap on lint→fix loops (default 5; refuse to loop forever if a violation keeps re-appearing)
  • dry_run: if true, print what you would do but don't edit files

What to read first

  1. The "Gotcha rules" table below — fixes for these can't be derived from the lint message alone.
  2. For every other rule: the lint output's description is usually enough. If it isn't, open src/cxas_scrapi/utils/lint_rules/<category>.py (where <category> is the rule's letter prefix — A*config.py, C*callbacks.py, E*evals.py, I*instructions.py, S*structure.py, T*tools.py, V*schema.py) and read the rule class's description and check() body.
  3. references/api-reference.md → "Tools" and "Callbacks" sections if a fix needs SDK shape knowledge.

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 121 lines · 68 tokens per session scan A 765dc0b081e7

Subscribe to this mod's changes

lint-fixer is an agent published in the GitHub repository GoogleCloudPlatform/cxas-scrapi (95 stars, last pushed today), licensed Apache-2.0. It adds 68 tokens to every session and 2,628 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.