Prompt Glyph (⟶)

LLM prompt editor on canvas. Write a prompt with YAML frontmatter config, hit play to execute.

Frontmatter

---
model: "anthropic/claude-haiku-4.5"
temperature: 0.7
max_tokens: 1000
---
Your prompt here.

Model names follow OpenRouter format (provider/model).

Melding

Prompt accepts attachments via melding — other glyphs fuse onto it spatially:

GlyphPortEffect
Doc (▤)bottomFile sent as multimodal attachment (images as image_url, PDFs as file)
NotebottomText included in prompt context
AX / SE / PYrightChains into prompt (execution pipeline)

Multiple Doc glyphs stack via doc-to-doc melding above the prompt.

Execution

Play button sends POST /api/prompt/direct with the template and any melded file IDs. A Result glyph auto-melds below the prompt with the LLM response.

Files

FileRole
web/ts/components/glyph/prompt-glyph.tsGlyph factory + execution logic
server/prompt_handlers.go/api/prompt/direct handler
ai/openrouter/client.goOpenRouter chat completion client
web/css/glyph/meld.cssComposition layout styles