Addax AGENTS.md

Addax AGENTS.md is an instructions file for Codex, OpenCode from wgzhao/Addax. It costs 1,794 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Addax, an offline data-transfer tool that moves information between different sources and destinations through plug-ins. They describe its Java build process, coding preferences, architecture, and plug-in workflow.

In plain words
What is it for?
Use them when editing Addax code, building the project with Maven, changing plug-ins, or reviewing architecture and pull-request work. They also specify when to reply in Chinese and how to write comments.
Why use it?
They give a coding agent the project’s rules before it changes code. This helps avoid breaking core modules, adding unnecessary libraries, or using the wrong build commands.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/wgzhao/addax/agents-md
Clone the repo
git clone --depth 1 https://github.com/wgzhao/Addax

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wgzhao/addax/agents-md.svg)](https://agentmods.dev/instructions/wgzhao/addax/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/wgzhao/addax/agents-md"><img src="https://agentmods.dev/badge/instructions/wgzhao/addax/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,794 This file is loaded in full into every session.
When invoked 1,794 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01794 $0.01794
Opus 5 $0.00897 $0.00897
Sonnet 5 $0.00359 $0.00359
Haiku 4.5 $0.00179 $0.00179

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

Security

Grade A, and why

Addax 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 4d 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 · 152 lines

How it starts

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

AGENTS.md

概述

该项目是一个离线的 ETL 工具,通过插件化架构支持多种数据源和目标。核心组件包括 Engine、JobContainer,以及各种 Reader/Writer 插件。项目使用 Maven 管理构建和依赖。

通用偏好

  • 用中文回复,代码注释用英文,注释写 why 不写 how
  • 简洁直接,不要多余总结和解释
  • 直接写代码,不需要每次确认后再生成

编译

整体编译

mvn clean package -T1C -DskipTests

单模块编译(以 dorisreader 为例)

mvn clean package -pl :dorisreader -am

禁止

  • core 为核心模块,包含 Engine 和 JobContainer 等核心类。修改此模块需谨慎,确保不破坏核心运行逻辑。
  • addax-rdbms 包含多个 JDBC/SQL 相关的工具类
  • addax-lib 包含一些通用工具类和依赖管理, 若无必要,避免修改核心工具类。
  • 尽可能不要引入新的依赖库,尤其是核心模块和公共库。新增依赖可能引入版本冲突或增加维护负担。
  • 考虑到兼容各类 RDBMS 的最低版本,因此各依赖库的版本请勿修改,除非确实需要修复安全漏洞或兼容性问题,并且在修改前先评估对现有插件的影响。
  • 不需要写单元测试,所有的测试都会在目前特定构建的环境下手工执行

运行流程

  1. 编辑一个 json 格式或者 yaml 格式的 Job 配置文件,指定 Reader、Writer 以及相关参数,可以参考 core/src/main/job 下的例子
  2. 执行 addax.sh 脚本,传入 Job 配置文件路径,例如:
sh addax.sh -job /path/to/job.json

程序运行的内部流程可以参考这个文档

插件开发

新增插件的开发流程可以参考plugin development 文档

架构与设计宗旨

  • 从第一性原理解构问题 一先明确什么是必须的,再决定怎么做
  • 警惕 XY 问题-多角度审视方案,先确认真正要解决的是什么,主动提出替代方案
  • 解決根本问题,不要 workaround -如果现有架构不支持,重构它
  • 质疑不合理的需求和方向—发现问题立刻指出,不要等我问才说,不要奉承或无脑赞同
  • 架构设计时参考 ddia-principles 和 software-design-philosophy 规则

Git / PR 标准流程

当用户明确提出“提交并创建 PR”时,默认按以下流程执行(除非用户另有说明):

  1. 创建新分支后再提交,分支名建议使用 feat/<topic>fix/<topic> 格式,根据本次修改的性质选择 feat(新功能)或 fix(修复)。例如:feat/add-protobuf-dependency
  2. 使用英文编写 commit message:
    • title 简洁明确(建议 Conventional Commits 风格)。
    • description/body 说明动机、核心改动、验证情况。
  3. 使用 gh 命令创建 PR,不只推送分支:
    • 示例:gh pr create --base master --head <branch> --title "<english title>" --body-file <file>
  4. PR 内容必须使用英文,遵循 PR 模板 进行填写
  5. 若无特别要求,PR 设为 Ready for review(非 Draft)。

以上流程可由一句 "提交并创建 PR" 触发,不需要用户重复描述细节格式要求。

Commit Message 规范

为保证提交历史可读、可检索、可自动化发布,统一使用 Conventional Commits 格式:

<type>(<scope>)!: <subject>

[optional body]

[optional footer(s)]

Read the full file on GitHub · 152 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. 4d ago First seen · 152 lines · 1,794 tokens per session scan A 4bb9394a3eff

Subscribe to this mod's changes

Addax AGENTS.md is an instructions file published in the GitHub repository wgzhao/Addax (1,428 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,794 tokens to every session, about $0.0090 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.