index_project
Run a read-only repository scan to create a resumable ontology indexing plan, classifying existing, ambiguous, and new concepts with review points—before any write.
Instructions
Project ontology indexing plan — run analyze_repo_structure + infer_imports + validate_vault in one read-only call. Use for large or already-existing projects where the agent needs a resumable ontology indexing checkpoint before writing. Its extractionContract treats source facts as observed evidence, README/folder meanings as proposals, and only persisted ontology meanings as shared; it also returns competency questions, uncertainty, approval gates, and whether active-vault validation actually applies to the analyzed project. The plan distinguishes raw candidates into existing, ambiguous-alias review, and genuinely new buckets, then returns exact reviewCalls for retrieving full rows. side effect 0: this tool never writes markdown. CLI index --apply may write analyzer-proposed concepts and containment, but inferred imports remain review-only and are never auto-promoted to depends_on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Folder walk depth forwarded to analyze_repo_structure (default 2, max 10). | |
| maxFiles | No | File cap forwarded to infer_imports (default 5000, max 50000). | |
| rootPath | No | Repository root to index. Defaults to the active resolved repository root from connection_info. | |
| threshold | No | Optional module-edge count threshold for the returned import relation plan. | |
| skipImports | No | When true, skip infer_imports and return an analyze + validate plan only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| next | Yes | ||
| plan | Yes | ||
| analyze | Yes | ||
| imports | Yes | ||
| rootPath | Yes | ||
| vaultRoot | Yes | ||
| sideEffect | Yes | ||
| validation | Yes | ||
| meaningGate | Yes | ||
| semanticEvidence | Yes | ||
| extractionContract | Yes | ||
| configurationEvidence | Yes |