endnote-for-word: Instructions file for Codex

AGENTS.md

endnote-for-word AGENTS.md is an instructions file for Codex, OpenCode from felimet/endnote-for-word. It costs 901 tokens per session, scanned A, original, MIT.

A project instruction guide for an add-on that connects Microsoft Word and EndNote 21 on Windows. It describes how to insert real EndNote citations while writing and how to test and package the project.

In plain words
What is it for?
Use it when developing or maintaining the Word-and-EndNote integration, running its Python and PowerShell tests, or creating its distribution files.
Why use it?
It gives coding agents the project's commands, rules, limits, and required checks, reducing guesswork and unsafe changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions Codex.

This is felimet/endnote-for-word's own configuration. It tells Codex and OpenCode how to work on endnote-for-word 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 endnote-for-word configures →

Reuse

Borrowing it

Nothing to install: this file belongs to felimet/endnote-for-word. 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/felimet/endnote-for-word/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/felimet/endnote-for-word

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 endnote-for-word AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/felimet/endnote-for-word/agents-md/github.svg)](https://agentmods.dev/instructions/felimet/endnote-for-word/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/felimet/endnote-for-word/agents-md"><img src="https://agentmods.dev/badge/instructions/felimet/endnote-for-word/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 endnote-for-word AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/felimet/endnote-for-word/agents-md"><img src="https://agentmods.dev/badge/instructions/felimet/endnote-for-word/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 901 This file is loaded in full into every session.
When invoked 901 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.00901 $0.00901
Opus 5.5 $0.00360 $0.00360
Sonnet 5.5 $0.00180 $0.00180
Haiku 4.5 $0.00090 $0.00090

Measured 5d ago against content hash 73a28dfb398e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

endnote-for-word 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 5d 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 · 38 lines

How it starts

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

endnote-for-word

Claude Code and Codex plugin whose stdio MCP server (stdlib-only Python) drives Microsoft Word and EndNote 21 through COM to insert genuine Cite While You Write citations; it runs only on Windows with Word, EndNote 21, Python 3 and PowerShell 7 or 5.1, in an unlocked interactive desktop session.

Project facts and conventions in this file take precedence over global instructions; the global "risk" rules are never relaxed by this file.

Commands

  • Verify (must pass before declaring work done): pwsh ./tests/run-tests.ps1 (offline: Python unittest discovery plus a parse check of every .ps1 under pwsh.exe and powershell.exe; about one minute)
  • Package (CI runs it after the tests): python ./scripts/package_plugin.py (writes dist/endnote-for-word-plugin.zip, dist/endnote-for-word.skill and their .sha256 sidecars)
  • One test module: python -m unittest discover -s tests -t tests -p "test_endnote_session.py"
  • Live run against the real Word and EndNote: pwsh ./tests/run-tests.ps1 -IncludeLive (not run when this file was written; see Boundaries)

Conventions

  • Every .ps1 must parse and run under Windows PowerShell 5.1 and PowerShell 7: no ternary, ??, ?., clean {}, -Parallel or Join-String. tests/test_static.py rejects any ? outside string literals in .ps1 code. Keep .ps1 files ASCII, because 5.1 reads a BOM-less file in the ANSI code page.
  • Python under scripts/ uses the standard library only; the plugin must start on a bare CPython.
  • scripts/endnote-word.ps1 runs an action as soon as it is loaded. Offline tests lift single functions out of it through the PowerShell AST (tests/test_bridge_runtime.py), so put new decision logic in a self-contained function that takes plain values.
  • Bridge contract: exactly one compact JSON line, last on stdout; logs go to stderr; exit codes 0 ok, 1 error, 2 probe not ready, 3 postcondition failed.
  • Comments and docstrings that say "measured" record EndNote or Word behaviour observed on real installs (dialogs, macros, window titles). Do not simplify such a workaround without measuring again.
  • The version string lives in .claude-plugin/plugin.json, .codex-plugin/plugin.json, skills/endnote-for-word/SKILL.md, scripts/mcp_server.py, tests/test_mcp_protocol.py, tests/test_static.py and CHANGELOG.md; bump them together.
  • Prose files (.md, .json, .py, .ps1, .yaml, .txt, .ris) use hyphens, never em or en dashes, and carry no bracketed TODO or PLACEHOLDER markers or personal home-directory paths; tests/test_static.py enforces this.
  • CHANGELOG follows Keep a Changelog. Commit subjects follow type(scope): summary, for example fix(bridge): ..., feat(mcp): ..., chore(release): 1.5.2.

Read the full file on GitHub · 38 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. 5d ago First seen · 38 lines · 901 tokens per session scan A 73a28dfb398e

Subscribe to this mod's changes

endnote-for-word AGENTS.md is an instructions file published in the GitHub repository felimet/endnote-for-word (9 stars, last pushed 7d ago), licensed MIT. It adds 901 tokens to every session, about $0.0036 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-11-25.

Related

endnote-for-word AGENTS.md compared with instructions from other repositories

endnote-for-word AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
endnote-for-word AGENTS.mdfelimet/endnote-for-wordInstructions file97d agoMITA901Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot