SAFEWORD - AI Agent Configuration CLI

Problem: AI agents write code without tests, skip design validation, and lack consistency across projects.
Solution: Portable patterns and guides that enforce test-first development (BDD/TDD), quality standards, and best practices across all your projects.
Repository: https://github.com/ArcadeAI/safeword
Quick Start (30 seconds)
Prerequisites:
- Node
^22.22.3, ^24.16.0, or >=26.3.0
- Bun — Safeword's hooks run with Bun
- Claude Code 2.1.170 or newer, if you use the Claude Code plugin
1.0 prereleases: safeword@latest still resolves to the 0.x line. Release
candidates publish to the npm next tag; replace @latest with @next in the
commands below to try them.
1. Install in your project and native agent profiles:
cd /path/to/your/project
bunx safeword@latest install
By default, this configures the project and installs both the Claude Code and
Codex plugins. OpenCode and Cursor stay untouched unless you explicitly select
them:
bunx safeword@latest install --agents=cursor
# Or install every integration:
bunx safeword@latest install --agents=claude,codex,opencode,cursor
OpenCode is intentionally opt-in because its guard is installed in the current
user's OpenCode profile. That profile delivery contains Safeword's plugin,
commands, agents, and skills; the project receives no OpenCode executable
catalogue and opencode.json stays untouched:
bunx safeword@latest install --agents=opencode
bunx safeword@latest conformance --agents=opencode
bunx safeword@latest status --agents=opencode
uninstall --agents=opencode removes the shared Safeword guard from this
OpenCode profile, so other enrolled projects under the same OpenCode config
root become unprotected until you reinstall it from one of them.
Conformance runs a credential-free real OpenCode process. Safeword reports the
exact stable 1.x CLI/TUI version as protected only after that process discovers the
native catalogue and proves a forbidden tool call produces no side effect.
OpenCode Desktop remains advisory until it reliably dispatches the same hooks.
2. Activate the installed profile plugins:
# In Claude Code, run: /reload-plugins
# Review hooks in Desktop Settings > Hooks (or /hooks in the TUI), then fully restart Codex and resume this task
3. Verify installation:
bunx safeword@latest doctor
Claude activation scope. install records Claude activation for this
project in .claude/settings.json, so the repository declares its dependency
and collaborators are prompted to install it after trusting the folder. Add
--scope user to activate Safeword across every project in your Claude
profile instead:
bunx safeword@latest install --agents=claude --scope user
bunx safeword@latest claude status
Existing projects keep their working legacy Claude hooks until the exact current
plugin successfully handles a prompt. That prompt then retires every byte and
hook entry Safeword can prove came from a supported release. Clean migration is
silent; edited, third-party, symlinked, or otherwise unrecognized content stays
untouched and produces one plain-language advisory per Claude session. The
project-scoped marketplace and enablement declarations remain committed so the
next trusted teammate is offered the plugin normally.
The explicit commands remain available for diagnosis and recovery:
bunx safeword@latest claude cleanup
# Run the exact --yes --plan command returned by the preview.
# If interrupted, status reports recovery-required:
bunx safeword@latest claude recover
Cleanup never installs, enables, reloads, or changes plugin trust. Automatic
migration is bounded, never blocks a successful prompt, and resumes from a
durable transaction after interruption or a competing developer process.
Codex startup. Installing commits project-level SessionStart hooks. One
enrolls each developer's Codex profile in the released stable channel; the
other prepares missing project dependencies in trusted fresh worktrees so the
repository's checks are available before work begins.