Summary
brane enhance — convergent refinement. Sharpen what brane already knows without adding new topics. Fill gaps, merge duplicates, surface contradictions, deepen thin areas.
Why
After digest and storm fill the graph, it gets messy. Concepts overlap, edges are missing, some areas are shallow. Enhance is the cleanup pass — it operates inward, not outward. Bunny has this and it's essential for knowledge quality.
What
CLI
brane enhance # refine entire knowledge base
brane enhance "authentication" # focus on a topic
brane enhance --rounds 3 # iterative refinement
Flags
--focus <topic> — narrow refinement to a topic area
--rounds <n> — iterative passes (default: 1)
--dry-run / -n — preview changes
--json / -j — JSON output
Flow
- Load context — if focused, vector search for topic; otherwise sample broadly
- LLM analysis — Claude examines existing knowledge for:
- Redundant/overlapping concepts → merge
- Missing edges between related concepts → create
- Shallow episodes that should be expanded → update
- Contradictions → flag as episodes with "contradiction" tag
- Apply — update concepts, create edges, store observations
LLM Response Schema
{
operations: {
merge_concepts: { keep_id: number, remove_id: number, reason: string }[],
new_edges: { source: string, target: string, relation: string }[],
observations: { observation: string, tags: string[] }[],
},
reasoning: string
}
Key Constraint
Enhance does NOT add new topics. It only refines what's already there. This is what distinguishes it from storm (divergent) and digest (new input).
MCP Tool
enhance: { focus?: string, rounds?: number, dry_run?: boolean }
Depends On
Acceptance
Summary
brane enhance— convergent refinement. Sharpen what brane already knows without adding new topics. Fill gaps, merge duplicates, surface contradictions, deepen thin areas.Why
After digest and storm fill the graph, it gets messy. Concepts overlap, edges are missing, some areas are shallow. Enhance is the cleanup pass — it operates inward, not outward. Bunny has this and it's essential for knowledge quality.
What
CLI
Flags
--focus <topic>— narrow refinement to a topic area--rounds <n>— iterative passes (default: 1)--dry-run / -n— preview changes--json / -j— JSON outputFlow
LLM Response Schema
Key Constraint
Enhance does NOT add new topics. It only refines what's already there. This is what distinguishes it from storm (divergent) and digest (new input).
MCP Tool
Depends On
Acceptance