Guidelines for Recording Knowledge
mainWhen saving knowledge to the graph, follow these best practices to maintain a high-quality, useful memory:
- Prioritize Rationale: Intent and the "why" are more valuable than implementation details.
- Avoid Duplication: Update existing concepts before creating new ones to keep the graph lean.
- Be Specific: Avoid vague summaries. Instead of "Handles auth", use "JWT auth with RS256, validated in middleware at src/middleware/auth.ts, refresh tokens in Redis with 7d TTL".
- Structure: Aim for a maximum of 2 levels of nesting; flat structures are preferred over deep hierarchies.
- Connectivity: Connect concepts using edges; isolated nodes provide less value than a connected graph.
- Filter Triviality: Do not record obvious implementation details that are clearly visible in the code.