create_analysis
Freeze a feature's git diff for human review, covering branch or working-tree changes, and return an ID with changed files.
Instructions
Create an analysis once a feature is developed: computes and freezes the git diff of the repository for human review. In branch mode the diff is base...head (head defaults to HEAD); in working_tree mode it is the uncommitted changes, index included, against HEAD. Returns the id and the changed files; then read them with get_diff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch mode only, required: the ref the feature branched from, e.g. "master". Not accepted in working_tree mode. | |
| head | No | Branch mode only: the ref holding the feature (default HEAD). Not accepted in working_tree mode. | |
| mode | Yes | branch: diff between two refs; working_tree: uncommitted changes against HEAD. | |
| title | Yes | Short title of the feature, e.g. "OAuth token refresh". | |
| project | Yes | Project the analysis belongs to: the product or feature name, used as its folder in the GUI. Reuse the exact name of an existing project (see list_analyses) for another analysis of it. | |
| repo_path | Yes | Absolute path of the root of the git repository. | |
| request_text | No | Initial request the feature answers (ticket, user prompt), shown to the reviewer. | |
| request_source | No | Where the initial request comes from, e.g. a ticket id or URL. Needs request_text. |