twining_prune_graph
Remove stale graph nodes
How to use it
twining_prune_graph is exposed by the Twining MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the twining_prune_graph tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Twining MCP
npx -y twining-mcp --project .Other tools in Twining MCP (14)
Add a knowledge-graph entity
Add a knowledge-graph relation
Move blackboard entries to the archive tier. Takes no cutoff by default — an argument-free call archives everything archivable, so pass before or retain (keep newest N) unless you intend a full sweep
Archive caller-confirmed candidate IDs from staleness or merge-sweep review. Decisions move to archived status; entries are dismissed. Provenance preserved. Warns on batches above 5% of live decisions
Gate 1: Build tailored context for a task — decisions, warnings, handoffs, within a token budget
Query graph entities and relations
Periodic maintenance — deduplicate, surface stale decisions, prune, rotate (dry-run by default). The board-archive pass is opt-in (archive: true) and retains the newest archive.retainrecent entries. Optional stalenessreview, mergesweep, and compactarchives flags
Traverse the graph from an entity
Share findings, warnings, needs, or status during work. summary is capped at 200 characters and longer summaries are rejected — put the substance in detail
Gate 2: Record what you did and any choices made — natural language in, structured decisions out
Mark open needs/questions/warnings handled. Persists status: "resolved" with resolver identity and note; the record stays on the board as searchable history. The everyday exit from the open lane (dismissal is for noise only)
Health check — entry counts, decision counts, actionable warnings
Restore archived decisions to active — the undo for a bad archive sweep. Assemble/why report hidden archived decisions as archivedexcludedcount
Check what decisions constrain a file before modifying it