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.
npx agentmods add instructions/x22x22/code-cli-any-llm/agents-mdgit clone --depth 1 https://github.com/x22x22/code-cli-any-llmWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00958 | $0.00958 |
| Opus 5 | $0.00479 | $0.00479 |
| Sonnet 5 | $0.00192 | $0.00192 |
| Haiku 4.5 | $0.00096 | $0.00096 |
Grade A, and why
code-cli-any-llm 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines
Project Structure & Module Organization
- 主干代码位于
src/,其中controllers/暴露 HTTP 接口,services/与providers/统筹模型路由、限流与分词策略,transformers/负责协议与响应格式转换。 - 通用工具集中在
src/utils/与src/common/,公共常量建议放入src/common/constants/或模块内constants.ts;配置模板与校验逻辑保存在config/并需与src/config/*.ts同步维护。 - 测试按层级拆分至
test/unit/、test/integration/、test/contract/与test/e2e/;端到端脚本位于specs/,构建产物生成到dist/,运行日志写入logs/。
Build, Test, and Development Commands
pnpm install --frozen-lockfile:CI 与复现环境锁定依赖;初次开发可执行pnpm install。pnpm run start:dev:启用 Nest 热重载调试;需要断点时使用pnpm run start:debug并配合--inspect。pnpm run build:编译 TypeScript 产物至dist/;pnpm run start:prod用于模拟生产部署。pnpm run lint:执行 ESLint + Prettier 修复;合并前需配合pnpm run test、pnpm run test:cov或pnpm run test:e2e视场景验收。- 如遇端口或子进程遗留问题,运行
pnpm run kill快速清理。
Coding Style & Naming Conventions
- 全量采用 TypeScript 与 ECMAScript 模块语法,格式化由根目录
prettier与 ESLint 规则控制,默认两空格缩进、句尾保留分号、字符串使用单引号。 - 类、装饰器、DTO 统一 PascalCase;服务方法、变量使用 camelCase;文件命名推荐 kebab-case,例如
tokenizer.service.ts与rate-limit.constants.ts。 - 导入路径优先使用
@/别名,确保公共拦截器、守卫与管道自src/common/复用。
Testing Guidelines
- 测试框架为 Jest + ts-jest,
pnpm run test覆盖单元与集成用例,pnpm run test:e2e运行端到端脚本,pnpm run test:cov汇总覆盖率。 - 新特性至少补充一条单测和一条集成或契约测试,关键模块覆盖率目标保持 ≥80%;可通过
pnpm run test -- --coverage或读取coverage/报告核对。 - 调用外部 API 时设置
CAL_OPENAI_API_KEY=stub pnpm run test隔离依赖;端到端脚本应同步更新specs/文档说明。
Commit & Pull Request Guidelines
- 建议提交信息遵循“动作 + 范围 + 结果”,示例:
优化 controllers 响应缓存、修复 providers 限流策略;避免“fix bug”等笼统描述。 - PR 描述需说明变更动机、接口或配置影响、验证结果及回滚策略,并在涉及配置、脚本或文档时列出已同步更新的
docs/、specs/、config/清单。 - 合并前确认
pnpm run lint、pnpm run test、pnpm run test:e2e均通过,必要时附上截图、日志或关联 issue 链接方便审核。
Security & Configuration Tips
- 配置优先级依次为环境变量 <
~/.code-cli-any-llm/config.yaml< 仓库config/config.yaml,敏感密钥不得进入版本控制。 - 引入新配置项时同步修改
src/config/config.schema.ts、默认模板与 README 或docs/中的迁移说明,确保代理部署在多环境可复现。
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.
- 2d ago First seen · 33 lines · 958 tokens per session scan A e9f6a26cee64
code-cli-any-llm AGENTS.md is an instructions file published in the GitHub repository x22x22/code-cli-any-llm (5 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 958 tokens to every session, about $0.0048 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-31.
Other instructions, from other repositories
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.
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).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
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.