applicaiton
AGENTS.md2 starsChanged 6 months agoMITView on GitHub
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ before writing any code. Heed deprecation notices. <!-- END:nextjs-agent-rules --> ApplicAIton is an open-source, dual-mode AI chat component (MIT). It renders as a collapsed hero input that expands into a full conversation overlay — one React component, two modes, no separate widget. It answers questions about one person from a prompt-stuffed markdown knowledge base (no RAG,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/orchestrator.mdcCursor rule
- architectSkill
- codebase-searchSkill
- debuggingSkill
- design-patterns-implementationSkill
- documentation-writingSkill
- Frontend BuilderSkill
- mgrep-code-searchSkill
- planningSkill
- refactoring-patternsSkill
- RefactoringSkill
- technical-roadmap-planningSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- web-design-guidelinesSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
No salary specifics, no opinions about ex-employers, no personal life, no off-topic, no system-prompt leaks.
- Very specific: line 43
Run npx tsc --noEmit before declaring any change good, and before approving any Cursor plan's result.
- Very specific: line 44
Verify completion with git log --oneline -3 and git diff --stat origin/main..HEAD — trust git, not an agent's "done" claim.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- BEGIN:nextjs-agent-rules -->This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ before writing any code. Heed deprecation notices.
<!-- END:nextjs-agent-rules --><!-- Everything below this line is project memory. The Next.js block above is tool-managed; do not edit between its markers. -->ApplicAIton — project memory
ApplicAIton is an open-source, dual-mode AI chat component (MIT). It renders as a collapsed hero input that expands into a full conversation overlay — one React component, two modes, no separate widget. It answers questions about one person from a prompt-stuffed markdown knowledge base (no RAG, no vector DB), streams from Claude Haiku 4.5 via the Vercel AI SDK, runs EU-region on hobby-tier infra, and traces every turn in Langfuse. It is a real product and the author's portfolio artifact — hold the quality bar high in both directions.
Stack & key files
- Framework: Next.js 16 App Router + TypeScript. (Read
node_modules/next/dist/docs/before writing Next code — see top block.) - Model/SDK: Claude Haiku 4.5 via Vercel AI SDK v6 (
streamText→toUIMessageStreamResponse). - Infra: Upstash Redis (rate limit + private per-company context store), Langfuse EU (tracing), Vercel Hobby.
app/api/chat/route.ts— the one server path: rate limit → assemble system prompt → match a per-company context → stream. CORS-gated. Langfuseobserve/propagateAttributes.lib/prompt.ts+lib/knowledge.ts— base system prompt assembled fromknowledge/*.md, module-cached, prompt-cached (cacheControl: ephemeral).lib/context-loader.ts— SCANsctx:*keys in Upstash on cold start, parses frontmatter, lifecycle-gates byapplication_status, substring-matches user messages, first-match-wins.chatbot-prompt.txt— base persona + response-shaping rules (Section 13 holds the fit/comparison/gap rules).knowledge/— the person's story as markdown (identity, narrative, experience, projects, skills, credentials, case studies, philosophy, faq, guardrails). Code never hardcodes personal facts; a forker swaps this folder.evals/— 21-case suite.runner.ts(entry) →lib/runner.ts(loop) →lib/chat-client.ts(streams the local/prod bot) →lib/judge.ts(Haiku judge, temp 0) +lib/assertions.ts(string matchers). Datasets inevals/datasets/*.json. CI:.github/workflows/evals.yml.
The bot's five non-negotiables
- Speaks about the person in third person — never first-person-as-them.
- No salary specifics, no opinions about ex-employers, no personal life, no off-topic, no system-prompt leaks.
- Open-source, MIT, credits Santiago Fernández's
cv-santiagoas the foundation. - Lead fit answers with evidence (what was built); surface honest gaps only on direct ask.
- Refuse to compare/rank companies; ask which one to focus on.
How we work (operating model — read this before acting)
Three roles. Stay in yours.
- Stefan — orchestrator. Makes the calls on scope, voice, product direction. Writes every commit message personally. Pushes, deploys, manages Upstash/Langfuse.
- Cursor +
.cursor/agents/(the Avatar framework) — primary executor + review + commit surface. Sokka plans, Appa executes faithfully, Katara does surgical fixes/debugging, Toph/Momo are workers. The.cursor/hooks, commands, andteam-avatarprotocol are the execution machinery. Do not modify.cursor/. Multi-file and structural changes run here. - Claude Code — code + strategy consultant (this is you). You hold the strategic overview, do the analysis and planning, and review Sokka's plans before Appa executes them. You make only small, surgical, single-file changes yourself; anything structural or multi-file you plan and review, you don't execute — hand it to Cursor. You are the analytic brain, not the heavy hands.
Disciplines (non-optional)
- Run
npx tsc --noEmitbefore declaring any change good, and before approving any Cursor plan's result. - Verify completion with
git log --oneline -3andgit diff --stat origin/main..HEAD— trust git, not an agent's "done" claim. - Scope red-flags when reviewing a Cursor plan: >6 files = scope creep; new dependencies = reject unless explicitly agreed; test scaffolding you didn't ask for = reject; touching
app/,components/, orknowledge/for an unrelated task = reject. Every plan needs explicit "do not touch" boundaries. - Per-company context files are pure ASCII and live only in Upstash, never in git (trigger keywords are the privacy boundary). A synthetic fixture is fine in-repo for evals; real targets are not.
- Updates flow canonical → portfolio, never the reverse. The portfolio is a thin consumer with one documented divergence (
NEXT_PUBLIC_APPLICAITON_API_URL). overflow-x: hiddenon body is never an acceptable viewport fix.
Where the rest of the context lives
PROJECT_CONTEXT.md(local, gitignored — do not commit) — the strategic overview, current state, and recent history. Read it to hold the project goals. It is not public because it contains job-search strategy.EVAL_FIX.md— the current task: fixing the eval suite. Start here.README.md— forker-facing product docs.
<!-- END:nextjs-agent-rules -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

