get_context
Assemble codebase context for a task and optional files using Mason's concept map: decisions, constraints, tests, file impact, freshness, for planning edits.
Instructions
Assemble task context: matching decisions with rationale, approval, owner, sources, last review, and freshness, plus related tests, file impact, and any available map entries. Proposals are suggestions; legacy records are unreviewed; accepted decisions are constraints subject to freshness. No initialization or map required. Pass task and optional files. map.status and diagnostics preserve missing or invalid knowledge. Impact covers up to three unique files, expanding directory anchors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Absolute path to the project root directory | |
| task | Yes | The task, bug, or change request in natural language — e.g. 'add rate limiting to the API client' or a ticket description | |
| files | No | Optional file paths already known to be involved (e.g. from a diff or stack trace). Entries containing them are boosted above pure text matches. |