AIToday
Zenn AI/MLPublished: Nov 23, 2026, 16:00 JST

Hermes chat-to-form plugin uses SKILL.md and SQLite drafts

Send on LINE
Hermes chat-to-form plugin uses SKILL.md and SQLite drafts

3 Key Points

  1. What happened

    The developer wired a Hermes plugin so a model calls a create_draft tool, SKILL.md carries the procedure, and a directive line in the reply renders a React form; drafts now live in a SQLite table the model writes via tool and the UI via REST API.

  2. Why it matters

    Values held only in the reply or React state could not be edited in conversation, reported back after sending, or protected from double sends — one shared SQLite row per chat session addresses all three, the developer writes.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The plugin links three parties with a deliberately narrow contract. The model only ever sees a tool's schema, and each field allows null so unstated values are not guessed — a request like "send 0.01 USDC" produces a call with network and recipient left null. SKILL.md keeps the system prompt short by loading its body only when the model decides the skill is needed, which also means the procedure arrives only if the model chooses to read it. Directives go the other way: the model writes a single line such as ::draft-card{...} and Hermes swaps it for a React component, so the model never draws the screen itself.

The SQLite layer exists because neither of the first two placements worked. A draft stored in the reply cannot be edited from the UI, and one stored in React state cannot be read by the model; the developer reports that this broke mid-conversation edits, post-send reporting, and double-send prevention across two open forms or an app restart. A single drafts table, with a revision counter incremented on each change and a state field running from editing to consumed, now holds the shared row, and the directive passes only an ID.

The remaining constraint is structural. The developer notes that the plugin's added prompt section failed to load in full once it passed 4,000 characters on the local qwen3.6 model, and the plugin cannot raise that ceiling. Compressing usage notes to one line per type and pushing detail into tool schemas, afterCall, and card-side validation keeps things inside the limit for now, but the developer says more form types will eventually exhaust it and is still deciding how to respond.

FAQ
Why did the developer move draft values into SQLite?
Values kept only in a directive's attributes or in React state could not be read by the model or edited by the UI. One SQLite row per chat session lets the model write via a tool and the UI via the plugin's REST API.
What happens when the plugin's prompt section gets too long?
Past 4,000 characters, the local qwen3.6 model did not load the plugin's added prompt section at all, and the plugin cannot raise that limit. Moving instructions to SKILL.md made the model skip the skill and ask for the destination in chat instead.
What role does the afterCall field play?
afterCall carries instructions in a tool's return value, so they are read right after the tool is called. The developer uses it to stop qwen3.6 from inventing directive names or bypassing the prepared form.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Next articleHairstyle AI previews judged on identity, not single images