gctrl

v1.2.0
io.github.GCTRL-TECH/gctrl Checked 1 day ago Published 3 months ago

Governed graph-native agent memory: knowledge extraction, fusion, hybrid RAG, scoped access tokens.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gctrl_extract

Extract structured knowledge (entities, relations) from text. Creates a knowledge graph in Neo4j and vector embeddings in Qdrant. Use this to ingest new information into Ground Control. Specify a compilationId to add the results to a specific knowledge graph (e.g. an agent's dedicated graph).

ParameterTypeDescription
text *stringThe text content to extract knowledge from
compilationIdstringOptional: target knowledge graph compilation ID. The extracted job will be auto-linked to this compilation. Use gctrl_list_graphs to find IDs.
discoveryModestringstrict = only ontology types, discover = find all types and extend ontology
ontologyIdstringOptional ontology ID to guide entity type extraction

borghive_extract

[DEPRECATED — use 'gctrl_extract' instead, alias will be removed in v2] Extract structured knowledge (entities, relations) from text. Creates a knowledge graph in Neo4j and vector embeddings in Qdrant. Use this to ingest new information into Ground Control. Specify a compilationId to add the results to a specific knowledge graph (e.g. an agent's dedicated graph).

ParameterTypeDescription
text *stringThe text content to extract knowledge from
compilationIdstringOptional: target knowledge graph compilation ID. The extracted job will be auto-linked to this compilation. Use gctrl_list_graphs to find IDs.
discoveryModestringstrict = only ontology types, discover = find all types and extend ontology
ontologyIdstringOptional ontology ID to guide entity type extraction

gctrl_query

Ask a natural-language question — GCTRL blends ALL memory layers automatically (HOT dossiers > graph facts > warm chunks) and returns a grounded answer with sources + confidence. Prefer this for open questions; then persist any new conclusion with gctrl_store.

ParameterTypeDescription
question *stringNatural language question about the knowledge graph
compilationIdstringOptional: query a specific knowledge graph compilation. Omit to search all graphs.

borghive_query

[DEPRECATED — use 'gctrl_query' instead, alias will be removed in v2] Ask a natural-language question — GCTRL blends ALL memory layers automatically (HOT dossiers > graph facts > warm chunks) and returns a grounded answer with sources + confidence. Prefer this for open questions; then persist any new conclusion with gctrl_store.

ParameterTypeDescription
question *stringNatural language question about the knowledge graph
compilationIdstringOptional: query a specific knowledge graph compilation. Omit to search all graphs.

gctrl_search_entities

Search for specific entities in the knowledge graph by name or type. Returns matching entities with their properties and relationships.

ParameterTypeDescription
query *stringSearch term (entity name or partial match)
entityTypestringFilter by entity type label (e.g. "company", "person", "technology")
limitnumberMaximum results to return

borghive_search_entities

[DEPRECATED — use 'gctrl_search_entities' instead, alias will be removed in v2] Search for specific entities in the knowledge graph by name or type. Returns matching entities with their properties and relationships.

ParameterTypeDescription
query *stringSearch term (entity name or partial match)
entityTypestringFilter by entity type label (e.g. "company", "person", "technology")
limitnumberMaximum results to return

gctrl_get_dossier

Read the AUTHORITATIVE entity dossier (the HOT memory tier) for a named entity: a compiled summary, key facts (with confidence), origin files and a timeline. This is the highest-trust source — when a dossier exists it directly answers "who/what is X" and "where does X come from", with no hedging. Built on-the-fly if missing.

ParameterTypeDescription
name *stringThe entity name to fetch the dossier for (e.g. "Fabio", "Ground Control")

borghive_get_dossier

[DEPRECATED — use 'gctrl_get_dossier' instead, alias will be removed in v2] Read the AUTHORITATIVE entity dossier (the HOT memory tier) for a named entity: a compiled summary, key facts (with confidence), origin files and a timeline. This is the highest-trust source — when a dossier exists it directly answers "who/what is X" and "where does X come from", with no hedging. Built on-the-fly if missing.

ParameterTypeDescription
name *stringThe entity name to fetch the dossier for (e.g. "Fabio", "Ground Control")

gctrl_list_graphs

List all knowledge graph compilations available in Ground Control. Shows name, entity count, relation count, and classification level.

borghive_list_graphs

[DEPRECATED — use 'gctrl_list_graphs' instead, alias will be removed in v2] List all knowledge graph compilations available in Ground Control. Shows name, entity count, relation count, and classification level.

gctrl_fuse

Merge multiple extraction jobs into a unified knowledge graph. Uses entity matching to find duplicates across sources and creates a consolidated graph.

ParameterTypeDescription
name *stringName for the new fused knowledge graph
sourceJobIds *arrayArray of KEX job IDs to merge
descriptionstringOptional description

borghive_fuse

[DEPRECATED — use 'gctrl_fuse' instead, alias will be removed in v2] Merge multiple extraction jobs into a unified knowledge graph. Uses entity matching to find duplicates across sources and creates a consolidated graph.

ParameterTypeDescription
name *stringName for the new fused knowledge graph
sourceJobIds *arrayArray of KEX job IDs to merge
descriptionstringOptional description

gctrl_distill

Distill a WIKI compilation into human-readable wiki pages — one markdown page per important entity, grounded on the source RAW graph and its text chunks, with [[wikilinks]] between related entities and a Sources section. Returns how many pages were written.

ParameterTypeDescription
compilationId *stringThe WIKI compilation ID to distill into wiki pages. Must be a compilation of type WIKI (created with a wikiSourceCompilationId).
limitnumberMax number of entity pages to generate (default 15). Higher = slower (one LLM call per entity).

borghive_distill

[DEPRECATED — use 'gctrl_distill' instead, alias will be removed in v2] Distill a WIKI compilation into human-readable wiki pages — one markdown page per important entity, grounded on the source RAW graph and its text chunks, with [[wikilinks]] between related entities and a Sources section. Returns how many pages were written.

ParameterTypeDescription
compilationId *stringThe WIKI compilation ID to distill into wiki pages. Must be a compilation of type WIKI (created with a wikiSourceCompilationId).
limitnumberMax number of entity pages to generate (default 15). Higher = slower (one LLM call per entity).

gctrl_wiki_page

Read distilled wiki pages from a WIKI compilation. Pass a slug to fetch one full page (markdown body + citations); omit the slug to list all pages (optionally filtered by query).

ParameterTypeDescription
compilationId *stringThe WIKI compilation ID.
querystringOptional: when no slug is given, filter the listed pages whose title contains this text.
slugstringSlug of a specific page to fetch (e.g. "fabio-chiaramonte"). Omit to list all pages.

borghive_wiki_page

[DEPRECATED — use 'gctrl_wiki_page' instead, alias will be removed in v2] Read distilled wiki pages from a WIKI compilation. Pass a slug to fetch one full page (markdown body + citations); omit the slug to list all pages (optionally filtered by query).

ParameterTypeDescription
compilationId *stringThe WIKI compilation ID.
querystringOptional: when no slug is given, filter the listed pages whose title contains this text.
slugstringSlug of a specific page to fetch (e.g. "fabio-chiaramonte"). Omit to list all pages.

gctrl_search_chunks

Retrieve source text passages (warm vector + keyword) for a question — the raw evidence layer. Limit is fixed at 5 passages. Use this to back up an answer with citations; prefer gctrl_query for a composed blended answer.

ParameterTypeDescription
query *stringThe question or topic to retrieve source text passages for
compilationIdstringOptional: scope to a specific knowledge graph compilation

borghive_search_chunks

[DEPRECATED — use 'gctrl_search_chunks' instead, alias will be removed in v2] Retrieve source text passages (warm vector + keyword) for a question — the raw evidence layer. Limit is fixed at 5 passages. Use this to back up an answer with citations; prefer gctrl_query for a composed blended answer.

ParameterTypeDescription
query *stringThe question or topic to retrieve source text passages for
compilationIdstringOptional: scope to a specific knowledge graph compilation

gctrl_get_entity

Read one entity: its type, connections (up to 20 relation strings), and full provenance — origin file, sourceRef, extraction job + timestamp. Use this to answer "where does X come from / which file / what is the source of X". Prefer gctrl_get_dossier for a compiled authoritative summary.

ParameterTypeDescription
name *stringEntity name to look up (exact or close match)

borghive_get_entity

[DEPRECATED — use 'gctrl_get_entity' instead, alias will be removed in v2] Read one entity: its type, connections (up to 20 relation strings), and full provenance — origin file, sourceRef, extraction job + timestamp. Use this to answer "where does X come from / which file / what is the source of X". Prefer gctrl_get_dossier for a compiled authoritative summary.

ParameterTypeDescription
name *stringEntity name to look up (exact or close match)

gctrl_get_neighbors

List entities within N hops of a node — dependency tracing across the knowledge graph (great for code graphs: "what does X touch?"). Clearance-filtered: only nodes you are cleared for are returned.

ParameterTypeDescription
name *stringEntity name to expand from
depthnumberHops to expand (1-3, default 1)

borghive_get_neighbors

[DEPRECATED — use 'gctrl_get_neighbors' instead, alias will be removed in v2] List entities within N hops of a node — dependency tracing across the knowledge graph (great for code graphs: "what does X touch?"). Clearance-filtered: only nodes you are cleared for are returned.

ParameterTypeDescription
name *stringEntity name to expand from
depthnumberHops to expand (1-3, default 1)

gctrl_shortest_path

Find the shortest path between two entities (how is A connected to B / does X depend on Y). Clearance-aware: a path is only returned if every node on it is one you are cleared to see.

ParameterTypeDescription
from *stringStart entity name
to *stringEnd entity name

borghive_shortest_path

[DEPRECATED — use 'gctrl_shortest_path' instead, alias will be removed in v2] Find the shortest path between two entities (how is A connected to B / does X depend on Y). Clearance-aware: a path is only returned if every node on it is one you are cleared to see.

ParameterTypeDescription
from *stringStart entity name
to *stringEnd entity name

gctrl_list_conflicts

List open classification conflicts — entities whose sources disagree on sensitivity (≥2 distinct clearance ranks). Useful for governance / compliance review.

borghive_list_conflicts

[DEPRECATED — use 'gctrl_list_conflicts' instead, alias will be removed in v2] List open classification conflicts — entities whose sources disagree on sensitivity (≥2 distinct clearance ranks). Useful for governance / compliance review.

gctrl_detect_communities

Run community detection + centrality on a graph: clusters related entities (Louvain), flags the most-central "god nodes", and tags every node with its community/centrality. Returns the cluster summary. Owner action; respects KB-scoped tokens.

ParameterTypeDescription
compilationId *stringThe compilation (graph) ID to analyse

borghive_detect_communities

[DEPRECATED — use 'gctrl_detect_communities' instead, alias will be removed in v2] Run community detection + centrality on a graph: clusters related entities (Louvain), flags the most-central "god nodes", and tags every node with its community/centrality. Returns the cluster summary. Owner action; respects KB-scoped tokens.

ParameterTypeDescription
compilationId *stringThe compilation (graph) ID to analyse

gctrl_wiki_graph

Get a WIKI compilation as a navigable graph: pages are nodes, [[wikilinks]] are edges. Clearance-filtered (pages above your clearance, and their links, are hidden). Useful for canvas/visual clients.

ParameterTypeDescription
compilationId *stringThe WIKI compilation ID

borghive_wiki_graph

[DEPRECATED — use 'gctrl_wiki_graph' instead, alias will be removed in v2] Get a WIKI compilation as a navigable graph: pages are nodes, [[wikilinks]] are edges. Clearance-filtered (pages above your clearance, and their links, are hidden). Useful for canvas/visual clients.

ParameterTypeDescription
compilationId *stringThe WIKI compilation ID

gctrl_ingest_repo

LEGACY (Python-only, structure only). Prefer gctrl_code_index for a real Codebase KB. Ingest a (Python) code repository into the knowledge graph: parses files into File/Class/Function/Module entities + CONTAINS/IMPORTS/CALLS/INHERITS edges (fully local, no LLM). Classification flows in like any other knowledge. Pass files as [{path, content}].

ParameterTypeDescription
files *arrayRepo files as {path, content} (Python .py files are parsed; others skipped)
classificationLevelIdstringOptional classification level UUID for the ingested code
repoNamestringOptional repo name (provenance origin)

borghive_ingest_repo

[DEPRECATED — use 'gctrl_ingest_repo' instead, alias will be removed in v2] LEGACY (Python-only, structure only). Prefer gctrl_code_index for a real Codebase KB. Ingest a (Python) code repository into the knowledge graph: parses files into File/Class/Function/Module entities + CONTAINS/IMPORTS/CALLS/INHERITS edges (fully local, no LLM). Classification flows in like any other knowledge. Pass files as [{path, content}].

ParameterTypeDescription
files *arrayRepo files as {path, content} (Python .py files are parsed; others skipped)
classificationLevelIdstringOptional classification level UUID for the ingested code
repoNamestringOptional repo name (provenance origin)

gctrl_pin_dossier

Pin (or unpin) an entity dossier so it stays in HOT memory and is always injected into answers. Owner-level memory curation — denied for KB-scoped tokens.

ParameterTypeDescription
name *stringEntity name to pin/unpin
pinnedbooleantrue=pin, false=unpin, omit=toggle

borghive_pin_dossier

[DEPRECATED — use 'gctrl_pin_dossier' instead, alias will be removed in v2] Pin (or unpin) an entity dossier so it stays in HOT memory and is always injected into answers. Owner-level memory curation — denied for KB-scoped tokens.

ParameterTypeDescription
name *stringEntity name to pin/unpin
pinnedbooleantrue=pin, false=unpin, omit=toggle

gctrl_memory_feedback

Reinforce or distrust a memory: vote 'up' raises an entity dossier's trust; 'down' sets it to 0 and, if you pass a fact triple (compilationId+head+relType+tail), deletes that wrong edge and remembers the correction so it never returns. Owner-level.

ParameterTypeDescription
entity *stringEntity whose dossier the feedback targets
vote *string'up' to confirm/reinforce, 'down' to distrust
compilationIdstringFor a targeted 👎 fact correction
headstring
relTypestring
tailstring

borghive_memory_feedback

[DEPRECATED — use 'gctrl_memory_feedback' instead, alias will be removed in v2] Reinforce or distrust a memory: vote 'up' raises an entity dossier's trust; 'down' sets it to 0 and, if you pass a fact triple (compilationId+head+relType+tail), deletes that wrong edge and remembers the correction so it never returns. Owner-level.

ParameterTypeDescription
entity *stringEntity whose dossier the feedback targets
vote *string'up' to confirm/reinforce, 'down' to distrust
compilationIdstringFor a targeted 👎 fact correction
headstring
relTypestring
tailstring

gctrl_memory_health

Read the memory snapshot: coverage, store sizes (entities/edges/chunks/dossiers/wiki), heat + trust distribution, and the last maintenance cycle. Owner-level.

borghive_memory_health

[DEPRECATED — use 'gctrl_memory_health' instead, alias will be removed in v2] Read the memory snapshot: coverage, store sizes (entities/edges/chunks/dossiers/wiki), heat + trust distribution, and the last maintenance cycle. Owner-level.

gctrl_run_maintenance

Run one memory governance cycle now (decay → dedup → promote hot → evict stale). Owner-level.

borghive_run_maintenance

[DEPRECATED — use 'gctrl_run_maintenance' instead, alias will be removed in v2] Run one memory governance cycle now (decay → dedup → promote hot → evict stale). Owner-level.

gctrl_get_user_profile

Read the owner personalization profile (opt-in facts + summary) so you can tailor answers to who is asking. Owner-level.

borghive_get_user_profile

[DEPRECATED — use 'gctrl_get_user_profile' instead, alias will be removed in v2] Read the owner personalization profile (opt-in facts + summary) so you can tailor answers to who is asking. Owner-level.

gctrl_list_ontologies

List all ontologies available in Ground Control. Ontologies define entity types and matching rules for knowledge extraction.

borghive_list_ontologies

[DEPRECATED — use 'gctrl_list_ontologies' instead, alias will be removed in v2] List all ontologies available in Ground Control. Ontologies define entity types and matching rules for knowledge extraction.

gctrl_list_extractions

List recent knowledge extraction jobs with their status, entity counts, and source info.

ParameterTypeDescription
limitnumberMaximum jobs to return

borghive_list_extractions

[DEPRECATED — use 'gctrl_list_extractions' instead, alias will be removed in v2] List recent knowledge extraction jobs with their status, entity counts, and source info.

ParameterTypeDescription
limitnumberMaximum jobs to return

gctrl_store

WRITE your conclusions back into GCTRL — call this after ANY substantive task so your memory compounds across sessions (this is the point of GCTRL). Extracts entities + builds graph from the text, like saving notes but structured. IMPORTANT: always pass a compilationId for your assigned knowledge base (find it via gctrl_list_graphs) so nothing is orphaned.

ParameterTypeDescription
text *stringText content to store as knowledge
compilationIdstringTarget knowledge graph compilation ID. RECOMMENDED: always specify this to store into the correct agent graph. Use gctrl_list_graphs to find IDs.
ontologyIdstringOptional ontology to guide extraction
titlestringOptional title/label for this knowledge

borghive_store

[DEPRECATED — use 'gctrl_store' instead, alias will be removed in v2] WRITE your conclusions back into GCTRL — call this after ANY substantive task so your memory compounds across sessions (this is the point of GCTRL). Extracts entities + builds graph from the text, like saving notes but structured. IMPORTANT: always pass a compilationId for your assigned knowledge base (find it via gctrl_list_graphs) so nothing is orphaned.

ParameterTypeDescription
text *stringText content to store as knowledge
compilationIdstringTarget knowledge graph compilation ID. RECOMMENDED: always specify this to store into the correct agent graph. Use gctrl_list_graphs to find IDs.
ontologyIdstringOptional ontology to guide extraction
titlestringOptional title/label for this knowledge

gctrl_schema

Get the schema of the knowledge graph — available entity types, relationship types, and property keys. Useful for understanding what data is stored.

borghive_schema

[DEPRECATED — use 'gctrl_schema' instead, alias will be removed in v2] Get the schema of the knowledge graph — available entity types, relationship types, and property keys. Useful for understanding what data is stored.

gctrl_find_file

Find files by name/path across connected sources (Google Drive, SharePoint) — including UNSUPPORTED files like CAD drawings (.dwg/.step), images and archives indexed as metadata. Fuzzy-ranked. Each hit includes path, size, modified/last-seen times, source, and up to 3 related parsed sibling documents from the same folder, so you can answer "where is file X, when was it seen last, and what project is it related to".

ParameterTypeDescription
query *stringFile name or path fragment to search for (fuzzy), e.g. "rim cad" or "felge.dwg"
limitnumberMaximum hits to return (default 5, max 25)

gctrl_get_sync_status

Summarize connector sync health: per connector (Google Drive / SharePoint) the last sync time and live job counts by status, plus the last 5 failed source files with their errors. Use to answer "is my Drive sync working / what failed last".

gctrl_ingest_file

Ingest a PDF, DOCX, or other binary file into the knowledge graph. Use this whenever the user drops, mentions, or references a file (not raw text) that should become knowledge — reads the file from local disk, uploads it, and starts extraction. For plain text, use gctrl_extract/gctrl_store instead.

ParameterTypeDescription
path *stringAbsolute (or cwd-relative) path to the local file to ingest, e.g. a PDF or DOCX
compilationIdstringOptional: target knowledge graph compilation ID. Omit to fall back to your default knowledge base.
ontologyIdstringOptional ontology ID to guide entity type extraction

gctrl_set_privacy_mode

Raise a knowledge graph's privacy for cloud LLMs during setup: 'cloaked' (pseudonymize entities/PII before a cloud model sees them) or 'local_only' (never send it to a cloud model). Can only INCREASE privacy — loosening it back to 'open' needs the Settings UI. Never call this 'encryption'.

ParameterTypeDescription
compilationId *stringThe knowledge graph to make more private.
mode *string'cloaked' = entities/PII are pseudonymized before any cloud model sees them (recommended when you are a cloud model); 'local_only' = this graph is never sent to a cloud model.

borghive_set_privacy_mode

[DEPRECATED — use 'gctrl_set_privacy_mode' instead, alias will be removed in v2] Raise a knowledge graph's privacy for cloud LLMs during setup: 'cloaked' (pseudonymize entities/PII before a cloud model sees them) or 'local_only' (never send it to a cloud model). Can only INCREASE privacy — loosening it back to 'open' needs the Settings UI. Never call this 'encryption'.

ParameterTypeDescription
compilationId *stringThe knowledge graph to make more private.
mode *string'cloaked' = entities/PII are pseudonymized before any cloud model sees them (recommended when you are a cloud model); 'local_only' = this graph is never sent to a cloud model.

gctrl_code_index

Index a local code repository into a GCTRL Codebase KB (compilation of type CODE): walks the repo (.gitignore-aware), parses Python/TypeScript/JavaScript/Rust with tree-sitter, uploads symbols + CONTAINS/IMPORTS/CALLS/INHERITS edges + one chunk per symbol. Incremental: only files whose content hash changed since the last run are uploaded. Omit compilationId to use the session default (GCTRL_CODE_COMPILATION_ID) or to create a new CODE compilation named after the repo (in GCTRL_CODE_FOLDER when set). Afterwards use gctrl_code_symbol / gctrl_code_trace / gctrl_code_impact / gctrl_code_architectu…

ParameterTypeDescription
repoPath *stringAbsolute path of the repository root on this machine
classificationLevelIdstring
compilationIdstringTarget CODE compilation. Omit to use the session default or create one.
fullbooleanForce re-upload of every file (default: incremental)

gctrl_code_symbol

Codebase KB: find code symbols (functions, classes, methods, files) by name/path substring - file, line range, signature, caller/callee counts. Start here for "where is X defined".

ParameterTypeDescription
query *string
compilationIdstring
limitnumber
offsetnumber
typesarray

gctrl_code_trace

Codebase KB: follow CALLS edges from an exact symbol name. direction callers|callees|both, depth 1-5.

ParameterTypeDescription
symbol *string
compilationIdstring
depthnumber
directionstring

gctrl_code_impact

Codebase KB: what breaks if these files/symbols change - affected callers grouped by file + risk. Use BEFORE refactors.

ParameterTypeDescription
changedFilesarray
changedSymbolsarray
compilationIdstring
depthnumber

gctrl_code_architecture

Codebase KB: one-call repo overview - languages, packages, symbol counts, hotspots, dead-code candidates.

ParameterTypeDescription
compilationId *string