global_learn
Store a reusable lesson that applies across all projects. If a lesson with the same topic already exists, it updates in place to prevent duplicates.
Instructions
Store a lesson that applies across ALL your projects (cross-project knowledge). Idempotent: if a lesson with the same topic already exists, it is updated in place — no duplicates are created. Returns a confirmation with the stored lesson key. No rate limits. Global lessons are stored with the prefix cachly:global:lesson: and recalled from any instance via global_recall. Use for tool preferences, personal workflows, platform quirks, and universal gotchas. Example: global_learn(topic="bash:macos-arrays", lesson="Arrays work differently on macOS bash 3.2"). Use learn_from_attempts for project-specific session lessons; use team_learn to share lessons with your team.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"topic": "<topic>",
"lesson": "<lesson>"
},
"name": "global_learn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags | |
| topic | Yes | Topic key in format "category:keyword" | |
| lesson | Yes | The lesson content | |
| severity | No | Severity (default: minor) | |
| instance_id | Yes | UUID of the cache instance (used for connection) |