Files
plugins/packages/output-strategy
Mañjūṣakaandmanjughosa dba24067c2 output-strategy 0.2.3: remove the panel byline; keep attribution in the README (#1009)
Removes the "by" byline from the Output Strategy panel (index.html, i18n.js, style.css); the attribution stays in the README. Bumps the package to 0.2.3 so dist packs it (0.2.2 is already packed and is never packed again).

Run at the reviewed head 121f571f (on mote, temp HOME):
- `git diff 0d03f7bf 121f571f`: only package.json 0.2.2 -> 0.2.3 and the matching version assertion in test/page.test.mjs. Everything else was reviewed at 0d03f7bf.
- packages/output-strategy `bun test`: 59 pass, 0 fail. `bun scripts/check.mjs`: ok.
- Root `bun test` (suite lock) on origin/main a69931ec merged with #1009, #1012 and #1013: 8373 pass, 0 fail (8392 tests across 590 files, 361s; the rest skipped), on Linux (Ubuntu 24.04, magpie-desktop) because both Macs' suite locks were held by hours-long runs. `bun scripts/check.mjs` on that tree: ok.
- Earlier, at 0d03f7bf: Playwright 1.62 Chromium and WebKit at 1200 and 420px, en and zh-CN, with a stub bridge. No byline, the conversation note shows, all 7 styles load, no horizontal overflow, no page errors.

Broken by hand (at 0d03f7bf): putting main's page/index.html back, or main's page/i18n.js, makes 1 test fail ("shows conversation guidance in both languages without a panel byline").

Not tried: the panel inside a real magpie window.

Co-authored-by: manjughosa <3220325975@qq.com>
2026-11-11 23:37:38 +08:00
..

output-strategy

An (unofficial) output-style plugin for magpie, developed and maintained by manjughosa.

Seven composable output styles with a selection panel; every style is off by default.

本插件由 manjughosa 独立开发并维护,非官方出品。七种输出样式可以自由组合,全部默认关闭。

The style texts and the original request-injection design are adapted from OmniRoute's Output Styles, caveman, ponytail, i-have-adhd and 9router. Exact sources, revisions, licenses and adaptations are recorded in PROVENANCE.json; upstream license files are in LICENSES/.

Styles

  • Terse prose — remove filler, ceremony and hedging without losing technical content.
  • Less code — YAGNI and the smallest working change.
  • Ponytail — lazy senior-developer discipline: reuse, root causes and a complete minimal diff.
  • I have ADHD — action first, numbered steps and one concrete next action.
  • Terse CJK — ultra-terse Classical Chinese, with technical identifiers kept verbatim. Unlike OmniRoute's zh-only automatic use, this is an explicit style available for any locale.
  • Antislop UI — purpose-tested visuals rather than template decoration and dead controls.
  • Antislop copy — honest, specific copy with accessibility and complete UI states.

Select any combination in the Output Strategy panel and save. Styles are combined in catalog order and duplicate boundaries are included only once.

Options

{
  "styles": {
    "terse-prose": false,
    "less-code": false,
    "ponytail": true,
    "i-have-adhd": false,
    "terse-cjk": false,
    "antislop-ui": false,
    "antislop-copy": false
  }
}

No options, an empty options object, or all styles off leaves a request unchanged.

Request behavior

  • Anthropic and Chat Completions: append one static style block to the existing system prompt, or create the protocol-appropriate system field when none exists.
  • Responses: leave instructions completely untouched, including Codex's identity and base instructions. Add the style block as a separate developer input item.
  • An existing [Output Strategy] marker in system/developer instructions: the body is already considered injected and is left unchanged; old blocks are never stripped or replaced. Quoting the marker in user or assistant messages does not trigger this skip. If an agent replays that marker in system/developer instructions, the saved style remains part of that conversation; turning a style off does not rewrite history. Start a new conversation to begin without the old style block.
  • Cache stability: a selected style injects consistently across turns. The former autoClarity and media-history bypasses are removed because they made the cached system prefix appear and disappear.
  • Unknown or unsupported shapes: pass through unchanged. Middleware errors fail open.

This package has no Bun gateway hook, telemetry, prompt logging, or writes to the plugin installation folder. The panel reads and writes only magpie.options and follows magpie.theme.lang.

Verification

bun test
node scripts/gen-page-catalog.mjs

page/catalog.js is generated from catalog.js. From the community repository, output-strategy.test.mjs runs the same cases.json through ../../scripts/middleware.mjs.

中文摘要

7 种输出样式可以自由组合,全部默认关闭。启用后在请求发送前注入固定规则;Responses 不修改 Codex 的 instructions,而是另加 developer 输入项。系统/开发者指令中已有 [Output Strategy] 标记的请求原样通过;用户或助手消息中引用标记不会触发跳过。切换或关闭样式不会改写已有会话历史,要完整应用新配置请新建会话。为避免提示缓存失效,已移除 autoClarity 和媒体历史绕过;不再提供统计 hook,不保存请求或响应正文,也不写插件安装目录。页面跟随 Magpie 的语言设置。