Capabilities
Deterministic software-engineering capabilities over the Ontoly Software Graph.
Capabilities
Capabilities are deterministic operations over a SoftwareGraph.
The @0xsarwagya/ontoly-capabilities package owns high-level software
engineering answers such as impact analysis, request tracing, ownership,
repository health, risk analysis, and implementation planning. The CLI and MCP
server call this package. They do not reimplement capability logic.
Capabilities do not parse source code, mutate the graph, inspect parser ASTs, or perform AI reasoning. They compose the Query Engine, graph indexes, graph relationships, diagnostics, and provenance into a shared result schema.
Shared Result Schema
Every high-level capability returns:
summaryevidenceaffectedNodesaffectedFilesaffectedPackagesstatisticsconfidencediagnosticsrecommendationsgraph
This shape is used by:
ontoly explainontoly impactontoly evidenceontoly implementation-planontoly ownershipontoly healthontoly repository-summaryontoly riskontoly request-trace- Ontoly MCP semantic capabilities
- Agent Skills that consume MCP
If an LLM turns a capability result into a user-facing answer, it must do so through LLM Enhancement. Capabilities remain deterministic and AI-free; LLM Enhancement governs evidence, confidence, and fallback behavior around them.
High-Level Capabilities
RepositorySummaryArchitectureSummaryImpactAnalysisImplementationPlanRequestTraceDependencyAnalysisOwnershipAnalysisAuthenticationFlowAuthorizationFlowConfigurationUsageEnvironmentUsageCallHierarchyDependencyHierarchyProviderGraphModuleOverviewServiceOverviewPackageOverviewRepositoryHealthDeadCodeCircularDependenciesEntryPointsFrameworkSummaryRiskAnalysisDataFlowFeatureTouchpointsEvidencePack
Evidence Packs
EvidencePack is the preferred compact payload for agent workflows. It gathers
the smallest useful set of graph facts for a query:
- top graph nodes
- top relationships
- relevant files
- stable ids
- diagnostics
- graph provenance
- deterministic confidence
- suggested next commands
It is exposed as a high-level capability, an MCP semantic capability, and the
evidence-pack enhancer artifact. It is not a separate router package.
Evidence routing remains a deterministic transformation above the immutable
Software Graph.
MCP Primitive Capabilities
The MCP server also exposes lower-level primitives for agent workflows:
FindFunctionFindNodeFindDependenciesFindDependentsTraceExecutionInspectFileInspectModuleInspectClassInspectFunctionFindCyclesFindDeadCodeFindEntrypointsFindConfigurationFindResponsibleFunctionExplainArchitectureTraceRequestLifecycleFindFeatureOwnerFindAuthenticationFlowFindDatabaseAccessFindConfigurationUsageFindUnusedFeatureGraphStatistics
Primitive capabilities remain available for Skills that need exact graph facts. High-level capabilities are preferred when the user asks a software-engineering question.