chenglou/pretext

GitHub
https://github.com/chenglou/pretext

Fast, accurate & comprehensive text measurement & layout

Stars:
51k
Language:
TypeScript
Default branch:
main
Last scored:
Overall

At a glance

Rank
#214 of 401
#61 of 82 TypeScript repos
Checks passed
8 of 17
Full list below
Best set up for
Cursor
Score 74.6
Needs most work for
Aider
Biggest fix: .aider.conf.yml (+14.1 pts)

What it has

What it's missing

What to fix first

Pick an AI agent

Showing fixes for Claude Code

  1. 1
    Linter / formatter config
    Configure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint) and commit the config.
    +7.9 pts
  2. 2
    CONTRIBUTING guide
    Add CONTRIBUTING.md describing branch naming, commit style, test commands, and the PR process.
    +5.3 pts
  3. 3
    Pre-commit / git hooks
    Set up pre-commit (.pre-commit-config.yaml), husky, or lefthook to run format+lint on every commit.
    +5.3 pts

Score for each AI agent

Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →

Cursor
#92 of 401
74.6
  • ✓Cursor rules (.cursor/rules)
  • ✓README
  • ✓Type configuration
Claude Code
#194 of 401
72.9
  • ✓AGENTS.md / CLAUDE.md
  • ~Test suite
  • ~Reproducible dev env
Codex
#209 of 401
70.6
  • ✓AGENTS.md / CLAUDE.md
  • ✓README
  • ~Test suite
Devin
#200 of 401
69.4
  • ~Reproducible dev env
  • ✓Dependency manifest
  • ~Test suite
Kimi Code CLI
#210 of 401
68.7
  • ✓AGENTS.md / CLAUDE.md
  • ~Test suite
  • ✓Dependency manifest
Pi
#216 of 401
67.9
  • ✓AGENTS.md / CLAUDE.md
  • ~Test suite
  • ✗Linter / formatter config
Gemini CLI
#224 of 401
62.5
  • ✗GEMINI.md
  • ✓README
  • ~Test suite
OpenHands
#268 of 401
60.3
  • ✓CI configuration
  • ✓Dependency manifest
  • ~Reproducible dev env
Aider
#291 of 401
56.3
  • ✗.aider.conf.yml
  • ✗Linter / formatter config
  • ~Test suite

Does chenglou/pretext have agent instructions?

An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.

AGENTS.md / CLAUDE.md
AGENTS.md (new tab) · 10,211 characters
Agent-specific files
.cursor/rules (new tab) (1 .mdc file)No GEMINI.md, .openhands/setup.sh, .aider.conf.yml or .agents/skills
Repos that have one
62 of 82 TypeScript repos · 221 of 401 repos on the leaderboard · See examples →

All 17 checks · 8 passed

No .agents/skills/<name>/SKILL.md
Substantive (10,211 characters)
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
1 GitHub Actions workflow
No CONTRIBUTING file
1 .mdc file in .cursor/rules/
Manifest present
package.json has 10 scripts
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 100% pass
License present
No linter/formatter config found
No .openhands/setup.sh
No pre-commit / husky / lefthook found
README· 100% pass
README detailed (27,912 characters)
Manageable size· 100% pass
206 files
Test suite· 70% pass
Test files detected (harness/bench/bench.test.ts)
Type configuration· 100% pass
Type config present

How chenglou/pretext compares

vs leaderboard average
0.2 pts above
Average 66.8
vs TypeScript average
4.2 pts below
Average 71.2
Stars among TypeScript repos
#34 of 82

Missing here, and how many repos have it

  • CONTRIBUTING guide · passed by 86% of leaderboard repos, 91% of TypeScript repos
  • Linter / formatter config · passed by 65% of leaderboard repos, 57% of TypeScript repos
  • Pre-commit / git hooks · passed by 29% of leaderboard repos, 48% of TypeScript repos

Passes checks most repos miss

  • Cursor rules (.cursor/rules) · only 4% of repos pass it
  • Manageable size · only 16% of repos pass it

One fix for the most agents: Linter / formatter config would raise the score for all 9 agents, by up to 14.1 points.

Similar repos

Same language and host as this repo, closest in overall score.

All TypeScript repos →

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/chenglou/pretext
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/chenglou/pretext.svg)](https://agentfriendlycode.com/repo/github/chenglou/pretext)

Check the score on every pull request

A GitHub Action posts one comment per pull request with how the score changed and why.