infer_architecture
Scans a repository to infer its architectural pattern and entry points, then saves the hypothesis to reforge-state.json as an initial project map.
Instructions
Infer a repository's architectural pattern and save its hypothesis to reforge-state.json. Use when: you need an initial map of the project's likely shape and entry points. Don't use when: you only need the previously saved hypothesis (use read_memory instead).
Returns {pattern, evidence, entry_points, inferred_modules, confidence, hypothesis}. Pattern is REST API, CLI tool, web frontend, library or unknown; confidence is a heuristic fraction from 0 to 1. Classification uses imported modules, with filename-based entry-point/module guesses. Scans without an external model, then writes architecture_hypothesis and rotates state backups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Repository directory to scan and save architecture_hypothesis in reforge-state.json; prefer an absolute path. Existing state backups rotate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| evidence | Yes | ||
| confidence | Yes | ||
| hypothesis | Yes | ||
| entry_points | Yes | ||
| inferred_modules | Yes |