<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy" -->

---
title: Introducing rgctl: A Code Knowledge Graph for...
description: rgctl is an open-source Rust tool (MIT license) that indexes a codebase once into a persistent, mmap-backed knowledge graph with pre-computed reachability...
canonical: https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing rgctl: A Code Knowledge Graph for Engineering Teams and Agents | daily.dev
og:description: rgctl is an open-source Rust tool (MIT license) that indexes a codebase once into a persistent, mmap-backed knowledge graph with pre-computed reachability...
og:url: https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy
og:image: https://api.daily.dev/og/posts/QMZmRIiMy.png
og:image:alt: Introducing rgctl: A Code Knowledge Graph for Engineering Teams and Agents
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing rgctl: A Code Knowledge Graph for Engineering Teams and Agents

**[Shaaf](https://daily.dev/sources/shaaf)** · 17 min read · 16 upvotes · 18 comments

## Summary

rgctl is an open-source Rust tool (MIT license) that indexes a codebase once into a persistent, mmap-backed knowledge graph with pre-computed reachability bitsets, then answers structural queries like blast radius, program slicing, taint analysis, and community detection in sub-millisecond time. It exposes a Cypher-like Graph Query Language, CI policy checks, semantic search, and migration planning (including Konveyor/Kantra rule integration for Java EE to Quarkus moves). It's built specifically for LLM coding agents: JSON output, deterministic results, and an installable Claude Code/Cursor skill that lets agents query architecture facts instead of re-reading files every session. Supports ten Tier 1 languages including Rust, Python, Java, Go, TypeScript, and PHP. An end-to-end orchestrator called MigIQ builds on top of it for automated migrations.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shaaf.dev/post/2026-09-07-introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents>

## Questions this post answers

### What is rgctl and how does it help with blast radius analysis in large codebases?

Rgctl is a Rust command-line tool that indexes a repository once into a knowledge graph with pre-computed reachability bitsets, then answers blast-radius, slicing, and taint queries in sub-millisecond time regardless of graph size. It supports ten Tier 1 languages including Rust, Python, Java, Go, TypeScript, and PHP, exposes a Cypher-like query language, and produces versioned JSON output built specifically for LLM coding agents like Claude Code and Cursor.

_Anyone evaluating tools for agent-friendly codebase analysis can track rgctl developments on daily.dev._

### How does rgctl let coding agents retain context about a codebase across sessions?

Rgctl persists its graph on disk so agents query pre-computed structural facts instead of re-reading files each session, avoiding the token cost of re-discovering module boundaries and coupling. Running rgctl install --skill generates Claude Code and Cursor skill files that route natural-language questions to the correct rgctl commands, turning the tool into a persistent architectural memory layer for agents.

_Developers building durable agent workflows can follow this kind of tooling on daily.dev._

### What algorithms does rgctl use for community detection and centrality analysis on call graphs?

Rgctl runs label-propagation community detection based on Raghavan et al. (2007), scored with Newman modularity, to find tightly coupled subsystems useful for monolith decomposition. For centrality it implements PageRank (Page and Brin, 1998), exact and sampled Brandes betweenness centrality, and HyperBall-based harmonic centrality, feeding results into its migration-planning priority scoring.

_Teams weighing structural approaches to monolith decomposition can keep tabs on tools like this through daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@nerdalytics** · 4 upvotes

> Amazing. It's just missing a temporal component to answer questions about changes over time.

**@agustinbarrientos** · 1 upvotes

> Does `rgctl` show which commit it indexed? I'd probably forget to check whether the graph was stale.

**@project\_2o51** · 0 upvotes

> I went through the docs after reading this, and honestly, it feels like another flop. 😅
>
> The only part I genuinely liked was the optimization section
> that’s where they actually make a solid argument.
>
> But let’s be real: in the current ecosystem, having one advantage isn’t enough to change a developer’s perspective.
>
> Tailwind is massive. Most developers are already using it
> literally 3 out of every 2 developers. 😂 Yes, the math is intentional.
>
> The entire React and Next.js ecosystem has pretty much embraced Tailwind, and there’s a simple reason for that:
>
> - **shadcn/ui** gives you ready to...

## Similar posts on daily.dev

- [Blast Radius for Agent-Assisted Development on Kubernetes](https://daily.dev/posts/blast-radius-for-agent-assisted-development-on-kubernetes-nqdxapnpr) · Shaaf · 0 upvotes · 0 comments
- [Enforcing Architecture with rgctl Policy Checks](https://daily.dev/posts/enforcing-architecture-with-rgctl-policy-checks-llnmxvgdk) · Shaaf · 2 upvotes · 2 comments
- [GitHub - regent-vcs/re\_gent: Git for AI coding agents.](https://daily.dev/posts/github---regent-vcs-re-gent-git-for-ai-coding-agents--c99loxudt) · Hacker News · 2 upvotes · 0 comments
- [okf-rs: A New Rust Tool for Turning Codebases into AI-Readable Knowledge Bases](https://daily.dev/posts/okf-rs-a-new-rust-tool-for-turning-codebases-into-ai-readable-knowledge-bases-hfzjhvvd6) · Medium · 6 upvotes · 0 comments
- [Show HN: Graphicle, a Rust port of Graphify with memory for coding agents](https://daily.dev/posts/show-hn-graphicle-a-rust-port-of-graphify-with-memory-for-coding-agents-nktptrlwo) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing rgctl: A Code Knowledge Graph for Engineering Teams and Agents","url":"https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy"},"datePublished":"2026-09-07T15:56:23.395Z","dateModified":"2026-09-14T08:40:08.148Z","description":"rgctl is an open-source Rust tool (MIT license) that indexes a codebase once into a persistent, mmap-backed knowledge graph with pre-computed reachability...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/19f8312e245bfb814411a7be5299969e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/19f8312e245bfb814411a7be5299969e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shaaf","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shaaf","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0b296c189bd840d99decdb5078460675","url":"https://daily.dev/sources/shaaf"},"commentCount":18,"discussionUrl":"https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":16},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":18}],"keywords":"ai-agents,rust","timeRequired":"PT17M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shaaf","item":"https://daily.dev/sources/shaaf"},{"@type":"ListItem","position":3,"name":"Introducing rgctl: A Code Knowledge Graph for Engineering Teams and Agents"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy","comment":[{"@type":"Comment","text":"Amazing. It’s just missing a temporal component to answer questions about changes over time.","datePublished":"2026-09-08T04:47:28.471Z","url":"https://daily.dev/posts/QMZmRIiMy#c-qu1B7WCMG","author":{"@type":"Person","name":"nerdalytics","url":"https://daily.dev/nerdalytics","image":"https://avatars.githubusercontent.com/u/97166791?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"Does rgctl show which commit it indexed? I’d probably forget to check whether the graph was stale.","datePublished":"2026-09-15T11:46:20.661Z","url":"https://daily.dev/posts/QMZmRIiMy#c-OErMhrMrL","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"I went through the docs after reading this, and honestly, it feels like another flop. 😅\nThe only part I genuinely liked was the optimization section\nthat’s where they actually make a solid argument.\nBut let’s be real: in the current ecosystem, having one advantage isn’t enough to change a developer’s perspective.\nTailwind is massive. Most developers are already using it\nliterally 3 out of every 2 developers. 😂 Yes, the math is intentional.\nThe entire React and Next.js ecosystem has pretty much embraced Tailwind, and there’s a simple reason for that:\n\nshadcn/ui gives you ready to use, composable components.\nThere are tons of component libraries available, which saves developers a huge amount of time.\nv0.dev generates UI components using shadcn/ui by default.\n\nAt this point, Tailwind isn’t just a CSS framework\nit’s part of the modern frontend ecosystem.\nSo honestly, I don’t think it’s worth spending the time switching to a completely different CSS approach. The ecosystem, tooling, libraries, and community have already made their choice.","datePublished":"2026-09-16T17:25:54.523Z","url":"https://daily.dev/posts/QMZmRIiMy#c-XPbZANYYL","author":{"@type":"Person","name":"puppet master","url":"https://daily.dev/project_2o51","image":"https://media.daily.dev/image/upload/s--FC-RbP-U--/f_auto/v1789578963/avatars/avatar_PkP1a7DClSnrvbTazHg3C?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-rgctl-a-code-knowledge-graph-for-engineering-teams-and-agents-qmzmriimy#faq","mainEntity":[{"@type":"Question","name":"What is rgctl and how does it help with blast radius analysis in large codebases?","acceptedAnswer":{"@type":"Answer","text":"Rgctl is a Rust command-line tool that indexes a repository once into a knowledge graph with pre-computed reachability bitsets, then answers blast-radius, slicing, and taint queries in sub-millisecond time regardless of graph size. It supports ten Tier 1 languages including Rust, Python, Java, Go, TypeScript, and PHP, exposes a Cypher-like query language, and produces versioned JSON output built specifically for LLM coding agents like Claude Code and Cursor. Anyone evaluating tools for agent-friendly codebase analysis can track rgctl developments on daily.dev."}},{"@type":"Question","name":"How does rgctl let coding agents retain context about a codebase across sessions?","acceptedAnswer":{"@type":"Answer","text":"Rgctl persists its graph on disk so agents query pre-computed structural facts instead of re-reading files each session, avoiding the token cost of re-discovering module boundaries and coupling. Running rgctl install --skill generates Claude Code and Cursor skill files that route natural-language questions to the correct rgctl commands, turning the tool into a persistent architectural memory layer for agents. Developers building durable agent workflows can follow this kind of tooling on daily.dev."}},{"@type":"Question","name":"What algorithms does rgctl use for community detection and centrality analysis on call graphs?","acceptedAnswer":{"@type":"Answer","text":"Rgctl runs label-propagation community detection based on Raghavan et al. (2007), scored with Newman modularity, to find tightly coupled subsystems useful for monolith decomposition. For centrality it implements PageRank (Page and Brin, 1998), exact and sampled Brandes betweenness centrality, and HyperBall-based harmonic centrality, feeding results into its migration-planning priority scoring. Teams weighing structural approaches to monolith decomposition can keep tabs on tools like this through daily.dev."}}]}
```

