agentreadme

Report · marked 25 Aug 2026

diegosouzapw/OmniRoute

Solid foundations, held back in a few specific places.

TypeScript · 55,115 stars · 12,987 files · branch release/v3.8.51

Fix these first

01
README as an entry point
Give the README an Install and a Usage heading with real commands under each. Agents pattern-match on those headings.
02
File sizes fit in context
A single file that fills the context window forces an agent to work from fragments, and it will confidently edit code it never saw. Splitting the worst offenders pays for itself immediately.
03
No committed build output
Add these to .gitignore and `git rm -r --cached` them. Generated files pollute search results, so an agent grepping for a function finds the compiled copy and edits the wrong file.

The full marking

Every deduction below names the file or setting it came from.

Instructions 22/27 A-

Whether the repo tells an agent how to behave before it starts guessing.

Agent instruction file 12/12
AGENTS.md is present, which is the format the most tools read.
Also found: CLAUDE.md, Copilot instructions
Instruction quality 10/12
Specific enough that an agent can act on it.
Worth fixing: it's 58k characters, which burns context on every single turn.
names the actual commands to run
uses headings, so an agent can skim it
includes copyable code blocks
README as an entry point 0/3
No README. This is the first file anything reads, human or machine.
Give the README an Install and a Usage heading with real commands under each. Agents pattern-match on those headings.
Setup 20/20 A+

Whether an agent can install the project and get it running without a human.

Deterministic install 6/6
package-lock.json pins the dependency tree.
Found package-lock.json
Discoverable commands 6/6
Commands are declared where an agent will look for them.
package.json scripts (dev, prebuild:docs, gen:provider-reference, bench:compression, bench:heap-body, bench:routing-events…)
Makefile
scripts/ directory
Environment config 4/4
.env.example documents what the app needs to run.
Pinned runtime version 2/2
The language runtime version is pinned.
Found .nvmrc
Reproducible environment 2/2
dockerfile gives a known-good environment.
Verification loop 24/25 A+

Whether an agent can check its own work. This is the category that most decides whether agent output is trustworthy.

Tests exist 8/8
5355 test files against 10069 source files.
e.g. @omniroute/opencode-plugin/tests/auth.test.ts, @omniroute/opencode-plugin/tests/auto-combo-context.test.ts, @omniroute/opencode-plugin/tests/auto-sync.test.ts
Test command is discoverable 7/7
An agent can find and run `npm run test`.
Continuous integration 4/4
25 GitHub Actions workflows define what "passing" means.
Lint and format rules 3/3
eslint.config.mjs encodes the house style.
Static type checking 2/3
Type checking is configured, but not in strict mode.
Turn on `"strict": true`. Type errors are the fastest feedback an agent gets, and non-strict mode silently discards most of them.
Context economy 10/20 C+

Whether the repo fits in a context window, or fights it.

No committed build output 3/6
Generated output is committed: coverage/.
Add these to .gitignore and `git rm -r --cached` them. Generated files pollute search results, so an agent grepping for a function finds the compiled copy and edits the wrong file.
.gitignore hygiene 3/3
.gitignore covers 169 patterns.
File sizes fit in context 2/6
13 source files are over 100KB.
A single file that fills the context window forces an agent to work from fragments, and it will confidently edit code it never saw. Splitting the worst offenders pays for itself immediately.
open-sse/handlers/chatCore.ts — 246KB
@omniroute/opencode-plugin/src/index.ts — 240KB
src/app/(dashboard)/dashboard/combos/page.tsx — 195KB
Repository weight 2/5
About 447MB checked out. Large enough that cloning and searching are both slow.
Large binaries and vendored trees slow every operation an agent performs. Git LFS or a separate assets repo keeps the working tree navigable.

Here is your AGENTS.md

Drafted from what is actually in this repository: the install command from your lockfile, the commands you already declare, your real directory layout. Anything marked TODO needs a person. Save it at the root as AGENTS.md.

AGENTS.md — drafted for diegosouzapw/OmniRoute
# AGENTS.md

Never stop coding. Free MIT AI gateway: one endpoint, 350 providers (90+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 450+ contributors

## Setup

```
npm ci
```

## Commands

```
npm run dev                      # run locally
npm run start                    # run the app
npm run build                    # produce a build
npm run test                     # run the test suite, must pass before any commit
npm run lint                     # lint
npm run check                    # lint and type check
npm run prebuild:docs
npm run gen:provider-reference
```

## Layout

- `tests/`      5088 source files
- `src/`        3027 source files
- `open-sse/`   1444 source files
- `scripts/`    220 source files
- `bin/`        209 source files
- `@omniroute/` 29 source files

## Conventions

- Tests live alongside the code they cover, following `@omniroute/opencode-plugin/tests/auth.test.ts`.
- TypeScript is not in strict mode. Turning it on catches a whole class of mistakes before they run.
- CI defines what passing means. See `.github/workflows/build.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `open-sse/handlers/chatCore.ts` is 246KB. It will not fit comfortably in context, so read it in parts.
- Copy `.env.example` before running anything that needs configuration.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.

Open the raw markdown  or  curl -o AGENTS.md agentreadme.com/draft/diegosouzapw/OmniRoute.md

Show the mark

The badge re-checks daily, so it keeps up as the repository changes. Use mark again to force it now.

agent ready 84 out of 100

[![agent ready](https://agentreadme.com/badge/diegosouzapw/OmniRoute.svg)](https://agentreadme.com/diegosouzapw/OmniRoute)

Other TypeScript repositories, marked

freeCodeCamp/freeCodeCamp 69 B openclaw/openclaw 68 B nilbuild/developer-roadmap 45 C vuejs/vue 67 B n8n-io/n8n 87 A anomalyco/opencode 80 A-

All TypeScript repositories

Think this mark is wrong?

Every deduction above names the file it came from, so this can be settled by looking. If a check missed something, that is a rule worth fixing.

Open an issue, already filled in