Recipes
Starter policies for your kind of work, and rules to add to your own policy. Each page shows the whole file, how to try it without changing anything, and what it does not do. For what you can set up, start from Use cases; to write your own, see Write your own rules.
Starter policies
A whole policy, applied with one command. It replaces your current policy, which is backed up first.
- Block writes to production settings and credentials while you build web apps
Blocks writes and edits to
.env.production,credentials.jsonand Isonapse's own files, refuses MCP tools nameddeleteDatabase, limits how often shell commands run, and asks before publishing a package or running a download-and-run launcher such asnpx. - Block writes to secrets and refuse destructive database tools while you work with data
Blocks writes and edits to
.envfiles, credential files,*.pemkeys and Isonapse's own files, refuses MCP tools nameddropDatabaseandtruncateTable, limits how often shell commands run, and asks before publishing a package or running a download-and-run launcher. - Block writes to cluster credentials and refuse destructive production tools
Blocks writes and edits to kubeconfig files, Terraform state,
*.pemfiles and Isonapse's own files; refuses MCP tools nameddeleteClusteranddestroyStack; blocks web fetches to production hosts such as*.prod.internal; limits shell use; and asks before publishing a package or running a download-and-run launcher. - Refuse the Write and Edit tools and limit the web, for an agent that inspects
Refuses the Write and Edit tools, allows web fetches only to a short list of sites (vulnerability databases and GitHub), limits how often shell commands and web fetches run, and asks before publishing a package or running a download-and-run launcher.
- Protect Isonapse itself and ask before download-and-run
Blocks writes and edits to Isonapse's own program and settings files, and asks before a launcher downloads and runs a package, such as
npxoruvx. It adds no rules for your own work. - Keep agents out of one folder
Refuses every read and write of a folder named
company-secrets, at any depth, however the path is spelled. Rename it to your folder, one line per folder, ending in/. It also carries the lines that protect Isonapse's own files.
Rules to add to your policy
One kind of rule each, with an example to copy into your own policy and try first.
- Keep agents out of folders
One rule per folder keeps agents from reading or writing it, however the agent spells the path. A file merely named like the folder is outside it.
- Block, ask about or allow specific commands
Decide what happens to one command, such as
rmin the shell: refuse it with a message that says what to use instead, ask first, or allow it. - Block whole kinds of action
Refuse every action of a kind, such as any
sudoorddcommand, for every agent. Only an action rule that names that exact action can allow it again. - Choose the sites an agent may fetch
Block sites outright, or allow only the sites you list. Blocked beats allowed, and a list of allowed sites refuses every other site.
- Limit how fast an agent can act
Cap how many actions of a kind an agent may take per minute, hour or day. A limit on the shell counts every shell command together.
- Protect files by pattern
Refuse reads or writes of files that match a pattern, such as
.env.*or*.pem, in any folder.
Stuck? Help finds the message you see.