add_knowledge
Save a decision, insight, test, or hypothesis — call this IMMEDIATELY when you learn something important, not just at end_session. Use type="decision" for architecture/approach choices, type="insight" for gotchas/workarounds/non-obvious facts. Always fill body (what), context (why it matters), outcome (consequence/result). Pin critical entries with pin_knowledge().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Full content: what exactly was decided/discovered? Be specific — include code patterns, error messages, exact values if relevant. | |
| tags | No | Tags for filtering: e.g. ["gotcha", "auth", "docker"] or ["deployment", "ops"] | |
| type | Yes | decision=architecture/approach choice, insight=gotcha/fact/workaround, test=verified behavior, hypothesis=assumption to validate | |
| title | Yes | Short descriptive title (the "what" in one line) | |
| status | No | decision: "active"|"superseded" — insight: "confirmed"|"open" — test: "passed"|"failed" — hypothesis: "confirmed"|"rejected"|"open" | |
| context | No | IMPORTANT: Why does this matter? What triggered it? What problem does it solve? | |
| outcome | No | IMPORTANT: What was the result/consequence? What changed because of this? | |
| projectId | Yes | Project ID |