claude_init_persistence
Initialize persistent memory for Claude Code by creating the storage directory and seeding AGENTS.md, PROJECTS.md, and MEMORY.md templates. Re-running is safe and won't overwrite existing files.
Instructions
Initialize the persistence directory and seed the three markdown files.
Idempotent: re-running without force=true is a no-op if files already
exist. Creates the directory at the location resolved by
Settings.resolve_persistence_base_dir() and writes AGENTS.md,
PROJECTS.md, MEMORY.md (unless they already exist).
Optional fields: - force (bool): re-create files even if they exist - seed_templates (bool|None): whether to seed the default templates
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "claude_init_persistence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| req | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | No | ||
| base_dir | Yes | ||
| seed_version | Yes | ||
| already_existed | No |