Agentero: Instructions file for Codex

AGENTS.md

Agentero AGENTS.md is an instructions file for Codex, OpenCode from poco-ai/Agentero. It costs 1,706 tokens per session, scanned A, original, MIT.

Repository instructions for Agentero, a desktop research workspace for collecting, reading, annotating, and discussing academic papers. They describe its Tauri and React app, paper files, database metadata, and attachment rules.

In plain words
What is it for?
Use them when changing paper import, PDF reading, annotations, Markdown notes, the vault tree, Zotero integration, or research-agent workflows.
Why use it?
They help keep paper data readable outside the app and prevent files, notes, attachments, and search metadata from being stored in the wrong places.

Instructions file for CodexOpenCode

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

This is poco-ai/Agentero's own configuration. It tells Codex and OpenCode how to work on Agentero 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 Agentero configures →

About the project

Agentero is a local research workspace that connects papers, structured reading material, Markdown notes, and AI agents in one place. Researchers use it to read and annotate PDFs, extract formulas and figures, organize literature, and collaborate with agents on research tasks while keeping context locally. Its catalogue skills and instruction support agent-assisted research workflows in Agentero.

poco-ai/Agentero · 1,032 stars · on GitHub · agentero.app

Reuse

Borrowing it

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

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 Agentero AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/poco-ai/agentero/agents-md"><img src="https://agentmods.dev/badge/instructions/poco-ai/agentero/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,706 This file is loaded in full into every session.
When invoked 1,706 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.01706 $0.01706
Opus 5.5 $0.00682 $0.00682
Sonnet 5.5 $0.00341 $0.00341
Haiku 4.5 $0.00171 $0.00171

Measured yesterday against content hash 7ed1e6c1f924, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Agentero 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 yesterday.

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 · 101 lines

How it starts

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

AGENTS.md

项目概览

Agentero 是一个基于 Tauri 2 + React 19 的本地优先科研工作台,产品是桌面端应用。Vault 中笔记与源文件以 Markdown/文件为准,论文结构化 metadata 以 .agentero/catalog.sqlite 为准。离开应用后数据仍可被外部工具读取。

架构总览:docs/architecture.md

开发规则

  • 优先做小而聚焦的改动,能用少的修改解决问题就不要增加复杂度。高内聚、低耦合。如果系统有额外冗余可以提示用户进行重构
  • 只加必要的影响性能和功能的测试代码,不加没有实际意义的测试用例。
  • 尽可能能复用能力,避免重复造轮子。
  • 在 UI 修改的过程中尽量少加入无关的、非必须的i18n 文案,如果能用icon表达,就不要加额外的描述。操作失败用 notifyError Toast,不在侧栏 header 挂常驻错误条。
  • 国际化(i18n):所有面向用户文案必须经 t() 走 react-i18next。en 源语言 → 同步 zh-CN(src/i18n/locales/)。详见 docs/frontend/shell.md。
  • 如果修改了 Template 下的 Skill 和 AGENTS.md ,需要对应更新版本号。
  • 修改后需同步更新相关文档,并检查 Roadmap 和 Todo。
  • 修改完成后,把当次相关的改动按照 commit 部分的要求提交。

Windows 注意事项

  • 路径:禁止手拼 ${vault}/${rel},统一走 joinVaultPath 并归一分隔符;混用 / \ 在 \\?\ 前缀下报 ERROR_INVALID_NAME(#181),拖入文件路径也要归一后再去重。
  • 新窗口:同步 #[tauri::command] 里 build WebviewWindow 会在 WebView2 嵌套消息循环死锁(白屏、关不掉),必须用 async command。
  • 窗口装饰:统一用原生 decorations;React 自绘标题栏按钮在 Settings 等子窗口拿不到 IPC 权限。
  • 子进程/安装:Windows 只走 npm/PowerShell 安装路径,Unix 脚本用 cfg(not(windows)) gate;注意 CREATE_NO_WINDOW 与 .exe 命令名。
  • cfg 门控:Cargo target cfg(如 cfg(all(unix, ...)))必须与代码侧 gate 对齐,否则 Windows release 编译失败。
  • UI 缩放:Windows 125% 等非整数 DPR 会放大 px/rem 混用误差,对齐类样式用 rem。

Commit

  • 提交信息必须符合 Conventional Commits 规范。
  • 一次提交只做一件事,避免混合多个 unrelated changes。
  • 如果有多个 unrelated changes,git commit --only -m "msg" -- <path1> <path2> 使用只提交指定路径的改动
  • commit message 不可以有emoji
  • 如果库当中有对应的 issue,则在提交信息中引用(如 Fix #123);解决了该 issue 则关闭;部分解决则在 issue 区评论。
  • 解决 Issue 之后,把解决的方法评论在 issue 中

PR

  • 不要把截图、GIF、录屏提交进仓库,也不要放进 PR diff 或 PR 描述正文。不要用 gh pr create --attach / gh pr edit --attach 把图片写进 PR 正文。
  • 需要附图时,先创建不含图片的 PR,再在该 PR 的评论区上传。gh ≥ 2.99.0 的 gh pr comment --attach 与在评论框拖入图片相同:文件托管在 GitHub(user-attachments),不进入 git 历史。
gh pr comment <number> --body "之前 / 之后" \
  --attach './before.png#之前' \
  --attach './after.png#之后'

Read the full file on GitHub · 101 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. yesterday Changed · +22 lines · +313 tokens per session 7ed1e6c1f924
  2. 1mo ago Changed · -2 lines · -112 tokens per session 4d520f1710ca
  3. 1mo ago Changed · -37 lines · -573 tokens per session f6ce955894f5
  4. 1mo ago Changed 91f898615b34
  5. 1mo ago Changed · +1 lines · +27 tokens per session f44dadb6e556
  6. 1mo ago Changed · +11 tokens per session 26f9b03d9b3d
  7. 1mo ago First seen · 117 lines · 2,040 tokens per session scan A 6658e9eff599

Subscribe to this mod's changes

Agentero AGENTS.md is an instructions file published in the GitHub repository poco-ai/Agentero (1,032 stars, last pushed today), licensed MIT. It adds 1,706 tokens to every session, about $0.0068 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-08-30.

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,715 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,581 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

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens