diff --git a/public/how-it-works.html b/public/how-it-works.html index bf55fe9..df7be71 100644 --- a/public/how-it-works.html +++ b/public/how-it-works.html @@ -653,7 +653,7 @@

The plan

$ cribelo
 cribelo · 34 files changed vs origin/main (merge-base b2f83dc)
 
-Read 13 of 34 changed files, about 45 min.
+Read 11 of 34 changed files, about 43 min.
 
                                                            lines to read closely               lines to glance at
    1  internal/analyzer/library_reach.go             new   30-35, 66-265                       16-26, 39-57
@@ -663,19 +663,19 @@ 

The plan

5 internal/analyzer/file_dependency_analyzer.go 97-101, 122-127, 141, 152, +4 more 22-27 6 internal/engine/php/deps/resolver.go new 25-43, 57-69 15-22, 46-51, 75-76 7 internal/engine/php/deps/resolver_test.go test 11-54 - 8 internal/engine/java/deps/resolver.go 46-48, 65-71 line 61 - … 5 more - -Why these files - complexity used by commits 90d clone test changed - 1 library_reach.go ▮▮▮▯▯ 17 ▮▮▮▮▮ 83 ▮▮▯▯▯ 3 ✓ - 4 util.go ▮▮▯▯▯ 10 ▮▮▮▮▮ 111 ▮▮▮▯▯ 6, 3 fixes ✗ - 5 file_dependency_analyzer.go ▮▮▮▮▮ 44 ▮▮▮▮▮ 83 ▮▮▯▯▯ 4, 1 fix ✓ - 6 php/deps/resolver.go ▮▮▯▯▯ 9 ▮▯▯▯▯ 1 ▮▯▯▯▯ 1 84% ✓ - 8 java/deps/resolver.go ▮▮▮▯▯ 11 ▮▯▯▯▯ 1 ▮▮▯▯▯ 3, 1 fix 100% ✓ + 8 internal/command/who_uses_command.go new 52-241 25-48 … 3 more -Totals 688 lines to read closely, 280 to glance at (20 and 60 lines a minute) +Why these files + complexity used by commits 90d clone test changed + 1 library_reach.go ▮▮▮▯▯ 17 ▮▮▮▮▮ 83 ▮▮▯▯▯ 3 ✓ + 4 util.go ▮▮▯▯▯ 10 ▮▮▮▮▮ 111 ▮▯▯▯▯ 2, 1 fix ✗ + 5 file_dependency_analyzer.go ▮▮▮▮▮ 44 ▮▮▮▮▮ 83 ▮▮▯▯▯ 3 ✓ + 6 resolver.go ▮▮▯▯▯ 9 ▮▯▯▯▯ 1 ▮▯▯▯▯ 1 84% ✓ + 8 who_uses_command.go ▮▮▮▯▯ 18 ▮▮▯▯▯ 3 ▮▮▯▯▯ 3, 1 fix ✓ + … 2 more + +Totals 672 lines to read closely, 272 to glance at (20 and 60 lines a minute) Set aside in the whole change: 11 import hunks. Worth knowing true by construction, not predicted @@ -685,8 +685,8 @@

The plan

internal/command/who_uses_command.go 49 of 162 changed lines not run by any test, according to pr196-coverage.out internal/engine/util.go 25 of 25 changed lines not run by any test, according to pr196-coverage.out -Skip (21) - 10 ranked lower · 7 tests only · 4 no measurable change cribelo skip +Skip (23) + 11 ranked lower · 8 tests only · 4 no measurable change cribelo skip

The first table says where to read: for each file, the line ranges to read closely and the ones a glance is enough for. In the pull request comment, each range opens the diff on those lines. Under it, each column is a measure you can check: cyclomatic complexity of the touched functions, files that import this one, commits and fix commits in the last ninety days, similarity with another function, a test changed with the file.

A gate on what is measured

diff --git a/public/index.html b/public/index.html index 0074467..f9b88a9 100644 --- a/public/index.html +++ b/public/index.html @@ -162,6 +162,24 @@ .dark .big { max-width: 19em; margin-top: 30px; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; } .dark .fine { margin-top: 44px; opacity: .72; font-size: 17px; max-width: 34em; } .dark code { font-size: .92em; } +.dark .lead { max-width: 21em; text-wrap: balance; margin-top: 28px; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; opacity: .72; } +.clues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 8vh, 80px) clamp(24px, 4vw, 56px); margin: clamp(72px, 12vh, 128px) 0 clamp(96px, 16vh, 170px); } +.clues li { padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); } +.clues .q { font-size: clamp(1.9rem, 3.3vw, 3rem); white-space: nowrap; font-weight: 600; letter-spacing: -.05em; line-height: 1; } +.clues .q b { color: var(--inv-accent); font-weight: 600; } +.clues .a { margin-top: 18px; font: 500 15px/1.45 var(--mono); } +.clues .a span { display: block; opacity: .62; font-size: 13px; } +.js .clues li { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.9,.3,1.2); } +.js .clues li:nth-child(3n+2) { transition-delay: .12s; } .js .clues li:nth-child(3n) { transition-delay: .24s; } +.js .clues li .q b { display: inline-block; transform: scale(0) rotate(-30deg); transition: transform .5s cubic-bezier(.3,1.8,.5,1) .45s; } +.js .clues li.in { opacity: 1; transform: none; } +.js .clues li.in .q b { transform: none; } +.punch { font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -.05em; } +.more { display: inline-block; margin-top: 30px; padding: 14px 26px; border-radius: 99px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; transition: transform .15s, background .15s; } +.more:hover { background: var(--pink); color: #fff; transform: scale(1.04); } +@media (max-width: 880px) { .clues { grid-template-columns: repeat(2, minmax(0, 1fr)); } } +@media (max-width: 520px) { .clues { grid-template-columns: 1fr; gap: 40px; } } +@media (prefers-reduced-motion: reduce) { .js .clues li, .js .clues li .q b { opacity: 1; transform: none; transition: none; } } .one { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; padding: clamp(110px, 20vh, 220px) 0 0; } .one.gate { padding-bottom: clamp(110px, 20vh, 220px); } @@ -273,12 +291,12 @@

Too many pull requests. Know what to read.

-

Read less. Catch more. No LLM, just deep static analysis of your code.

+

Read less. Catch more. Real parsers, your git history, no guesswork.

+

My agent already reviews my pull requests.

+

It opens all 34 files to find the 11 that matter. Cribelo finds them in seconds, for your agent and for you.

Six hundred lines moved to a new file?

Glance at two. Read the nine that changed on the way.

-

A new import closes a cycle?

-

You know before you open the file.

@@ -305,7 +323,7 @@

How long do you have?

$ cribelo

cribelo · 34 files changed vs origin/main (merge-base b2f83dc)

-

Read 13 of 34 changed files, about 45 min.

+

Read 11 of 34 changed files, about 43 min.

@@ -313,12 +331,12 @@

How long do you have?

-

Totals  688 lines to read closely, 280 to glance at (20 and 60 lines a minute)

+

Totals  672 lines to read closely, 272 to glance at (20 and 60 lines a minute)

Set aside in the whole change: 11 import hunks.

Worth knowing  true by construction, not predicted

-

Skip (21)

-

  10 ranked lower · 7 tests only · 4 no measurable change    cribelo skip

+

Skip (23)

+

  11 ranked lower · 8 tests only · 4 no measurable change    cribelo skip

@@ -347,10 +365,19 @@

Hold your agent to thirty minutes.

-
-

No AI. No guessing.

-

Same pull request, same answer, on every machine. Every line of the plan is true by construction, or checkable in the repository in a minute.

-

Real parsers and your git history. cribelo backtest replays your past changes and says how many lines a reviewer would have skipped. How it works.

+
+

How it works.

+

Cribelo asks every change the questions a reviewer would. Static analysis answers them.

+
    +
  1. Complex?

    file_dependency_analyzer.goresolveFileDependencies() complexity 29 → 44

  2. +
  3. Used everywhere?

    file_dependency_analyzer.goimported by 83 files

  4. +
  5. Fixed before?

    cmd/ast-metrics/main.gomain() was fixed 5 times in the past year

  6. +
  7. Tested?

    internal/engine/util.go25 of 25 changed lines not run by any test

  8. +
  9. Duplicated?

    php/deps/resolver.go84% similar to another function

  10. +
  11. New dependency?

    internal/analyzerdepends on php/deps for the first time

  12. +
+

Same pull request, same answer. Every time.

+ More details
@@ -415,8 +442,8 @@

Cribelo on GitLab