Install
Initializing protection surface

A shell guardrail for AI coding agents.

Aegis checks every command before it runs. Safe commands pass; risky ones wait for you; catastrophic ones are blocked.

Install Aegis — free
npm i -g @iliasalmerekov/aegis

One unchecked AI command can delete files, reset commits, or drop tables.

Aegis pauses risky commands for approval and blocks catastrophic ones.

A terminal session: the agent runs rm -rf ~/project/src. Aegis stops the command and asks for a decision. Allow is pressed; Aegis saves a snapshot before the command runs. A single command, aegis rollback a4f1c9, restores the deleted folder.

One session, three steps.

aegis — zsh
shell guarded
you $npm i -g @iliasalmerekov/aegis
+@iliasalmerekov/[email protected]
aegis — zsh
shell guarded
you $aegis setup-shell
managed shell block installed
commands via $SHELL -c now route through aegis
aegis — zsh
waiting for you
agent $DROP TABLE users;held

Aegis stopped this command.

DB-001 — the table is gone for good.

safe alt: ALTER TABLE users RENAME TO users_retired

Y  allowN  deny

The “my AI deleted everything” club is getting crowded.

Seven public posts. Files lost, codebases reset, production databases wiped—all by agents with shell access.