trekhleb/javascript-algorithms
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
- JavaScript / TypeScript · npm
- 196,771 stars
Agents will get some things right and guess the rest.
- critical
- 1
- high
- 0
- medium
- 0
- low
- 1
Scanned 29 Nov 2026, 17:20 UTC at commit 85293e3 (opens in new tab)
Scan details+−
- Commit
- 85293e3e2b88f4d2ce330d956b139cf628aa1e82
- Engine
- 0.8.6, 10.5 s
- Files read
- 630 of 679 in the repository (10.3 MB, archive)
Agents will get some things right and guess the rest.
- critical
- 1
- high
- 0
- medium
- 0
- low
- 1
Summary
trekhleb/javascript-algorithms scores C 74 at commit 85293e3: 2 findings. Highest severity critical: no agent instruction file exists. A critical finding caps the score at 74.
Fix these first
- 1.
No instruction file for AI coding agents
AR101 · critical
- 2.
No environment setup for cloud agents
AR701 · low
What an agent will experience
The commands we detected, and whether your instruction files mention them.
Commands detected
npm cisource: package-lock.json
npm testsource: package.json
npm run lintsource: package.json
| Purpose | Command | In instructions | Source |
|---|---|---|---|
| install | npm ci | no | package-lock.json |
| test | npm test | no | package.json |
| lint | npm run lint | no | package.json |
A command marked no is not automatically wrong: it can still be the right command. It does mean the agent has to discover it instead of reading it.
Documented commands: verdict
No instruction file exists, so there is nothing to compare.
Instruction files read
How the score was calculated
raw 20 · applied 20
raw 1 · applied 1
| Category | Raw penalty | Applied | Category cap |
|---|---|---|---|
| Instructions | 20 | 20 | within |
| Cloud agents | 1 | 1 | within |
100 − 21 = 79A critical finding caps the score at 74.
The full formula, category caps and every check are on the methodology page.
The Agent Kit
Generated 29 Nov 2026, 17:20 UTC · commit 85293e3
Every command and path is checked against commit 85293e3. Nothing was run. Shown as a diff against your files.
- Files
- 8
- AGENTS.md
- 518 tokens
- Commands checked
- 6
- Paths checked
- 7 all exist
- AGENTS.md~518 tokensnew filelocked
- CLAUDE.md~39 tokensnew filelocked
- .cursor/rules/agent-ready.mdc~61 tokensnew filelocked
- .github/copilot-instructions.md~52 tokensnew filelocked
- GEMINI.md~49 tokensnew filelocked
- .github/workflows/copilot-setup-steps.yml~71 tokensnew filelocked
- .devcontainer/devcontainer.json~83 tokensnew filelocked
- scripts/agent-setup.sh~60 tokensnew filelocked
# AGENTS.md
trekhleb/javascript-algorithms is a JavaScript / TypeScript project managed with npm. GitHub describes it as: "📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings". This file was generated from a scan of commit 85293e3 on 2026-11-29. Commands are copied from the repository at that commit; Agent Ready did not execute any of them.
## Commands
| Task | Command | Source |
| --- | --- | --- |
| Install | `npm ci` | package-lock.json |
| Test | `npm test` | package.json |
| Lint | `npm run lint` | package.json |
| Single test | `npx jest src/algorithms/cryptography/caesar-cipher/__test__/caesarCipher.test.js` | src/algorithms/cryptography/caesar-cipher/__test__/caesarCipher.test.js (jest is installed and the file exists at this commit) |
Commands come from package scripts, pyproject entry points, Makefiles and the lockfile. Agent Ready reads the repository and never executes it, so run each command once before you rely on it.
…Get the complete kit for trekhleb/javascript-algorithms: all 8 files, the diff against what the repository already has, and the ZIP.
Repo Fix is $19 once for this repository. Pro ($15 a month) covers every repository. See pricing.
Put this report in your README
The badge is generated from this report and links back to it. Pick a look, then copy the snippet.
- Markdown
[](https://makeagentready.tech/gh/trekhleb/javascript-algorithms) - HTML
<a href="https://makeagentready.tech/gh/trekhleb/javascript-algorithms"><img src="https://makeagentready.tech/badge/gh/trekhleb/javascript-algorithms.svg" alt="Agent Ready score"></a> - Image URL
https://makeagentready.tech/badge/gh/trekhleb/javascript-algorithms.svg