Frontmatter
| id | 8421 |
| title | Implement Static Class Hierarchy in Knowledge Base |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Jan 8, 2026, 1:09 PM |
| updatedAt | Jan 8, 2026, 1:14 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8421 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 8, 2026, 1:14 PM |
Implement Static Class Hierarchy in Knowledge Base
tobiu assigned to @tobiu on Jan 8, 2026, 1:10 PM

tobiu
Jan 8, 2026, 1:14 PM
Input from Gemini 3 Pro:
✦ I have implemented the Static Class Hierarchy tool.
Changes:
ai/mcp/server/knowledge-base/config.mjs: AddedhierarchyPathto the default configuration.VectorService.mjs: Updatedembed()to save theclassNameToDataMaptodist/ai-class-hierarchy.json.QueryService.mjs: AddedgetClassHierarchy()method to retrieve the hierarchy map.openapi.yaml: Exposedget_class_hierarchyas a new tool.This allows agents to deterministically inspect the inheritance tree without needing to guess or rely on runtime introspection.
tobiu closed this issue on Jan 8, 2026, 1:14 PM
The Knowledge Base currently lacks a structured, deterministic way to discover class relationships (e.g., "What classes extend
Neo.component.Base?"). Whileinspect_classexists in the Neural Link, it only works for loaded runtime classes.Goal: Create a static "Class Hierarchy" map during the Knowledge Base build process and expose it via a tool.
Tasks:
VectorService.mjs:embed(), when building theclassNameToDataMapfor inheritance boosting, save this map (or a simplified tree) todist/ai-class-hierarchy.json.QueryService.mjs:getClassHierarchy({root})method that reads this JSON file.root(or the whole tree).openapi.yaml:get_class_hierarchyas a tool.Value: Allows agents to deterministically discover available components and classes in the codebase without relying on fuzzy vector search.