research/keyword-classification-built-with-claude-code
Keyword Classification That Isn't Fooled by "Built with Claude Code"
Engineering Note · November 9, 2026 · 7 minute read · JavaScript · Classification · Regex
Yes, you can stop a keyword classifier from tagging every project built with an AI tool as an AI project. Remove the phrases that describe how the project was made before you look for keywords. On our 20-description test set, plain matching got 14 right, and the version that strips tool mentions got all 20. The test set is small and we wrote it ourselves, so this shows the idea works, not how accurate it would be on real repositories.
Everything below was run with Node.js 22.23.4. The outputs are the real ones from this run.
What goes wrong with plain keyword matching?
Suppose you sort GitHub repositories into “about AI” and “other” by reading each description. The obvious rule is a list of words: ai, llm, gpt, claude, agent and so on.
That rule breaks once people start saying how they built things. A description such as “A habit tracker built with Claude Code” contains the word claude. The project is a habit tracker. Claude is the tool that helped write it. The matcher cannot tell the difference, so it files the project under AI.
Meanwhile “Claude Code plugin that reviews pull requests” really is about Claude Code, and the keyword is right. A good fix has to keep the second and drop the first.
What is the fix?
Find the phrases that say a tool was used, delete them, and then match keywords on what is left. Here is the whole classifier, 12 lines (classify.mjs):
// Classify a repo description as "ai" (the project is about AI) or "other".
const AI_WORDS = /\b(ai|llm|llms|gpt|claude|openai|agent|agents|rag|embedding|embeddings|copilot|chatbot)\b/i;
// Phrases that say a TOOL was used to build the project, not what the project is.
const TOOL_MENTION = /\b(?:built|made|written|coded|vibe[- ]?coded|generated|created|developed|powered|assisted|scaffolded)\s+(?:entirely\s+|mostly\s+|partly\s+)?(?:with|using|by|via)\s+(?:the\s+)?(?:claude(?:\s+code)?|chatgpt|gpt-?\d*|copilot|cursor|codex|gemini|ai)\b/gi;
const PAIR_MENTION = /\bwith\s+(?:help\s+from|the\s+help\s+of)\s+(?:claude(?:\s+code)?|chatgpt|copilot|cursor)\b/gi;
export const naive = (d) => (AI_WORDS.test(d) ? 'ai' : 'other');
export function stripped(d) {
const clean = d.replace(TOOL_MENTION, ' ').replace(PAIR_MENTION, ' ');
return AI_WORDS.test(clean) ? 'ai' : 'other';
}
The first pattern covers a verb of making (built, made, written, coded, vibe-coded, generated, created, developed, powered, assisted, scaffolded), an optional adverb, a preposition (with, using, by, via), and then a tool name. The second pattern covers “with help from” and “with the help of”. The g flag removes every mention in a description, and the i flag ignores case.
How did we test it?
We wrote 20 descriptions, labeled each by hand as ai (the project is about AI) or other, and ran both versions. These are hypothetical descriptions written for the test, not copied from real repositories (cases.mjs):
// Hypothetical descriptions written for this test. Label = what the project is about.
export const cases = [
['A habit tracker built with Claude Code','other'],
['Budget app made using ChatGPT, runs offline','other'],
['A static blog generator, vibe-coded with Cursor','other'],
['CLI for renaming photos. Built entirely with Claude Code.','other'],
['Weather dashboard written by Claude','other'],
['Todo app (developed with help from Copilot)','other'],
['Markdown notes app, generated using GPT-4','other'],
['Recipe site created with the help of ChatGPT','other'],
['An LLM agent framework for tool calling','ai'],
['RAG pipeline with embeddings and a vector store','ai'],
['Chatbot for support tickets using OpenAI','ai'],
['Claude Code plugin that reviews pull requests','ai'],
['Fine-tuning scripts for GPT-style models','ai'],
['Agent that books meetings, built with Claude Code','ai'],
['Gantt chart library for React','other'],
['Prompt library for Claude and ChatGPT','ai'],
['Tiny HTTP server in Go','other'],
['Browser extension that summarizes pages with an LLM','ai'],
['Chess engine, coded with Copilot','other'],
['MCP server for Claude Code','ai'],
];
The runner (run.mjs) prints the score for each version and lists what each got wrong:
import { naive, stripped } from './classify.mjs'; import { cases } from './cases.mjs';
for (const [name, fn] of [['naive', naive], ['stripped', stripped]]) {
const wrong = cases.filter(([d, l]) => fn(d) !== l);
console.log(`${name}: ${cases.length - wrong.length}/${cases.length} correct`);
for (const [d, l] of wrong) console.log(` wrong (expected ${l}): ${d}`);
}
The output:
naive: 14/20 correct
wrong (expected other): A habit tracker built with Claude Code
wrong (expected other): CLI for renaming photos. Built entirely with Claude Code.
wrong (expected other): Weather dashboard written by Claude
wrong (expected other): Todo app (developed with help from Copilot)
wrong (expected other): Markdown notes app, generated using GPT-4
wrong (expected other): Chess engine, coded with Copilot
stripped: 20/20 correct
All six plain-matching mistakes are the same mistake: a tool was named, and the project was not about it. Two descriptions that mention ChatGPT passed both versions, because our word list has gpt as a whole word and chatgpt is a different word. That is a hole in the word list, not a strength of the method.
One case in the set checks that stripping does not go too far. “Agent that books meetings, built with Claude Code” is about an agent, so the right label is ai. The tool phrase is removed, agent remains, and the label stays ai.
Where does it still fail?
We tried five more descriptions after the patterns were written, and looked at how the answers go wrong.
"Photo organizer powered by AI" naive=ai stripped=other
"Support bot built with Claude Code and OpenAI" naive=ai stripped=ai
"Notes app, Claude-assisted" naive=ai stripped=ai
"Written in Rust, using Claude to summarize each note" naive=ai stripped=ai
"Created by Claude Code" naive=ai stripped=other
- “Photo organizer powered by AI” was stripped to
other. If AI is the product’s selling point, that is a wrong answer. The verbpoweredis ambiguous: it can mean made by, or run by. We included it in the pattern, so this is a trade-off we chose. - “Notes app, Claude-assisted” stays
ai. The hyphenated form is not in the patterns, so the tool name is still matched. We would call that wrong, since Claude only assisted in the building. - “Written in Rust, using Claude to summarize each note” stays
ai, and probably should: the sentence says the app uses Claude as a feature. Our pattern needs a verb of making before “using”, so it left this alone. That is a pass by construction, not a judgment. - “Created by Claude Code” has nothing left once the tool phrase is removed, and came out as
other. In real use, detect an empty remainder and mark the item unknown instead. - “Support bot built with Claude Code and OpenAI” stays
aibecauseopenairemains after the first tool mention is removed. That is probably right, but the script cannot know.
How fast is it?
We ran the stripped classifier 200,000 times on one short description:
200k calls ms 69
That is 69 milliseconds on one machine in one run, a fraction of a microsecond per call. Treat it as an order of magnitude. The point is that this approach needs no network call and no model, so it is cheap enough to run over every item in a feed.
What would we do next?
- Add an “unknown” outcome for descriptions that are empty after stripping, and for ones where an AI keyword and a tool mention appear together.
- Widen the list of tool names and forms (
Claude-assisted,AI-generated), adding a test for each new form before adding the pattern. - Check a real sample. Pull a few hundred real descriptions, label them by hand without looking at the classifier, and compare. Our 20 were written knowing what the patterns look for.
- Decide on “powered” on purpose. Drop it from the verb list and accept more mistakes on “powered by”, or keep it and accept mistakes on real AI products.
Limitations
- The 20 descriptions are hypothetical and were written by us alongside the patterns. The 20 of 20 score is optimistic and should not be quoted as an accuracy rate.
- The five extra descriptions are too few to measure anything. They show kinds of failure, not how often each happens.
- The word list and patterns cover English only.
- We did not compare against a language model or against any existing classifier.
- The timing is one run on one machine.
Related reading
- Detecting Near-Duplicate GitHub Repos by Description, and Where Prefix Matching Fails
- Guarding an Automated Social Post: Four Checks Before Anything Goes Out
- Fuzzing an LLM JSON Extractor: What Breaks When You Parse Between the First and Last Brace
Frequently asked questions
Why does keyword matching mislabel projects built with AI tools?
Because the matcher sees the word Claude, Copilot or GPT and cannot tell whether the project is about that tool or merely made with it. A habit tracker described as built with Claude Code contains the same keyword as an agent framework. The sentence structure is the only clue.
What does stripping tool mentions mean?
Before matching keywords, remove phrases that say how something was made, such as built with, made using or coded with followed by a tool name. What remains is the description of what the project is, and the keywords are matched against that.
How accurate was the stripped version?
On our 20 hand-written descriptions it was right on all 20, against 14 for plain matching. We wrote those descriptions and the patterns together, so that score is optimistic. We also found cases it gets wrong, shown below.
Could a language model do this better?
Possibly, for ambiguous cases, but it costs money and time per item and can be inconsistent. We did not test one here. A few regular expressions handle the common phrasing, ran 200,000 descriptions in 69 milliseconds on our machine, and give the same answer every time.
What phrases does the regex miss?
Anything outside its patterns. Claude-assisted was not stripped. A sentence like using Claude to summarize each note was left alone, which is arguably right because it describes a feature. Powered by AI was stripped, which is wrong when the product really is an AI product.