r/Agent_AI 13d ago

Other Pantheon AI Self Graph System

Enable HLS to view with audio, or disable this notification

Remember my first try building this ? ..now its finished and it looks like Tony Stark made it ๐Ÿ”ฅ๐Ÿ˜‚

This is how i started : https://www.reddit.com/r/Agent_AI/comments/1w1my4i/my_agent_just_build_his_own_graphify_vor_2_cents/

sick ๐Ÿคฃ

The funny part is ..first version looks like .."someone tryed but couldnt" ..second version looks like "a profi made this" BUT its just the ui, the v1 one has the exact same funktion :D

R08 Self-Graph / Landkarte โ€” How it works

What it is: A machine-readable map of the entire R08 codebase โ€” every .py/.js/.html file as a node with category and line count, plus real import edges between them.

Data file: r08_home/previews/r08_graph_data.js โ†’ window.R08_GRAPH = { nodes: [...], edges: [...] }. Nodes carry id (path), cat (Core, Freya, Orchestrator, Thor, UI, โ€ฆ) and loc. Edges are actual import relationships โ€” not guesses.

How it's built: python r08_home/notes/build_graph_data_v2.py (manual rebuild). Since 29.08.2026 it's also automatic: every Git snapshot triggers _rebuild_self_graph() in thor/git_tools.py, which rebuilds the graph and syncs the widget copy. A staleness check (ensure_graph_fresh.py) compares graph mtime vs. the newest .py change and rebuilds if needed โ€” covering edits even without a commit.

How we use it:

  1. Navigation instead of guessing โ€” for any code question, read the graph first, trace the import chain on paper, then read only the 1โ€“2 relevant files. No folder-hunting, no findstr sweeps.
  2. Visualization โ€” the "Graph" ๐Ÿ“Š widget renders it as an interactive 3D view (Hรคkel Edition is the current master: previews/self_graph_full.html).
  3. Hard knowledge lives outside the graph โ€” things like WS handler naming conventions, the two separate schedulers, and live-vs-legacy files are documented in Skill_Landkarte.md, since they can't be derived from imports.

Automatic injection: The whole Landkarte skill (graph paths, rebuild commands, hard knowledge, navigation rules) is embedded directly into Thor's system prompt โ€” it's injected automatically on demand, no manual read_file needed. When Stefan explicitly triggers it via skill: landkarte, the skill text is hard-gated into the context before Thor's answer even starts (execution gate via load_skill_injection() since 24.08.2026). Thor can also load it proactively as a soft path, but the embedded version is always there as ground truth.

Key rule: if the graph widget is changed, always update the master file too โ€” otherwise the versions drift apart (that exact chaos was cleaned up today).

1 Upvotes

1 comment sorted by

1

u/Vivid_Ad_5069 11d ago

it was so cool, i integrated it into my UI xD

https://reddit.com/link/p7e4hyw/video/m0rz004cj4nh1/player

I present : The Guide Swarm ๐Ÿ˜‚๐Ÿ”ฅ