Initialize memory file
initialize_memoryClaim a repository's memory file or start a new one: adopt existing memories or create a fresh graph, fixing header mismatches from copied or renamed repos.
Instructions
Claim the memory file for this repo, or start a new one.
Resolves the error other tools return when the memory file's header names a different repo. 'fresh' renames the old file to a timestamped backup and starts an empty graph, for a file copied from another repo; 'adopt' rewrites the header to this repo, for a repo that was moved or renamed. Returns the status, the header, and the backup path if one was made. Changes nothing when the file already belongs to this repo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 'fresh' starts an empty graph and keeps the old file as a backup; 'adopt' keeps the memories and claims them for this repo. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | Yes | ||
| header | Yes | ||
| status | Yes |