agent-simple-english
agent-simple-english checks rules derived from ASD-STE100 Simplified Technical English (STE) and two enabled house-style rules.
It supplies one Engine, one CLI, a pi Adapter, and a Claude Code Adapter.
The Claude Code plugin uses CLI Hook mode to enforce the same rules.
This package reports deterministic writing problems.
It does not rewrite text because an automatic rewrite can change its meaning.
What the pi Adapter does
The pi Adapter adds its active writing rules to the model prompt before each agent turn.
It then applies the rules at three layers.
-
Write and edit gate.
The extension checks prose before the write or edit tool changes a file.
A hard violation blocks the tool.
A soft violation gives the model a warning but lets the tool change the file.
An edit reports only new violations, so an old violation does not block an unrelated edit.
-
Commit-message gate.
The extension checks static messages in detected git commit -m and git commit --message commands.
A hard violation blocks the command before the shell starts.
Conventional Commit prefixes and final trailer lines do not form part of the check.
A detected commit without an available static message fails closed.
-
Reply check.
Normal mode checks each final assistant reply and shows the hard and soft counts in a widget.
The model receives hard violation details before its next call.
Normal mode does not hide or change the reply.
Strict mode makes the model send each reply through the say tool.
A strict reply stays hidden until it has no hard violations.
The pi Adapter checks Markdown prose and source comments according to the content kinds.
It gives the line, column, rule ID, and suggested correction for a blocked tool call.
A config, dictionary, or rule-data load error makes enabled write, edit, and commit gates fail closed.
Install the Claude Code Adapter
Install Claude Code and Bun first.
The plugin needs Claude Code 2.1.296 or later.
Then use the standard local plugin flow:
claude plugin marketplace add jyooi/agent-simple-english
claude plugin install simple-english@agent-simple-english
Start a new Claude Code session after installation.
Bun installs the plugin dependencies when the first hook starts.
You do not need a global simple-english package or manual hook settings.
The repository supplies the local marketplace manifest.
Marketplace publication is outside this package release.
At SessionStart, the Adapter loads the merged config for an enabled session.
It reads the config from the session working directory and adds the active writing-rule summary to context.
The summary honors hard, soft, and off rule settings plus maxSentenceWords.
The PreToolUse gate checks Write, Edit, and Bash events.
A hard write or edit violation blocks the tool and returns its location, rule ID, and suggested correction.
The Adapter checks only new edit violations, so old prose does not block an unrelated edit.
Correct the text and retry the tool.
A clean retry succeeds.
For Bash, the gate checks static messages in detected git commit commands.
It blocks a hard violation before Git starts.
It also blocks a detected commit without a static -m or --message argument.
A compliant static message passes.
Soft violations allow the event and add warning text.
Session controls
The /ase command controls the current Claude Code session.
New sessions start in enabled mode without a strict reply gate.
A change in one session does not change a parallel session.
The full command name is /simple-english:ase, and it always runs.
The short name /ase runs the same command.
If a user command or a project command has the name ase, that command takes the short name.
Then use the full name.
| Command | Result |
|---|
/ase on | Enable write, edit, commit, and reply checks. |
/ase off | Disable all checks and leave strict mode. |
/ase status | Show the mode, rule counts, and dictionary state. |
/ase strict | Enable the strict reply gate and all other checks. |
/ase strict off | Disable the strict reply gate and use reply feedback. |
/ase explain | Write the last reply again in Simplified Technical English. |
Claude Code shows argument suggestions while you type.
Type /ase, press Tab to select the command, then type the first letters of an argument.
The list shows each argument that starts with those letters, and Tab completes the first one.
After strict, the list suggests off.
Strict reply hold