Skip to content

v0.6.0: Wiki Layer, Topology Tools & Memory Precision

Choose a tag to compare

@nillo nillo released this 07 Apr 21:29

[0.6.0] — 2026-04-07

Added

  • Wiki system: Four new MCP tools for persistent codebase knowledge pages
    • wiki_query — keyword search over wiki pages
    • wiki_read — read a specific page or list all pages with links and backlinks
    • wiki_write — create or update a wiki page manually (persists across sessions)
    • wiki_check_staleness — detect wiki pages whose referenced files have changed since the page was written (uses git diff)
  • Topology tools: Four new MCP tools exposing graph analysis
    • get_communities — detected module clusters with cohesion scores
    • get_hub_nodes — highest-degree "god node" symbols in the call graph
    • get_surprises — unexpected cross-community connections
    • suggest_investigations — auto-generated investigation questions from topology
  • Wiki auto-generation: index_codebase now generates deterministic wiki pages for communities, hub nodes, and surprising connections; pages are skipped if the source commit is unchanged (freshness check)
  • Wiki auto-capture: build_stack_tree and explain_flow fire-and-forget wiki capture for explored flows
  • New config fields wikiBudget (default 400 tokens) and wikiMaxPages (default 3) control wiki injection into prompt context
  • Wiki pages are injected as a separate always-on context block alongside memory context

Changed

  • Memory scoring: Over-accessed memories (accessCount > 8) are now penalized to prevent generic rule memories from dominating topic-specific results
    • accessCount > 15: score multiplied by 0.5
    • accessCount > 8: score multiplied by 0.75
  • Relative score threshold: raised from 0.70 to 0.85 within each filtered result set, tightening result cohesion
  • searchMemories: explicitly excludes wiki type; wiki retrieval is handled by a dedicated path
  • index_codebase response now includes a wiki field alongside existing index statistics

Fixed

  • wiki_check_staleness reads sourceCommit from the raw on-disk file rather than from already-stripped memory content
  • WikiGenerator.writePage skips write when sourceCommit matches HEAD; async indexFile errors are caught and logged rather than surfaced
  • derivePromotedType preserves wiki type during fact promotion
  • Topology context injection respects remaining token budget before appending
  • Wiki budget computation uses actual tokenCount from assembled code context
  • Wiki generator freshness guard handles undefined sourceCommit safely
  • surprisesPage flag correctly set regardless of written/skipped status