rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:kabaliGamer-Dev2/s-eidos
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Evidence-backed front-end pattern review for coding agents.
S-Eidos is a DeepSeek Harness plugin — and a plain command-line tool for any agent environment — that reviews front-end code that already exists and reports the places where it is risky, inaccessible, obsolete, or a poor fit for the framework it is written in. Every finding arrives with the evidence behind it: a classification, a severity, a confidence, the support constraint under which the advice is valid, the conditions under which it must not be flagged, a minimal migration, and a primary-source URL with the date it was retrieved.
S-Eidos takes its name from the Greek εἶδος — form, shape, kind: the shape a thing has, and the root of "eidetic" and "idea". A pattern is a form, and recognising a form is exactly what this tool does; the evidence is how it earns the right to say so. The rest follows from that: age is not a defect, and a shape alone is not a verdict. Nothing is flagged for being old. A finding fires only when a cited source, the project's declared support target, and a detectable code shape agree that a change would pay.
S-Eidos is independently developed. It is not affiliated with, endorsed by, or derived from Google, Chrome, MDN, or the maintainers of any other project named in this repository. See NOTICE.md.
| Surface | What it does |
|---|---|
| Left sidebar entry | Adds S-Eidos to the DeepSeek Harness left sidebar. It opens a workbench over the bundled rule catalog: filter by rule, classification or severity, and read each rule's reasoning — classification, impact, severity, confidence, support gate, false-positive warning, migration and dated citation. |
Agent tool s_eidos_audit |
Reviews explicitly named paths and returns findings as a structured value or a readable digest. Detect-only. |
Skill s-eidos-audit |
Teaches the agent when to call the tool, how to read a finding, and what the review will not do. |
CLI s-eidos |
The same engine from any terminal or agent that can run a shell command: audit, rules, explain, decisions. |
Nothing is uploaded. There is no telemetry, no analytics, no network call, and no write to the code being reviewed.
The bundle needs no build step and no dependencies.
# From a local checkout, using the DSH CLI:
dsh plugin --profile desktop add file:/absolute/path/to/s-eidos
Or, from a DSH session, install the package directory with plugin_manager
(action: "install_bundle", target: "<absolute package directory>"). One plugin row named
s-eidos is inserted; the tool and skill appear in the next session, and the sidebar entry appears
in the Web client.
Ask the agent for a review:
Review src/ with s-eidos and tell me which findings you would actually act on.
node bin/s-eidos.mjs audit src/ # readable report
node bin/s-eidos.mjs audit src/ --format json # the machine-readable report
node bin/s-eidos.mjs audit src/ --fail-on high # exit 1 when a high or worse finding exists
node bin/s-eidos.mjs audit src/ --targets safari-16-plus
node bin/s-eidos.mjs rules # the catalog
node bin/s-eidos.mjs explain MET-001 # one rule in full
audit requires at least one explicit path. S-Eidos never walks the working directory on its own
— an unexpected whole-repository walk is worse than an error.
Exit codes: 0 completed, 1 a --fail-on gate was breached (or a runtime failure), 2 usage
error.
CRITICAL MET-001 viewport blocks pinch zoom
src/index.html:5
excerpt: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
classification: inaccessible · impact accessibility
confidence: finding high · remediation high
why: Blocking zoom removes the only way a low-vision user can enlarge text on a phone, and no content benefits from it.
do not flag when: A maximum-scale value of 5 or greater ... | The pattern appears in a template that is never served ...
evidence: https://developer.mozilla.org/.../Viewport_meta_element (MDN Web Docs, retrieved 2026-11-16, review by 2027-11-16)
migration: <meta name="viewport" content="...maximum-scale=1, user-scalable=no"> → <meta name="viewport" content="width=device-width, initial-scale=1">
autofix: safe
Three things to notice:
do not flag when is not optional. Every rule ships with at least one false-positive
condition, and every report prints it next to the finding. A finding you are meant to dismiss
says so.evidence carries two dates. retrieved is when the source was read; review by is when it
must be read again. A rule past its review date is reported as stale rather than presented as
current.autofix describes a policy that this version does not execute. See Safety model below.Every rule carries exactly one classification. The word deprecated is reserved: a rule may only
claim it when a cited source says "deprecated" or "removed".
| Classification | Meaning |
|---|---|
deprecated |
officially discouraged or scheduled for removal — only with a source that says so |
obsolete |
no longer suitable in most modern contexts, not formally deprecated |
legacy |
older but potentially valid |
situational |
appropriate under stated constraints |
unsupported |
unavailable in the target browser or runtime |
insecure |
unsafe regardless of age |
inaccessible |
inaccessible regardless of age |
An independent impact axis says why a change would pay: security, accessibility,
performance, maintainability, correctness, compatibility, privacy. "Inefficient",
"overengineered" and "framework-misaligned" live here, because they are reasons a change pays rather
than kinds of temporality.
The brief for every review includes a support policy. When a rule's modern alternative is
unavailable at that target, the finding is demoted to situational and says so, instead of being
presented as a defect. insecure and inaccessible findings are never demoted: a target that cannot
run the fix is not a reason to keep shipping the defect.
| Preset | Meaning |
|---|---|
baseline-widely-available |
default — Baseline "widely available" features are fair game |
baseline-newly-available |
newly available features are acceptable |
modern-2026 |
current Baseline snapshot |
safari-16-plus, safari-18-plus |
conservative Apple floor |
last-2-versions |
evergreen minus two |
evergreen-desktop |
current Chromium, Firefox and WebKit |
enterprise-chromium-lts |
a pinned older Chromium |
Presets resolve offline from a capability table shipped inside the catalog. No network, no caniuse download, no browser-database dependency.
Detect-only. This version has no apply path. It never edits, formats or deletes the code it
reviews. Its only write is an opt-in decision record, and only when a person runs
s-eidos decisions add --yes.
The contract any future codemod must satisfy is written down and tested now, so that the absence of one is a design decision rather than an oversight:
--dry-run by default even when an apply flag exists;innerHTML → textContent, which silently deletes rendered content and is therefore never
autofix: safe;passed/failed/unavailable — never "pass" by omission.A dismissed finding is a decision. S-Eidos records it in .s-eidos/decisions.json with a reason
and a review date:
node bin/s-eidos.mjs decisions add --rule REA-001 --path src/legacy \
--reason "third-party widget we do not own" --review-by 2027-05-16 --yes
A suppressed finding stays in the report, marked suppressed and counted separately, so the
numbers stay honest. A decision past its reviewBy is reported as expired, so it cannot quietly
become permanent policy.
fetch,
http, https or dns.require of repository files, no config inheritance, no
npx, no git subprocess.The package has zero runtime dependencies and no build step. client.js is a generated artifact
committed to the repository; npm run build:check fails if it drifts from its sources, so the bundle
cannot silently fall out of date.
research/legacy-pattern-catalog.md); each shipped rule has a detector, a positive fixture, a
negative fixture and an end-to-end test, and the other 30 are the reviewed backlog rather than
quietly missing.standards entries are references (for example a WCAG success
criterion), never a conformance statement. S-Eidos does not certify anything.b rules reason about a few surrounding lines, not a full parse
tree. Their false-positive conditions are listed for exactly that reason.Every rule records evidence.url, evidence.authority, evidence.retrieved and evidence.reviewBy.
research/source-register.md is the master citation list; a link checker verifies it. The review and
retirement process is in docs/knowledge-update-process.md.
rules/catalog.json the single source of truth: every rule and its evidence
rules/schema.mjs hand-written catalog validator (no dependency)
src/engine/ the host-agnostic analyzer: walk, classify, targets, detect, scan, report
src/cli/main.mjs the CLI, injectable so it is testable without spawning
src/client/ the left-sidebar panel's source; client.js is generated from it
index.js the DSH host half: the agent tool and the skill
bin/s-eidos.mjs the launcher
skills/s-eidos-audit/ the agent-facing workflow skill
test/ fixtures and suites (node --test)
research/ dated evidence artifacts that justify every rule
docs/ architecture, rule reference, processes, design
npm test # node --test, no dependencies required
npm run build # regenerate client.js from src/client and the catalog
npm run build:check # fail if client.js drifts
npm run verify # every local check in one command
MIT. See LICENSE. Third-party content is neither bundled nor adapted; see NOTICE.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。