get_state
Retrieves current project memory—decisions, preferences, things to avoid, and next steps—scoped to the current git branch so sessions restore context at startup.
Instructions
Returns the current project memory: decisions made, preferences established, things to avoid, and what to pick up next. State is scoped to the current git branch when the project is a git repository, falling back to the default branch state and then to the legacy flat state file. A detached HEAD (a bare commit checkout, e.g. CI) is scoped to that exact commit instead, and never inherits the flat or default-branch state. When user-wide global memory exists (written via update_state with scope 'global'), a deduplicated 'Global Memory' section is appended after the project state; project and branch entries always take precedence. Call this at the START of every session to restore context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No | Absolute path to the project root. Defaults to current working directory. |