Skip to content

v1.1.11

Choose a tag to compare

@github-actions github-actions released this 03 Dec 11:51
· 17 commits to main since this release

✨ New: /ar — architecture review

/ar reviews a change, an area or the whole repo for architecture problems. It checks four things: boundaries, structure, how the code evolves, and legibility, meaning whether a maintainer can find where a decision lives and tell what each module does from its names, entry points and public surface alone. Each dimension gets its own reviewer, and the report keeps their findings in separate sections. If one root cause shows up in several dimensions, the fix plan groups it.

/ar
/ar audit packages/feature/explorer

/rf now also looks for code that is hard to read: names that lie, mixed levels of abstraction, implicit rules, missing reasons, hidden work and misleading shape. Readability findings must show either code that contradicts itself or a misreading that has already happened. Naming preference alone is not reported.

✨ New: Diff viewer remembers how you like to open diffs

The file diff viewer has two new switches in its header, and both are remembered:

  • Open full chooses whether a diff opens full width or in the column. The expand button still changes only the diff you're looking at.
  • Open aggregate chooses whether the viewer starts on the aggregate of the whole turn. The aggregate toggle is now a layers icon.

Changing either switch also applies to the diff on screen. Both toggle pairs now use the same style.

🐛 Fix: Rebases counted as authored work in the aggregate diff

The aggregate used to treat a call that touched 50 or more files as a branch switch. A rebase that touched 14 files counted as your own edits. Calls are now classified by the git command they ran: rebase, pull, merge, switch, checkout of a branch, reset --hard, cherry-pick, am, stash pop/stash apply and gh pr checkout. These are recognised inside compound commands too. The aggregate starts after the last such call, so a rebase in the middle of a turn is cut as well. A formatter or codemod that touches many files is no longer mistaken for a branch switch.

✨ New: Code graph for agents

  • Exact vs guessed call edges. A TS/JS call edge is exact only when the source proves which function it reaches. Calls to module functions, this.m() on the enclosing class, and imp.m() on an import qualify. Any other match by name is labelled byName. Edges that cannot exist, such as a bare call to a method or a call through a shadowed name, are no longer drawn.
  • maps reports only what the syntax settles. It now lists modules, entry points with their direct calls, dependencies between modules, each module's public API and hotspots, each with where it is defined. Multi-hop paths from an entry point require reach=true, and it no longer claims an entry point reaches no write. Next.js App Router route handlers count as entry points.
  • clones groups functions that have the same syntax shape. crap combines complexity with a coverage report you already have (LCOV or Go coverprofile) to give per-function coverage and a CRAP score. It never runs your tests.
  • Tests are left out by default on every endpoint. Use test= / notTest= globs to change what counts as a test, and each response lists what it left out.

🐛 Fix: Cockpit stalling during the first code-graph query

Building the code index blocked the server for up to half a second at a time, so every other request waited during the first query. The build now runs in slices and gives way to other requests. On this repo the longest stall dropped from 536 ms to about 70 ms, and the total build time is unchanged.

🐛 Fix: Code graph

  • cockpit codegraph coedit printed undefined for every history row. It now prints the file paths.
  • Some distinct call edges were merged by mistake and then lost. They are now kept apart.
  • The /cg skill and the CLI help no longer list endpoints that were removed.

📦 Misc: Review skills

When a brief rules out tests, /cr reviewers may still run the changed code from a scratch script. A suspected break is now reported even if it can't be fully proven, together with what would settle it. If the same kind of finding comes back two rounds in a row, the fix plan starts by finding its root cause.