Skip to content

Rules for an AI coding agent to filter out generic AI-generated UI designs, text, and code.

v3.2.23: the plugin-door probes report the newest copy (#47)

Fajar Hidayat77e9172da2cd
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 46b6433..25a2fac 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -8,7 +8,7 @@
{
"name": "antislop",
"source": "./",
- "version": "3.2.22",
+ "version": "3.2.23",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills."
}
]
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index fc80cf0..673fa76 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "antislop",
"displayName": "antislop",
- "version": "3.2.22",
+ "version": "3.2.23",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
"author": {
"name": "miqdadbadjuber"
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json
index 68b4196..a2ebc7a 100644
--- a/.codex-plugin/plugin.json
+++ b/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "antislop",
- "version": "3.2.22",
+ "version": "3.2.23",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
"author": {
"name": "miqdadbadjuber"
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index 6f50696..e5fbe2d 100644
--- a/.cursor-plugin/plugin.json
+++ b/.cursor-plugin/plugin.json
@@ -2,7 +2,7 @@
"name": "antislop",
"displayName": "antislop",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
- "version": "3.2.22",
+ "version": "3.2.23",
"author": {
"name": "miqdadbadjuber"
},
diff --git a/.kimi-plugin/plugin.json b/.kimi-plugin/plugin.json
index b3aa482..1c4da19 100644
--- a/.kimi-plugin/plugin.json
+++ b/.kimi-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "antislop",
- "version": "3.2.22",
+ "version": "3.2.23",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
"author": {
"name": "miqdadbadjuber"
diff --git a/.omp-plugin/marketplace.json b/.omp-plugin/marketplace.json
index 46b6433..25a2fac 100644
--- a/.omp-plugin/marketplace.json
+++ b/.omp-plugin/marketplace.json
@@ -8,7 +8,7 @@
{
"name": "antislop",
"source": "./",
- "version": "3.2.22",
+ "version": "3.2.23",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills."
}
]
diff --git a/GUIDE.md b/GUIDE.md
index d1bb29c..3401889 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -185,7 +185,7 @@ npx antislop-ai
Answer the questions exactly as you did the first time. When it reaches folders you already have, it prints what it found before asking anything:
```
-▲ Already here: antislop 3.2.21. This installer carries 3.2.22.
+▲ Already here: antislop 3.2.22. This installer carries 3.2.23.
```
Then it asks one extra question:
diff --git a/README.md b/README.md
index 6d75fa7..b6143ce 100644
--- a/README.md
+++ b/README.md
@@ -212,7 +212,7 @@ A folder that goes deeper into one concern, holding a `SKILL.md` with its rules.
## Roadmap
-**v3.2.22** is a maintenance round. The installer can now see all seven plugin doors, so a Kimi Code, Cline, or Oh My Pi plugin copy is named with its own update command instead of going unmentioned. CI also runs on macOS, alongside Linux and Windows, so a report from that platform can be split into what the installer got wrong and what the agent's own configuration explains.
+**v3.2.23** fixes the version the installer reports for a plugin copy. A Kimi Code, Cline, or Oh My Pi store that kept an old copy beside the new one could report the old version, and Codex ranked 3.2.9 above 3.2.22. `npx antislop-ai --update` run from the home folder also stops writing a pointer into `~/CLAUDE.md`, `~/AGENTS.md`, and `~/GEMINI.md`.
Every earlier release, and what comes next, is in [ROADMAP.md](ROADMAP.md).
@@ -226,7 +226,7 @@ Thanks to everyone who helps make antislop better.
<p align="center">
<a href="https://github.com/miqdadbadjuber/anti-slop/graphs/contributors">
- <img src="https://contrib.rocks/image?repo=miqdadbadjuber/anti-slop&v=3.2.22" alt="antislop contributors" />
+ <img src="https://contrib.rocks/image?repo=miqdadbadjuber/anti-slop&v=3.2.23" alt="antislop contributors" />
</a>
</p>
diff --git a/ROADMAP.md b/ROADMAP.md
index de8fa54..55ae603 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -11,7 +11,7 @@
## Where we are
-The latest release is **v3.2.22**. antislop is a packaged system: a lean, always-loaded core plus five additive skills, each a standard agent skill folder at `skills/<name>/SKILL.md`.
+The latest release is **v3.2.23**. antislop is a packaged system: a lean, always-loaded core plus five additive skills, each a standard agent skill folder at `skills/<name>/SKILL.md`.
- **The core.** 38 rules in three tiers (Hard Gate, Purpose-Gate, Quality Locks), a Liveliness Toolkit, a mandatory Delivery Gate, and two usage modes (During / After). The single-file `antislop.md` is the same filter, pasteable into any chat window.
- **Usage-mode preferences.** Saving a global mode is opt-in. Without a settings file, every session still asks during or after. Saved modes announce their source, explicit session choices take precedence, and `--mode ask` restores the question.
@@ -63,6 +63,7 @@ Up to v3.0.0 each +0.1 shipped exactly one new skill, which kept the filter pull
| v3.2.20 | Usage modes become a saved preference, opt-in and announced with its source, with a session choice still winning. From community PR #29. |
| v3.2.21 | The contrast checker reads the threshold from the unrounded ratio, so a pairing between 4.495 and 4.5 no longer reports 4.50 and passes 4.5:1. From community PR #43. |
| v3.2.22 | Maintenance round. The installer names all seven plugin doors, adding Kimi Code, Cline, and Oh My Pi, and CI runs on macOS alongside Linux and Windows. |
+| v3.2.23 | The plugin-door probes report the newest copy when a store holds more than one, Codex versions compare as numbers, and `--update` run from the home folder no longer writes a pointer there. |
## What's next
@@ -76,9 +77,9 @@ Every door is verified against the vendor's current documentation before its ver
| Version | Item | What it means |
|---------|------|---------------|
-| v3.2.23 | Community PR | One new slop pattern, added to the core with its Delivery Gate item. |
-| v3.2.24 | Community PR | Additional copywriting rules in antislop-copywriting. |
-| v3.2.25 | DeepSeek harness plugin | The harness becomes the eighth plugin door once its documentation is confirmed. |
+| v3.2.24 | Community PR | One new slop pattern, added to the core with its Delivery Gate item. |
+| v3.2.25 | Community PR | Additional copywriting rules in antislop-copywriting. |
+| v3.2.26 | DeepSeek harness plugin | The harness becomes the eighth plugin door once its documentation is confirmed. |
Beyond the numbered plan, with no promised version:
diff --git a/cli/lib/banner.mjs b/cli/lib/banner.mjs
index 6d8cc9f..8e2199d 100644
--- a/cli/lib/banner.mjs
+++ b/cli/lib/banner.mjs
@@ -15,7 +15,7 @@ export function banner() {
...LOGO,
'',
' ' + pc.dim('Anti Slop: Rules for AI Coding Agents'),
- ' ' + pc.dim('installer v3.2.22'),
+ ' ' + pc.dim('installer v3.2.23'),
'',
].join('\n')
}
diff --git a/cli/lib/install.mjs b/cli/lib/install.mjs
index d4a4850..e909810 100644
--- a/cli/lib/install.mjs
+++ b/cli/lib/install.mjs
@@ -139,40 +139,47 @@ function findClone(dir) {
return fs.existsSync(dir) ? { path: dir, version: cloneVersion(dir) } : null
}
+// A store can keep an old copy beside the new one, and folder order then decided which
+// version was reported. The highest version wins; an unknown one sorts below any known.
+function newest(copies) {
+ copies.sort((a, b) => (a.version ?? '').localeCompare(b.version ?? '', undefined, { numeric: true }))
+ return copies.length ? copies[copies.length - 1] : null
+}
+
// Kimi and Oh My Pi name the installed copy after the plugin or the marketplace,
// so the copy is found by what it contains, not by its folder name.
function findCopyUnder(dir) {
+ const copies = []
for (const name of listDirs(dir)) {
const candidate = path.join(dir, name)
if (fs.existsSync(path.join(candidate, 'skills', CORE))) {
- return { path: candidate, version: cloneVersion(candidate) }
+ copies.push({ path: candidate, version: cloneVersion(candidate) })
+ continue
}
// A store can nest an install one level deeper, so check that too.
for (const inner of listDirs(candidate)) {
const nested = path.join(candidate, inner)
if (fs.existsSync(path.join(nested, 'skills', CORE))) {
- return { path: nested, version: cloneVersion(nested) }
+ copies.push({ path: nested, version: cloneVersion(nested) })
}
}
}
- return null
+ return newest(copies)
}
// Cline stores each install under a hashed path that varies by source type, so
// the copy is found by walking the store instead, skipping dependency folders.
-function findNestedCopy(dir, depth) {
+function findNestedCopy(dir, depth, copies = []) {
for (const name of listDirs(dir)) {
if (name === 'node_modules' || name === '.git' || name.startsWith('.replace-')) continue
const candidate = path.join(dir, name)
if (fs.existsSync(path.join(candidate, 'skills', CORE))) {
- return { path: candidate, version: cloneVersion(candidate) }
- }
- if (depth > 0) {
- const found = findNestedCopy(candidate, depth - 1)
- if (found) return found
+ copies.push({ path: candidate, version: cloneVersion(candidate) })
+ } else if (depth > 0) {
+ findNestedCopy(candidate, depth - 1, copies)
}
}
- return null
+ return newest(copies)
}
// Oh My Pi moves plugin state to $XDG_DATA_HOME once that root is initialized,
@@ -190,16 +197,13 @@ function findOmp() {
for (const home of ompHomes()) {
const plugins = path.join(home, 'plugins')
const cache = path.join(plugins, 'cache', 'plugins')
- const matches = listDirs(cache)
- .map((name) => ({ name, parts: name.split('___') }))
- .filter((m) => m.parts.length === 3 && m.parts[1] === CORE)
- .map((m) => ({ dir: path.join(cache, m.name), version: m.parts[2] }))
- .sort((a, b) => a.version.localeCompare(b.version, undefined, { numeric: true }))
-
- if (matches.length > 0) {
- const newest = matches[matches.length - 1]
- return { path: newest.dir, version: newest.version }
- }
+ const cached = newest(
+ listDirs(cache)
+ .map((name) => ({ name, parts: name.split('___') }))
+ .filter((m) => m.parts.length === 3 && m.parts[1] === CORE)
+ .map((m) => ({ path: path.join(cache, m.name), version: m.parts[2] })),
+ )
+ if (cached) return cached
const copy = findCopyUnder(plugins)
if (copy) return copy
}
@@ -230,8 +234,7 @@ export const PLUGIN_DOORS = [
update: 'codex plugin marketplace upgrade anti-slop',
find() {
const cache = path.join(os.homedir(), '.codex', 'plugins', 'cache', 'anti-slop', CORE)
- const versions = listDirs(cache).sort()
- return versions.length ? { path: cache, version: versions[versions.length - 1] } : null
+ return newest(listDirs(cache).map((version) => ({ path: cache, version })))
},
},
{
@@ -457,7 +460,12 @@ export function updateAll({ locations = ['project', 'global'] } = {}) {
const projectTargets = []
const projectSkills = new Set()
+ // Run from the home folder, the project scope is the global one: each folder was updated
+ // twice and a pointer landed in ~/CLAUDE.md, which agents then load in every project.
+ const atHome = fs.realpathSync(process.cwd()) === fs.realpathSync(os.homedir())
+
for (const location of locations) {
+ if (location === 'project' && atHome) continue
for (const target of resolveTargets(location)) {
if (!fs.existsSync(path.join(target.path, CORE))) continue
const skills = SKILL_NAMES.filter((s) => fs.existsSync(path.join(target.path, s)))
diff --git a/cli/package-lock.json b/cli/package-lock.json
index 7a63f6c..a00af44 100644
--- a/cli/package-lock.json
+++ b/cli/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "antislop-ai",
- "version": "3.2.22",
+ "version": "3.2.23",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "antislop-ai",
- "version": "3.2.22",
+ "version": "3.2.23",
"license": "MIT",
"dependencies": {
"@clack/prompts": "^1.7.0",
diff --git a/cli/package.json b/cli/package.json
index 310866f..d58404a 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "antislop-ai",
- "version": "3.2.22",
+ "version": "3.2.23",
"description": "Interactive installer for the antislop skills. Anti Slop: Rules for AI Coding Agents.",
"type": "module",
"bin": {
diff --git a/cli/scripts/smoke-worker.mjs b/cli/scripts/smoke-worker.mjs
index d38ddf5..d27256f 100644
--- a/cli/scripts/smoke-worker.mjs
+++ b/cli/scripts/smoke-worker.mjs
@@ -12,6 +12,7 @@ import {
detectAgents,
detectConflicts,
detectDuplicateReads,
+ detectPluginDoors,
installSkills,
installedVersion,
updateAll,
@@ -366,6 +367,40 @@ check(
// A door row without a command would print a blank line where the answer belongs.
check('K every plugin door names itself and its command', PLUGIN_DOORS.filter((d) => !d.id || !d.label || !d.update).map((d) => d.id), [])
+// A store holding an old copy beside the new one used to report whichever folder listed
+// first. The old copy is named to list first, so only a version sort reports 3.2.22.
+const fakeHome = fs.mkdtempSync(path.join(os.tmpdir(), 'antislop-home-'))
+const savedEnv = { ...process.env }
+try {
+ for (const k of ['KIMI_CODE_HOME', 'CLINE_DIR', 'XDG_DATA_HOME']) delete process.env[k]
+ process.env.HOME = process.env.USERPROFILE = fakeHome
+ const copy = (dir, version) => {
+ fs.mkdirSync(path.join(fakeHome, dir, 'skills', CORE), { recursive: true })
+ fs.writeFileSync(path.join(fakeHome, dir, 'skills', CORE, 'VERSION'), version + '\n')
+ }
+ for (const [name, version] of [['aa-old', '3.2.9'], ['zz-new', '3.2.22']]) {
+ copy(path.join('.kimi-code', 'plugins', 'managed', name), version)
+ copy(path.join('.cline', 'plugins', '_installed', name, 'hash'), version)
+ copy(path.join('.omp', 'plugins', name), version)
+ fs.mkdirSync(path.join(fakeHome, '.codex', 'plugins', 'cache', 'anti-slop', CORE, version), { recursive: true })
+ }
+ check(
+ 'L plugin doors report the newest copy in a store',
+ detectPluginDoors().map((d) => `${d.door.id} ${d.version}`).sort(),
+ ['cline 3.2.22', 'codex 3.2.22', 'kimi 3.2.22', 'omp 3.2.22']
+ )
+
+ // Run from home, --update must treat it as the global scope only.
+ installSkills({ skills: [CORE], targets: resolveTargets('global', ['claude']), overwrite: false })
+ process.chdir(fakeHome)
+ check('L update from home touches each folder once', updateAll().results.map((r) => r.location), ['global'])
+ check('L update from home writes no pointer', fs.existsSync(path.join(fakeHome, 'CLAUDE.md')), false)
+} finally {
+ process.chdir(here)
+ process.env = savedEnv
+ fs.rmSync(fakeHome, { recursive: true, force: true })
+}
+
if (failures.length > 0) {
console.error(`\n${failures.length} check(s) failed: ${failures.join(', ')}`)
process.exit(1)
diff --git a/package.json b/package.json
index ad6420a..52163cf 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "antislop",
- "version": "3.2.22",
+ "version": "3.2.23",
"private": true,
"type": "module",
"description": "Anti Slop: Rules for AI Coding Agents.",
diff --git a/skills/antislop-human/contrast-mcp.py b/skills/antislop-human/contrast-mcp.py
index e791626..d1d80ca 100644
--- a/skills/antislop-human/contrast-mcp.py
+++ b/skills/antislop-human/contrast-mcp.py
@@ -8,7 +8,7 @@ import sys
PROTOCOL_VERSION = "2024-11-05"
SERVER_NAME = "antislop-contrast"
-SERVER_VERSION = "3.2.22"
+SERVER_VERSION = "3.2.23"
TOOLS = [
{
diff --git a/skills/antislop/VERSION b/skills/antislop/VERSION
index 0698331..6b6eace 100644
--- a/skills/antislop/VERSION
+++ b/skills/antislop/VERSION
@@ -1 +1 @@
-3.2.22
+3.2.23