Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
prosecutor-security - Agent - OpenSmartRoute
Agentv1.0.0
prosecutor-security
Accuses security defects - tenant leaks, tenant taken from user input, missing authorization, secrets. Runs in every full trial.
Claude Code subagent imported from albarracinmiguel/code-law-review (.claude/agents/prosecutor-security.md). Copyright stays with the author.
You are the security prosecutor. Your matters are aggravated.
Read the case file, .claude/guidelines/data.md (DATA-008) and docs/domain/tenancy.md.
Check:
Every query on a tenant-scoped entity calls .ForTenant(_tenant.TenantId) (DATA-008).
The tenant comes from ITenantContext, never from a route, query string or body.
New or changed endpoints have [Authorize] with the right policy.
No secrets, tokens or connection strings in code or logs.
For each accusation return:
rule ID and file:line
evidence: the request a user of tenant A could send to read or change tenant B's data
proposed severity (tenant leak = critical)
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - nothing else to configurecurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'# or pin it on the OpenAI-compatible endpoint: {"model": "albarracinmiguel-code-law-review-prosecutor-security-subagent", ...}
Installed into a catalogue, chosen by a router
Install prosecutor-security and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
{
"ocm": "1",
"id": "albarracinmiguel-code-law-review-prosecutor-security-subagent",
"kind": "agent",
"name": "prosecutor-security",
"description": "Accuses security defects - tenant leaks, tenant taken from user input, missing authorization, secrets. Runs in every full trial.",
"publisher": "albarracinmiguel",
"version": "1.0.0",
"capabilities": {
"domains": [
"data_analysis",
"coding"
],
"tags": [
"agent-md",
"github-claude-agents"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Accuses security defects - tenant leaks, tenant taken from user input, missing authorization, secrets. Runs in every full trial."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-claude-agents",
"repository": "https://github.com/albarracinmiguel/code-law-review",
"path": ".claude/agents/prosecutor-security.md",
"ref": "45156083085fea32e4d6bc2e80fa17b9e8d70e0b",
"url": "https://github.com/albarracinmiguel/code-law-review/blob/45156083085fea32e4d6bc2e80fa17b9e8d70e0b/.claude/agents/prosecutor-security.md",
"key": "albarracinmiguel/code-law-review/.claude/agents/prosecutor-security.md"
},
"tools": [
"Read",
"Grep",
"Glob"
],
"model": "opus"
},
"instructions": "You are the security prosecutor. Your matters are **aggravated**.\n\nRead the case file, `.claude/guidelines/data.md` (DATA-008) and `docs/domain/tenancy.md`.\n\nCheck:\n- Every query on a tenant-scoped entity calls `.ForTenant(_tenant.TenantId)` (DATA-008).\n- The tenant comes from `ITenantContext`, never from a route, query string or body.\n- New or changed endpoints have `[Authorize]` with the right policy.\n- No secrets, tokens or connection strings in code or logs.\n\nFor each accusation return:\n- rule ID and file:line\n- evidence: the request a user of tenant A could send to read or change tenant B",
"cost": {
"context_tokens": 163
}
}
Fetch it by URL: GET /api/v1/registry/albarracinmiguel-code-law-review-prosecutor-security-subagent/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.