Model or dataset
lynote-ai/ai-text-detector avatar
lynote-ai/ai-text-detector

ai-detector-skill: a cautious AI-text risk analyzer for local workflows and coding agents

A cautious, explainable AI-like text risk analyzer for local workflows and coding agents.

678 stars36 forksPythonMIT

At a glance

What is it?
lynote-ai/ai-text-detector ships a Python CLI and API that returns weighted evidence, caveats and next steps instead of a verdict, and its own HC3 evaluation shows the separation between human and AI text is weak. It is a triage tool, not a classifier you can act on alone.
Who is it for?
Adopt ai-detector-skill if you want a local, scriptable triage signal that keeps its own uncertainty attached to the result, and if you already have known writing samples to compare against. Do not adopt it for disciplinary decisions, authorship disputes, or samples under about 80 words, and do not read the 0-100 score as proof.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 8 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • lynote-ai/ai-text-detector678 ★ · +234
Star history
Repository2026-09-212026-11-24
lynote-ai/ai-text-detector444678

234 Stars in the last 64 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem ai-detector-skill solves, and who it is actually for

Most AI text detectors answer a question they cannot answer. They return a percentage and let the reader treat it as a finding. The README states the project takes the opposite approach: explainable weighted signals instead of hidden model claims, and a short-text guardrail that refuses to overstate weak evidence when a sample is too small.

That framing tells you who the tool is for. It is built for a teacher triaging a 400-word reflection before manual review, an editor scanning guest posts for formulaic prose, a trust and safety team sorting long-form posts into a human queue rather than auto-removing them, or a content team comparing drafts across versions. In each case the output feeds a person who will look at the text anyway. The README is explicit that the tool is designed to help an agent say "AI-like signals are present" or "the sample is too short for a meaningful estimate", and not to say "this was definitely written by AI".

The second audience is narrower and more interesting: coding agents. The repository ships SKILL.md at the root as a portable skill definition and AGENTS.md for repo-aware agents, plus a .claude/ directory. If you run Codex or Claude Code against a repository and want a local text-risk check available as a tool, this packaging is the point. The runtime has no network dependency, which the badge row advertises as network-none and requirements.txt confirms by noting the project uses only the Python standard library at runtime.

How the scoring works: weighted signals, caveats and a short-text guardrail

The mechanism is not a trained classifier served behind an API. It is a set of weighted signals computed over the text, summed into a score from 0 to 100, and returned alongside the evidence that produced it. The Python API exposes strongest_signals(), and each signal carries a name and a note, so the explanation is part of the object rather than a separate report you have to generate.

The result object has five documented fields. score is the 0-100 risk estimate. verdict is one of insufficient_text, low_ai_likelihood, mixed_or_uncertain, or high_ai_likelihood. confidence is currently limited to low or medium, which is a deliberate ceiling: the project does not appear to emit a high-confidence verdict at all. signals lists the strongest weighted evidence. caveats are warnings that stay attached to the result, and next_steps are follow-up actions when useful.

The guardrail is the design decision worth noticing. Short samples do not get a low score; they get insufficient_text. In the HC3 evaluation the README reports human coverage of 0.427 against AI coverage of 0.920, and it attributes part of that asymmetry to the short-text guardrail doing useful work on shorter human answers. That is a real trade-off, not a bug: the tool declines to score many human samples, which lowers recall while keeping false confidence down. The README says so directly, calling the current thresholds conservative.

Installing ai-detector-skill and running a first detection

The package installs from the repository with pip in editable mode, which also registers the ai-detect console script defined in pyproject.toml under [project.scripts]. Python 3.9 or newer is required.

bash
pip install -e .
ai-detect examples/sample_ai_like.txt --json

There is also a bootstrap script if you would rather not manage the environment yourself. The README gives it as a single line.

bash
bash scripts/setup.sh

The CLI reads a file path or standard input, and --json changes the output format. Piping is documented, so a shell pipeline works without a temporary file.

bash
cat essay.txt | ai-detect --json

If you want the library rather than the command, import analyze_text from aidetect. The README example reads a file, calls the function, prints the three top-level fields, then iterates over the strongest signals.

python
from aidetect import analyze_text

text = open("essay.txt", encoding="utf-8").read()
result = analyze_text(text)

print(result.score, result.confidence, result.verdict)
for signal in result.strongest_signals():
    print(signal.name, signal.note)

For agent use, the README copies the skill directory into the Codex skills path. It does not document an uninstall or rollback step, so treat that copy as a manual operation you will need to reverse by hand.

bash
cp -R ai-detector-skill "$CODEX_HOME/skills/"

The README's example output for a sample file shows a score of 84/100 with medium confidence and a verdict of high_ai_likelihood, plus a conclusion sentence that calls the number a risk estimate rather than proof. Expect that sentence to travel with the score.

The HC3 numbers are the honest limitation, not a footnote

The project publishes its own evaluation on the English finance, medicine, and open_qa subsets of the public HC3 dataset, using the first 100 rows from each. The README reports a human mean score of 5.4 against an AI mean score of 18.4, a mean separation of 13.0 points, human coverage of 0.427, AI coverage of 0.920, and covered accuracy at score >= 45 of 0.317.

Read those together. The detector separates the two groups on average, but the README's own summary says only weakly on HC3. The covered accuracy figure is the one that should govern how you use it: among samples that clear the threshold, roughly a third are classified correctly on this slice. That is not a tool you point at a student and act on.

The practical consequences are stated in the README. The thresholds are conservative, which keeps false confidence down and lowers recall. The tool works better as triage plus explanation than as a stand-alone classifier. The documented not-for list is equally direct: disciplinary decisions about a named student or employee, treating a single score as proof of cheating or fraud, samples under about 80 words, and high-stakes authorship disputes without known-sample comparison.

There is a second limitation the README does not address. The evaluation covers English finance, medicine, and open_qa text. Nothing in the repository shows how the weighted signals behave on other languages or genres, even though multilingual handling appears in the contributing wish list. If your text is not English prose of that kind, you are extrapolating.

ai-detector-skill against a hosted detector like Winston AI or Turnitin

The obvious alternative is a hosted detector, the category the related searches keep returning to: Winston AI, Turnitin, Grammarly's checker, and the various free online tools. The difference in approach is not accuracy, which this project does not claim to win. It is where the judgement happens and what the output is for.

Hosted detectors send your text to a server, return a probability, and typically present it as a result. You cannot read the weights, and you cannot run the check offline. ai-detector-skill runs locally, has no network dependency at runtime, and returns the signals and caveats that produced the score. For a moderation queue or an agent that needs to justify why it flagged a draft, that transparency is the whole value. For a school that needs a defensible institutional process, a hosted service with a support contract and a documented appeals path is a better fit, and this project's own not-for list points in that direction.

The cost of the local approach is visible in the evaluation. A hosted detector trained on a large corpus can afford to be confident. This one cannot, and its confidence field tops out at medium. If you need a single number you can act on without a human in the loop, this is the wrong tool. If you need a signal that arrives with its own error bars attached, it is the right shape.

Maintenance, upgrade cost and the MIT licence

The repository is not archived, and the last push was on 2026-08-05, the same date as the v0.1.0 release. That is the first release, and pyproject.toml classifies it as Development Status :: 3 - Alpha. There is no second release to infer a cadence from, so anyone adopting this should plan for the API surface to move.

The upgrade cost is low in one respect and uncertain in another. Runtime dependencies are the Python standard library only, so there is no dependency tree to keep patched and no transitive breakage. On the other hand, a change to the signal weights or thresholds would shift scores across every document you have already scored, and the README does not document a versioned scoring contract or a migration path for stored results. If you keep historical scores, record the package version alongside them.

CI runs make test on Python 3.9, 3.11, and 3.13, and regenerates both docs/BENCHMARK.md and docs/HC3_EVALUATION.md as workflow artifacts. That means the evaluation numbers in the repository are reproducible from the committed scripts rather than hand-written, which is a meaningful signal about how the project wants to be judged. The dev commands are make test, make demo, make benchmark, and make eval-hc3.

The licence is MIT, stated in the LICENSE file, the README, and the pyproject.toml classifier. MIT permits commercial and closed-source use with attribution and without a copyleft obligation on your own code. That is the extent of what the repository states; questions about your specific obligations, or about the legal weight of a risk score in a disciplinary process, are not something the project's documentation answers.

Editorial conclusion

Adopt ai-detector-skill if you want a local, scriptable triage signal that keeps its own uncertainty attached to the result, and if you already have known writing samples to compare against. Do not adopt it for disciplinary decisions, authorship disputes, or samples under about 80 words, and do not read the 0-100 score as proof. Before relying on it, reproduce the evaluation with make eval-hc3 on your own text and read docs/HC3_EVALUATION.md, because the published covered accuracy at score >= 45 is 0.317 and the thresholds may not match your domain.

Frequently asked questions

Do AI text detectors actually work?

This project's own evaluation on the HC3 finance, medicine, and open_qa subsets reports a human mean score of 5.4 against an AI mean score of 18.4, which the README describes as separating the groups only weakly. Covered accuracy at score >= 45 on that slice is 0.317. The README concludes the tool works better as triage plus explanation than as a stand-alone classifier.

How can I tell if text is AI written with ai-detector-skill?

Run ai-detect on the file and read the signals and caveats rather than the score alone. The result object exposes strongest_signals(), where each signal has a name and a note, and the caveats stay attached to the result. The README's suggested workflow is to compare the passage with known writing samples before making any judgment.

Is 40% AI detection bad?

The README does not define what a 40 score means. The documented verdicts are insufficient_text, low_ai_likelihood, mixed_or_uncertain, and high_ai_likelihood, and the evaluation sets its threshold at score >= 45 rather than at 40. Treat any single score as a risk estimate, not proof.

Is ai-detector-skill accurate or reliable?

The README reports mean separation of 13.0 points between human and AI text on its HC3 slice, with human coverage of 0.427 and AI coverage of 0.920. It describes the thresholds as conservative, which keeps false confidence down but lowers recall. The confidence field is limited to low or medium.

How do I prove I did not use AI?

ai-detector-skill cannot prove authorship. The README lists high-stakes authorship disputes without known-sample comparison as a case the tool is not for, and states it should not be used to treat a single score as proof of cheating or fraud. Its documented role is to flag signals for human review against known writing samples.

Official sources

  1. License: MIT
  2. lynote-ai/ai-text-detector on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/lynote-ai-ai-text-detector.svg)](https://hysenlabs.com/projects/lynote-ai-ai-text-detector)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/lynote-ai-ai-text-detector.svg)](https://hysenlabs.com/projects/lynote-ai-ai-text-detector)

Was this useful?