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 agents/vercel-labs/open-agents/code-stylegit clone --depth 1 https://github.com/vercel-labs/open-agentsWhat 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.00000 | $0.01120 |
| Opus 5 | $0.00000 | $0.00560 |
| Sonnet 5 | $0.00000 | $0.00224 |
| Haiku 4.5 | $0.00000 | $0.00112 |
Grade A, and why
code-style 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 today.
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 — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Style & Patterns
Detailed coding conventions, tool implementation patterns, and common patterns for the Open Agents codebase.
Package Manager
- Use pnpm exclusively for dependency management
- The monorepo uses
[email protected]through Corepack - Use Node 24's built-in TypeScript support for utility scripts
- Use Bun only as the test runner
TypeScript Configuration
- Strict mode enabled
- Target: ESNext with module "Preserve"
noUncheckedIndexedAccess: true- always check indexed accessverbatimModuleSyntax: true- use explicit type imports
Formatting (Ultracite — oxfmt)
- Indent: 2 spaces
- Quote style: double quotes for JavaScript/TypeScript
- Run
pnpm fixbefore committing
Naming Conventions
- Files: kebab-case (e.g.,
deep-agent.ts,paste-blocks.ts) - Types/Interfaces: PascalCase (e.g.,
TodoItem,AgentContext) - Functions/Variables: camelCase (e.g.,
getSandbox,workingDirectory) - Constants: UPPER_SNAKE_CASE for true constants (e.g.,
TIMEOUT_MS,SAFE_COMMAND_PREFIXES)
Imports
- Do NOT use
.jsextensions in imports (e.g.,import { foo } from "./utils"not"./utils.js")- The
.jsextension causes module resolution issues with Next.js/Turbopack - This applies to all packages and apps in the monorepo
- The
- Use explicit
.tsextensions in modules loaded directly by Node 24 utility scripts - Prefer named exports over default exports
- Group imports: external packages first, then internal packages, then relative imports
- Use type imports when importing only types:
import type { Foo } from "./types"
Types
- Never use
any- useunknownand narrow with type guards - Define schemas with Zod, then derive types:
type Foo = z.infer<typeof fooSchema> - Prefer interfaces for object shapes, types for unions/intersections
- Export types alongside their related functions
Error Handling
- Return structured error objects rather than throwing when possible:
return { success: false, error: `Failed to read file: ${message}` }; - When catching errors, extract message safely:
const message = error instanceof Error ? error.message : String(error); - Use descriptive error messages that include context (tool name, file path, etc.)
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.
- today First seen · 140 lines · 0 tokens per session scan A 84df309bb9ba
code-style is an agent published in the GitHub repository vercel-labs/open-agents (5,798 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,120 tokens. 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 agents, from other repositories
architect
System design and architecture decisions. Technical planning, tradeoff analysis, and design documentation.
explainer
Code explanation and architecture walkthroughs. Helps developers understand complex code and systems.
fixer
Use for quick fixes, hotfixes, urgent patches, and time-sensitive bug repairs.
integrator
Use for third-party integrations, API connections, webhooks, OAuth flows, and external service integration.
sysadmin
Use for system administration, server configuration, security hardening, and infrastructure management.
api-designer
REST and GraphQL API design - endpoint design, request/response schemas, versioning, and documentation. Use for designing new APIs or evolving existing ones.