Undetectable AI
TypeScript CLI tools for bypassing AI content detectors by removing telltale patterns.
Setup
CODEBLOCK0
Scripts
analyze.ts — Scan for Detectable Patterns
Finds patterns that AI detectors look for: vocabulary, sentence structure, artifacts.
CODEBLOCK1
Output:
==================================================
AI DETECTION SCAN - 5 issues found
==================================================
AI VOCABULARY:
• testament: 1x
• crucial: 2x
AUTO-FIXABLE:
• "serves as" → "is": 1x
transform.ts — Auto-Fix Patterns
Rewrites text to evade detection.
CODEBLOCK3
What it fixes:
- - Filler phrases: "in order to" → "to"
- AI vocabulary: "utilize" → "use", "leverage" → "use"
- Sentence starters: removes "Additionally,", "Furthermore,"
- Chatbot artifacts: removes entire sentences with "I hope this helps", etc.
- Curly quotes → straight quotes
- Capitalization after removals
Workflow
- 1. Scan to see detection risk:
CODEBLOCK4
- 2. Auto-fix mechanical patterns:
CODEBLOCK5
- 3. Manual pass for flagged AI vocabulary (requires judgment)
- 4. Re-scan to verify:
npx ts-node scripts/analyze.ts essay_clean.txt
Customizing
Edit scripts/patterns.json:
- -
ai_words — vocabulary to flag (manual fix needed) - INLINECODE2 — promotional language to flag
- INLINECODE3 — auto-replace mappings
- INLINECODE4 — phrases that trigger full sentence removal
Batch Processing
CODEBLOCK7
不可检测AI
用于绕过AI内容检测器、移除明显模式特征的TypeScript命令行工具。
环境配置
bash
cd scripts && npm install
脚本
analyze.ts — 扫描可检测模式
查找AI检测器关注的特征:词汇、句子结构、人工痕迹。
bash
分析文件
npx ts-node scripts/analyze.ts input.txt
从标准输入读取
echo 这堪称一个明证 | npx ts-node scripts/analyze.ts
JSON格式输出
npx ts-node scripts/analyze.ts input.txt --json
输出结果:
==================================================
AI检测扫描 - 发现5个问题
==================================================
AI词汇:
• 明证:1次
• 关键:2次
可自动修复:
• 堪称 → 是:1次
transform.ts — 自动修复模式
重写文本以规避检测。
bash
转换并打印
npx ts-node scripts/transform.ts input.txt
写入文件
npx ts-node scripts/transform.ts input.txt -o output.txt
同时修复长破折号
npx ts-node scripts/transform.ts input.txt --fix-dashes
静默模式
npx ts-node scripts/transform.ts input.txt -q
修复内容:
- - 填充短语:为了 → 以
- AI词汇:利用 → 使用,借助 → 使用
- 句子开头:移除此外,、而且,
- 聊天机器人痕迹:移除包含希望这能帮到您等完整句子
- 弯引号 → 直引号
- 移除后的首字母大写修正
工作流程
- 1. 扫描以查看检测风险:
bash
npx ts-node scripts/analyze.ts essay.txt
- 2. 自动修复机械模式:
bash
npx ts-node scripts/transform.ts essay.txt -o essay_clean.txt
- 3. 手动处理标记的AI词汇(需要判断)
- 4. 重新扫描以验证:
bash
npx ts-node scripts/analyze.ts essay_clean.txt
自定义配置
编辑 scripts/patterns.json:
- - aiwords — 需要标记的词汇(需手动修复)
- puffery — 需要标记的宣传性语言
- replacements — 自动替换映射
- chatbotartifacts — 触发整句删除的短语
批量处理
bash
扫描所有文档
for f in *.txt; do
echo === $f ===
npx ts-node scripts/analyze.ts $f
done
转换所有文件
for f in *.md; do
npx ts-node scripts/transform.ts $f -o ${f%.md}_clean.md -q
done