SDK · Cookbook
10 task-oriented snippets. Copy, paste, adjust. Each recipe is a single page: one canonical snippet, a brief explanation, a few variations, and links to related work.
List every feature, persona, or any other typed node. Avoid the wrapped-return gotcha.
Read recipe →Follow typed edges to assemble a multi-hop view in a few lines.
Read recipe →Fuzzy match across every node. Cheap, returns ranked hits.
Read recipe →Search for relevant nodes, pull a one-hop neighbourhood, build a typed context block, hand to Claude.
Read recipe →A runnable agent that can read AND write the graph. Each UPGClient method becomes a typed tool; Claude picks which to call in a loop.
Read recipe →