cd /news/developer-tools/show-hn-topos-structural-code-qualit… · home topics developer-tools article
[ARTICLE · art-39916] src=krv.ai ↗ pub= topic=developer-tools verified=true sentiment=· neutral

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

Topos, an open-source tool from Krv-Labs, evaluates code quality by mapping programs to structural graphs and calculating metrics for simplicity, composability, and security. It aims to address the bottleneck of human code review for agent-written programs by providing automated structural analysis. The tool is available as a CLI, MCP Server, and VS Code Extension under a BSD-3 license.

read1 min views1 publishedJun 25, 2026

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 generated 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.

Comments URL: [https://news.ycombinator.com/item?id=48678841](https://news.ycombinator.com/item?id=48678841)

Points: 1

── more in #developer-tools 4 stories · sorted by recency
── more on @krv-labs 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-topos-struct…] indexed:0 read:1min 2026-06-25 ·