
augeron
io.github.R-Hruthvik/augeron
Parse, view, patch, and audit NLS specs with Augeron's deterministic Oberon engine.
Documentation
Augeron
Augeron is a local-first workbench for reviewing AI-generated specs. A dense spec in a flat editor hides its structure, its contradictions, and its broken links. Two paragraphs can disagree on a retention period, and a § reference can point at a section that was renamed, and a reader will not see either without a careful read. Augeron parses the spec into numbered sections and paragraphs, then runs deterministic checks that point at those problems.
It borrows two interaction ideas from computing history:
- Engelbart's NLS (1968) inspired the view codes. Every section and paragraph gets a structural
§coordinate (§2.1b). Coordinates are re-indexed on edit, so inserting a paragraph renumbers the ones after it. The view codesa,h,f,u, andrare Augeron's own, and they are not NLS's letters. - Wirth's Oberon System (1987) inspired the command model. There are no menus and no modal dialogs. Any
Module.Actiontoken that names a registered command is a live command.
Every core command runs offline with deterministic analyzers. An optional OpenAI-compatible key, entered with AI.Config(key), adds an advisory review after Spec.Audit. The review never changes the flags.
An optional in-browser NLI pass, AI.Nli, is opt-in: the first run downloads the Xenova/nli-deberta-v3-xsmall model from Hugging Face, then it runs locally in the browser and is advisory only.
Quickstart
npm install
npm run dev # builds core, then starts the workbench at http://127.0.0.1:5173
npm test # core unit and property tests, then mcp-server tool tests
npm run test:pbt # the fast-check property suite in core (INV-1 to INV-5, plus two more)
npm run build # core, cli, web, mcp-server, and the VS Code extension bundle, in that order
npm run start:mcp # stdio MCP server (run npm run build first)
npm test runs the test script of each workspace that has one: packages/core (vitest unit tests and fast-check property tests), packages/cli (vitest tests for augeron check), packages/mcp-server (vitest tests for the MCP tool logic), and packages/vscode (vitest tests for the diagnostic mapping, with no VS Code runtime). packages/web has no test script. The repository declares no engines field. CI runs on Node.js 22.
At commit 7ab8210, npm test runs 212 core tests in 21 files, including the 7 property tests, and 35 mcp-server tests in one file. The fonts, IBM Plex Mono and IBM Plex Serif, are bundled from the @fontsource npm packages, so the app does not request fonts from Google.
View codes
Press a key with the Document Track focused. The keys are off while you type in System.Tool.
| Key | View | Shows |
|---|---|---|
a | All | Every node, with its text unchanged. Also clears any View.Level clip. |
h | Headings | Headings only. |
f | First sentence | Each paragraph's opening sentence and every sentence with an RFC 2119 keyword (SHALL, MUST, SHOULD, MAY, OPTIONAL, RECOMMENDED, and the rest), with [+Nw] for hidden words. Node roles and audit flags do not depend on this list. |
u | Unverified | Claims and assumptions with no citation or § reference. |
r | Requirements | SHALL and MUST requirements, plus nodes with CONTRADICTION or BROKEN_REF. |
View codes are projections. They never change the document text or the coordinate index.
Level clipping: View.Level(n)
View.Level(n) clips the view to heading depth n, as NLS level clipping does. A heading deeper than n is hidden with its whole subtree. Body text follows the heading that owns it, so View.Level(1) shows the top-level sections and their paragraphs only.
The clip layers on the active view code. View.Level(1) followed by View.Spec(u) shows unverified claims under top-level headings only. View.Spec(h), f, u, and r keep the clip. View.Spec(a) clears it. n must be a positive integer. Other arguments return an error and leave the clip as it was.
Level clipping is a projection. It does not change the tree, rawText, or the coordinates.
Oberon command catalog
Tokens take the form Module.Action or Module.Action(arg). Pipelines look like Spec.Audit -> Outline.ExtractTasks. The whole line is validated before any stage runs. The first error stops the chain.
| Token | Mutates text | What it does |
|---|---|---|
View.Spec(a|h|f|u|r) | No | Switches the view code. Same as the keys. View.Spec(a) also clears the level clip. |
View.Level(n) | No | Clips the view to heading depth n. See Level clipping. |
View.Brief(n) | No | Excerpt view. Keeps up to n whole sentences per section (default 2), picked by RFC 2119 keyword, then numbers and definitions, then words shared with the heading. Each sentence shows its § address. A footer gives the word counts. Any View-Spec or View.Level turns it off. |
View.Theme(light|dark|halloween) | No | Web only. Switches the theme. light is the default. The choice is saved in the browser. |
Spec.Audit | No | Flags contradictions (including All against No on the same subject, modal, and verb), broken § references, unverified claims, vague terms, and requirement smells. The smells are placeholders (TBD), open-ended clauses (etc.), and/or, compound SHALL or MUST, absolutes (always, never, every time, at all times, 100%), escape clauses (where applicable, as necessary, if practicable), and duplicate requirements (INCOSE R30, listed up to 500 per document, then one notice). Also a modal sentence that opens with It, They, This, That, These, or Those followed by a modal (INCOSE R24), a bound such as at most 5000 with no unit after it (INCOSE R40), and an all-caps acronym in a modal sentence that no visible text defines (INCOSE R37, listed up to 500 per document, then one notice). A definition is Full Name (ACR), ACR (Full Name), or ACR: in a heading or table row. Common acronyms such as API and HTTPS are exempt. A modal sentence with SHALL, MUST, SHALL NOT, or MUST NOT, followed by be and a past participle, is flagged as passive voice with no actor (INCOSE R2). Lowercase shall and must stay flagged too, because they pass the same MODAL_KEYWORD gate as every other smell check. The flag is not raised when a by phrase after the participle names an actor. The phrases by default, by design, by convention, by contract, by policy, and by hand name no actor, so the sentence is still flagged. This is a heuristic with lower precision (Femmer et al. 2017), because some passive requirements are valid. To hide the flags on one paragraph, put <!-- augeron-disable-next REQUIREMENT_SMELL --> above it. That hides every requirement smell on the paragraph, not only the R2 flag. Spec.Tighten does not change these sentences. When the document quotes BCP 14, RFC 2119, or RFC 8174, mixed-case keywords such as Must or MUST not are flagged too. Only requirement sentences with a modal keyword count, except for placeholders and the BCP 14 check. With a selection, it flags only the selected nodes, and a selected heading covers its subtree. Contradictions still name partners outside the selection. The checks are deterministic text rules, so on real specs they can produce false positives. Treat each flag as a prompt to look. HTML comments, code, headings, and URLs are not read as prose. The log also gives a quality score out of 100 for the requirement nodes and flagged nodes in scope: each starts at 100 and loses 40 per CONTRADICTION, 25 per BROKEN_REF, 15 per REQUIREMENT_SMELL, 15 per AMBIGUOUS_TERM, and 10 per UNVERIFIED_CLAIM, and the document score is their rounded mean. |
Spec.Ledger(n) | No | Lists every sentence with an RFC 2119 keyword: address, modal, condition or exception clause, and whether View.Brief(n) keeps it (default n is 2). Also checks that every row is in the brief or marked omitted. |
Review.Mark(§x) | No | Web only. Marks one § paragraph reviewed. The mark is kept in the browser, outside the text, and stops counting when that paragraph changes. |
Review.Clear(§x) | No | Web only. Removes the review mark from one § paragraph. The text is unchanged. |
Review.Comment(text) | No | Web only. Adds an open comment to the one selected paragraph or heading, up to 2,000 characters. The comment shows in the margin and stays out of the text and the undo history. It is marked stale when its paragraph changes. |
Review.Resolve(c3) / Review.Reopen(c3) | No | Web only. Marks a comment resolved, or open again, by its id. The text is unchanged. An unknown id is an error. |
Review.List | No | Web only. Lists the comments, open first, with each id, § address and status. A comment is marked (stale: paragraph changed) or (orphaned) when its address no longer exists. |
Review.Export | No | Web only. Logs a Markdown review summary with open and resolved sections. Each comment has its § address and the first sentence of its paragraph. The web app downloads augeron-review.md and logs a receipt. |
Spec.Tighten | Yes | Removes the filler phrases "it is important to note that", "basically", and "very". Turns "in order to" into "to". It never changes modal verbs such as "should", "will", or "is required to", and it does not rewrite passive voice into EARS form. It skips headings and code fences, and it acts on the selection when one exists. |
Cite.Verify | No | Checks § references and citations. With a selection, it checks only the selected nodes, and a selected heading covers its subtree. A § written in code is a syntax example, not a citation. |
Outline.Promote | Yes | Moves the selected heading and its subtree up one heading level. A heading at H1 cannot be promoted. Needs exactly one selected heading. |
Outline.Demote | Yes | Moves the selected heading and its subtree down one heading level. Fails if any heading in the branch is already H6. Needs exactly one selected heading. |
Outline.Move(§x) | Yes | Moves the selected paragraph or heading branch to directly after §x, the target's last line in document order. Refuses a move into itself. Heading levels do not change, so the new position follows from them. |
Outline.ExtractTasks | No | Builds a prioritized checklist. P0 is CONTRADICTION or BROKEN_REF, P1 is other requirements, and P2 is other flagged nodes. |
Doc.InjectFlaw | Yes | Demo helper. Appends a latency conflict and a broken reference. |
Doc.Load(rfc|brief|prd) | Yes | Web only. Loads a showcase fixture. Undoable. |
Doc.Open | Yes | Web only. Opens a .md, .markdown or .txt file up to 200 KB from your computer. Dropping a file on the document does the same. Undoable. |
Doc.Compare | No | Web only. Asks for an earlier version of the spec, in a .md, .markdown or .txt file up to 200 KB, and logs how it differs from the current document: new and resolved flags, added, removed and changed paragraphs, and the score before and after. The document and its history do not change. Same as augeron diff. |
System.Undo / System.Redo | Yes | Steps through the history stack. |
System.ClearLog | No | Clears the log and keeps the welcome block. |
System.Export | No | Logs the audited Markdown. The web app downloads augeron-audited-spec.md and logs a receipt. |
Find.Look(text) | No | Acme-style Look. Lists every paragraph and heading that contains text, ignoring case, with its § address and an excerpt. Empty text is an error. |
Link.Back(§x) | No | Lists every paragraph and heading whose text refers to §x, with an excerpt. An address that does not exist is an error. |
Help.Show(Module.Action) | No | Describes one command: what it does, its argument, whether it changes the tree, and an example. With no argument, lists every command by module. |
Tool.Check | No | Web only. Checks every line of System.Tool. Each token and -> pipeline must parse and name a known command. Gives the line number of each problem, and for each line what it reads and whether it changes the tree. |
System.History | No | Web only. Lists the core commands that ran this session. The browser also appends them to System.Tool under # HISTORY, where each line runs again on a click. Only the pad changes. |
AI.Config(key) | No | Web only. Turns on the advisory AI review for this session. AI.Config() turns it off. |
AI.Nli | No | Web only. Opt-in. Scores candidate contradiction pairs with a local NLI model. The first run downloads the model from Hugging Face. The log lists likely contradictions as advisory only. Flags, text, and history never change. |
Audio.On / Audio.Off | No | Web only. Turns the soundscape on or off. |
System.Veil | No | Web only. Brings back the entry page. |
Exhume.Workbench | No | Web only. Closes the entry page and opens the workbench. |
Edit.Source | No | Web only. Opens the Markdown source for editing. The tree does not change until Done. |
Edit.Done | Yes | Web only. Re-parses the edited Markdown and replaces the document tree. |
Using commands
- Middle-click or Ctrl/Cmd-click a token to run it. The target is the current selection. With no selection, every command acts on the full document.
Spec.Audit,Cite.Verify,Spec.Tighten, andOutline.ExtractTasksnarrow to the selection when one exists. - Ctrl/Cmd+Enter in System.Tool runs the command line at the cursor. A line with
->runs as one pipeline, and a bad stage stops the whole line before anything runs. A line with several tokens runs the token under the cursor, or the nearest token before it. - A plain click on a token in System.Tool or System.Log shows a hint. It does not run the command. The exceptions are
Edit.Source,Edit.DoneandDoc.Openin the document header, which run on a plain click. - Click a
§coordinate to open that node in the split pane. - The workbench opens behind an entry page, shown once per browser session. Press Enter or Escape, or click its button, to close it.
System.Veilbrings it back.
Suppressing findings
To hide a finding you have reviewed, put an HTML comment on its own line, with a blank line above and below it. The comment must be a block by itself. A comment sharing a paragraph with text does nothing.
<!-- augeron-disable-next -->hides every flag on the next paragraph or heading.<!-- augeron-disable-next AMBIGUOUS_TERM, REQUIREMENT_SMELL -->hides only the listed flag types. Separate names with commas or spaces. Unknown names are ignored, so a list of only unknown names hides nothing.<!-- augeron-disable AMBIGUOUS_TERM -->starts a range that hides the listed types, or every type with no list, on each node after it, across headings.<!-- augeron-enable -->ends the range. It takes no list. A range with no matching enable runs to the end of the document.
Comments inside a fenced code block or inside a sentence do nothing. A suppressed flag disappears everywhere flags show: Spec.Audit, Cite.Verify, and the document view. Spec.Audit's log ends with a count of the flags it hid. The text itself never changes. With a CONTRADICTION pair, suppressing one paragraph leaves the other paragraph's flag, which still names the hidden coordinate.
Kiro
This repo ships two Kiro integrations for Augeron. Both need a build first:
npm ci
npm run build
The spec-check hook
.kiro/hooks/augeron-spec-check.json runs when you save a Markdown file under .kiro/specs/. It runs:
node packages/cli/dist/index.js check --fail-on CONTRADICTION,BROKEN_REF .kiro/specs
The check is deterministic and needs no network or API key. It prints every finding, and it fails only for contradictions and broken § references. Other findings, such as unverified numeric claims, are listed but do not fail the run.
To run the same check by hand, use the same command. Add --format json or --format sarif for a machine-readable report.
Connecting Kiro to the MCP server
The MCP server exposes Augeron's analyzers to Kiro as tools. This repo already has a server entry in .kiro/settings/mcp.json, and it uses a path relative to the repo root.
To set up the server yourself, add this under mcpServers in your Kiro MCP config. Replace the path with the absolute path to your checkout. You can get it by running realpath packages/mcp-server/dist/index.js from the repo root.
{
"mcpServers": {
"augeron": {
"command": "node",
"args": ["/absolute/path/to/augeron/packages/mcp-server/dist/index.js"]
}
}
}
The server needs npm run build to have created packages/mcp-server/dist/index.js.
Install as an MCPB bundle
Download augeron-mcp-<version>.mcpb from the Releases page. Open it in a client that supports MCPB, such as Claude Desktop. The bundle runs the same five tools with its own Node.js entry point, so you need Node.js 20 or later and no clone of this repo. Check the file's SHA-256 against the value in the release notes.
The server is also listed in the MCP Registry as io.github.R-Hruthvik/augeron. Releases are cut by pushing a v* tag. The .github/workflows/release-mcp.yml workflow builds the bundle, attaches it to a GitHub Release, and publishes server.json to the registry.
Two passes: Augeron and Analyze Requirements
Augeron is the fast, deterministic pre-check. It finds mechanical problems: broken § references, paragraphs that contradict each other, and numeric claims with no citation. It gives the same output on every run.
Kiro's Analyze Requirements is the slower pass that uses an LLM. Use it for the reading that needs judgment after the pre-check is clean. Run Augeron first, so the LLM pass does not spend time on problems a script can find.
Kiro Power
power-augeron/ is a Kiro Power. It bundles two skills: review-spec, which runs the audit and fixes flags through the MCP tools, and kiro-specs, which runs the CLI gate on .kiro/specs before Analyze Requirements. The power's mcp.json starts the same stdio server as the entry above.
The power runs the built code from your Augeron checkout. Install it like this:
-
Clone the repo and build it:
git clone https://github.com/R-Hruthvik/kiroween cd kiroween npm ci npm run build -
Set
AUGERON_HOMEto the absolute path of that checkout, in the shell you start Kiro from:export AUGERON_HOME=/absolute/path/to/kiroween -
In Kiro, open the Powers panel and choose Add Custom Power. Then either:
- choose Import power from GitHub, and point it at
https://github.com/R-Hruthvik/kiroweenwith the folderpower-augeron, or - choose to add a power from a folder, and select
power-augeroninside your checkout.
- choose Import power from GitHub, and point it at
-
Start Kiro from the same shell, so it inherits
AUGERON_HOME. Then ask for a spec review, for example "review this spec with Augeron".
The power does not install the augeron-spec-check hook into your project. Copy .kiro/hooks/augeron-spec-check.json yourself if you want it. The kiro-specs skill explains what the hook runs.
The power uses node and a path under AUGERON_HOME, not npx. The root package.json has no bin, the augeron-mcp bin is declared only in packages/mcp-server, and dist/ is not committed. A GitHub install would not produce a runnable augeron-mcp command.
Kiro Crew
Kiro Crew is a separate Gateway that runs agents, apps, and hooks. Build the checkout first, as in the Kiro section above. The details below come from the Kiro Crew docs at https://kiro.dev/docs/crew.
MCP server
Add the server under Customize → MCP Servers in the Crew dashboard. Earlier Crew versions call this panel Agent Capabilities → Integrations (MCP). Use the absolute path to the built server:
node /absolute/path/to/augeron/packages/mcp-server/dist/index.js
Crew runs this server through the Kiro CLI harness, so that harness must be set up. A Shared Crew also needs the MCP tools control turned on.
Skills
Copy the two skills into Crew's skills folder:
mkdir -p ~/.kiro/crew/skills
cp -R power-augeron/skills/* ~/.kiro/crew/skills/
Crew reads the files on the next agent invocation.
Why the save hook does not run
.kiro/hooks/augeron-spec-check.json runs on PostFileSave. Crew's file events never fire, so that hook does nothing in Crew. The Stop hook and the PreToolUse gate below replace it.
Stop hook and PreToolUse gate
scripts/crew/augeron-gate.sh serves both hooks. Create each hook under Agent Capabilities → Hooks in the dashboard, or in ~/.kiro/crew/hooks.json. A hook needs a trigger, an optional matcher, and a command.
- Stop hook. Trigger:
Stop. Command:sh /absolute/path/to/augeron/scripts/crew/augeron-gate.sh --report. The script prints the spec check report and exits 0. The Crew docs say a Stop hook continues the agent only when its stdout has a specific form. The copy of the docs used here does not show that form, so check what this report does on a real install. - PreToolUse gate. Trigger:
PreToolUse. Matcher:*, which sends every tool call through the script. Command:sh /absolute/path/to/augeron/scripts/crew/augeron-gate.sh. The script reads the tool event from stdin. Any call that is not agit commitexits 0. Agit commitruns the spec check with--fail-on CONTRADICTION,BROKEN_REF. A failing check exits 2, which denies the call and sends the findings to the model.
Keep these limits in mind:
- Crew hooks do not inherit the Gateway environment. Use absolute paths, and set
AUGERON_SPECSorAUGERON_HOMEinside the command if you need them. - The gate can deny a call only when the Gateway controls approval. If Kiro CLI already approved the call, the hook can report it but cannot stop it.
- The gate matches
git, whitespace, andcommit. It does not catch forms such asgit -C dir commit. - Without a build, the gate blocks
git commitcalls with a message to runnpm run build. Other calls still pass. A PreToolUse hook that crashes or times out blocks the call.
Crew App
crew-augeron/ is a Crew App. It bundles the two skills, an MCP server entry for Augeron, and a spec-reviewer agent. The agent reviews specs with the Augeron tools and does not edit files unless you ask it to.
Install it from a local path in the App Store, or send POST /api/apps/install with {"source": "/absolute/path/to/augeron/crew-augeron"}. Then enable it with POST /api/apps/augeron/enable. The app runs node against your built checkout, so build it first.
The skills in crew-augeron/skills/ are a copy of power-augeron/skills/. After you change the power's skills, run node scripts/crew/sync-skills.mjs. CI runs the same script with --check and fails when the copies differ.
These parts are unverified on a real Crew install:
- The
${AUGERON_HOME}value in the MCP entry. The docs do not say whether Crew expands environment variables there. If it does not, replace the value with the absolute path. - Whether
spec-reviewergets the Augeron MCP tools. Itstoolslist names@augeron, the Kiro CLI form for all tools of one MCP server. The Crew agent docs do not show an MCP entry, so check the agent's tool list after install. - Whether
kirocrewaccepts this manifest. The CLI was not available when this was written.
Task Runner
To run the deterministic check from a Task Runner spec, put node /absolute/path/to/augeron/packages/cli/dist/index.js check --fail-on CONTRADICTION,BROKEN_REF .kiro/specs in the spec's acceptance criteria. The Task Runner docs do not say how to set the test command, so this is unverified. On a real install, confirm that a failing check stops the step. Do not pass --no-test, which skips test verification.
CLI
augeron check runs the same deterministic audit as the workbench over Markdown files, and prints the findings. It makes no network calls and needs no API key. Build first with npm run build, then run node packages/cli/dist/index.js, or npx augeron from the repo root after npm install.
augeron check docs/ # every .md and .markdown file under docs/
augeron check --format sarif --output augeron.sarif docs/spec.md
augeron check --fail-on BROKEN_REF,CONTRADICTION specs/
--format text|json|sarifpicks the report format. The default istext.--output <file>writes the report to a file instead of stdout.--fail-on <list>takes comma-separated flag types, orany(the default). Only findings of those types set exit code 1. The report still lists every finding.-q,--quietprints nothing in text format when there are no findings.--config <file>reads rule settings from a JSON file. Without it,.augeron.jsonin the working directory is used when it exists. See Configuration.
A directory is searched recursively for *.md and *.markdown files. node_modules and directories whose names start with . are skipped. Each file must be UTF-8 and at most 204,800 bytes.
Text format prints one line per finding, path:line:col TYPE coordinate message, sorted by file, line, column, and type. Then it prints one path score S/100 line for each file that has findings, and a summary such as 5 findings in 1 file. The file count is the files that have at least one finding. Each file's score uses the same weights as the Spec.Audit score (CONTRADICTION 40, BROKEN_REF 25, REQUIREMENT_SMELL 15, AMBIGUOUS_TERM 15, UNVERIFIED_CLAIM 10): each requirement or flagged node starts at 100 and loses those points per flag, and the file score is the rounded mean of those nodes, or 100 when there are none.
JSON format prints { version: 1, files: [{ path, score, findings: [...] }] }, where score is the file's quality score from 0 to 100. Each finding has type, coordinate, message, relatedCoordinate (when the flag names another paragraph), and startLine, startColumn, endLine, endColumn. Every checked file is listed, including files with no findings.
SARIF format prints a SARIF 2.1.0 log with one run. CONTRADICTION and BROKEN_REF are error results, and the other flag types are warning. Each result carries partialFingerprints (augeron/v1), so GitHub code scanning can match a finding across runs.
| Exit code | Meaning |
|---|---|
0 | No failing findings. |
1 | At least one finding has a type named by --fail-on. |
2 | Usage error, an invalid config file, or a file that cannot be read, is not UTF-8, or is over 204,800 bytes. |
A file that fails with exit code 2 does not stop the run, so the other files are still checked and reported. Exit code 2 takes priority over exit code 1.
Configuration
augeron check reads rule settings from a JSON file named by --config, or from .augeron.json in the working directory. Without either, every rule runs with its default settings and the output does not change. The VS Code extension reads the same keys from .augeron.json at the root of each workspace folder.
{
"disable": ["UNVERIFIED_CLAIM"],
"disableRules": ["INCOSE R24", "RFC 8174"],
"glossary": ["PSIRT", "as needed"],
"severity": { "AMBIGUOUS_TERM": "info", "BROKEN_REF": "error" }
}
| Key | Meaning |
|---|---|
disable | Flag types to drop from every document. Names: UNVERIFIED_CLAIM, CONTRADICTION, AMBIGUOUS_TERM, REQUIREMENT_SMELL, BROKEN_REF. |
disableRules | Rule prefixes of REQUIREMENT_SMELL findings to drop. A prefix matches only up to a word boundary, so INCOSE R4 does not match INCOSE R40. See the table below. |
glossary | Terms that count as defined. Matching ignores case and runs on whole words. A glossary term gets no INCOSE R37 flag (undefined acronym) and no AMBIGUOUS_TERM flag. |
severity | Level for each flag type: error, warning, or info. It sets the text report label and the SARIF level, where info becomes note. |
Unknown keys, a value of the wrong type, and an unknown flag type or severity name are errors. Each error prints to stderr as <file>: <message>, and the run exits with code 2. Settings are checked before any input file is read.
Disabled findings are left out of the report, the file score, and the --fail-on count. Without a severity entry, contradictions and broken references are error and every other type is warning.
disableRules prefix | Rule |
|---|---|
Placeholder | Placeholder words: TBD, TBC, TBR, TBS. |
INCOSE R8 | Escape clauses: where applicable, as necessary, if practicable. |
INCOSE R9 | Open-ended clauses: etc., and so on, including but not limited to. |
INCOSE R17/R19 | The "and/or" combinator. |
INCOSE R18 | Compound requirement: two SHALL or MUST in one sentence. |
INCOSE R24 | Pronoun as subject: It, They, This, and so on. |
INCOSE R26 | Absolutes: always, never, every time, at all times, 100%. |
INCOSE R30 | Duplicate requirement. |
INCOSE R37 | Undefined acronym. |
INCOSE R40 | Bound number with no unit. |
RFC 8174 | Requirement keyword in the wrong case, when the document cites BCP 14. |
Comparing two versions
augeron diff <before.md> <after.md> compares an earlier and a later version of one spec. It reads both files with the same rules as check. Each run prints a summary line, N new flags, M resolved, A added, R removed, C changed paragraphs. Score B -> A., then a section for each non-empty list: new flags, resolved flags, and changed paragraphs.
augeron diff docs/spec-v1.md docs/spec-v2.md
augeron diff --format json docs/spec-v1.md docs/spec-v2.md > diff.json
Paragraphs are matched by their text first, so inserting a paragraph does not mark every later paragraph as changed. The rest are matched by coordinate and role. A flag is the same flag in both versions when its type and message match. The message quotes the text it flags, so rewording a flagged phrase counts as one new flag and one resolved flag.
--format text|jsonpicks the output.textis the summary and sections.jsonprints the comparison object, withadded,removed,changed,newFlags,resolvedFlags,beforeScore, andafterScore.- Exit code
0means no flag is new.1means at least one flag is new.2means a usage error, or a file that cannot be read.
VS Code
packages/vscode is a VS Code extension that runs the same audit in-process through @augeron/core. It has no language server. Each Markdown file is checked on open, on save, and 300 ms after an edit. Contradictions and broken § references show as errors. Other findings show as warnings. Set augeron.enable to false to turn it off.
To build and install the extension:
npm install
npm run build # also bundles packages/vscode/dist/extension.cjs
cd packages/vscode
npx --yes @vscode/vsce@latest package --no-dependencies --allow-missing-repository
code --install-extension augeron-vscode-0.1.0.vsix
The first npx run downloads @vscode/vsce from npm. The .vsix is gitignored.
Architecture
| Path | Purpose |
|---|---|
packages/core | Domain engine: parser, view projections, level clip, analyzers, tokenizer, command registry, history. No DOM, React, fs, or network calls. |
packages/cli | augeron command-line checker over @augeron/core: text, JSON, and SARIF reports. See CLI. |
packages/web | React and Vite workbench. Owns DOM events, hotkeys, localStorage, and the optional LLM adapter. |
packages/mcp-server | Stdio MCP server with five tools over @augeron/core: augeron_parse_document, augeron_project_viewspec, augeron_run_pipeline, augeron_verify_audit, and augeron_patch_node. |
packages/vscode | VS Code extension that runs the audit in-process over @augeron/core and shows its findings as diagnostics. See VS Code. |
MCP server
- The server uses the MCP TypeScript SDK v2. It imports
McpServerfrom@modelcontextprotocol/server2.4.0 and serves stdio withserveStdiofrom the same package. Schemas use zod 4.@modelcontextprotocol/client2.4.0 is a dev dependency, used by the tests. The server supports protocol revisions 2025-11-25 and 2026-07-28. A client that sends no version probe, or uses the default handshake, gets 2025-11-25. A client that probes withserver/discoveror pins 2026-07-28 gets 2026-07-28. augeron_run_pipelinereturnslogTitle,logBody,affectedCoordinates,mutated, andflags.flagslists every flag in the resulting document, in document order.updatedMarkdownappears only whenmutatedis true. The fullupdatedTreeis left out unless the caller passesincludeTree: true.response_formattakesconcise(the default) ordetailed. The two return the same payload today, becauselogBodyalready holds the full log text.- Each tool returns its result twice: as JSON text, and as
structuredContentthat matches the tool'soutputSchema. A failed call returnsisError: truewith the error text and nostructuredContent. All five tools declarereadOnlyHint,idempotentHint, and no destructive or open-world effects. augeron_patch_nodereplaces the text of one§paragraph or heading and returnsupdatedMarkdown,affectedCoordinates, andflags. The replacement must be one block of the same kind. The result is re-audited.targetCoordselects a§coordinate before the pipeline runs. Commands whose catalog scope includes the selection honor it, and a selected heading covers its subtree forSpec.AuditandCite.Verify.- Limits: Markdown is at most 200 KB (204,800 UTF-8 bytes). A replacement is at most 20 KB. A pipeline has at most 10 stages. A response larger than 1 MiB is replaced by an error, so the server never sends an oversized payload. The payload is counted once, although a successful response carries it both as text and as
structuredContent. System.Undo,System.Redo,System.ClearLog,System.History,Tool.Check,Review.Mark,Review.Clear,Review.Comment,Review.Resolve,Review.Reopen,Review.List, andReview.Exportare rejected, because they need browser state. The browser-only tokens are rejected too.Find.Look,Link.Back, andHelp.Showrun here.View.Levelis accepted and logs the clip. Within oneaugeron_run_pipelinecall, stages share the full state, including the clip. Each call starts without a clip, so the clip does not carry into later calls.
Invariants
packages/core/tests/invariants.prop.test.ts checks eight properties with fast-check. Most run 600 generated cases, and the outline-command property runs 200. Five cover INV-1 to INV-5, listed below. Two more cover View.Brief and Spec.Ledger: brief and ledger leave rawText, node ids, and indexByCoord unchanged, every ledger row is either in the brief or listed as omitted, and every keyword sentence in the brief has a ledger row. The last checks that undo and redo restore exact trees after Outline.Promote, Outline.Demote, and Outline.Move.
- INV-1: View-Spec projections leave the tree unchanged. The
aview shows every node, andrawTextis never altered. - INV-2: Every node has a unique
§coordinate that resolves back to its id. - INV-3: Undoing a mutating command restores the earlier tree, and redo restores the result.
- INV-4:
parseCommand(formatCommand(c))equalsc. - INV-5: Auditing a document after
Doc.InjectFlawgives strictly more flags than auditing it before.
View.Level has unit tests in packages/core/tests/view-level.test.ts. It is not part of the property suite.
Continuous integration
.github/workflows/ci.yml runs on every push and pull request. It uses Node.js 22 and runs npm ci, npm run build, npm run typecheck --workspaces --if-present, and npm test. The build runs first because the web and mcp-server typechecks resolve @augeron/core from its dist output.
Built with Kiro
This project was built with Kiro as a spec-driven workflow. The repository keeps its Kiro artifacts at the root, on purpose.
.kiro/specs/augeron-workbench/:requirements.md,design.md,tasks.md(the phase checklist), andui-design.md(the drafting-sheet design system and its three themes)..kiro/steering/:product.md(zero-menu UX and scope),architecture.md(package boundaries and the deterministic-fallback rule), andoberon-nls-grammar.md(the§coordinate and command token grammar)..kiro/hooks/verify-invariants.json: a PostFileSave hook namedverify-core-invariants. It matches saves underpackages/core/srcand runs the fast-check suite..kiro/skills/kiroween-preflight/: checks repo structure and submission readiness..kiro/settings/mcp.json: registers the localaugeronstdio server. Kiro starts it from the repo root withnode packages/mcp-server/dist/index.js, which needsnpm run buildfirst. kiro-cli 3.5.0 loads it and lists the server.
License
MIT. See LICENSE.
Hackathon context
Built for Kiroween 2026 (Kiro × Devpost). Category: Resurrection. Research notes are in docs/, which is listed in .gitignore and not tracked in git.
https://github.com/R-Hruthvik/kiroween/releases/download/v0.1.0/augeron-mcp-0.1.0.mcpb# mcpb: https://github.com/R-Hruthvik/kiroween/releases/download/v0.1.0/augeron-mcp-0.1.0.mcpb