HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
Krv-Labs
topos
Rust2026–2026
Krv-Labs / topos

topos

Structural code quality metrics for agent-written programs.

2Distinct people
3Mentions
0Explicit recommenders
29GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Structural code quality metrics for agent-written programs.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day3 dated mentions

Observed mentions: 2026-06-25 20:32:23 UTC to 2026-07-07 11:29:06 UTC.

012026-06-25 00:00:00 UTC to 2026-06-26 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsJun 252026-06-26 00:00:00 UTC to 2026-06-27 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-06-27 00:00:00 UTC to 2026-06-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-06-28 00:00:00 UTC to 2026-06-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-06-29 00:00:00 UTC to 2026-06-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-06-30 00:00:00 UTC to 2026-07-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-01 00:00:00 UTC to 2026-07-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJul 12026-07-02 00:00:00 UTC to 2026-07-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-03 00:00:00 UTC to 2026-07-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-04 00:00:00 UTC to 2026-07-05 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-05 00:00:00 UTC to 2026-07-06 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-06 00:00:00 UTC to 2026-07-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-07 00:00:00 UTC to 2026-07-08 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 7

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 252026-06-25 00:00:00 UTC2026-06-26 00:00:00 UTC110
Jun 262026-06-26 00:00:00 UTC2026-06-27 00:00:00 UTC101
Jun 272026-06-27 00:00:00 UTC2026-06-28 00:00:00 UTC000
Jun 282026-06-28 00:00:00 UTC2026-06-29 00:00:00 UTC000
Jun 292026-06-29 00:00:00 UTC2026-06-30 00:00:00 UTC000
Jun 302026-06-30 00:00:00 UTC2026-07-01 00:00:00 UTC000
Jul 12026-07-01 00:00:00 UTC2026-07-02 00:00:00 UTC000
Jul 22026-07-02 00:00:00 UTC2026-07-03 00:00:00 UTC000
Jul 32026-07-03 00:00:00 UTC2026-07-04 00:00:00 UTC000
Jul 42026-07-04 00:00:00 UTC2026-07-05 00:00:00 UTC000
Jul 52026-07-05 00:00:00 UTC2026-07-06 00:00:00 UTC000
Jul 62026-07-06 00:00:00 UTC2026-07-07 00:00:00 UTC000
Jul 72026-07-07 00:00:00 UTC2026-07-08 00:00:00 UTC101

What Hacker News says

3 sources
Refactoring code with Topos cleans up your program structure. Agents optimize for simpler ASTs and lower coupling scores via MCP. We ran a controlled experiment: implement 4 features into two identically-functioning repos -- one that had been refactored using Topos and one that has not been -- using Gemini-CLI w/ gemini-3.1-pro-preview. Findings: - 32.6% fewer tokens to add features to the Topos-optimized repo - 22.9% faster - 24.6% cheaper Measures, concepts, and details of the experiment are provided in the Topos docs. Docs: https://docs.krv.ai/topos/ Github: https://github.com/Krv-Labs/topos
In Module decomposition cut agent token use 32% on follow-up feature additions

Show HN: Topos – Structural code quality metrics for agent-written programs

Code review is the new bottleneck. "Tests passing" is no longer sufficient to trust the changes, and the (human) cost of evaluating the quality and robustness of new agent-written contributions is skyrocketing. We built Topos to evaluate code quality based on the structural properties of the programs themselves. We map your files to graphs (AST, CFG, CPG, MDG) and calculate metrics that can characterize how simple, composable, or secure your programs are. Agents can use this tool as they write and optimize based on your preferences. And yes, the inspiration for the repository is from category theory: this is inspired by a topos for program evaluation, that comes equipped with objects (program representations), morphisms (maps on graphs), probes, profunctors, test-coverage metrics, and a custom subobject classifier (Heyting algebra generat
Read the rest
ed by the 3 pillars of evaluation) that affords a highly structured framework for awarding medals for program quality. GitHub: https://github.com/Krv-Labs/topos Open Source. BSD-3 License. CLI, MCP Server & VS Code Extension.
5 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.