ingest_diff
Converts a unified diff into a structured change summary with intent classification, symbols changed, files modified, and line delta for understanding recent code changes and their architectural impact.
Instructions
Ingest a code diff/patch into the context memory.
Converts a unified diff (git diff output) into a structured change summary: intent classification (bug-fix/feature/refactor), symbols changed, files modified, and line delta. Particularly useful for understanding recent changes and their architectural impact.
Args: diff_text: Raw unified diff text (git diff output). source: Identifier (e.g., 'pr_42_auth_refactor.diff'). commit_message: Optional commit message for better intent classification.
Returns JSON with ingestion result plus: - intent: bug-fix/feature/refactor/test/security/performance - files_changed, added_lines, removed_lines - symbols_changed: functions/classes modified
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| diff_text | Yes | ||
| commit_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |