setup_ai_memory
Configure persistent AI memory for projects by setting up a 3-layer system that automatically saves lessons and recalls solutions before tasks.
Instructions
One-shot setup of the cachly 3-layer AI Memory system for a project.
Layer 1 — Storage: your cachly instance (Valkey, persistent across sessions) Layer 2 — Tools: learn_from_attempts + recall_best_solution + smart_recall (the memory API) Layer 3 — Autopilot: generates a copilot-instructions.md / .github/copilot-instructions.md that instructs any MCP-compatible AI to recall known solutions BEFORE each task and save lessons AFTER — fully automatic, zero manual effort.
Returns the copilot-instructions.md content + provider-specific .mcp.json snippet. Optionally writes copilot-instructions.md directly to the project directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | UUID of the cachly instance to use as the AI brain | |
| project_dir | No | Absolute path to the project root. If provided, writes copilot-instructions.md to .github/copilot-instructions.md in that directory. | |
| embed_provider | No | Embedding provider to use for smart_recall / semantic search. Default: openai. Use ollama for fully local/free setup. | |
| project_description | No | Short description of the project (used in the generated instructions) |