llmio AGENTS.md

llmio AGENTS.md is an instructions file for Codex, OpenCode from atopos31/llmio. It costs 937 tokens per session, scanned A, original, MIT.

Repository instructions for the `llmio` project, covering its Go backend, React frontend, database, commands, code style, and testing rules.

In plain words
What is it for?
Use them when modifying the Go service, React and TypeScript interface, SQLite models, provider integrations, build scripts, or test suites in this repository.
Why use it?
They give an agent the project's expected structure and development commands, reducing changes that fail formatting, builds, linting, or tests.

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/atopos31/llmio/agents-md
Clone the repo
git clone --depth 1 https://github.com/atopos31/llmio

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/atopos31/llmio/agents-md.svg)](https://agentmods.dev/instructions/atopos31/llmio/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/atopos31/llmio/agents-md"><img src="https://agentmods.dev/badge/instructions/atopos31/llmio/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 937 This file is loaded in full into every session.
When invoked 937 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.00937 $0.00937
Opus 5 $0.00468 $0.00468
Sonnet 5 $0.00187 $0.00187
Haiku 4.5 $0.00094 $0.00094

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

Security

Grade A, and why

llmio 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 · 37 lines

What it actually says

Repository Guidelines

项目结构与模块组织

  • main.go 负责启动 HTTP 服务与路由注册;核心业务拆分在 service/ handler/ middleware/providers/ ,对应业务服务、请求处理、拦截器和多模型供应商适配。
  • common/ 汇聚通用工具,models/ 定义 GORM 实体并连接 db/llmio.db SQLite 数据库。
  • 前端代码位于 webui/ ,使用 React + TypeScript + Tailwind + Vite;构建产物输出至 webui/dist/ 并由 Go 服务托管。
  • 运维说明存放在 docs/balancer/ 封装多供应商权重与请求调度策略。

构建、测试与开发命令

  • go run main.go 本地启动 REST API 与管理后台,默认读取 TOKEN 等环境变量。
  • make run 依次执行 go fmt go mod tidy go run . ,确保代码格式与依赖同步后再启动。
  • go test ./... 跑通所有 Go 单元测试,目前集中在 handler/test_test.go ,每次提交前需保持通过。
  • 使用 go test ./... 若遇到权限不足,请在当前目录下设置 GOCACHE=$PWD/.gocache 后重试,测试结束立刻删除 .gocache 目录。
  • cd webui && pnpm install && pnpm run dev 开启 Vite HMR ,pnpm run build 生成生产静态资源。

代码风格与命名约定

  • Go 代码统一使用 go fmt 和 tab 缩进;导出符号使用 UpperCamelCase ,局部变量使用 lowerCamelCase ,JSON 标签使用 snake_case。
  • 当前项目使用 Go 1.26;需要创建指针值时优先使用新版 new(...) 语法(例如 new(true) new(false) new(ioLog)),不要再引入 boolPtr 之类的辅助函数。
  • 错误处理遵循 if err != nil 模式,返回具备上下文的 fmt.Errorf 消息。
  • webui/src/ 中 React 组件采用 PascalCase 文件和组件名,目录建议 kebab-case;提交前执行 pnpm run lint 保持 ESLint + TypeScript 规范。

测试指南

  • Go 测试文件与实现同目录,文件名追加 _test.go ,函数命名 Test<Feature> 并优先采用表驱动验证路由、限流与供应商切换逻辑。
  • 增量功能需补充针对中间件(鉴权、速率限制、流式响应)的覆盖;出现 bug 时先写回归测试再修复。
  • 前端改动至少通过 pnpm run buildpnpm run preview 做冒烟验证,并在 PR 中记录手动检查步骤。
  • 如果可用 gopls MCP,每次代码编写完成后运行一次 gopls 检查,确保无诊断错误。

提交与 PR 指南

  • 沿用 Conventional Commits 前缀,如 feat: fix: refactor: ,必要时追加模块范围(例如 feat(webui): adjust theme)。
  • 每个提交聚焦单一问题,关联 Issue 或需求编号,可使用中文或英文摘要但需明确意图。
  • PR 描述应包含背景、主要变更点、验证命令输出(go test pnpm run build),前端改动附截图或录屏,并邀请相关维护者审阅。
  • 在提交前确认未泄露 API Key、Token 等敏感信息,必要时使用 .env 或 Secrets 管理。

安全与配置提示

  • 供应商凭证放置于环境变量或未纳入版本控制的 .env 文件,通过管理后台或迁移脚本写入 providers 表。
  • 分享访问权限时及时轮换 TOKEN ,生产部署通过反向代理时确认 TLS 终端配置正确,并对外暴露端口前启用访问控制。
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 · 37 lines · 937 tokens per session scan A 1ada268b73d0

Subscribe to this mod's changes

llmio AGENTS.md is an instructions file published in the GitHub repository atopos31/llmio (312 stars, last pushed 18d ago), licensed MIT. It adds 937 tokens to every session, about $0.0047 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.