Intelligent Inspiration: From Markdown Code Blocks to Interactive Response Blocks

Introduction

In DeepSeek Harness (DSH) conversations, model output Markdown code blocks (fences) are typically static text, requiring developers to parse them or use additional tools to process them. When these code blocks contain structured data (such as card lists, to-do items, or quiz questions), a static presentation disconnects information from action. Intelligent Inspiration transforms these fences into interactive UI blocks, giving the answer itself the ability to guide and be actionable.

Plugin Overview

Intelligent Inspiration is a client-side plugin maintained by MicroCapCap. It renders specific fenced code blocks in conversations into interactive components, including resource cards, checklists, quizzes, sorting exercises, temperature sliders, and charts. It does not alter the conversation text; it only changes how these fences are presented and how they behave interactively.

Core Features

The plugin supports eight fence languages, each corresponding to a different interactive component:

  • cards: A resource list containing title, link, thumbnail, description, source, and tags. Clicking the title navigates to the link.
  • actions: A to-do checklist where each item can be checked. State is preserved only within the current block, with a reset option.
  • inspiration: Next-step suggestions. Clicking fills the content into the input field or copies it to the clipboard.
  • quiz: Multiple-choice questions with instant scoring and explanation display.
  • sort: A sorting exercise where users arrange steps or items in order.
  • softmax: A temperature slider with real-time probability bars, used to demonstrate the sampling mechanism.
  • match: A matching exercise where users pair items with their descriptions.
  • chart: Small charts supporting bar and line graphs.

The plugin operates within DSH’s Markdown rendering pipeline. After installation, a new session must be started for it to take effect. When the plugin is disabled, these fences revert to plain code blocks, and the conversation text remains unaffected.

Installation and Activation

Intelligent Inspiration is provided as a Bundle with two parts: the Host half injects answer format instructions, and the Client half handles rendering the fences.

In the Web UI:

  1. Open the Plugins page.
  2. Select Add plugin.
  3. Choose this plugin’s directory.

In DSH Tool:

  1. Use the plugin_manager tool and execute action: install_bundle.
  2. Pass this plugin’s directory as the target parameter.

In the Profile file:

  1. Add this plugin’s directory to dsh.profile.bundles in the profile’s package.json.
  2. After installation, the plugin manager writes this file. Manual editing is not recommended.

After installation is complete, a new session must be started for the plugin to engage in rendering.

Typical Usage

1. Resource Cards

Use a cards fence in the answer:

{
  "title": "Start here",
  "note": "Each row opens the source.",
  "cards": [
    {
      "title": "Stanford CS336",
      "href": "https://cs336.stanford.edu/",
      "thumb": "https://avatars.githubusercontent.com/u/160359985?v=4",
      "desc": "Language modeling from scratch: tokenizer, transformer, training loop, scaling, and alignment.",
      "source": "Stanford",
      "tags": ["12 weeks"]
    }
  ]
}

After rendering, each row displays the title, thumbnail (falling back to the initial letter if no image is provided), description, and source tag. Clicking the title navigates to href (or displays as plain text if no href is present).

2. To-Do Checklist

Use an actions fence:

{
  "kind": "actions",
  "note": "Tick them off; the state stays in this block.",
  "items": [
    {
      "text": "Run CS336 assignment 1 this week",
      "why": "It is the cheapest proof that you can build the training loop.",
      "effort": "1 evening"
    }
  ]
}

Each row is a checkbox supporting check and reset. The checked state is preserved only within the current block and does not send any messages to the server.

3. Next-Step Suggestions

Use an inspiration fence:

{
  "kind": "inspiration",
  "items": [
    {
      "text": "为我生成一个 transformer 的玩具模型",
      "why": "把今天的理论变成可运行的代码"
    }
  ]
}

Clicking a suggestion calls the input field’s inputActions.setDraft to fill in the content and focus the editor; if that API is unavailable, it copies to the clipboard instead.

4. Instant Quiz

Use a quiz fence:

{
  "kind": "quiz",
  "title": "Check yourself",
  "questions": [
    {
      "q": "Why does temperature change the output distribution?",
      "options": [
        "It rescales logits before softmax",
        "It removes low-probability tokens",
        "It updates the weights"
      ],
      "answer": 0,
      "why": "Dividing logits by T sharpens the distribution as T falls and flattens it as T rises; nothing is removed."
    }
  ]
}

Scoring is applied immediately after answering, along with an explanation. If answer is missing or out of range, that question is skipped.

5. Sorting Exercise

Use a sort fence to let users arrange steps or items in order. The result is returned for further processing.

6. Temperature Slider

Use a softmax fence to provide a temperature slider with real-time probability bars, giving an intuitive demonstration of the sampling mechanism.

7. Matching Exercise

Use a match fence to let users pair items with their descriptions.

8. Charts

Use a chart fence to render a bar chart or line chart, illustrating data trends.

Use Cases and Notes

Intelligent Inspiration is well-suited for scenarios that require structuring and making answers interactive, such as learning paths, task lists, knowledge checks, and guided workflows. It imposes certain conventions on the answer format (e.g., Claim → Quiz → What to do → Recommendations), with the Host half providing the instructions and the Client half responsible for rendering.

Notes:

  • The plugin runs on the client side; it does not directly send messages or communicate across pages.
  • It is recommended to review the source code and license (MIT) before installation.
  • A new session is required after installation for the plugin to take effect.
  • When the plugin is disabled, fences revert to plain code blocks, and the conversation text is unaffected.

Summary

Intelligent Inspiration transforms Markdown fences into interactive components, giving model answers the ability to guide and be executed. It does not alter the conversation content; it only enhances presentation and interaction. For more details, refer to:
- Directory page: https://www.skillhub.cn/plugins/MicroCapCap/intelligent-inspiration
- GitHub: https://github.com/MicroCapCap/intelligent-inspiration

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye