global_learn
Store cross-project lessons in a persistent cache, updating existing topics to avoid duplicates. Apply to tool preferences, personal workflows, and platform quirks.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance (used for connection) | |
| topic | Yes | Topic key in format "category:keyword" | |
| lesson | Yes | The lesson content | |
| severity | No | Severity (default: minor) | |
| tags | No | Optional tags |