Skip to content

Artifacts & Visualization

When the agent calls a tool, the result is rendered as a visual artifact rather than plain text. Artifacts give you interactive, scannable views of your ideas — and in graph mode, they animate directly onto the mind map.

TypeProduced byDescription
idea_gridsearch_ideas (browse or search)Grid of idea cards with title, status, and tags
idea_cardget_idea, create_idea, update_ideaSingle idea in detail or compact view
mini_graphdiscover_connectionsSmall force graph showing newly discovered connections
mermaidAny tool returning Mermaid syntaxRendered Mermaid diagram
brainstorm_clusterbrainstormClustered display of generated idea variations
comparisonAgent-generated comparisonsSide-by-side view of two ideas
tag_cloudsuggest_tagsTag suggestions with applied/unapplied state
summarysummarizeSummary text with extracted themes
insightsAgent-generated insight listsBulleted insight cards
connection_linelink_ideasAnimated edge drawn on the mind map
score_cardsscore_idea (Pro)Radar chart cards for each scored idea
documentdraft_document (Pro)Full document with formatted sections

In the Neural Canvas (split-pane view), artifacts appear in the canvas panel on the right. Each artifact is wrapped in a collapsible artifact card with:

  • A header showing the artifact type icon, a title, and collapse/pin/dismiss controls
  • A pin button (📌) to keep the artifact visible even as the conversation continues
  • A dismiss button (×) to remove the artifact from the canvas

Multiple artifacts accumulate in the canvas as the conversation progresses. Pinned artifacts stay at the top; unpinned artifacts can be scrolled through.

In the mind map chat panel, artifacts render differently depending on their type:

Graph mutations — tool calls that change the graph animate onto the canvas:

ArtifactGraph effect
connection_lineNew edge draws with animation between source and target nodes
idea_card (created)New node appears with a pulse animation
idea_card (updated)Existing node highlights briefly to show the change
mini_graphNew nodes and edges for all discovered connections

Non-graph artifacts render as collapsible ToolResultCards in the chat message:

  • A single header line shows the tool icon and a summary (e.g., “Found 5 ideas for ‘auth’”)
  • Clicking the chevron expands to show idea reference chips, detail content, or a grid

When an artifact references specific ideas, they appear as color-coded chips with the idea title. Clicking a chip in the mind map chat panel highlights that node on the graph and scrolls it into view.

Graph mutations are tracked in the useAgentMindMap hook and applied via the parent component’s mutation ref. Each mutation type has a corresponding handler:

MutationWhat happens
add_nodeAdds node to graph data; triggers soft refresh
add_edgeAdds edge; animates draw from source to target
highlight_nodesPulses specified nodes with a highlight color
reheatRe-runs the force simulation (used after semantic_layout)
dim_exceptDims all nodes except the specified IDs (used after search)
clear_dimRemoves all dim effects

Every graph mutation that creates data (new ideas, new relations) is recorded in an undo stack in the chat panel. The undo button in the chat header label reverses the most recent agent action:

  • For created ideas: deletes the idea
  • For created relations: removes the relation
  • For layout changes: restores previous positions

The undo stack is per-session and cleared when the page reloads.

Non-graph artifacts in the mind map panel render using the ToolResultCard component. The card has:

  • Icon — a monospace emoji or symbol indicating the tool type
  • Summary — a single-line description of the result (e.g., “Merged 3 tags → machine-learning”)
  • Expand chevron — click to reveal the full detail view
  • Idea reference chips — clickable chips for each idea referenced in the result

The card uses the NeuralRepo brand green (#39ff14) for icons and a dark translucent background to sit cleanly over both the canvas and the mind map.