agentic-guardrails
Make agentic coding tools safe on a real computer, including the
OneDrive/SharePoint/Google Drive/Dropbox folders synced to it, with one plugin
install.
Supported hosts: Claude Code (terminal and desktop app) and OpenAI Codex —
the safety engine and the agw CLI are identical across both; only a thin
adapter differs. Cowork support is planned but not working yet: its hooks
don't fire there. Tracking:
docs/plans/0001-cowork-hook-enablement.md.
Release status: 0.7.0 is the Windows-first stable release.
Codex upgrade: review and enable the changed Guardrails hooks through
/hooks (or the desktop trust dialog), then start a new task.
It has extensive automated and hands-on validation on Windows, which is the
current client deployment target. macOS and Linux support remains in preview:
the shared code is designed to be cross-platform, but this release has not
yet received equivalent real-machine validation on those operating systems.
Use it there only for development testing and report platform-specific
issues before relying on it for production work.
The core promise: preserve user work through CRUA instead of permanent deletion.
- Permanent deletion of user files is blocked and redirected to
agw archive: a reversible, versioned move into an archive store.
- Every file the agent Writes or Edits is snapshotted first, automatically.
So is every file a raw shell
>, mv, cp, or tee would clobber, so the
promise holds even when the agent bypasses the Write tool.
- Office documents are edited via CRUA (Create, Read, Update, Archive):
the agent works on a markdown/csv copy in
_workspace/, and agw publish
archives the old version before replacing the original, with conflict
detection if a human edited it in the meantime.
- Cloud-only placeholder files and
.gdoc pointer stubs (the classic synced-
folder data-loss traps) are detected and protected.
- Exact UTF-8 text reads are bounded and paginated through
agw file read.
The default output budget is normally sufficient; oversized lines return an
exact byte continuation instead of requiring a larger guessed limit.
- Sensitive-read and credential-search prompts name the sanitized filename or
scope, detected risk category, and the reason approval was triggered.
- Anything archived comes back with
agw restore or agw undo.
Install
Claude Code (terminal and desktop app)
/plugin marketplace add https://github.com/ProfSynapse/agentic-guardrails-plugin.git
/plugin install agentic-guardrails@agentic-guardrails-plugin
If Claude's marketplace UI rejects ProfSynapse/agentic-guardrails-plugin, use
the full GitHub URL above instead of the owner/repo shorthand.
OpenAI Codex
codex plugin marketplace add https://github.com/ProfSynapse/agentic-guardrails-plugin --ref main
codex plugin add agentic-guardrails@agentic-guardrails
Alternatively, install Agentic Guardrails through /plugins inside Codex.
Approve its hooks in the host's trust UI (/hooks in Codex CLI; desktop may show a trust
dialog). The full walkthrough — including the apply_patch deletion
guard and a smoke test to confirm interception on your build — is in
plugin/CODEX.md.
On Linux and macOS, Codex actions requiring Guardrails approval currently deny:
the bundled native approval provider supports Windows only. Installation alone
does not prove interception in a host or an existing session. Review hook trust
and perform the smoke tests before relying on protection. See
Linux validation and deployment boundaries.
Requirements
Python 3.9+, reachable on PATH under any one of the names each probe tries.
Windows hooks try py.exe -3 and then python; the bundled agw.cmd launcher
tries python and then py.exe -3. POSIX hooks try python3, falling back to
python only when python3 is not installed at all. Optional: pandoc
(docx↔markdown) and openpyxl
(xlsx→csv) for high-fidelity document checkout; without them files are checked
out in plain-copy mode. Fleet rollout: see
plugin/enterprise/DEPLOYMENT.md.
Third-party Office libraries are not bundled with the plugin. The built-in
OOXML backend uses only the Python standard library for .docx/.pptx text
reads and localized text mutations, plus .xlsx/.xlsm single-cell edits.
Advanced workbook reads and table/row mutations still require openpyxl in
the same Python runtime selected by the launcher. Package-preservation checks
reject edits that unexpectedly rewrite unrelated parts of an Office file.