What's new.
Release notes for the aislop CLI. Synced from the open-source changelog; full tags also live on GitHub Releases.
Latest: v0.20.0·GitHub Releases
A minor release. aislop scan --share prints a public report link and README badge for GitHub repos, and the scan summary points to it instead of the team invitation.
Added
aislop scan --share. For a project with a GitHuboriginremote, prints the public report linkhttps://scanaislop.com/<owner>/<repo>and the README badge markdown. The report works for public repos only. The link is built from the local remote: nothing is uploaded and no network call is made.ssh://git@github.com/...remotes are now recognised as well.
Changed
- Scan summary hint. Interactive scans end with
Share this report: aislop scan --share. The hint is left out of JSON and SARIF output, piped output, CI runs,aislop ci, and runs that already pass--share.
Removed
- Team invitation after the third scan. The "Using aislop with a team?" line and the local counter behind it are gone. Existing counter files are ignored.
A patch release. Info notices such as knip/skipped no longer fail a baselined aislop ci run, and the README no longer lists Java as unsupported.
Fixed
- Info notices no longer fail a baselined
cirun. With a CI baseline, any finding not in the baseline failed the gate, including info notices. 0.19.0 addedknip/skipped, so projects with a baseline and no Knip setup started failingaislop ciafter upgrading. Info notices are still reported but no longer count as new findings. - README lists Java as supported. The unsupported-languages paragraph still said 10 language targets and named Java.
A minor release. Java projects now get real engine coverage, Knip can be set to run always or never, and a round of false positives and missed findings is fixed across hardcoded-url, unsafe-type-assertion, no-undef, unused-css, secret detection and dependency advice.
Added
quality.knipsetting.auto(the default) runs Knip for projects that declare or configure it.alwaysruns aislop's bundled Knip on every JavaScript or TypeScript project, andoffnever runs it and reports noknip/skipped. Knip loads the project's config files, soalwaysruns code from the scanned repository (#474).- Java support. Java projects get real engine coverage instead of detection only:
- Strings, text blocks, chars, and comments are masked, so braces inside them no longer distort function lengths.
- Package directories under
src/<set>/java/(andkotlin/) are no longer read as excluded or non-production folders, socom/example/demoororg/springframework/samplescode is scanned and gets the full ai-slop checks. - Formatting runs google-java-format, including the AOSP style, when the build configures it (Spotless
googleJavaFormatorfmt-maven-plugin). - Linting runs PMD with a focused set of bug-finding rules, or the project's own PMD ruleset, plus Checkstyle when the project has a
checkstyle.xml. - Security flags SQL and process commands built by string concatenation or
String.format, andObjectInputStream/XMLDecoderdeserialization. - AI-slop rules cover unused and duplicate imports,
System.outleftovers, catch blocks that only print, and the newai-slop/java-broad-throws. aislop doctorshows the Java tools and how to install them.
knip/skippednotice. When Knip is not set up, times out or fails, an info finding says so (advisory, likesecurity/dependency-audit-skipped) instead of the check disappearing while the scan still scores 100 (#474).
Changed
- Knip runs when a project declares or configures it. A knip config file or a
"knip"key inpackage.jsonnow counts, sonpx knipusers are covered. aislop always runs its own bundled Knip, never a copy from the scanned project (#474). - Links to scanaislop.com carry utm parameters. The visible link text is unchanged.
Fixed
ai-slop/hardcoded-urlfalse positives. A URL's own host no longer counts as config context and the TLD is never an environment signal, so vendorapi.hosts and.dev/.appdomains stay quiet. Social profiles, app store listings and legal pages (/privacy,/terms) are treated as public content links. Config-like names (API_ENDPOINT,apiBase) and internal hosts (orders-internal,myapp-staging) are still flagged (#479, #482, #493).ai-slop/unsafe-type-assertionignores comments. Comments are masked before matching, so a cast written inside a comment is no longer reported (#475).eslint/no-undefrespects/* global */directives, matching ESLint (#478).- Knip unused files are reported again. Knip 6 moved them under
issues[].files, soknip/fileswas never reported (#474). - Agent hooks write state at the project root. Lock, baseline and session files resolve to the project root instead of the agent's working directory, so stray nested
.aislop/folders are no longer created and the home directory's.aislopis never used (#472). - Dependency advice no longer suggests downgrades as upgrades. When
npm auditonly offers a semver-major fix below the declared version,security/vulnerable-dependencysays no safe direct fix exists and, when the advisory has an upper bound, suggests an override to the first patched version (#485). complexity/too-many-paramscounts a destructured parameter once. Regression test for a report against 0.12.0; the fix shipped in 0.14.1 (#476).ai-slop/unused-cssruns on real scans.scan,ci,fixand agent hooks passed engines a file list already narrowed to source extensions, so stylesheets never reached the rule and it could not report anything outside direct API calls. Stylesheets in the scan's scope are now checked, and class references are read from the whole project, so a stylesheet changed on its own is not compared against only the other changed files. Classes a build step adds to generated markup (astro-code, Astro'sastro-<hash>scoped classes, Shiki'sshiki) are not reported. Upgrading can surface dead CSS that was always there.- Secret detection reads config files on real scans. The same narrowing kept
.yaml,.yml,.jsonand.tomlfiles out ofsecurity/hardcoded-secret. They are scanned again, with the scan's include and exclude settings. .aislop/config.yamlandrules.yamlare read. aislop only looked for the.ymlspelling, so aconfig.yamlwas ignored without a warning and the scan used the defaults. Both spellings now load, and.ymlwins when both exist. Agent hooks find the project root from either spelling, the Claude CodeFileChangedhook watches both (runaislop hook installagain to pick it up), andaislop initupdates an existing.yamlfile instead of writing a.ymlbeside it (#471).- No crash when the output reader closes early. Piping into
head, ajqthat exits, or an agent hook that stops reading made the next write fail withEPIPE, which aislop printed as an uncaught exception and exited 1. aislop now drops the remaining output and exits with the command's own result. - Dependency advisories.
vite,zod,vitest,body-parser,fast-uri,ip-addressandqsare raised to patched releases, andinkmoves to 8.
A patch release. Pinning the GitHub Action to a release tag now pins the CLI it runs, aislop agent shows the provider's own error when it fails, and dependency advisories are patched.
Changed
- The GitHub Action runs the CLI version that matches its ref. From this release, with no
versioninput, a release tag ref such asuses: scanaislop/aislop@v0.18.1runsaislop@0.18.1, a commit SHA ref runs the version in that commit'spackage.json, and@v1or a branch still runs the latest release. Pinning the Action now pins the CLI, and Dependabot'sgithub-actionsupdates bump both. An explicitversioninput still wins.
Fixed
- Dependency advisories.
proxy-addr(critical, through@modelcontextprotocol/sdkandexpress),source-map-js, andsmol-tomlare raised to patched releases. aislop agentshows why the provider failed. When the provider exits with an error, the message now includes its last stderr lines instead of only the exit code (#228).
Baseline mode, plus fixes for false positives reported by users. aislop baseline write lets an existing codebase gate CI on new findings only. Python import checks read every requirements file, PEP 723 metadata, and a new imports.provided list. Biome and ruff follow the project's own config and version. Missing tools are reported instead of silently skipped.
Added
- Baseline mode.
aislop baseline writerecords the current findings in.aislop/ci-baseline.json, and withci.baselineset,scanandcifail only on findings that are not in it. Findings match on rule, file, and the text of the reported line rather than the line number, so unrelated edits do not re-raise them. Stale entries are reported andaislop baseline pruneremoves them, only when the fix can be confirmed, so a tool that fails quietly cannot shrink the baseline. The score still counts every finding. Thanks to @tykeal (#405). imports.providedconfig. Modules that the runtime provides instead of a manifest (Home Assistant'shomeassistant, Sage'sfpylll,vscodein a VS Code extension) can be listed underimports.providedin.aislop/config.ymlsoai-slop/hallucinated-importdoes not report them. Each entry covers its submodules.ci.failOnMissingTools. Opt-in setting that makesscanandciexit 1 when a format or lint tool needed for a detected language is not installed, instead of passing on a partial scan. Off by default.ai-slop/unknown-directive. Anaislop-ignore-*comment with a scope aislop does not recognise (for exampleaislop-ignore-nextline) used to be silently ignored. It is now reported as a warning, with the closest valid directive suggested, in JS/TS, Python, Go, C#, and C/C++ files.
Fixed
- The pre-commit hook runs only at the commit stage.
.pre-commit-hooks.yamlnow setsstages: [pre-commit]. Projects that also installpre-pushhooks ranaislop scan --stagedon push, which checks the index rather than the pushed commits. Requires pre-commit 3.2.0 or later. bracesadvisory (GHSA-vfj7-8cjw-p6xm).micromatch, which pulled inbraces, is replaced withpicomatch, which has no dependencies. No patchedbracesrelease exists yet. Glob matching behaves the same.- Python import checks read more dependency sources.
ai-slop/hallucinated-importnow reads everyrequirements*.txtvariant (requirements_dev.txt,requirements-test.txt,dev-requirements.txt, ...), files in arequirements/directory,-rincludes, and PEP 723 inline script metadata. Projects that kept dependencies outsiderequirements.txtandpyproject.tomlgot an error for every third-party import. - Ruff respects the project's
excludesettings. aislop passes each Python file to ruff by name, and ruff ignoresexclude/extend-excludefor explicitly named files unless told otherwise. Files a project excludes from ruff (vendored or legacy code) were reported bypython-formattingand the ruff lint rules, andaislop fixcould reformat them. Scan and fix now pass--force-exclude, so aislop checks the same files the project's ownruff formatandruff checkdo. - Biome formatting respects the project's Biome config. When a project has
biome.jsonorbiome.jsonc,scanandfixnow use its settings instead of forcing a 120-column line width. Before, a project that relied on Biome's default width of 80 got formatting findings that its own Biome rejected, andaislop fixrewrote files so the project'sbiome formatfailed.biome.jsoncis now detected too. - Missing format and lint tools are reported. When a detected language's tool is not installed (for example
rufffor Python), the scan output now says so with anaislop doctorhint, even on a clean run, and--jsonlists it in the engine'smissingTools. Skipped engines also carry askipReason, so a skip because of a missing tool can be told apart from one with nothing to scan. Before, the checks silently did not run and the score looked clean (lfreleng-actions/aislop-scan-action#40). security/hardcoded-secretskips UI copy under password-like keys. Human-readable text is no longer reported when the key names a UI element (awaiting_password,password_hint,secret_label, ...), the file is a locale or i18n file, or the text is a prompt about the credential ("Enter your password"). Placeholders like<password>oryour-password-hereare skipped too. A sentence-like value under a plainpasswordkey, such as a passphrase, is still flagged.- Go
v, _ := f()is only reported when the dropped value can be an error.ai-slop/swallowed-exceptionnow looks upfin the caller's package and skips the finding when every declaration's last result is a basic type such asstring,intorbool, or a slice, array, map, channel or function type. Named types, aliases, pointers, interfaces, and calls it cannot resolve or that are shadowed locally are still reported.//nolint,//nolint:errcheck, and//nolint:allcomments on the line are honored. - A bare
aislop-ignorecomment suppresses its own line.# aislop-ignoreand// aislop-ignore rule-idnow work likeaislop-ignore-line. Before, they suppressed nothing. - Size findings state their real trigger.
complexity/file-too-largeandcomplexity/function-too-longallow 10% over the limit before reporting, but the message only showed the limit. The message now shows both, for exampleFile too large (limit: 400, flagged above 440 lines), and the docs describe how lines are counted. When findings fire is unchanged. - ruff from the project's virtualenv is preferred. When
.venvorvenvin the scan root holds a ruff executable,scanandfixuse it before ruff onPATHor the bundled copy, sopython-formattingand ruff lint findings come from the version the project pins. The venv ruff is only used inside a git work tree where the virtualenv is untracked, not a submodule or nested repository, and not reached through a symlink, so a pull request or archive cannot supply its own binary. Agent hooks, which never run project-local tools, keep usingPATHor the bundled ruff.
Changed
@modelcontextprotocol/sdk, used byaislop-mcp, moves from 1.30 to 1.32.
Per-file overrides, a fourth agent provider, and clearer failure reporting. overrides in .aislop/config.yml give different paths their own quality limits and rule severities in one scan, aislop agent can run on pi, and a scan with no hook installed suggests one.
Added
- Command failure telemetry (PII-free). A new
cli_command_failedevent records crashes that escape the command lifecycle (top-level uncaught exceptions and unhandled rejections), so hard failures are no longer silent. Failed commands now also report the error class (error_name) and machine code (error_code) rather than only a heuristicerror_kind, and scans report which engines crashed (engines_failed). All fields are allowlisted (never the error message, stack, or file paths), and capture honors the existing opt-out (AISLOP_NO_TELEMETRY,DO_NOT_TRACK, CI, config). - Per-file overrides. Ordered
overridesin.aislop/config.ymlapply project-relative glob patterns to partial quality limits and per-ruleerror,warning, oroffseverities. Later matching entries win, so controllers, services, and legacy files can share one scan with different policies. Existing scoring calibration and projects without overrides retain their behavior. piprovider foraislop agent. Repair sessions can run on pi alongside Codex, Claude, and OpenCode, with tool-call tracking, token usage, and changed-file detection. Thanks to @gtheys.- Hook install suggestion after a scan. An interactive
aislop scanwith no aislop hook installed now suggests installing one. It stays silent in CI, for non-TTY or--json/--sarifoutput, and once a hook exists. --jsonmarks crashed engines. An engine that crashes during a scan now has"failed": truein theenginesmap, so it can be told apart from an engine that was skipped on purpose.
Fixed
- Suggested commands work for
npxusers. Next-step hints fromscan,doctor, andinitused to sayaislop ..., which fails without a global install. When run throughnpx, they now saynpx aislop@latest .... aislop badgedetects repositories with dots in their names. Remotes such asvercel/next.jsfailed with "Could not detect a GitHub remote".- Dependency advisories.
adm-zip,fast-uri,hono, andip-addressare raised to patched releases. aislop fixno longer deletes exports that are still used in their own file. An export that no other file imports was removed along with its declaration, which broke any code in the same file that still called it. The fix now drops only theexportkeyword in that case, and skips default exports and overloaded or merged declarations it cannot safely un-export.
Maintenance release. Three rule fixes from contributors, each removing findings that should never have fired, one fix that closes a matching gap in the other direction, plus dependency patches.
Fixed
silent-recoveryno longer flagslogger.exception. Python'slogger.exceptioncaptures the traceback, so a handler using it is not swallowing the error. It is still flagged whenexc_infois explicitly disabled, because that discards the very thing the rule cares about. Thanks to @mtschoen.hardcoded-urlignores URLs in Python docstrings. A URL in documentation is a reference, not a hardcoded endpoint. Only docstring-positioned strings are exempt, so a module-level constant that merely looks like prose still reports. Thanks to @mtschoen.- Python
exceptbodies are read as statements rather than lines. A log call wrapped across several lines was split at each line break, so a keyword argument on its own line looked like an assignment and the handler was treated as doing real work.silent-recoverytherefore missed multi-line handlers entirely, includinglogger.exception(..., exc_info=False)with the argument on its own line, which discards the traceback the rule exists to protect. silent-recoveryno longer misreads;or prose in Python handlers. A handler that logged and then re-raised on the same line, separated by a semicolon, was reported as swallowing the error. A log message that merely mentionedexc_info=Falsecancelled the traceback exemption, since the keyword checks did not distinguish code from string contents.- Build output directories are pruned from scans. Rust and other
target/style build directories were being walked, which inflated file counts and surfaced findings in generated code. Thanks to @daveslutzkin.
Changed
- Patched transitive advisories in
fast-uri,qsandhono, and refreshedoxlint,knip,biome,smol-tomlandexpo-doctor. The lint and unused-code engines are bundled, so their updates can change which findings a scan reports.
Scoping release. fix and scan can now be pointed at what changed rather than the whole tree, and fix can show what it would do before it does it.
Added
aislop fix --dry-run. Prints the planned fix steps, including the ones that will be skipped and why, without writing anything. It cannot be combined with an agent handoff or--prompt; that combination is rejected rather than silently ignored.aislop fix --changes,--staged, and--base <ref>. Restricts fixes to changed or staged files, matching the flagsscanalready accepted.--basesets the diff base, defaulting toHEAD.- Changed-line context on findings. Diagnostics are classified as changed-line or existing-file context, so a scoped run separates what a change introduced from what it merely sits next to. Surfaced in terminal, JSON, and SARIF output.
Fixed
- Dependency fixes stay inside the selected scope. A scope holding a lockfile and a source file, but not
package.json, previously still ran the unused-dependency fixer, which always rewritespackage.json. Fixes can no longer touch a file outside the selection. The force audit and Expo alignment steps shared the same gap. - Dependency-only scopes work. Selecting just a manifest detected no source language, so every dependency fixer skipped a scope that explicitly asked for it.
--dry-runno longer deletes a same-named file. The dotnet format report was written into the project root and removed on every run, destroying a user-owned.aislop-dotnet-format.json. It now lives outside the tree, which fixes the non-preview path too.- C# and C/C++ formatters appear in the dry-run plan instead of being omitted from the skipped-step list.
- Changed-line detection survives forced git colour. With
color.ui=always,git diffemitted ANSI escapes ahead of the hunk markers, so every diagnostic silently fell back to unknown context. - Scoped
fixno longer rewrites test files. A scoped run merged test files into the fixer's file list, sofix --changesedited a changed test file that a plainfixleaves alone. - Scoped
fixandscanagree on the score.fixmeasured finding density against the selection whilescanmeasured it against the project, so the same scope reported different numbers. - Changed-line detection survives an external differ and diff-shaped content.
git diffnow runs with--no-ext-diff, and a header is only recognised outside a hunk body, so an added line beginning++can no longer be read as a new file and swallow the hunks that follow it. fixrespectsCI=true. OnlyCI=1was honoured, so spinner escape sequences reached the logs on GitHub Actions, GitLab and CircleCI.- The agent TUI elapsed time advances. It was derived from the clock during render with nothing scheduling a repaint, so it sat stale until an unrelated update happened to redraw the sidebar.
Internal
- Dependency bumps:
@biomejs/biome2.5.10,vitest4.1.11,@types/node26.4.0,expo-doctor1.20.3,github/codeql-action4.37.9.
Calibration release. Scores now describe how code is written rather than how much of it there is, and three rules that fired on ordinary hand-written code have been corrected. Every score moves in this release, most of them upward. Badges, CI gates, and stored scans will all shift; if you gate CI on a threshold, re-baseline after upgrading.
Changed
- Score reflects finding density, not project size. Deductions are divided by file count before the scoring curve, so a large project and a small one with the same habits land on the same number. Previously the density term clamped to 1 for any project with more findings than
files + 10, which is effectively every real project, so deductions accumulated in absolute terms and larger trees scored worse for being larger. Copying a project three times, byte for byte, used to drop its score by 26 points. - Rule caps scale with project size. A flat cap decided a small project's score and disappeared in a large one. Caps now mean the same thing at any scale.
- Default scoring smoothing lowered from 20 to 5. With the density term corrected, the old value was all that remained of a systematic advantage for small repositories.
Representative scores, before and after:
| Project | 0.14.1 | 0.15.0 |
|---|---|---|
| expressjs/express | 72 | 78 Healthy |
| rohitg00/agentmemory | 9 | 72 Needs Work |
| playcanvas/supersplat | 14 | 65 Needs Work |
| obra/superpowers | 33 | 57 Needs Work |
| github/spec-kit | 3 | 41 Critical |
Fixed
ai-slop/trivial-commentno longer flags ordinary terse comments. The rule matched any short comment opening with a verb stem, which is normal English comment style rather than evidence of generation, and marked each one auto-fixable. It now requires a file to be saturated with them (at least one per 50 non-blank lines), which is the shape generated code actually has. A mature library carrying three such comments in 650 lines is left alone.security/vulnerable-dependencyno longer scores dev tooling as shipped risk. Advisories reaching a project only throughdevDependenciesare still reported, labelleddev-only, atinfoseverity instead of raising an error. Runtime reachability is resolved by walking npm audit'seffectschain back to the manifests, including every workspace member, so a production dependency declared by a member package is correctly treated as shipped. Where the origin cannot be determined, full severity is kept.ai-slop/python-mutable-defaultno longer flags call-wrapped keyword arguments. FastAPI, typer, and pydantic markers such asBody(default={})are framework semantics the rule cannot decide from syntax. Signature scanning also masks string literals and comments, including f-string replacement fields, before counting parentheses.doctorderives languages from the configured scan scope rather than from manifests alone, so reported languages match what is actually scanned.- Build no longer emits tsdown warnings.
Internal
- Workspace-aware runtime dependency resolution extracted to its own module with dedicated tests.
- The starved-pipe subprocess test asserts ordering instead of wall-clock timing, removing a source of flakiness on loaded Windows runners.
- Narrative comments removed from the trivial-comment detector.
- Dependency bumps:
@biomejs/biome2.5.8,knip6.32.2,vite8.2.2,@types/node26.2.0,github/codeql-action4.37.7.
Patch release: adds first-class C# and C/C++ support, improves scanner accuracy across real-world project layouts, and refreshes cross-platform tooling.
Added
- C# support. First-class project discovery, formatting, linting, complexity analysis, dependency checks, and C#-specific AI-slop rules.
- C/C++ support. First-class detection and scoring with cppcheck, clang-tidy, clang-format, complexity analysis, and C/C++-specific AI-slop rules.
Fixed
- More accurate C# and C++ scanning. Strings, comments, raw strings, and interpolated expressions are handled correctly, reducing false findings without hiding executable code.
- Consistent project discovery. File exclusions and nested repositories behave consistently across platforms and repeated scans.
- More reliable CLI behavior. Invalid targets, timed-out tools, Windows tool lookup, dependency scans, and Python import checks now produce more predictable results.
Changed
- Dependencies and CI. Refreshed the project dependency and CI toolchain.
- Maintainability. Split large integration modules into smaller, focused components.
Tests
Full suite at 2,032 passing, with cross-platform coverage for the new language support and scanner accuracy improvements.
Minor release: expands project discovery and Python workspace awareness, makes diagnostics and tool execution reliable across operating systems, and tightens scanner accuracy around real-world source layouts.
Added
- uv workspace-aware Python import checks. The hallucinated-import detector resolves root and member dependencies across uv workspaces, including member globs, exclusions, nested packages, editable sources, and shared workspace environments (#270).
Fixed
- Agent provider failures stop immediately. A provider process that exits non-zero now fails the repair session instead of verifying an unchanged diff and offering repeated passes (#228).
- Cross-platform diagnostics and CI. Diagnostic paths are stable POSIX-style paths on Windows, namespaced and short paths resolve correctly, external-tool discovery is portable, and the CI matrix now covers Windows on Node 22 and 24 (#261).
- Project and tooling discovery. Bare source trees are detected without requiring a manifest, ignored TypeScript projects stay out of typechecking, and executable tools installed by the project take precedence over bundled fallbacks (#258, #259, #260).
- Complexity masking. Braces inside strings, comments, and regex literals no longer distort function boundaries or produce false complexity findings (#271).
Changed
- Dependency and CI updates. Refreshed Biome, Expo Doctor, oxlint, Vitest, YAML, Zod, adm-zip, and the pnpm setup action while preserving the Node 20 runtime floor.
- Agent guidance. Claude Code and Gemini CLI now load the canonical contributor instructions through lightweight pointer files (#272).
- npm v12-safe installation. Package installation no longer relies on a dependency
postinstallscript. The core scanner installs without lifecycle execution;aislop-toolsexplicitly installs the optional Ruff and golangci-lint binaries and fails visibly if that setup cannot complete. - Tokenless npm publishing. The release job now uses npm trusted publishing with OIDC, Node 24, disabled release caches, and job-scoped least-privilege permissions instead of a long-lived
NPM_TOKEN.
Tests
Full suite at 1,553 passing, including regression coverage for provider failures, Windows paths, source-only language detection, ignored TypeScript projects, complexity masking, uv workspace boundaries, npm v12-safe packaging, and the OIDC release contract.
Patch release: calibrates the new ai-slop/hidden-fallback rule so it stops flagging error-message defaults, points Dependabot at the develop branch, and pulls in routine dependency and CI-action updates.
Fixed
ai-slop/hidden-fallbackfalse positives. The rule no longer flags error-message string defaults (err?.message || "Failed to load"), empty-string normalizers (?? ""), or optional env-var defaults (process.env.X ?? fallback). A string fallback counts as a masked value only when it is a status/success token ("ok","success", …); bare string returns from a catch are still flagged (#251).- Comment masker no longer mis-reads regex literals. A regex literal containing
/*inside a character class (e.g./[/*]/) was treated as a block comment that masked through end-of-file, producing false complexity / function-too-long diagnostics on regex-heavy code. The JS/TS masker now consumes regex literals before comment detection.
Changed
- Dependabot targets
develop. Dependency PRs now open against thedevelopintegration branch instead ofmain(#252). - Dependency & CI-action bumps.
oxlint1.51 → 1.71,@biomejs/biome2.4.5 → 2.5.1,expo-doctor1.18.10 → 1.19.10,tar7.5.16 → 7.5.19, and theactions/checkout,actions/setup-node, andpnpm/action-setupGitHub Actions — the last clears the Node 20 deprecation warning in the publish workflow (#243–#249). Theknip5 → 6 bump was reverted: v6 moves unused files toissues[].files, which the scanner's parser does not yet read, so it is deferred to a dedicated migration.
Tests
Full suite green; new coverage for the hidden-fallback message-default and env-default cases, plus the preserved bare-empty-string catch detection.
Telemetry now reports how users install aislop (npm, Homebrew, pip, pipx, and more), MCP and lifecycle events flush reliably, and new quality rules catch hidden fallbacks while framework-specific scans ship as optional adapter entrypoints.
Added
- Install channel telemetry. The
package_managerproperty now distinguisheshomebrew,pip,pipx, anddirectglobal installs in addition tonpm/pnpm/yarn/bun/npx. Python and other shims can setAISLOP_INSTALL_CHANNELbefore invoking the Node CLI. Seedocs/telemetry.md. ai-slop/hidden-fallbackrule. Flags JS/TS fallback logic that turns missing counts, failed diagnostics, or impossible states into safe-looking values without surfacing the failure (#226).- Framework adapter entrypoints. Optional
@aislop/adapters/*exports for Astro, Expo, Nuxt, SvelteKit, and Vite so monorepos can scope scans to framework-owned trees without hand-maintaining exclude lists (#224).
Fixed
- Telemetry delivery.
mcp_tool_calledandcli_command_startednow flush before the process exits, so short-lived MCP and hook invocations reach PostHog instead of being dropped on the floor. - npx install detection. Telemetry recognizes
_npxcache paths andnpm_command=npx, not only classicnpx-cli.jsexec paths. - Scanner calibration. Fewer false positives on hallucinated imports, secret detection, unused CSS, Azure namespace imports, and Bun audit flows (#227, #236).
- Source and config resolution. JSONC reads, Python target discovery, and non-production path heuristics handle more real-world repo layouts without widening scan scope.
Changed
- Python launcher telemetry. The PyPI package sets
AISLOP_INSTALL_CHANNEL(piporpipx) before delegating to the npm CLI, so Python installs are counted separately from rawnpxtraffic.
Tests
Full suite at 1357 passing. New coverage locks install-channel detection, telemetry flush paths, hidden-fallback cases, and framework adapter wiring.
Fixed
- Cross-platform build script.
pnpm buildnow works on Windows. Dropped therm -rf distandNODE_ENV=prefix (cmd.exe could not parse them, and a failed run wipeddistwithout rebuilding); tsdown cleans its output directory on its own and nothing readsNODE_ENV. Thanks @mtschoen. (#231) - Dependency security advisories. Bumped
vite(>=7.3.5),hono(>=4.12.25),esbuild(>=0.28.1), andtar(>=7.5.16) to clear the high- and moderate-severity advisories the security engine flags on the project itself. (#232)
Local agent repair sessions get a full terminal-native workflow, CLI output is tighter across the command surface, and scoring now separates cosmetic cleanup from higher-impact findings.
Added
aislop agentterminal UI. Foreground agent sessions now render a live Ink TUI with steps, activity, edited files, score/target, passes, token usage, and in-terminal decisions. Non-TTY and CI runs keep plain streamed output.- Agent workflow commands. Added local provider status/connect/default-provider flows, background sessions, session list/show/watch/apply/stop commands, monitor mode, safe local apply, and optional commit/PR publishing from a reviewed agent diff.
- Command suggestions. Mistyped commands now get nearest-command guidance instead of falling through to confusing directory-scan errors.
- Rule impact metadata. JSON output, finding assessment, and
aislop rulesnow expose per-rule score-impact tiers so integrations can distinguish mechanical cleanup from stronger quality/security signals.
Changed
- Scoring calibration. The default
ai-slopweight is softer and rule scoring now uses impact multipliers and caps, preserving real findings while reducing score swings from low-impact style signals. - Terminal rendering. Scan summaries, badges, rules, doctor, hook, update, trend, provider, and agent outputs use aligned display sections and clearer action guidance.
- Source filtering and lint context. Generated/vendor/package-manager artifacts are excluded more consistently, ESLint globals and ignores are respected, PHP-served browser JavaScript gets softer
no-undefhandling, andrufflinting follows the same scoped file selection asaislop.
Fixed
- Agent telemetry coverage.
aislop agentand its provider, plan, monitor, session, apply, watch, and stop subcommands now emit the samecli_command_started/cli_command_completedlifecycle events as the rest of the CLI. Events include only aggregate provider/options/outcome fields; paths, branch names, session ids, prompts, raw findings, and transcripts stay local. - Agent subdirectory scope.
aislop agent,agent plan, and monitor repair now honor a requested subdirectory in monorepos instead of scanning/fixing the repository root. - Background stop handling. Monitor stop now signals the monitor process group on non-Windows platforms, matching background session stop behavior so active provider subprocesses are not left editing.
- Installer and CI stability. Tool downloads retry transient GitHub/network failures, the TUI dependency stays compatible with the documented Node
>=20floor, and long CLI help-surface tests have explicit CI-safe timeouts. - Python and Go calibration. Python manifest/import resolution handles nested manifests and additional stdlib/package aliases, and Go panic heuristics exempt test-support code.
Tests
Full suite at 1276 passing, plus self-scan at 100 with zero diagnostics. New coverage locks the agent TUI, session state/activity, provider flows, background monitor lifecycle, scoped agent directories, rule impact metadata, command suggestions, source filtering, and calibration regressions.
PR-scoped quality gates and set-and-forget CI. scan and ci can now gate a pull request on only the files it changed (--changes --base <ref>), and an explicit base ref that cannot be resolved fails the run instead of silently passing an empty scan. A moving v1 Action tag plus version: latest mean workflows never need a version bump, and every CI example now standardizes on Node 24.
Added
--base <ref>andci --changes. Bothscanandcinow accept--changes --base <ref>to diff against a branch instead ofHEAD, so a pull request can be gated on only the files it touches even when those files are already committed (a plain--changesdiffs the working tree againstHEADand sees nothing in CI).cialso accepts--changesand--stageddirectly, applying the score gate and exit code to the scoped set. New Bitbucket Pipelines recipe in the docs usesaislop ci --changes --base "origin/$BITBUCKET_PR_DESTINATION_BRANCH", removing the previous merge-base + soft-reset workaround (#185).forceFixableflag.scan --jsondiagnostics now carry an explicitforceFixableboolean for findings that onlyaislop fix -fresolves (npm/pnpm dependency vulnerabilities, unused files/deps, Expo dependency alignment), so tools can surface a force-fix action without parsing help text (#192).
Changed
- Set-and-forget CI. A moving
v1Action tag now tracks the latest release, so workflows can pinuses: scanaislop/aislop@v1instead of a per-release tag.aislop initgenerates a workflow using@v1withversion: latest, and the CI docs lead withnpx --yes aislop@latest ci. The release pipeline re-pointsv1automatically on each published release. - Node standardized on 24.
.nvmrc, the Action's defaultnode-version, and every CI docs example now use Node 24. The supported runtime floor is unchanged (engines: ">=20"). - Marketplace Action renamed to
aislop — AI Code Quality Gate, published byscanaislop. Display metadata only; the action slug is unchanged.
A patch release focused on safer release/CI plumbing and sharper scan consistency. The GitHub Action now keeps wrapper and npm CLI versions separate without letting exact npm pins be shadowed by a checked-out local package, aislop init emits reproducible pinned workflows, and the rule catalog/docs now stay aligned with the implemented detectors.
Added
- Suppression. Silence a finding you have judged intentional with an inline directive:
// aislop-ignore-next-line [rule...](line below),// aislop-ignore-line [rule...](same line), or// aislop-ignore-file [rule...](whole file). Name one or more rules to scope it, or omit them to silence every rule on that line, and add a reason after--. Works in any comment syntax (//,#,<!-- -->). Directive lines are invisible to the comment engines, so they never join a comment block or get flagged themselves. Suppressed findings are dropped before scoring, and the run reports how many were silenced. .aislopignore. A root-level ignore file (same glob semantics as theexcludeconfig, with#comments) to keep whole paths out of every scan.aislop fix --safe. An opt-in mode that restricts the run to fixes that cannot change behaviour — unused-import removal, import merging, narrative-comment removal, and formatter runs that do not execute project-controlled configuration. Anything that deletes code, rewrites behaviour/attributes, or can load executable formatter configuration (console and dead-code removal, lint autofixes, Ruby/PHP formatter config, unused-declaration and dependency pruning, and all-fforce steps) is skipped, so a--saferun is genuinely safe to apply and commit. The defaultfixis unchanged.- Action smoke coverage. The repository CI now exercises the composite GitHub Action in default
latest, explicitlatest, pinned npm-version, JSON, human, and node-version override modes.
Changed
- Coverage gate — no score off a sliver. aislop now withholds the numeric score when it could only analyse a negligible fraction of a repo: when there are no files in a supported language, or when unsupported-language code (C, C++, C#, Swift, Kotlin, and similar) outnumbers supported files by more than three to one. Previously a repo like postgres (≈1.4M lines of C) could score 91 off two incidental Python helper scripts. The scan now prints a plain explanation instead of a number,
--jsonreturnsscore: nullwithscoreable: falseand acoveragebreakdown, andcidoes not gate on a withheld score (but still fails on any error-severity diagnostic). The gate counts files through the same exclude patterns as the scan (excludeconfig and.aislopignore), so an intentionally ignored subtree never withholds the score for the code that was scanned.
Fixed
- No-downgrade guard on dependency fixes.
aislop fix -fno longer writes a dependency override that pins a package below the version already installed. Before applying npm/pnpm overrides it reads the installed version and drops any that would be a downgrade, reporting them as "skipped downgrade(s), verify intent" instead of silently regressing a dependency the waynpm audit fix --forcedoes. - CVE root-cause collapse. The dependency audit now attributes a transitive vulnerability to the package that actually carries the advisory rather than emitting a near-duplicate finding for every intermediate package in the chain, so one root CVE reads as one issue instead of ten.
- Python comma imports. The unused-import fixer treated
import os, sysas a single binding, so one unused module (os) deleted the whole line and broke the used one (sys). Each comma-separated module is now considered independently: the unused one is trimmed (import os, sys→import sys), the line is removed only when every module is unused, and a line where all are used is left alone. - Hook telemetry never sent. The per-edit hook (
aislop hook <agent>) emits itshook_scan_completedevent with a fire-and-forget request, but the short-lived process calledprocess.exit()before the request left the machine, so the event was always dropped (hook-install/status/etc. were unaffected since they flush via the command lifecycle). The hook now flushes telemetry before exiting, bounded to 1.5s so it never stalls the agent's edit. - GitHub Action exact-version pins. Exact npm pins such as
version: "0.10.1"now run from an isolated temp directory so npm cannot resolve the checked-out local package metadata instead of the published package. - Rule catalog consistency.
aislop rules, rule labels, anddocs/rules.mdnow cover the implemented camel-case and newly-added rule IDs consistently, includingknip/devDependencies, duplicate exports, dependency-audit skips, and ReactdangerouslySetInnerHTML. - Empty function detection.
ai-slop/empty-functionnow recognises normal JavaScript/TypeScript function declarations with parameter lists instead of only arrow stubs or malformed function headers.
Tests
Full suite at 1029 passing, plus self-scan at 100 with zero diagnostics. New coverage locks the action manifest/workflow behavior, empty-function detection, shell-injection interpolation, and rule catalog label/doc parity.
An accuracy release across Python and TypeScript, plus a small quality-of-life feature. The Python function detector was only seeing single-line synchronous defs, so async functions and wrapped multi-line signatures (about 58% of a large library like python-telegram-bot) were invisible to the complexity rules. In TypeScript, text-pattern rules were matching code inside JSDoc @example blocks as if it were live source. Both are fixed, and the complexity metrics were sharpened to measure real complexity rather than documentation or optional API surface.
Added
- Update notice. The CLI prints a one-line "update available" notice when a newer version exists. It is cache-backed so it never blocks a run, and silent in CI, in non-interactive output, and when opted out via
AISLOP_NO_UPDATE_NOTIFIER,NO_UPDATE_NOTIFIER, orDO_NOT_TRACK.
Fixed
- Python function detection now recognises
async defand multi-line wrapped signatures (where):sits on its own line). Previously these functions were skipped entirely by the code-quality engine. - JSDoc/TSDoc comment bleed. Text-pattern rules no longer scan code inside
/** @example */blocks, the largest false-positive source on documented TS/JS libraries. This coversduplicate-import,console-leftover,empty-function,generic-naming,thin-wrapper,hardcoded-url/hardcoded-id, andsecurity/hardcoded-secret. On type-fest,duplicate-importdropped from 143 to 0; an error-severityhardcoded-secreton a password inside a Hono doc example is gone; genuine findings such as zod's realas anyare preserved. ai-slop/duplicate-importno longer flags a namespace import (import * as x) alongside a named import from the same module. The two cannot be merged into one statement, so they were never a real duplicate.
Changed
complexity/function-too-longmeasures a Python function by its logical body (code statements only), excluding the signature, docstrings, comments, and blank lines. A heavily documented function is not a long one, so a function is judged by what it does, not how well it is described.complexity/too-many-paramscounts required parameters only, ignoringself/cls,*args/**kwargs, the*//separators, and any parameter with a default. An API wrapper with many optional keyword arguments is idiomatic, not a smell.
Tests
Full suite at 975 passing. New coverage for async detection, wrapped signatures, required-only parameter counting, docstring-aware length, comment masking, the @example import and secret cases, and the update notifier, plus a regression net: a realistic Python corpus with golden per-rule assertions and a detection-invariant check (functions detected vs def/async def count) that fails on the pre-0.10.1 detector.
A precision release. A sweep through the ai-slop rules to cut false positives on real human-written code, validated against open-source libraries surfaced at the HN launch. One dropped from 426 findings to 92, every removed finding a false positive, with clean code still scoring 100. Plus a scoring change so genuine slop drives the number over house style.
Fixed (false positives)
ai-slop/thin-wrapperonly flags a true passthrough (a function forwarding its own parameters unchanged); a call that transforms its arguments is real work, not a wrapper (#153).ai-slop/narrative-commentdrops the bare-section-label branch, recognises reasoning markers ("ideally / however", "even though", "first need"), and the length-based branches now require an actual AI-narration signal rather than length alone, so long, well-written explanatory comments are kept (#153).ai-slop/unused-importno longer flagsfrom __future__ import(a parser directive, not a usable name) (#153).ai-slop/trivial-commentonly fires when the comment restates the next line; comments that add a condition or reason are kept (#153).ai-slop/silent-recoveryonly fires when the caught error is dropped, not when it is logged. Observable recovery is intentional, not a swallow (#153).ai-slop/meta-commentonly flags leading plan markers, not UI "step N" wizard prose (#153).ai-slop/hardcoded-id/hardcoded-urlexempt env-var-name literals, migration files, and stable vendor API hosts (api.github.comand friends) (#153).ai-slop/todo-stubspares TODOs that reference a tracking issue, which is documented debt, not an abandoned stub (#153).ai-slop/hallucinated-importparses PEP 735[dependency-groups], recognisespsycopg2as provided bypsycopg2-binary, and no longer flags import-shaped text inside docstrings, imports underif TYPE_CHECKING:, thecode/codeop/rlcompleterstdlib modules, or non-production paths (validated on flask: 19 → 0) (#151, #153).docs/build tooling is treated as non-production, likescripts/andexamples/(#153).
Changed
- Scoring: style rules (comments, file size) weigh 0.5× so the score is driven by genuine slop rather than house style. The volume-based curve is unchanged (#153).
Tests
Full suite at 945 passing.
Precision fix for the hardcoded-id / hardcoded-url rules shipped in 0.9.5, which over-flagged on real codebases (surfaced by dogfooding the rules on our own dashboard).
Fixed
ai-slop/hardcoded-idfalse positives. No longer flags: env-var-name literals passed to config helpers (e.g.optional("STRIPE_PRICE_ID", "")), readable kebab/snake slugs and storage keys (rule keys,STORAGE_KEYvalues, CSS class strings), or identifiers inside DB migration files. The rule now requires an opaque, digit-bearing token, so genuine provider/project IDs (price_1Oabc…, AWS keys, OAuth client IDs) are still caught.ai-slop/hardcoded-urlfalse positives. No longer flagslocalhost/ loopback URLs (http://localhost:…,127.0.0.1,0.0.0.0), which are dev defaults rather than deployment configuration.ai-slop/hallucinated-importonpsycopg2. Thepsycopg2import is now recognised as provided bypsycopg2-binary(community-reported). Adds the missing alias.
Tests
Full suite at 933 passing, including regression coverage for each false-positive class above.
First release since the Hacker News launch. Fixes the Python import false positives reported there, adds two precision-first rules, ships the SARIF / per-rule-severity / trend tooling from #140, and extends agent support to pi (both the fix hand-off and an auto-running hook).
Added
- pi agent support (#144, #145).
aislop fix --pihands off non-interactively (pi -p "<prompt>"), andaislop hook install --piinstalls an auto-running pi extension that scans each edit and feeds the findings back to the model.--crushadded alongside forfix. ai-slop/silent-recovery(warning, #144). Flags catch blocks that only log and then continue, swallowing the error.ai-slop/meta-comment(warning, #144). Flags AI plan/process narration comments (e.g. "Stage N of the...").- SARIF output (#140).
aislop scan --sariffor code-scanning integrations. trendcommand (#140).aislop trendtracks score over time from scan history.- Per-rule severity overrides + config JSON schema (#140). Tune rule severities in config with editor autocompletion and validation.
- Pre-commit hook integration (#140).
- Hardcoded-config and defensive-pattern rules (#139):
ai-slop/hardcoded-id,ai-slop/hardcoded-url,ai-slop/redundant-try-catch,ai-slop/redundant-type-coercion,ai-slop/duplicate-type-declaration.
Fixed
- Python import false positives (#144). Install-name vs import-name divergences (
yaml→pyyaml,PIL→pillow,cv2→opencv-python, and the rest) now resolve via an alias map, and packages declared only in[project.optional-dependencies]are recognised. Reported on HN. - TypeScript
@typesresolution (#144). A type-only import backed solely by@types/X(including scoped@scope/pkg→@types/scope__pkg) no longer reports as undeclared. ai-slop/duplicate-importon type imports (#144).import type {...}alongsideimport {...}from the same module is no longer flagged as a duplicate; a genuine duplicate still is.security/evalexec guard (#144). Member/qualified calls likefoo.exec(...)no longer match the bareexec(rule.- Trivial comments (#144). Trivial single-line comments inside a contiguous
//block are no longer counted.
Changed
- npm package description (#138) aligned with the README and GitHub About.
Tests
Full suite at 928 passing, including pi adapter/install coverage and the false-positive regression tests.
Four new Python rules drawn from the verbosity signal in SlopCodeBench (SCBench, arXiv 2603.24755). Scan output now ends with a one-line nudge back to the GitHub repo. GitHub Discussions is open with structured templates for false-positive reports and rule requests.
Added
ai-slop/python-range-len-loop(info, #134). Flagsfor i in range(len(items))loops that usually wantenumerate(items)or direct iteration. Hand-rolled index plumbing is a recurring agent shortcut; SCBench's Python track surfaces it as a verbosity contributor.ai-slop/python-chained-dict-get(warning, #134). Flags.get(..., {}).get(...)fallback chains. The empty-dict default hides missing-data cases and turns brittle as schemas evolve. Help text points to boundary normalization or typed objects.ai-slop/python-repetitive-dispatch(warning, #134). Flags ladders of 4+if x == "..." / elif x == "..."branches sharing the same selector. Recommends a handler map / dispatch table. Threshold is configurable in code (BRANCH_LADDER_THRESHOLD).ai-slop/python-isinstance-ladder(warning, #134). Flags 4+ chainedisinstance(...)branches on the same value. Recommends a handler map or normalized representation.- CLI star CTA (#132).
aislop scanends with one muted line:★ Found this useful? Star us at github.com/scanaislop/aislop. Suppressed in JSON output, inaislop ci, and for any caller that passesprintBrand: false(hook integrations). - GitHub Discussions surface (#126). Discussions enabled on the repo with two issue-form templates:
false-positive.yml(rule name, snippet, reasoning, version) andrule-request.yml(pattern, what should pass, suggested name, language). README links to Discussions and Issues from a new## Communitysection.
Improved
- README headline and lead description (#131). Replaces enterprise-flavoured copy with a direct verb. The lead names the agents (Claude Code, Cursor, Codex, OpenCode) and the patterns they leave behind; the second paragraph names rule count, languages, determinism, and licence so the proof and the hook sit together at the top.
Tests
35 new tests covering the four Python rules (positive and negative cases each). tests/python-patterns.test.ts now has 24 tests; full suite 842 passing.
Patch release focused on rule precision. Tightens detection across the ai-slop, security, lint, and source-file engines so common language and ecosystem conventions are no longer flagged as slop. No new rules; existing rules now discriminate genuine documentation, intentional patterns, and build-time injections from the AI-written patterns they were designed to catch.
Fixed
ai-slop/narrative-commentandai-slop/trivial-commentno longer fire on language-idiomatic documentation (#121). Recognizes JSDoc/Javadoc/PHPDoc descriptions above declarations, Ruby YARD/RDoc blocks (@param,@return,:call-seq:,##markers), Go struct-field docs (comment-word matches field name), and// summary/# summarylines directly above a Ruby/Java/PHP declaration. Extends the WHY-marker vocabulary (to avoid,to ensure,in order to,for example,e.g.,useful for,intended to,by design, …) and lets the escape hatch apply to line-kind blocks, not just JSDoc. Replaces the length-only catch-all with explicit AI-narration slop signals (^This function/method/class,^It does/handles/...,^First/Then/Finally it); the canonical AI-slop patterns still fire.ai-slop/hallucinated-importunderstands Python project layouts and PEP 484 re-exports (#121). Discovers local Python packages by scanning<root>/,src/,lib/for directories containing__init__.py— fixes large-scale false positives on projects whose internal packages (e.g._pytest) were treated as missing dependencies. The PEP 484 re-export conventionfrom X import Y as Yis no longer flagged as unused.security/evallookbehind skips method-call forms (#121).(?<![\w.>:\\])prevents matches on.eval(,->eval(,::eval(, and\eval((Predis Lua scripts,binding.eval, custom-class methods). Top-leveleval()still fires.ai-slop/thin-wrapperpatterns ext-gated to JS/Python (#121). The JS function-shape regex was accidentally matching PHPpublic function valid(): bool { return isset(...); }and Java methods. Patterns now apply only to.ts/.tsx/.js/.jsx/.mjs/.cjs(JS) and.py(Python).ai-slop/swallowed-exceptionallows intentional-ignore convention (#121). Catch parameters namedtolerated,ignored,expected,unused,_,_e,_err,_ex,_tare recognized as documented intent. Same for Rubyrescue ... => ignored.ai-slop/rust-non-test-unwrapskips doc-comment example blocks (#121). Tracks/*! ... */and/** ... */ranges so.unwrap()inside crate-level doc examples (e.g.regex/src/lib.rs) is no longer flagged. Singularxxx_test.rsfilenames are now recognized as test files alongside the existingxxx_tests.rs.security/dangerously-set-innerhtmlrespectsaislop-ignore/biome-ignore/eslint-disablecomments and JSON-LD structured data (#121). Two-line lookback for ignore directives, and skipsdangerouslySetInnerHTMLpaired withtype="application/ld+json"or__html: JSON.stringify(...)(safe by construction).code-quality/duplicate-blockno longer flags repeated import groups (#121). Block hashing skips contiguousimport/fromlines so semantically identical import blocks across files don't surface as duplicates.ai-slop/dead-coderecognizes more idiomatic patterns (#121). Improved discrimination on patterns that previously misfired.
Improved
- Oxlint config registers conventional bundler-injected globals (#121).
__DEV__,__TEST__,__BROWSER__,__NODE__,__GLOBAL__,__SSR__,__ESM_BROWSER__,__ESM_BUNDLER__,__VERSION__,__COMMIT__,__BUILD__are now registered asreadonlyglobals on every project — eliminatesno-undefnoise on Rollup/Vite/Webpackdefineflags (e.g. Vue source). A newOxlintConfigOptions.globalsparameter lets callers pass additional globals. - Oxlint discovers ambient globals from project
.d.tsfiles (#121). Top-leveldeclare const|let|var|function|classdeclarations are registered as globals. Bun (@types/bunorbun-typesin deps) addsBun; SST projects (sst.config.ts) register$app,$config,$dev,$interpolate,aws,cloudflare,docker,sst,pulumi, and similar. - Oxlint context-aware filters (#121). New filter layer suppresses oxlint diagnostics that are correct for general JS but wrong in specific framework contexts (e.g. Astro
<script>IIFEs, Next.js metadata exports). scanfilters minified and bundled JS (#121).*.min.js,*.bundle.js,*.min.cssare excluded alongside the existing build-cache patterns; stops surfacing vendored minified assets in non-JS projects.scanhonors Biomefiles.includesexclusions (#121). Negated patterns frombiome.jsonare merged into the source-file filter so projects that scope Biome to a subset of files automatically get the same scope for aislop.scanignores.pnpm-store/(#121). Joins the existingnode_modules,dist,build, etc. prune list.- TS-config path alias and workspace discovery extracted (#121). Moved into
js-import-aliases.tsandjs-workspaces.tsfor reuse beyond the hallucinated-import engine. - Block-collection extracted from narrative-comments (#121). New
comment-blocks.tsmodule reused bynarrative-comments.tsandnarrative-comments-fix.ts.
Pattern fixes
GO_DECL_STARTmatches grouped declarations (const (,var (,type ().PHP_DECL_STARTaccepts whitespace between visibility modifiers andfunction.
Tests
32 new regression tests covering the new exemptions and slop signals; total suite at 835/835 passing.
Patch fix for a regression introduced during the 0.9.1 merge.
Fixed
- Restore
isBuildCacheFilein the source-file filter (#117). PR #113 added an exclusion for Vite config-bundle cache artifacts (*.timestamp-NNN-XXX.{js,mjs,cjs}); PR #47's--includerewrite of the filter chain dropped the call. The helper survived in code but stopped being consulted by the source-file walk, so repos that commit those cache files (e.g. via Storybook'svite.config.ts.timestamp-…mjs) saw three spuriousai-slop/hallucinated-importerrors per scan. Restored the call and added a regression test that creates real Vite cache filenames plus one false-match to guard against future filter rewrites.
Patch release focused on accuracy and signal quality on real-world projects: fewer false positives on Vite, Next.js, SolidStart, SST, and Bun setups; smarter complexity thresholds per language and per role; vulnerable-dependency aggregation per package; a new top-rules breakdown in scan output; --include pattern support on scan; scan-stability hardening; and an enterprise-friendly init --strict mode.
Added
--includepattern support onaislop scan(#47). Limit scans to specific files or directories with glob patterns:aislop scan --include "src/**". Multiple patterns supported via repeated flags or comma-separated values (--include "src/**,docs/**").--excludetakes precedence when both match the same file; config-defined includes merge with CLI-provided ones. Thanks @myke-awoniran.Top findingsbreakdown in scan output (#113). Between the score/stats line and the next-steps section, every scan now renders the top 10 rules by count with severity tags, fixable count, and a+N more rulesfooter when truncated. Rule IDs render as plain-English labels via a newoutput/rule-labels.tsregistry (e.g.complexity/function-too-long→Function too long) with the canonical ID muted in parentheses.Diagnostic.detailfield (#113). Carries per-instance context (file size, function name, duplicate-block source line). Engines now emit a stable message per rule and the renderer naturally groups all instances into one block, with each location showing its own detail aligned next to the file path.aislop init --strictflag (#111). Zero-prompt enterprise-grade config: all engines enabled, typecheck on, CI gate at 85, GitHub workflow scaffolded.- Agent accountability metadata in hook feedback (#111). Hook responses now thread the active agent identity (claude / cursor / gemini / etc.) and the touched files as structured
accountabilitymetadata. qualityGateexposed in MCPaislop_scanresult (#111). Agents can read the project's gate threshold directly without parsing config files.
Changed
- Vulnerable-dependency reporting aggregated per package (#113). When an audit returns many advisories for the same package, they now collapse into a single diagnostic with the worst severity and the highest semver upgrade target — instead of one row per CVE plus repeated
package.jsonlocation lines. Drops the redundantRun aislop fix -fboilerplate from each finding (already in next-steps), normalisesNonerecommendations tono fix available, and moves the audit source (pnpm/npm) into thedetailcolumn. - Per-language complexity thresholds (#113).
complexity/file-too-largenow multiplies the base by2.5×for.rs,1.5×for.go,1.5×for.tsx/.jsx, and exempts.d.tsentirely.complexity/function-too-longmultiplies by2.0×for PascalCase functions in.tsx/.jsx(components legitimately carry more lines than a utility function) and1.5×for Rust functions. - Default CI quality gate aligned with public docs (#112).
ci.failBelownow defaults to70, matching the documented threshold. - Ruff scoped to project files (#112). Format/lint runs against the source files aislop selects, not the whole repo. Cuts noise and speed regressions on monorepos.
- Terminal wrap cap raised 100 → 120 columns (#113). Long messages on modern terminals no longer wrap mid-line.
Fixed
- Vite virtual modules no longer flagged as hallucinated imports (#113). Strips Vite import-query suffixes (
?worker,?sharedworker,?worker-url,?url,?raw,?inline,?init) before checking; recognises~icons/virtual modules (unplugin-icons); whitelistsunfonts.csswhenunplugin-fontsis in the manifest; whitelists the barebunruntime specifier (parallel tonode:fs). - TypeScript
baseUrl-resolved imports honored (#113).compilerOptions.baseUrlis now read alongsidepaths; directories at baseUrl are treated as importable bare specifiers (import x from "hooks/useFoo"when<baseUrl>/hooks/exists), matching how thebundlerresolver and Next.js behave. - Auto-imported icon globals no longer flagged as undefined (#113). When
unplugin-iconsis in any workspacepackage.json, identifiers matching^Icon[A-Z]are dropped fromeslint/no-undef. Bunruntime global no longer flagged (#113). Skipped when@types/bunorbun-typesis in deps.- SST platform globals honored in
sst.config.ts(#113). Files containing/// <reference path="...sst/platform/config.d.ts" />opt into a large ambient surface that oxlint can't follow via triple-slash references;eslint/no-undefis dropped for those files. _-prefixed unused vars no longer flagged (#113).eslint/no-unused-varsskips identifiers starting with_, matching the standard intentionally-unused convention.import/defaultfalse positives on Vite worker imports cleared (#113). Oxlintimport/*diagnostics whose message references a Vite query suffix are dropped.- Next.js
public/and Vite cache files no longer scanned (#113).public/(static-asset directory; vendored JS lives there) is excluded from the source walk.*.timestamp-NNN-XXX.{js,mjs,cjs}Vite config-bundle cache files are dropped. Oxlint output is post-filtered with the same rules so files it discovers viaoxlint .are also skipped. - Identical locations no longer duplicated in rule groups (#113). Multiple diagnostics with the same
filePath:line:columncollapse to one entry under the rule header. - Large failing scans flush JSON correctly (#112).
process.exitCodeis set instead of callingprocess.exit()after JSON output, so big payloads land cleanly on stderr/stdout. 15/15 of the GitHub Trending daily top 15 repos now produce parseable JSON; previously several were truncated. - Zero-config scope filters tutorial / sample / notebook / agent-skill paths (#112). Common docs and example directories no longer add noise to fresh-clone scans.
Internal
- Python manifest collection extracted (#113).
requirements.txt/pyproject.toml/Pipfileparsing moved intoengines/ai-slop/python-manifest.ts. Brings the hallucinated-imports engine back under the file-size cap and gives the Python manifest logic a single, focused home. - Crash-free zero-config benchmark (#112). Re-ran the GitHub Trending daily top 15: diagnostics 60,412 → 34,741; JSON output 25.6 MB → 16.1 MB; 0 crashes/timeouts; warning-only-score repos now exit 1.
- 791 tests passing.
- Self-scan: 100 / 100.
Minor release replacing the legacy telemetry with a structured, typed event scheme that covers every CLI command, the MCP server, and the agent hooks — without leaking PII. Includes a redaction allowlist guard, debug/dry-run modes, and a stable anonymous install ID.
Added
- Telemetry v2 event scheme (#107). Six events replace the legacy
cli_scan/cli_fix/cli_ci:cli_installed— fires once per machine, when~/.aislop/install_idis first created.cli_command_started/cli_command_completed— every command (scan,fix,ci,init,doctor,rules,badge, andhook install/uninstall/status/baseline).mcp_server_started,mcp_tool_called— theaislop-mcpstdio server and eachaislop_scan/aislop_fix/aislop_why/aislop_baselinetool invocation.hook_scan_completed— after a Claude / Cursor / Gemini agent hook finishes its scoped scan.
- Indexable, flattened properties. Every event carries
aislop_version,node_version,os,arch,schema_version="v2",anonymous_install_id,package_manager(npm / pnpm / yarn / bun / npx / unknown),is_ci. Command events addcommand,language_summary, per-language flags (lang_typescript/lang_javascript/lang_python/lang_java),file_count_bucket,score,score_bucket,finding_count,error_count,warning_count,fixable_count,exit_code,duration_ms,error_kind, and flattened per-engine counters (engine_<name>_issues,engine_<name>_ms). Previously nestedengine_issues,engine_timings, andlanguageswere not indexable and could not be broken down. - Stable anonymous install ID. Random UUIDv4 stored at
~/.aislop/install_id(honorsXDG_STATE_HOMEon Linux),0600permissions, atomic write for concurrent-process safety. Replaces the priorhostname-platform-archdjb2 hash. Deleting the file re-rolls identity. - Redaction allowlist. Every outgoing property passes through a frozen allowlist at the transport boundary; anything not on the list is dropped. Explicitly never collected: file paths, project names, repo names, branch names, source text, raw diagnostics, secrets.
- Debug and dry-run modes.
AISLOP_TELEMETRY_DEBUG=1prints every outgoing event to stderr as JSON. Combine withAISLOP_TELEMETRY_DRY_RUN=1for "what would this command emit?" without sending. withCommandLifecycle()wrapper. New helper that fires_started+_completed(even on throw) and awaits flush before returning. Replaces inlinedtrackEvent({...})blocks inscan,fix,ci,init,doctor,rules,badge, and the hook subcommands.
Changed
- Opt-out precedence tweak. Explicit
telemetry.enabled: truein.aislop/config.ymlnow overrides theCI=truedefault. Previously CI overrode config. Env vars (AISLOP_NO_TELEMETRY=1,DO_NOT_TRACK=1) still win over everything. This makesis_ci=truea meaningful property when teams explicitly opt in. - PostHog
distinct_idsemantics. Switches from the hostname-based djb2 hash to the new UUIDv4. Anonymous in both cases, but every existing user's identifier resets at next CLI run. Downstream dashboards built on v1 events still receive historical data. - Telemetry module split. Single-file
src/utils/telemetry.ts(107 lines) replaced by a focusedsrc/telemetry/module:client,events,lifecycle,identity,redaction,language,env,index— each unit with a single purpose and clear boundaries.
Removed
- Legacy
cli_scan/cli_fix/cli_cievents. No longer emitted. v1 dashboards continue to work for historical analysis. src/utils/telemetry.ts. Replaced by the modularsrc/telemetry/layer.
Documentation
docs/telemetry.mdrewritten to describe v2 events, properties, identity, opt-out precedence, and debug modes.
Internal
- 6 new test files (36 tests) covering identity, redaction, lifecycle, language, env, and the opt-out precedence rules. Total: 791 tests passing (up from 755).
- Self-scan: 100 / 100.
Patch release fixing a hallucinated-import false positive on projects that use TypeScript compilerOptions.paths aliases.
Fixed
- Respect
tsconfig.json/jsconfig.jsonpath aliases in hallucinated-import detection. Imports matching a declared path alias (e.g.import x from "@/components/Foo"whenpaths: { "@/*": ["./src/*"] }is set) are no longer flagged as hallucinated packages. Walks the root and every workspace package, readscompilerOptions.paths, and supports both wildcard (@/*) and exact (#shared) alias keys. Malformed tsconfig is skipped silently (degraded behavior — the detector still flags as before). Added 5 vitest cases covering wildcard, exact, workspace-scoped tsconfig,jsconfig.json, and the malformed-config fallback.
Patch release with false-positive reduction for narrative comments and dependency downgrade protection utilities.
Fixed
- Reduce false positives in narrative-comment detector. JSDoc comments now require explicit slop signals (explanatory openers, justification patterns, cross-references) to be flagged. Added support for
e.g.andi.e.as documentation indicators. Line-comment preambles (3+ lines before declarations) are still flagged.
Added
- Semver downgrade detection utilities. Added
parseSemverMinandisDowngradehelpers tofix-force.tsfor detecting when dependency updates would downgrade packages (e.g.,^13.6.0→^12.1.0). Handles wildcard specs like^11.x.xand ignores non-semver shapes (workspace:*, git URLs).
Internal
- Extracted
isNonProductionPathhelper to shared module for reuse across detectors.
Documentation update to improve first-run experience.
Documentation
- Condense README, prioritize instant scan (#97). Restructured README to put instant scan command (
npx aislop scan) at the top. Integrated badge snippet into Quick start section. Addednpxprefix to all commands for consistency. Removed sample output, moved "Why aislop" and "What it catches" to bottom. Reduced README from 407 lines to 287 lines (-120 lines). Added context to Fix and Hand off to agent sections.
Major feature release with MCP server support, TypeScript typecheck engine, expanded multi-language AI slop coverage, and significant false-positive reduction via OSS validation.
Added
- MCP server support (#89).
aislop-mcpbinary now ships with the package. Exposesscan,fix,why, andbaselineas MCP tools via Model Context Protocol. AI coding assistants (Claude Desktop, etc.) can directly invoke aislop operations. - TypeScript typecheck engine (#84). New lint engine runs
tsc --noEmitand parses TypeScript compiler diagnostics. Integrates with existing lint scoring, respects tsconfig.json project references. Catches type errors alongside eslint/oxlint findings. - Hallucinated-import detector (#86). Flags imports of packages not declared in any package.json manifest. Walks manifests up to depth 4 for monorepos. Catches AI-generated imports of non-existent packages.
- Expanded multi-language AI slop patterns (#90). Added 7 new detectors across Python, Go, and Rust:
- Python: placeholder exception handlers, generic print debugging
- Go: library panics in exported functions, TODO/FIXME markers in production
- Rust: unwrap() chains, unimplemented!() in library code, excessive .clone()
- Hook envelope v2 + duplicate-import rule (#87). New hook protocol version with structured responses. Added
ai-slop/duplicate-importdetector that flags redundant imports of the same symbol/module. - FileChanged hook subscription (#88). Claude Code integration now watches
.aislop/config.yml,.aislop/rules.yml, andpackage.jsonfor changes and re-scans automatically. - GitHub Step Summary writer (#79). CI runs now output rich markdown summaries in GitHub Actions UI with per-finding help text, severity badges, and quick-fix suggestions.
- Improved scoring system (#74). New formula with per-engine caps, file-aware density smoothing, and fixable-issue discount. More stable scores across project sizes, less penalty for auto-fixable findings.
Fixed
- False-positive reduction via OSS validation (#91). Validated detectors against 25 real OSS projects (requests, flask, fastapi, cobra, gin, hugo, clap, ripgrep, tokio, serde, prisma, trpc, zod, vitest, nest, express, lodash, axios, chalk, commander). Eliminated ~4,100 false positives:
narrative-commentnow skips Rust doc comments (///), Go doc conventions, and JSDoc with WHY markerstrivial-commentskips rustdoc and vendored/example directoriesconsole-leftoverexempts CLI command source directoriesgo-library-panicexempts nil-check preconditionshallucinated-importwalks package.json manifests to depth 4 for monoreposfile-too-largeadds 10% buffer over configured max (consistent with function-too-long)- All detectors now skip test files, migrations, fixtures, snapshots, mocks, and generated output across all languages
- Contributors tracking (#83). Squash-merged PRs now correctly attribute external contributors. Previously only direct committers appeared in contributor lists.
- Dependency audit warnings (#76). Missing audit tools (npm audit, cargo audit, etc.) now show clear warning messages instead of silent failures.
- Dogfooding cleanup (#92). Split
fixNarrativeCommentsinto separate file to keep under file-too-large threshold. Fixed pnpm-workspace.yaml regex pattern.
Documentation
- Positioning refinement (#85). Locked "standards layer and quality gate" framing in README and npm description. Clarifies aislop's role as enforcement infrastructure, not a linter replacement.
- PR check clarifications (#80). Updated documentation explaining aislop's PR checks and CI integration patterns.
Internal
- 16 commits land on develop including 8 new features, 4 fixes, and 2 documentation updates.
- 674 tests passing (up from 630).
- 8 new detectors added (1 hallucinated-import + 7 multi-language patterns + duplicate-import).
- Self-scan: 100/100.
Two user-facing additions plus a security floor on a transitive dependency.
Added
extends:in.aislop/config.yml(#45). Inherit a parent config and override only the keys you need. Accepts a single relative path or an array; later entries win on conflict. Nested objects deep-merge key-by-key, arrays replace wholesale. Circular references and chains deeper than 5 are rejected at load time. Useful for org-wide baselines: one strict parent in the monorepo root, per-package overrides forci.failBelowor specific weights. Documented indocs/configuration.md.- Public score badge in the README header (#46). Shields-compatible SVG served from
badges.scanaislop.com, edge-cached. Drop one line into any README that opts in: Colour bands: green ≥ 85, amber 70–84, red < 70, grey if no scans yet. The CLI's own README now wears the badge alongsidenpm version,CI, andLicense.[](https://scanaislop.com/<owner>/<repo>)
Security
- Floor on
postcsstransitive (#49). Added apnpm.overridesentry pinningpostcss≥ 8.5.10 soaislop scan's ownsecurity/vulnerable-dependencyrule no longer fires on this repo. No top-level dep used postcss directly; the override is the right tool over a runtime dep that doesn't exist. Resolved version is8.5.13.
Internal
- 8 commits land on develop including 3 auto-syncs from the
main → developworkflow added in 0.6.2. - A draft PR (#48) parks an unwired TypeScript-as-lint engine — the implementation is solid but the registry, schema, config gate, and tests are deliberately not in this release.
Single-finding patch: the knip-backed Unlisted binary rule was firing on .github/workflows/** for runner-provided tools like gh, aws, docker, and jq, which can never be declared in package.json.
Fixed
knip/binariesno longer flags CI workflow files.src/engines/code-quality/knip.tsnow routes every issue throughshouldIncludeIssue(issueType, filePath); the predicate dropsbinariesdiagnostics whose file path lives under.github/workflows/. Backslashes are normalised so Windows paths behave the same. The rule stays active everywhere else, so an npm script invoking an undeclared tool is still a real signal.
Tests
- 3 new unit tests in
tests/knip-deps.test.tscovering the predicate: workflow binaries dropped, non-workflow binaries kept, other issue types unaffected in workflow files. Total suite: 617 (614 + 3).
A follow-up round after 0.6.0 went live: hook UX gaps surfaced on first contact, README was still on 0.5.x, and adding deterministic duplicate-detection caught real issues in aislop's own source.
Added
Hook UX fixes.
- Per-agent
--<name>flags oninstall/uninstall.aislop hook install --claude,--cursor --gemini,--copilot, etc. Matches the existingfix --claudepattern so there's one way to select an agent across the CLI. - Positional agent args on
install/uninstall.aislop hook install claude cursorandaislop hook uninstall gemininow work. Previously they threw "too many arguments." - Interactive multi-select picker on
aislop hook install/aislop hook uninstallwhen no agents are specified and stdin is a TTY. Space to toggle, enter to confirm. Install defaults check the four agents that support both user and project scopes (Claude, Cursor, Gemini, Codex); uninstall only shows agents actually detected on disk. Non-TTY (CI) keeps the previous default-all behaviour. - Interactive-TTY guard on the internal
hook claude/hook cursor/hook geminisubcommands. Invoking one yourself at a terminal used to silently no-op (reading stdin from a TTY yields nothing). Now prints a hint pointing tohook install --<agent>.
Three new deterministic detection rules.
code-quality/repeated-chained-call— flags 5+ consecutive method calls on the same chain that differ only in string literals. Catches the.option("--claude", ...)× 14 pattern.code-quality/duplicate-block— sliding 10-line window, literal-only normalisation, requires ≥7 distinct lines. Catches non-trivial copy-paste across a file.ai-slop/narrative-commentwidened with a "bare section label" detector for 1–3-word title-case comments (// Subcommands,// Init helpers) NOT followed by a data-literal entry, so// AWSin aSECRET_PATTERNSarray is correctly spared.
Coverage widening (gaps surfaced by real-world use):
ai-slop/trivial-commentverb list gained Write, Run, Parse, Execute, Extract, Save, Load, Build, Start, Stop, Cleanup, Setup, Configure, Validate, Process, Queue, Fire, Emit, Dispatch, Log, Print, Render plus coverage for single-word bare imperatives (// Cleanup,// Parse). The rule now uses one consolidated verb-stem regex instead of 14 per-verb patterns.ai-slop/narrative-commentnow also flags 3+ line prose blocks inside function bodies (previously only caught at the top level before a declaration). The threshold is exempted when the prose contains WHY markers (because,since,otherwise,workaround,note:,bug,issue,in prod,must run,see issue, etc.), so genuine explanatory context still passes through.
Suppression mechanism. // aislop-ignore-file <rule> at the top of a file, or // aislop-ignore-next-block <rule> above a specific construct. Lets you opt out of a rule on code where the pattern is intentional (e.g. a diagnostic-push table that reads better as N similar blocks than as a data-driven loop).
Config-driven file exclusion (thanks @myke-awoniran). exclude: key in .aislop/config.yml and --exclude <pattern> on the CLI, both glob-supported via micromatch. Defaults cover node_modules, .git, dist, build, coverage. User excludes stack: CLI overrides config, config stacks on defaults. Applied uniformly across full-scan, --staged, and --changes modes.
Changed
README.mdcovers hooks. New "Install as a native hook" section under Usage with adapter + rules-only installer lists, quality-gate flow, and a link to/docs/hooks. Quick-start and "Why aislop" blocks mention hooks. Sample-output version banner bumped to 0.6.1.- Internal refactors driven by the new rules:
src/commands/doctor.ts: extractedsystemToolDecision()+firstMatching()+FORMAT_SPECS/LINT_SPECS/AUDIT_SPECSdata tables, replacing six repeatedif (languages.includes(X)) return installedTools[Y] ? {...} : {...}blocks.src/utils/source-masker.ts: extractedhandleQuotesAndComments()— the string/template/comment state machine was duplicated across the top-level and inside-interpolation branches.src/engines/ai-slop/dead-patterns.ts:slop()helper replaces 8 inlinediagnostics.push({ engine: "ai-slop", category: "AI Slop", column: 0, ... })copy-pastes.src/cli.ts: extractedrunScan()(shared between top-level default action andscansubcommand),matchFixAgent()+FIX_AGENT_FLAGStable (drives thefix --<agent>registration),noFlagsPassed()predicate.- Hook command wiring moved to
src/cli/hook-command.ts, split intoregisterInstall/registerUninstall/registerCallbackshelpers.
Notes
- 614 tests passing (598 baseline + 16 new across
resolveAgents,repeated-chained-call,duplicate-block, widened trivial verbs, and inside-function narrative prose). - Self-scan: 100 / 100 Healthy, 0 findings.
- No breaking changes.
--agent <names>still works; it's one of four equivalent ways to select agents now. - Packaged size: 138 kB (15 files).
Agent integration hooks. aislop now plugs into Claude Code, Cursor, and Gemini CLI natively so you get machine-readable findings on the turn the agent wrote the code, not after.
Added
- Agent hooks for 9 agents via
aislop hook install --agent <name>(oraislop hook claude,cursor,geminishortcuts):- Runtime adapters (3) that scan and feed findings back to the agent every edit:
- Claude Code (
PostToolUseonEdit|Write|MultiEdit) - Cursor (
afterFileEdit) - Gemini CLI (
AfterTool) - Rules-only installers (6) for agents without a hook lifecycle (install writes an
AISLOP.mdrules file the agent reads): Codex, Windsurf, Cline + Roo, Kilo Code, Antigravity, Copilot.
aislop hookcommand withinstall / uninstall / status / baseline / claude / cursor / geminisubcommands. Every install is sentinel-guarded (SHA-256 hash fence) for idempotent re-runs and exact uninstall.- Structured feedback contract (
aislop.hook.v1) the agent receives: score, counts, top-20 findings,nextSteps, and aregressedflag vs baseline. - Quality-gate mode (opt-in,
--quality-gate):.aislop/baseline.jsoncaptures the score when installed; the Claude Stop hook blocks the session if the score regresses below baseline. .aislop/hook.lockrecursion guard (30 s stale window) prevents aislop from scanning itself via its own hook.git difffallback for cases where stdin doesn't carry a file path.- Swagger / OpenAPI / apidoc JSDoc now recognised as meaningful. The narrative-comment rule no longer flags
@swagger,@openapi,@route,@group,@summary,@operationId,@response[s],@requestBody,@security,@tag[s],@path,@body,@query,@header[s],@produces,@accept,@middleware,@api*(apidoc family), and other legitimate API-doc tags. Existing projects that had@swaggerblocks auto-deleted on earlier versions can regenerate them safely.
Changed
- Narrative-comment detection widened (inherited from develop) with better declaration-preamble recognition across TS / JS / Python / Go / Rust / Ruby / Java / PHP.
Fixed
pnpm auditretired-endpoint (410) now falls back tonpm audit fixwhen apackage-lock.jsonexists, layered on top of 0.5.1'spnpm.overrideswriter.npx aislop scan --jsonclean stdout undernpx.scripts/postinstall-tools.mjspreviously wrote[aislop] Downloading …progress to stdout. In CI (where npx always re-downloads because there's no cache) this prefix corrupted the JSON envelope, so any consumer parsingaislop scan --jsongot invalid JSON and defaulted toscore: 0. Fixed by routing all install progress to stderr.- Release workflow's GitHub Packages publish.
setup-node@v6with onlyregistry-urldoesn't emit a scope mapping, so scoped package publishes silently fell back toregistry.npmjs.organd hitENEEDAUTH. Addedscope: '@scanaislop'and an explicit--registryon the publish command so@scanaislop/aislopreachesnpm.pkg.github.com.
Notes
- 583 tests passing (519 baseline + 64 new). Full coverage across: registry, scan-lock, baseline, adapters (Claude / Cursor / Gemini), install for every supported agent, rules-only uninstall reversibility, and API-doc JSDoc preservation.
- Self-scan: 100 / 100 Healthy.
- Packaged size: 132 kB (15 files).
Two bug fixes. One unblocks aislop fix -f on pnpm projects, the other makes the file-too-large rule actually honour maxFileLoc for JSX/TSX. No new features, no breaking API changes; agent-integration hooks land in 0.6.0 separately.
Fixed
complexity/file-too-largenow respects config on JSX/TSX. Previous behaviour silently applied a 2x multiplier for.jsx/.tsxfiles plus a 10% soft buffer, somaxFileLoc: 400actually fired at 881 lines on TSX. The rule is documented as "default max 400 LOC; JSX/TSX 2x" in the skill, but the combined 2x + 10% was neither documented nor configurable, and it meant big React pages sailed past 400 unflagged. New behaviour:.jsx/.tsxuse a 1.5x tolerance (400 → 600) with no soft buffer.- Every other extension (
.ts,.js,.py,.go,.rs,.rb,.java,.php,.mjs,.cjs) hits the exact configured value. - This is a tightening for TSX: a
.tsxfile that was fine at 800 lines under 0.5.0 will now flag at 601 lines. If that's a step too far for your repo, bump.aislop/config.yml→maxFileLocexplicitly.
aislop fix -fpnpm dep-audit fix. Previously tried to runpnpm audit --fix, which doesn't exist. Now parsespnpm audit --jsonand writes surgicalpnpm.overridesentries keyed on<pkg>@<vulnerable_versions>into the rootpackage.json.
Changed
- Internal refactor:
src/engines/ai-slop/narrative-comments.ts(416 → 358 lines) splits its pattern regexes intonarrative-comments-patterns.ts.src/engines/code-quality/complexity.ts(416 → 241 lines) splits its function-boundary detection intofunction-boundaries.ts. No behaviour change.
Tests
- 3 new complexity tests covering the 1.5x JSX tolerance:
.tsxat 1.5x,.jsxat 1.5x,.tsat exact limit. Total suite: 516 → 519 passing.
Two big threads landed together:
1. Full CLI UX rehaul. Every command rewritten around a new src/ui/ module with a clack-style visual language. live concurrent engine grid for scan, live rail flows for fix / init / doctor, wcwidth-aware alignment, accent-green arrows on every hint line, and a proper non-TTY contract for CI. 2. In-house unused-declaration removal engine. aislop now owns the most destructive category of auto-fixes (removing unused functions, variables, classes, types, interfaces, enums) instead of delegating to oxlint --fix or knip --fix: Those tools kept corrupting user code by deleting declaration signatures and leaving orphan bodies. The new engine uses the TypeScript compiler API, runs a parse-check before writing, and reverts any removal that would break file syntax.
New
src/ui/module:theme,symbols,width,logger,header,summary,error,rail,live-rail,live-grid,prompts,invocationsrc/engines/code-quality/unused-removal.ts: in-house engine for safely removing unused top-level declarations (const / let / var / function / class / type alias / interface / enum) with side-effect guard and parse-check-before-write safety- Live animated spinner (braille frames) on each rail step while it runs
Verifying results…live step during the post-fix verification scan- Invocation-aware hints: all printed commands render as
npx aislop …so copy-paste works regardless of install method (global, devDep, fresh npx) --humanflag onaislop cito re-enable the full human design in CI output- JSON output gains
schemaVersion: "1"andcliVersionat the top of the envelope - Biome lint rule blocks
picocolorsimports outsidesrc/ui/ renderHintLinehelper: single source of truth for the accent-green→arrow + hint text pattern used acrossscan/fix/doctor/init/rules/--help- Top-level
--helpand every subcommand--helpnow show the brand header (aislop 0.5.0 · the quality gate for agentic coding) via commander'sbeforeAllhook RailStepgained a"warn"status (yellow!) so steps that complete with unresolved items don't misleadingly show◆(done)
Changed
- Scan shows all six engines updating concurrently in a live grid with aligned columns (label 18, status 12, elapsed 6) and wcwidth-aware padding
- Fix renders live. Each step appears as
◇ Step…with a spinner while running, then resolves to◆ / ! / ✗ Step. <result>and emits a│connector to the next step - Fix footer is now
└ Done · N fixed · M remain, always with a preceding│ - Summary counters are color-coded:
N errorsred,N warningsyellow,N fixablegreen - Fix command hint expanded from
fix --agenttofix --claude (or --codex, --cursor, --gemini, etc.) to hand off to agent. Lists common agents inline, mentions-fwhen aggressive fixes apply - Fix pipeline reordered: unused declarations run before lint fixes, so oxlint's safer
--fixmode sees clean state and no longer touches declarations at all - Doctor is project-aware: sub-header shows project + primary language, one row per engine with its backing tool,
✗+ inline remediation for missing tools,─+ "no X in project" for skipped engines, footer showsReady · N engines · M missing - Rules grouped by engine with aligned severity + fixable columns, plus scan/init next-step hints
- Init is a clack wizard (≤4 prompts), writes
.aislop/config.ymlpreserving the existing schema, success rail +→ Try npx aislop scanhint - Interactive menu uses
@clack/prompts; "Next?" prompt re-uses the full menu so users can pick scan/fix/init/etc. directly instead of going back to a generic menu line - Init / doctor / fix accept
printHeader: falsewhen dispatched from the interactive menu, so the brand line doesn't print twice - SQL-injection detection tightened: requires a DB-like receiver (
db.,knex.,prisma.,pool.,sequelize.,pg., etc.) before flagging template literals.log.raw(\…\${x}\)and similar no longer false-positive no-control-regexoxlint rule disabled (ANSI-stripping regexes are a legitimate CLI pattern)- Vulnerable-dependency diagnostic help lines now read
Run \npx aislop fix -f\to apply this fix. Upgrade to version X or later, directing users to the aggressive-fix path - Format engine filters out files that no longer exist on disk before calling the formatter, so stale git-status paths from removed files don't produce "No such file or directory" warnings
knip --fixusage scoped to value-export keyword stripping only; type and declaration removal delegated to the new in-house engine
Fixed
oxlint --fixno longer damages arrow-function declarations by deleting the signature while leaving the body (this was the long-standing class of "file corrupted afteraislop fix" bug). The engine'sfixmode turnsno-unused-varsoff entirely; detection still runs with the rule on so warnings surface, and the new unused-removal engine handles them safely- aislop's own
applyUnusedVarPrefixFixeshad a destructive branch that deleted unusedconstdeclarations under certain shapes; now only ever prefixes with_ fix-then-scanis a stable fixed point. Runningfixa second time produces zero further changes- Knip's silent
--fix-type=exports,types,duplicatesflag-comma bug worked around by repeating the flag per type - Doctor no longer emits a useless
4 of 4 tools availablefooter listing bundled tools that are always present. It now shows one row per engine with its actual tool and only flags what's missing for languages present in the project
Removed
- Hand-rolled keypress menu (replaced by clack)
src/output/{layout,pager,scan-progress,fix-progress}.tssrc/utils/{highlighter,logger,spinner}.tsfixKnipUnusedExports/runKnipUnusedExports(consolidated into the unused-removal engine)
Dependencies
- Added:
@clack/prompts,wcwidth,@types/wcwidth typescriptmoved fromdevDependenciestodependencies. Required at runtime by the unused-removal engine (ts.createSourceFile)
Breaking
- None at the CLI contract level. All flags, exit codes, and JSON field names remain stable.
Added
- Unused dependency detection: 5 new rules powered by knip:
knip/dependencies: unused packages in package.jsonknip/devDependencies: unused devDependencies in package.jsonknip/unlisted: packages imported but missing from package.jsonknip/unresolved: imports that cannot be resolvedknip/binaries: binaries used but not declared
aislop fixremoves unused dependencies: detects and removes unused deps/devDeps from package.json automatically- GitHub Packages publishing: each release now also publishes
@scanaislop/aislopto npm.pkg.github.com - Documentation site: detailed docs moved to
docs/directory (installation, commands, rules, configuration, scoring, CI/CD, telemetry) - Example configs:
examples/directory with 4 preset configurations (typescript-strict, monorepo-relaxed, python-go, architecture-rules) - Project infrastructure:
.editorconfig,.nvmrc,.gitattributes,biome.json,AGENTS.md,knip.json - Acknowledgments: README now credits the open-source projects aislop is built on
- npm downloads badge in README
Changed
- README slimmed from 374 to ~185 lines. Reference material moved to docs/
- README restructured: Installation → Usage → Use in project → Why → What it catches
- CONTRIBUTING.md updated to target
developbranch with AGENTS.md reference - Expo/React Native documented in supported languages and linting tables
- 288 total tests across 14 test files
Fixed
- Scoring penalties are now proportional to codebase size. A single issue in a 200-file project no longer tanks the score the same as in a 2-file project (fixes #9)
- Add
smoothingto scoring config schema (was missing, causing TypeScript error) - Fix
calculateScorecall in scan.ts to passsourceFileCountandsmoothingas separate arguments (smoothing was previously passed in the sourceFileCount position) - Compact
countParamsto keepcomplexity.tsunder the 400-line limit after biome formatting
Added
- 52 comprehensive scoring tests covering severity ordering, engine weights, edge cases, and density-aware scoring
- Configurable
scoring.smoothingoption (default: 10) for issue-density normalization - 285 total tests across 13 test files
Fixed
- False positive:
template.innerHTMLno longer flagged as XSS.<template>elements are inert by spec and don't execute scripts (fixes #7) aislop scannow exits with code 1 when error-severity diagnostics are found, fixing CI pipelines that depend on the exit code (fixes #8)- Self-detection of
innerHTMLpattern inrisky.tsvia string concatenation
Added
- 3 new security tests for template innerHTML exception
Added
- Anonymous opt-out telemetry via PostHog for aggregate usage insights
- Respects
AISLOP_NO_TELEMETRY=1,DO_NOT_TRACK=1, andtelemetry.enabled: falsein config - No PII collected; fire-and-forget with no impact on scan performance
- Disabled automatically in CI environments
- Respects
Fixed
- False-positive
function-too-longwarning onisBlockArrowcaused by the naive brace counter miscounting{and}characters inside regex literals complexity.tstrimmed to stay within the 400-line file size limit
Added
- Initial release
- Six detection engines: format, lint, code-quality, ai-slop, architecture, security
- AI slop detection rules:
ai-slop/trivial-comment: comments that restate the codeai-slop/swallowed-exception: empty catch blocks and catch-only-logai-slop/thin-wrapper: functions that only delegateai-slop/generic-naming: AI-style names likehelper_1,data2ai-slop/unused-import: unused imports in JS/TS and Pythonai-slop/console-leftover: console.log/debug/info in production codeai-slop/todo-stub: unresolved TODO/FIXME/HACK commentsai-slop/unreachable-code: code after return/throwai-slop/constant-condition:if (true),if (false)ai-slop/empty-function: empty function bodiesai-slop/unsafe-type-assertion:as anyin TypeScriptai-slop/double-type-assertion:as unknown as Xai-slop/ts-directive:@ts-ignore/@ts-expect-error
- Security rules: hardcoded secrets, eval, innerHTML, SQL injection, shell injection, dependency audit
- Code quality: function/file complexity, nesting depth, parameter count, duplication, dead code (knip)
- Formatting via Biome (JS/TS), ruff (Python), gofmt (Go), cargo fmt (Rust), rubocop (Ruby), php-cs-fixer (PHP)
- Linting via oxlint (JS/TS), ruff (Python), golangci-lint (Go), clippy (Rust), rubocop (Ruby)
- Architecture engine with custom
forbid_import,forbid_import_from_path, andrequire_patternrules - Logarithmic scoring model (0-100) with configurable weights and thresholds
- CLI commands: scan, fix, ci, init, doctor, rules, interactive mode
- Support for
--changesand--stagedflags for incremental scanning - JSON output for CI pipelines
- Auto-download of ruff and golangci-lint binaries on install
- Configuration via
.aislop/config.ymland.aislop/rules.yml - Language support: TypeScript, JavaScript, Python, Go, Rust, Ruby, PHP, Java (detection)
- Framework detection: Next.js, React, Vite, Remix, Expo, Django, Flask, FastAPI
Run the latest aislop
Install or bump to the current release and score your repo with the same deterministic rules.
npx aislop@latest scan