Skip to content
CheckRepublicPublic

About

Implementation for the Hackatum Check24 Challenge

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Checky, the small blue mascot, waving

Checky

Checky reads a Git repository and tells you what to fix first.
Every statement it makes leads back to the lines of code behind it.

CI Live demo hackaTUM 2026 CHECK24 challenge

Quick start · Screenshots · How it works · Dashboard · Results · Docs

The briefing of the day for Artemis: a headline, key figures with sparklines, and what to keep an eye on

Built at hackaTUM 2026 for the CHECK24 challenge "Visualise and judge a codebase".

What it does

  • Every finding leads down to the lines of code behind it, because each note records what it was derived from.
  • Most of the 52 thinkers use no model. A model is used only where a deterministic approach cannot do the job, and it never decides the order of the findings.
  • An analysis of Kafka, Hadoop or Artemis costs 1 to 1.60 USD with the models used here, about 0.02 USD with Haiku for every thinker, and nothing with --llm off.
  • It drafts the architecture decisions that nobody wrote down from the history, and the people who know the code confirm or reject them. On Artemis that gave 290 drafts, 285 with a reason that a pull request or issue states.
  • checky watch picks up new commits, and an open dashboard page shows the new export within 30 seconds.
  • Checky, the small blue figure, walks you through a page, tours the tabs and answers questions.

Screenshots

All of them show the analysis of Artemis on checky.rocks on 29 Nov 2026. A dashboard started from a checkout shows the analysis in results/ without a run.

One finding
The statement, the graph behind it, Checky's review, then the lines.
One finding: a cycle of 32 modules with its graph and Checky's review
Findings
Every finding as a dot on the score axis, then the list to fix first.
152 findings placed by score in four bands
Map
Modules on a ring, references as chords, cycles marked.
The module graph of client and server as two rings
Drift
What differs between two snapshots, and whether it was planned.
The dependencies between modules at every snapshot, with the unusual steps marked
Decisions
The decisions found in the history, as an agenda for the team meeting.
The agenda for the team meeting: the decisions found since Friday, each with the reason stated
Runs and cost
The pipeline of thinkers by level, with the state and cost of every run.
The pipeline as a graph from the first inputs to the topics

A recording of Checky leading from the briefing to a finding:

Checky greets, leads from the briefing to the finding and opens its graph and its code

How it works

Checky is a blackboard. Feeders write observations (commits, pull requests, files). Thinkers derive notes from them level by level: models of the code, signals, insights, topics. Each note records what it was derived from, so a click on any finding walks down to the code.

flowchart LR
    S["Sources<br/>git clone, GitHub cache,<br/>scanner reports, questions"] --> E0["E0 observation<br/>commits, pull requests,<br/>files, CI runs"]
    E0 --> E1["E1 model<br/>symbols, imports,<br/>history, API surface"]
    E1 --> E2["E2 signal<br/>metrics, detectors,<br/>finding candidates"]
    E2 --> E3["E3 insight<br/>ranking, drift,<br/>decisions, verdicts"]
    E3 --> E4["E4 topic<br/>briefing, topics,<br/>answers"]
    E4 --> D["Export<br/>results/ and the dashboard"]
Loading

uv run checky catalog lists every thinker with its level and what it reads and writes. docs/thinkers.md is the contract.

Quick start

The analyses in this repository open in the dashboard without a run and without a key:

cd dashboard
pnpm install
pnpm dev             # http://localhost:3000, reads ../results

To run an analysis yourself, follow Set up, Get the data and Run an analysis. The short form, without any model:

uv sync
export CHECKY_DATA=~/checky-data
git clone https://github.com/apache/kafka.git $CHECKY_DATA/repos/kafka
uv run checky run kafka --llm off

Contents

Use it Understand it Extend it
Set up How it works Add a repository
Get the data Decisions nobody wrote down Add a source
Run an analysis Tests that are switched off Add a thinker
Keep it up to date Results Layout
Ask a question Bonus comparison
Dashboard Public deployment

Set up

Requirements: Python 3.13, uv, Git, and Node 22 or newer with pnpm for the dashboard. The GitHub command line tool gh is optional: checky fetch uses its login when it has one.

uv sync
uv run checky catalog    # the 52 thinkers in run order, and a check that the note kinds form no cycle
uv run pytest            # builds a small example repository and runs every thinker on it, no network, no model

Get the data

Clones, boards and caches are large and live outside this repository, under CHECKY_DATA.

export CHECKY_DATA=~/checky-data
git clone https://github.com/ls1intum/Artemis.git $CHECKY_DATA/repos/artemis
git clone https://github.com/apache/kafka.git $CHECKY_DATA/repos/kafka
git clone https://github.com/apache/hadoop.git $CHECKY_DATA/repos/hadoop
uv run checky fetch kafka    # pull requests, issues, CI runs, releases, deployments, reviews, discussions -> $CHECKY_DATA/github-cache/kafka

fetch sends only the public repository name to the GitHub API. Without gh and without GITHUB_TOKEN the anonymous rate limit stops it early, and the reviews and discussions of pull requests need a login: without one the review views stay empty. A run without the cache works: changes then come from the commit messages. The first fetch of a long history may stop at the hourly limit of GitHub once; the next one asks only what is missing and what is new. The text of the discussions never reaches the export (ADR 0255, ADR 0280, ADR 0313).

Run an analysis

uv run checky run kafka --llm off     # no model: the model thinkers are skipped, everything else runs
uv run checky run kafka --llm fake    # model thinkers answer with the fixed answer each of them builds itself
uv run checky run kafka               # live when a key is set, else off
uv run checky status kafka            # notes per kind on the board. "checky usage": the cost of the models so far
uv run checky doctor kafka            # check that the tables of the board agree. Reads only, code 1 on a broken rule

The same for artemis and hadoop. A run from an empty board takes about one minute per repository on the development machine (18 cores). A second run does only what has new input. --only a,b and --max-stage N run a part. A board of an older version is refused: delete <repo>.sqlite and its .att folder.

Mode Model thinkers Use
off skipped, the run record says so findings, ranking, drift and briefing without any model
fake answer from their own deterministic function tests, and a full run without a key
live call Claude and the decision model Jev the real analysis, with a budget per provider

Keys, models, budgets and proxy settings are environment variables. docs/models.md lists them. Put them in a file .env in the repository root. It is not checked in and never printed.

Variable Meaning Default
CHECKY_DATA clones, boards, caches, usage log ./.checky
CHECKY_REPOS folder with the clones $CHECKY_DATA/repos
CHECKY_BOARDS folder with one board file per repository $CHECKY_DATA/boards
CHECKY_RESULTS_DIR export folder as an absolute path, also read by the dashboard ./results
CHECKY_LOG_FILE the log of every command: each round, each run with its full error, each refusal of the write gate, each fetch; rotated at 10 MB, five files kept <data dir>/logs/checky.log
CHECKY_LOG_LEVEL the level of that log INFO
CHECKY_THINKER_TIMEOUT_SECONDS seconds one run of a thinker may take; a run past it ends as failed and the round goes on. A thinker can state its own (timeout_seconds) 1800
CHECKY_LLM_MODE off, fake or live live with a key, else off

Keep it up to date

uv run checky watch kafka                        # a round every 60 s, the sources every hour
uv run checky watch kafka hadoop                 # several repositories, one after the other
uv run checky watch kafka --fetch-interval 120   # `git fetch` every two minutes, for a demonstration
uv run checky watch kafka --once                 # one round with a fetch of every source, then end
uv run checky rebuild kafka                      # set the board aside and compute everything again
uv run checky restore kafka                      # list the boards that were set aside
uv run checky restore kafka 20261128T201500Z     # switch back to one of them
uv run checky demo-step artemis-demo             # a demo: the next real commit, then one round
uv run checky demo-reset artemis-demo            # the demo ten commits back, then one round

A rebuild keeps the clone, the GitHub cache, the verdicts of reviewers and the usage log, and it deletes nothing: the board goes to <data dir>/backup/<repo>/ (ADR 0293).

checky watch is checky run in a loop: one process, no server and nothing else to install. A round runs every thinker that has new input and writes the export when something changed. Every new commit on the default branch asks the model thinkers again, so set CHECKY_BUDGET_ANTHROPIC_PER_DAY_USD for a long run. docs/watch.md has the fetch intervals and the same in containers.

Ask a question

uv run checky ask kafka "Which modules depend on each other in a cycle?" --persona engineer --llm fake

The question becomes a note, answer.agent builds a view from notes on the board, and the export is written again. --json prints what the dashboard reads. docs/views.md describes views, queries and answers. A question never waits for the analysis: it runs beside a round of checky watch, run or review, and several questions run at once. While another command holds the board (such a round, or another question that writes the export), the question skips the export. A later export holds the answer; the next round of the watcher writes one (ADR 0290). The roles are cto and engineer; docs/roles.md defines them by the questions they ask.

Decisions nobody wrote down

Most repositories hold no record of their architecture decisions. Checky reads the history, writes a draft for each decision it finds, and lets the people who know the code confirm or reject it. docs/decisions.md explains all of it: the words, how a draft comes to be, what is checked, how to review, the settings, and what it cannot do.

In short:

  1. triage.change sorts every change with the decision model: architecture decision, feature decision, none, unclear.
  2. adr.retro reads only the changes that may hold an architecture decision, with the texts of their pull requests and issues, and writes drafts. A draft says what was decided, which kind of decision it is (structure, technology, convention, cross-cutting), the reason a pull request or issue states, and its sources.
  3. A program checks each draft against what the model was shown. A draft never causes a rule violation.
  4. A person reviews a draft on the page "Decisions", or with checky review. A confirmed decision keeps its text in every later run and may stand behind a rule. A rejected one is not written again.

Every occasion is asked once, so the first run reads the whole history and later runs only what is new:

uv run checky run artemis                                              # goes on where the last run stopped
CHECKY_ADR_BUDGET_TOKENS=4000000 uv run checky run artemis --llm live  # the first run over a long history, in one go
uv run checky review artemis derived-pr-11666 --verdict confirmed --reviewer "Ada Example"
uv run checky apply-reviews artemis                                    # let rules, drift verdicts and topics follow the verdicts

Measured on Artemis (6,292 changes since 2023): the first sort costs 0.18 USD, the drafts 5.65 USD, and they gave 290 drafts, 285 with a reason that a pull request or issue states. A run after that asks nothing.

Tests that are switched off

detector.disabled writes one finding disabled_tests per module: how many tests are switched off there, since which commit, and the text next to each marker (@Disabled or @Ignore in Java, it.skip, xit, describe.skip and their relatives in TypeScript). A test that runs under a condition or is off by design does not count. Measured at the newest snapshots, without models: Artemis 100 tests in 5 findings (98 of them since one commit of March 2025), Kafka 5 in 3, Hadoop 65 in 14 (ADR 0321).

Dashboard

cd dashboard
pnpm install
pnpm dev             # http://localhost:3000, reads ../results
pnpm dev:sample      # the same with the sample data in dashboard/sample-results

dashboard/README.md lists the pages. The dashboard reads only the export. Checky's chat runs checky ask. An open page asks every 30 seconds when the export was written and loads its data again after a change.

Checky

Checky, happy

Checky, the small blue figure, is on every page of the dashboard (ADR 0261). The recording under Screenshots shows him at work.

  • He greets you on the first page of a visit.
  • He walks you through a page. On the briefing, "Walk me through this page" stops at every box of the page with one line each. He gets there by pressing the links and the tabs of the page (ADR 0262).
  • He answers questions. Click him and type. A view name such as "drift" or "show me the map" takes you to that view. Anything else is a question. Its answer opens on his desk: a large sheet over the page, with him and the chat on the left and the answer on the right. "Copy link" gives an address that opens the same answer, and "History" lists every question (ADR 0320). A saved question opens its stored answer at once.
  • "Tour all tabs" is a tour of every tab the repository has data for, with one sentence at each stop.

Every reply says how he knows it: "from the board, no model" or "blocks chosen with a model, facts from the board" (ADR 0263). An answer to a typed question takes about 7 seconds and costs about 0.05 USD, measured on Artemis with Opus at effort low (ADR 0260).

Public deployment

https://checky.rocks runs the dashboard for the presentation, behind a login with one password per role (read, ask, admin). A merge to main does not deploy: only a manual run of CI on main or just deploy does. deploy/README.md has the limits, the deploy steps, the files on the server and the watcher.

Results

checky run writes results/<repo>/: manifest.json (snapshots, pairs, runs, tokens and cost, drift totals, and what was left out of the export), notes/<kind>.json, relations.json, attachments/. uv run checky export <repo> writes it again from the board. It holds what a view reads, not the whole board: see the rules in docs/adr/0137.

results/ is demo data: one analysis per repository, each run on 2026-11-28 in mode live. A dashboard that is started from a checkout shows it without a run. The table counts the current runs, typed questions included.

Repository Snapshot before the cutoff (t0) Newest snapshot (head) Snapshots Runs Findings at head Tokens in Tokens out Cost
Artemis (ls1intum/Artemis) 93eba08f0530, 2025-02-28 dc9713efd8bf, 2026-11-28 28 267 154 5,314,786 366,617 0.967 USD
Kafka (apache/kafka) 45f932819e9c, 2025-02-28 1eee080cdfbe, 2026-11-27 28 234 204 477,035 41,101 1.564 USD
Hadoop (apache/hadoop) e5615d89da64, 2025-02-28 429bf2ee95ad, 2026-11-27 27 223 220 372,630 33,387 1.338 USD

docs/results.md says which models wrote each analysis, what the snapshots are and how the cost is counted.

Bonus comparison

For a snapshot pair that spans the cutoff, the bonus page compares change activity before and after the date. It also compares later changes with a visible AI marker and without a visible marker. The marker can be an explicit tool credit or a recognised AI bot account in a commit or pull request. A change without a visible marker may still involve an AI tool.

Before and after March 2025 on Artemis: changes per month, files per change, changes across modules and changes with a visible AI marker

These measures describe observed differences. They establish no cause. docs/bonus.md defines the groups and the comparison of thinly reviewed changes.

Add a repository

Write config/repos/<name>.yaml; config/repos/hadoop.yaml is the shortest example and docs/repositories.md lists the fields. Then clone it to $CHECKY_REPOS/<name>, run checky fetch <name> and checky run <name>.

Add a source

A new source of events is a file and a feeder (ADR 0242): whatever knows the events writes JSON lines into a file of its own in the cache folder of the repository ($CHECKY_DATA/github-cache/<repo>/, whole file, then rename), and one feeder reads that file. checky watch runs the feeder in the next round after the file changed. docs/thinkers.md has the steps.

Add a thinker

One module in src/checky/thinkers/ with one Thinker subclass, and one test module. The runner finds it. docs/thinkers.md is the contract: manifest, frames, run context, the rules of the write gate, models.

Layout

Path Content
src/checky/board, runner The board (notes, relations, runs, write gate), the thinker contract and the run loop
src/checky/kinds, thinkers One schema per note kind, one module per feeder or thinker
src/checky/llm The one door to the models: off, fake, live, budget and usage log
src/checky/commands The commands with a module of their own: fetch, watch, ask, chat, explain, review, rebuild, doctor, usage and the demo
src/checky/export.py, views.py, retrieve.py The export, view specs and queries, finding notes for a question
config repos/ (one file per repository), ranking.yaml, personas.yaml, models.yaml
dashboard, results The Next.js dashboard, and the export per repository that it reads
docs thinkers.md, views.md, models.md, decisions.md, watch.md, results.md, bonus.md, repositories.md, and one record per decision in adr/
tests Tests, and the example repository in fixtures/build_fixture.py

About

Implementation for the Hackatum Check24 Challenge

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages