Reflex — AI skill for Claude Code
Pre-execution risk gate for AI coding agents (Claude Code, Codex, opencode, pi, Hermes).
How to install Reflex
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ursuciprian/reflex and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Reflex does
Pre-execution risk gate for AI coding agents (Claude Code, Codex, opencode, pi, Hermes). Blocks or asks on risky shell commands, guards against prompt injection in what agents read, escalates to System 2 and a human queue. Optional TypeSafe Jev.
Alternatives in AI
- Codex Skill — by klaudworks - Enables users to prompt codex from claude code 914 ★
- Pilotfish — Multi-model orchestration layer for Claude Code — the frontier model plans, cheaper models execute, verificati 688 ★
- Hol Guard — Open-source antivirus for AI agents: block risky tools, secret access, prompt injection, malicious packages, M 485 ★
README
**Reflex is an open-source pre-execution risk gate and prompt injection guard for AI coding agents such as Claude Code, Codex CLI, opencode and pi.** It hooks into each agent (Claude Code hooks, Codex hooks, pi and oh-my-pi extensions, an opencode plugin, Hermes hooks) and decides for every shell command the agent wants to run whether it runs, needs a human's approval, or is blocked. It also scans what the agent reads (web pages, MCP results, files from other projects, `curl` output) for prompt injection before the agent acts on it.
Reflex starts locally with deterministic rules and no account. For commands the rules do not cover, it can ask [TypeSafe Jev](https://docs.typesafe.ai), a small System One model that answers typed questions in well under a second, and turn the answers into a decision with a policy file you can edit. [Laya](https://huggingface.co/convaiinnovations/laya) is an experimental local alternative to Jev. An autonomous profile adds a stronger model (System 2) and an asynchronous human approval queue, so autonomous coding agents only stop for the commands that need a person.
In one minute
- What it is: a hook, installed with one command, that gates the shell tool of Claude Code, Codex CLI, pi, oh-my-pi, opencode and Hermes. MIT licensed, Node.js 18+, no runtime depende
Related Skills
Hardstop Command
Hardstop is a pre-execution safety layer that blocks dangerous shell commands using pattern matching + LLM ana
Sentinel Skill
Risk-aware AI trading copilot for Binance Agent OS — analyzes your portfolio, challenges risky trades before e
Claude Code Secret Gate
The pre-commit secret gate for AI coding agents — content-scans staged changes and blocks any commit containin
Aigate AI Git Workflow Guard CLI
Pre-push Git safety CLI for AI-assisted coding: catch risky changes, possible secrets, weak PR readiness, and
Cplt
Sandbox for AI coding agents. Runs Copilot CLI, Claude Code, OpenCode, Gemini CLI, Antigravity, Pi, goose or a
Agent Firewall
A firewall for AI coding agents — inspects prompts, tool calls, and model output to catch credential leaks, pr
Related Agents
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode
Aux Delegator
Invokes external CLI coding agents (Codex, OpenCode, Claude -p, ACP). Use whenever a task should be offloaded