dsh-origin-plugin: Instructions file for Codex

AGENTS.md

dsh-origin-plugin AGENTS.md is an instructions file for Codex, OpenCode from Fantasality/dsh-origin-plugin. It costs 1,355 tokens per session, scanned A, original, MIT.

A project instruction file for an AI assistant working with dsh-origin-plugin, a tool that lets AI control OriginLab to create and analyse charts on Windows.

In plain words
What is it for?
It is for guiding chart creation, editing, data loading, verification, and exporting in OriginLab.
Why use it?
It gives the assistant project rules, file locations, and checks so it does not guess at chart settings, invent data, or treat failed changes as successful.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is Fantasality/dsh-origin-plugin's own configuration. It tells Codex and OpenCode how to work on dsh-origin-plugin itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dsh-origin-plugin configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Fantasality/dsh-origin-plugin. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Fantasality/dsh-origin-plugin/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Fantasality/dsh-origin-plugin

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dsh-origin-plugin AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fantasality/dsh-origin-plugin/agents-md/github.svg)](https://agentmods.dev/instructions/fantasality/dsh-origin-plugin/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/fantasality/dsh-origin-plugin/agents-md"><img src="https://agentmods.dev/badge/instructions/fantasality/dsh-origin-plugin/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dsh-origin-plugin AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fantasality/dsh-origin-plugin/agents-md"><img src="https://agentmods.dev/badge/instructions/fantasality/dsh-origin-plugin/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,355 This file is loaded in full into every session.
When invoked 1,355 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01355 $0.01355
Opus 5.5 $0.00542 $0.00542
Sonnet 5.5 $0.00271 $0.00271
Haiku 4.5 $0.00136 $0.00136

Measured 1mo ago against content hash 064116ad3f4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dsh-origin-plugin AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — 给 AI 助手的项目说明

你在一个叫 dsh-origin-plugin 的项目里。它的作用:让 AI 通过 MCP 驱动本机 OriginLab Origin 画图、分析、交付。Windows + 正版 Origin(2021+,2026 实测)。

你(AI)请先读完下面 3 节再动手。 这个项目的图纸和纪律都在文件里,不在你的记忆里。


0. 如果你是被用户叫来"装这个插件"的

读 skills/install-dsh-origin/SKILL.md,按它一步步做。 注意它有两部分:①配 MCP(给你工具)②装 Skill(给你纪律)——第 2 部分不要跳。


1. 必须遵守的纪律(违反必出错,全部实测过)

  1. 写后必读返回:所有编辑类工具逐项返回 status(applied / readback_only / unverified / rejected), 必须逐项看;rejected 必须重新想办法,不能当成功。
  2. 改图前必 inspect:曲线索引、图层号、页面短名以 origin_inspect_graph / origin_list_pages 读到的为准,不要猜。
  3. 不虚构数据:列用途有歧义 → 先问用户;不补造缺失值;派生列必须标注。
  4. 优先快路径:说一句就画图的场景,用 origin_figure(一次调用完成 写数→画图→验证→导出,约 1 秒); 只有需要细改 / 发表级精修 / 多组对比时,才走完整多步流程。
  5. 不要绕道裸 LabTalk:细粒度修改用 origin_edit_* / origin_manage_pages。 裸 LabTalk 只在目标图页是活动窗口时可靠,否则静默失败(返回 NaN 或写到别的窗口)。
  6. 读回不是证据:返回值里的 proof_level 三级—— verified(写入且读回一致)才能当证据;readback_only 需目视确认;unverified 必须调 origin_view_graph 看图。
  7. 引用原样传递:origin_write_data / origin_load_file 返回 worksheet,origin_plot* 返回 graph,后续直接传返回值。

2. 项目地图(要读的文件)

文件 什么时候读
skills/origin-plotting/SKILL.md 画图/改图前必读——主循环图 + 七步流程 + 铁律
COMPATIBILITY.md 动手前扫一眼——15 条实测失败场景与替代方案(3D 轴标题、heatmap 静默失败、图例坐标陷阱…)
skills/origin-stats/SKILL.md 做统计检验(t/ANOVA/PCA/生存分析)时
skills/origin-scripting/SKILL.md 用户想拿脚本自己在 Origin 里跑(不需要 MCP)时
skills/install-dsh-origin/SKILL.md 安装/排障时
QUICKSTART.md 用户问"怎么用/怎么装"时(小白语言)
README.md 需要全部 70 个工具与能力清单时
docs/ FigureSpec 声明式协议等细节

3. 工具面速览(70 个工具 / 34 错误码)

  • 快路径:origin_figure(端到端一张图)、origin_warmup、origin_pages_gc
  • 环境:origin_status、origin_diagnose、origin_capabilities、origin_catalog、origin_help
  • 数据:origin_write_data、origin_load_file、origin_matrix_*、origin_import_matplotlib
  • 画图:origin_plot、origin_plot_file、origin_plot_template、origin_plot_plan + origin_execute_plan
  • 改图:origin_edit_plot/axis/legend/page、origin_manage_pages、origin_manage_plots、origin_manage_data
  • 分析:origin_fit、origin_analysis、origin_stats(t/ANOVA/PCA/survival)
  • 交付:origin_export、origin_export_delivery、origin_export_pptx、origin_save_project、origin_template_save/apply
  • 可信:origin_verify_graph、origin_view_graph、origin_proof(读回分级)
  • 声明式:origin_spec_export/import(FigureSpec YAML,可 diff、可重放)

Read the full file on GitHub · 70 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 70 lines · 1,355 tokens per session scan A 064116ad3f4d

Subscribe to this mod's changes

dsh-origin-plugin AGENTS.md is an instructions file published in the GitHub repository Fantasality/dsh-origin-plugin (25 stars, last pushed 5d ago), licensed MIT. It adds 1,355 tokens to every session, about $0.0054 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-18.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,384 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens