Who it is forA developer or ops person with a list of messages, tickets or comments to triage and no time to set up a model.
The problemHand-sorting or hand-writing rules for a pile of short texts takes hours and breaks as wording changes.
The outcomeEach text gets a label and a calibrated confidence, returned as plain text that a script or agent can read.
What you need first
- A terminal with curl or another HTTP client
- npm, only if you want the classify CLI
- The texts you want to label and a set of label names
Steps
- Run
curl https://classifier.dev/spam,not+spam/Win+a+free+iPhoneto see the path form return a label. - Run
curl "https://classifier.dev/?labels=spam,not+spam&text=Win+a+free+iPhone"to see the same call in query form, which is easier to build in code. - Run
curl classifier.devto read the plain text docs for the batch form, since the batch syntax is not shown in the README excerpt. - Send your texts in batches of up to a thousand per request using the batch form from the docs, and collect each label in order. (inferred, check the README)
- Write the input text and returned label side by side so you can spot-check the results.
Prompt for your agent
Using the classifier.dev API from the classifier-dev repo, label each text in <input file> as bug, feature or praise by calling https://classifier.dev over plain HTTP with no key. Write the results to <output file> as CSV with the original text and the label. Verify that the number of output rows equals the number of input rows.
Caveat. The README excerpt shows the single-text form and states the thousand-text limit, but not the exact batch syntax, so confirm it at classifier.dev before scripting.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mrmps/classifier-dev and "Sort a batch of texts into labels in one call"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer