med-paper-assistant: Instructions file for Claude Code

AGENTS.md

med-paper-assistant AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from u9401066/med-paper-assistant. It costs 5,565 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for a research-writing project about a medical-paper assistant. It defines operating modes, protected files, project rules, and a process for making changes in repeated, auditable steps.

In plain words
What is it for?
Use it to guide agent work in development, normal, or research mode, including file protection and project documentation rules.
Why use it?
It tells coding agents how to work safely in a project where research files may need protection and changes must be traceable.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions subagents; mentions AGENTS.md.

This is u9401066/med-paper-assistant's own configuration. It tells Claude Code, Codex and OpenCode how to work on med-paper-assistant 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 med-paper-assistant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/med-paper-assistant. 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/u9401066/med-paper-assistant/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/med-paper-assistant

Made for: Claude Code, 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 med-paper-assistant AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/u9401066/med-paper-assistant/agents-md.svg)](https://agentmods.dev/instructions/u9401066/med-paper-assistant/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/u9401066/med-paper-assistant/agents-md"><img src="https://agentmods.dev/badge/instructions/u9401066/med-paper-assistant/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,565 This file is loaded in full into every session.
When invoked 5,565 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.05565 $0.05565
Opus 5 $0.02782 $0.02782
Sonnet 5 $0.01113 $0.01113
Haiku 4.5 $0.00556 $0.00556

Measured 8d ago against content hash d6839b1b5b5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

med-paper-assistant 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 8d 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 · 326 lines

How it starts

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

AGENTS.md - VS Code Copilot Agent 指引

操作前必查 .copilot-mode.json 確認當前模式。


核心價值:逐步多輪演進

寫論文是人類高度專業化、多年累積、多輪訓練的結果,而且是在科學方法下可重現的思考與整合步驟。Agent + MCP 框架應該有能力實現類似的逐步多輪演進。(CONSTITUTION §25-26)

三層架構實現此價值:

層級 機制 觸發 實作狀態
L1 Event-Driven Hooks 79 個品質檢查(56 Code-Enforced / 23 Agent-Driven) Agent 操作 ✅ 部分
L2 Code-Level Enforcement DomainConstraintEngine + ToolInvocationStore + PendingEvolutionStore + guidance + tool_health 工具呼叫 ✅ 完整
L3 Autonomous Self-Evolution MetaLearningEngine (D1-D9) + GitHub Actions CI + PendingEvolution 跨對話 外部排程 ⚠️ 大部分(缺 git post-commit、EvolutionVerifier)

每一輪都產出可審計紀錄,每一輪都比前一輪更好。三層缺一不可。


運行模式

模式 啟用技能 Memory Bank 靜態分析
development 全部 完整同步
normal 研究技能 最小化
research 研究技能 僅專案

切換:修改 .copilot-mode.json。觸發語:「開發模式」→ development、「一般/normal」→ normal、「研究/寫論文」→ research。

檔案保護(Normal/Research)

唯讀.claude/ .github/ src/ tests/ integrations/ AGENTS.md CONSTITUTION.md ARCHITECTURE.md pyproject.toml 可寫projects/ memory-bank/ docs/

用戶要改受保護檔案 → 提示切換開發模式。


專案規則

法規層級

CONSTITUTION.md > .github/bylaws/*.md > .claude/skills/*/SKILL.md

架構

DDD,DAL 獨立。依賴方向:Presentation → Application → Domain ← Infrastructure。詳見 .github/bylaws/ddd-architecture.md

儲存文獻(MCP-to-MCP)

Read the full file on GitHub · 326 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. 8d ago First seen · 326 lines · 5,565 tokens per session scan A d6839b1b5b5f

Subscribe to this mod's changes

med-paper-assistant AGENTS.md is an instructions file published in the GitHub repository u9401066/med-paper-assistant (12 stars, last pushed 7d ago), licensed Apache-2.0. It adds 5,565 tokens to every session, about $0.0278 per session on Opus 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-08-30.

Related

Other instructions, from other repositories

arm_1a2b_7g8h_cleanCode_avoidComments

Instructions for colchuck-ai/ai-resource-manager, a project described as: Package manager for AI rules and prompts with semantic versioning and automatic distribution to AI tools.

colchuck-ai/ai-resource-manager · 231 tokens

arm_1a2b_k1l2_cleanCode_avoidDuplication

Instructions for colchuck-ai/ai-resource-manager, a project described as: Package manager for AI rules and prompts with semantic versioning and automatic distribution to AI tools.

colchuck-ai/ai-resource-manager · 248 tokens

ai-resource-manager arm_index.instructions.md

Instructions for colchuck-ai/ai-resource-manager, covering arm rulesets, priority rules, installed rulesets and sample-registry/[email protected].

colchuck-ai/ai-resource-manager · 238 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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 tokens