Back to the catalogue

Knowledge Graph

A live knowledge graph of your Astra chats and memory: Obsidian-style 2D, a cosmic 3D force-graph, and a 3D 'Brain of Astra' system view with sectors for commands, tools, plugins, MCP and memories.

Install in Astra

In Astra, open Plugins and search for:

knowledge-graph

Don’t have Astra yet? Get Astra

Details

Updated
2026-09-09
License
MIT
Status
Grandfathered until 2026-12-15 06:00 UTC

Being listed means these bytes were published by the repository shown and passed the registry’s automated checks. It is not a sandbox, not a security review, and not an endorsement.

About

Knowledge Graph — граф знаний Астры

Живой граф в стиле Obsidian по чатам и памяти Астры.

Что делает

  • Вкладка «Граф знаний» в навигации Astra: светящиеся узлы-сущности, связи-пружины, физика, зум/панорама, драг узлов, поиск, легенда.
  • Источники: история чатов (~/.config/astra/chat_history/*.jsonl) — сущности извлекаются из заглавных фраз с нормализацией падежей; память (memory.db) — готовые тройки subject/predicate/object.
  • Живое обновление: события chat_message / memory_changed перестраивают граф с задержкой 6 с; страница подтягивает свежую сборку каждые 15 с.
  • Клик по узлу — панель с выдержками сообщений, где сущность встречается.

Инструменты для Астры

  • rebuild_knowledge_graph — перестроить, вернуть статистику.
  • graph_stats — узлы/связи/сообщения/тройки.
  • find_connections(«А», «Б») — цепочка связей между понятиями (BFS).

Установка

Папка плагина лежит в ~/.config/astra/plugins/knowledge-graph (разработка — в ~/ZCodeProject/astra-knowledge-graph). Нужен режим разработчика (Settings → Privacy → Allow unsigned plugins).

Тесты

python3 -m pytest tests/ -q

v0.2.0 — три 3D-режима и самобутстрап

  • Режимы: 2D (Obsidian), 3D (космический force-graph с частицами), Космос (секторальная система), Мозг (анатомические доли).
  • Системные данные во всех режимах: плагины, инструменты ядра, команды, MCP, модель.
  • Самобутстрап: на машине без astra-plugin-sdk плагин сам создаёт .venv, ставит зависимости и перезапускается — ставится из каталога «как есть».

Releases

0.2.02026-09-09

Protocol 1

Permissions

  • subscribe_events StandardThe author says: “Дополнять граф новыми сообщениями чата и обновлениями памяти.”
Files and provenance
TargetSizeSHA-256
noarchknowledge-graph-0.2.0-noarch.astraplugin373.1 kB33e9bb0b53ec6912427fc66af72d28e7fe559d0e3ca9ada72b366c9c9ba1a207

Provenance

Repository
Belnash3/knowledge-graph
Release repository
Belnash3/knowledge-graph
Tag
v0.2.0
Commit
67ba2bf4fe9896a71244baa719b4d414be277696
Older releases (1)

0.1.02026-09-09

Protocol 1

Permissions

  • subscribe_events StandardThe author says: “Дополнять граф новыми сообщениями чата и обновлениями памяти.”
Files and provenance
TargetSizeSHA-256
noarchknowledge-graph-0.1.0-noarch.astraplugin30.8 kBfd16fd41b474edabc5581a3bf77203ffebc4b08d243636064cb45514a8a13468

Provenance

Repository
Belnash3/knowledge-graph
Release repository
Belnash3/knowledge-graph
Tag
v0.1.0
Commit
839e56875bb4bae9f2c8611f36b17153ba6cdc98
For the publisherThis listing has to be bound to a repositoryBind by 2026-12-15 06:00 UTC · cutover 2026-10-16 06:00 UTCHow

Migration notice, round 2.

The binding deadline is 2026-12-15 06:00 UTC.

Binding needs a Minice account that owns Astra, a binding line committed to the repository, a new tag, and a moderator’s approval of the first binding.

A release that is not held and passes the automated checks is published at once, marked not reviewed by moderators.

From 2026-10-16 06:00 UTC, a held release waits until this listing is bound.

Binding happens in the plugins panel; there is nowhere else to do it. Repository bindings