Omniscio

OmniscioSubagent examplesSecurity reviewer

A security reviewer subagent

What a security agent buys you is not a second opinion about your competence. It is the same change read against a fixed checklist every time, by something that is not allowed to fix what it finds in the same breath as finding it.

The file below is built around that second point. Its tool list has no Edit or Write, its permission mode is the read-only one, and the body says what to look for in an order that puts the incident-shaped findings first.

Checked against Anthropic's Claude Code documentation on November 25, 2026. By the Omniscio team. Updated .

When Claude delegates to it

The description is the trigger, and here it does two jobs. It names the areas worth a review — authentication, input handling, file paths, secrets, dependencies — and it names the moment, before a merge and after a dependency change. Both halves matter: the areas stop it being delegated for a CSS rename, and the moment stops it being forgotten on the one change that needed it.

Be realistic about automatic delegation for security work. Claude decides from the description, and a change that "looks routine" may never reach the agent. The reliable pattern is to ask for it on anything that touches those areas, and let the description catch the rest.

The file

Save this as .claude/agents/security-reviewer.md. Three lines fence it, in rising order of strength: the tools list leaves out Write and Edit, disallowedTools says so a second time for anyone skimming, and permissionMode: plan asks for read-only exploration. None of the three removes Bash, which is why the failures section spends most of its words on that one hole.

---
name: security-reviewer
description: Reviews a change for security problems in authentication, authorization, input handling, file paths, secrets and dependencies. Use before merging anything that touches those areas, and after any dependency change.
tools: Read, Grep, Glob, Bash
disallowedTools: Write, Edit
model: opus
permissionMode: plan
---

You review for security. You do not fix.

Read the change, then the code around it. Check, in this order:
1. Authentication and authorization: is every new path checked, and checked on the server?
2. Input: does anything reach a query, a shell, a template, a path or a redirect unvalidated?
3. Secrets: is a credential logged, committed, sent to the client, or put in a URL?
4. Files and network: can a caller choose a path or a destination?
5. Dependencies: did one change, and does it need an advisory check?

For each finding, state the severity (critical, high, medium, low), the file and line, the concrete
attack it enables, and the smallest change that closes it.
Do not rewrite the code. Do not report a general worry without a line that shows it.
If you find nothing, say which files and areas you inspected and found clean.

What each field does

name

The identifier, up to 256 characters, without a colon. It is also what a hook sees as agent_type, so a hook that matches on this agent follows whatever name you give it here.

description

The trigger and, in this file, also the scope. Descriptions are loaded at session start along with every other agent's, so this is one of the lines that has to pay rent.

tools and disallowedTools

When both are set, disallowedTools is applied first and tools is resolved against what is left, and a tool named in both is removed. Here the allowlist already omits the writing tools, so disallowedTools changes nothing mechanically — it is there to make the intent legible in the four lines someone actually reads.

The trap is in the entries. A disallowedTools value with a specifier, such as Bash(git push *), does not block one command — it removes the whole Bash tool, which is never what the person who wrote it meant.

permissionMode

Anthropic's modes are default, acceptEdits, auto, dontAsk, bypassPermissions and plan, with manual as an alias for default. plan is the read-only exploration mode, which is why it is the value here. Leave the field out and the subagent inherits the main conversation's mode.

It is not a hard guarantee. When the main conversation is in bypassPermissions, acceptEdits or auto mode, Claude Code runs the subagent in that same mode and ignores the value you set. Read it as three cases. A main conversation in plan mode keeps every subagent in plan mode, whatever the field says. A main conversation in default or dontAsk lets the field decide — unless you asked for bypassPermissions (v2.1.267 or later), which the subagent inherits instead. And a subagent that is an agent-team teammate follows the agent-teams rules rather than this one.

model

A security review is the one job in this set where spending on the model is easy to justify, so the file names opus rather than leaving it to the session. A full model ID works too, and pins the version rather than following the alias.

Project file or user file

Commit this one. A security checklist is a team artefact, and a project file in .claude/agents/ gets reviewed and improved like any other code. A personal copy in ~/.claude/agents/ is for the checklist you want on every repository you touch.

  • Project outranks user when two definitions share a name, so a shared checklist wins without deleting a personal one.
  • Subfolders are scanned recursively and do not change identity.
  • Duplicate names in one directory mean only one loads; /doctor reports it.

Confirm Claude picked it up

  1. No restart needed. Both directories are watched, so an edit is live within seconds. Restart only for a folder added with --add-dir or a session started with --disable-slash-commands.
  2. Ask for it by name with the branch or commit you want reviewed, since it cannot see what you have been working on.
  3. /tasks confirms it is running and on which model, which is how you check that opus took effect.
  4. There is no command that lists installed agents in current versions. /agents prints a reminder to manage them through Claude or by editing the folders, and only v2.1.197 and earlier had a wizard that listed them. claude plugin validate .claude/agents is the closest check: it reports files whose frontmatter does not parse.
  5. The transcript shows the delegation as a tool call row naming the subagent and its task, so a run with no findings still leaves evidence it happened.

When it goes wrong

  • It edits anyway. Either the main conversation's mode overrode permissionMode, or Bash is present and it used a shell command to write. Drop Bash for an agent that must not act at all.
  • A command-scoped deny did nothing. Bash(git push *) in disallowedTools removes Bash entirely. To block one command and keep the tool, put the deny rule in permissions.deny in your settings instead, where it applies to the session and to its subagents.
  • It reports worries rather than findings. The body above requires a line number and a concrete attack for each finding. A review that cannot produce them is a list of opinions, and opinions cannot be fixed.
  • It misses things. A model reading a diff is not a scanner. Keep the dependency audit and your static analysis; this agent is a reviewer, not a control.
  • It never launches. A tools list where no entry resolves is usually refused with an error naming the entries. An empty list, or one disallowedTools empties, is not refused — it launches with no tools.

Adapting it to your repository

  1. Add the one mistake your codebase makes most. A framework that auto-escapes makes template injection a low finding; a service that builds paths makes path traversal a high one.
  2. Name your trusted boundary — the gateway, the auth middleware, the queue — so the agent knows what it may assume has already been checked.
  3. Point it at your audit command, such as npm audit or pip-audit, if you keep Bash in the tool list.
  4. Keep the "say what you found clean" rule. A silent review is indistinguishable from a review that never ran.

For the wider picture on what Claude Code itself does around permissions, the Claude Code security guidance covers the settings side. The other four files are on the subagent examples page.

Sources

  • Anthropic's Create custom subagents, for the file format, the tool allowlist and denylist rules, the permission modes and when each applies, and the model fields, read November 25, 2026.
  • Anthropic's error reference, for the zero-tools refusal, read November 25, 2026.
  • Anthropic's commands reference, for /agents and /tasks, read November 25, 2026.

The checklist in the file is ours, written for this site; the fields and their behaviour are Anthropic's and were read from the pages above on the same day. The agent was not run against a live repository here.

Common questions

What does a security reviewer subagent look at?

The parts of a change where a mistake becomes an incident: authorization checks, input that reaches a query, a shell, a template or a path, secrets that could be logged or committed, and dependencies that changed. It reads and reports; it does not rewrite the code.

How do I stop a subagent from editing files?

Leave Write and Edit out of tools, or name them in disallowedTools. Watch the entries: one with a specifier, such as Bash(git push *), still removes the whole Bash tool rather than only the matching commands.

Why is my subagent not in plan mode?

When the main conversation is in bypassPermissions, acceptEdits or auto mode, Claude Code runs the subagent in that mode and ignores the permissionMode you set. The field applies when the main conversation is in default or dontAsk, and a main conversation in plan mode keeps every subagent in plan mode.

Is a subagent review a substitute for a security scan?

No. A subagent reads code with a model's judgement, which is good at intent and poor at completeness, and it cannot know about advisories published after it was trained. Keep the dependency audit and your scanner; the agent is the reviewer who reads the diff, not the sign-off.

A second reader for every change

Omniscio is a desktop app for running Claude Code and other coding agents side by side, with one list of sessions and one inbox, so an agent only interrupts you when a decision needs you.

The features page lists what is in it today, pricing covers the plans, and you can download it for Windows, macOS or Linux.