Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/secureagentics/adrian/adrian-initgit clone --depth 1 https://github.com/secureagentics/AdrianWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00014 | $0.01324 |
| Opus 5 | $0.00007 | $0.00662 |
| Sonnet 5 | $0.00003 | $0.00265 |
| Haiku 4.5 | $0.00001 | $0.00132 |
Grade A, and why
adrian-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Walk the user through Adrian setup in a SINGLE run - concisely, step by step.
CRITICAL - do the WHOLE flow in ONE invocation. NEVER finish by telling the user
to run /adrian-init again. If a check fails, that is your cue to CONTINUE with
the setup steps below yourself. In particular: if you run verify first and it
FAILS, do NOT stop and re-prompt - go straight to step 1 and continue the setup
in the same run.
SECURITY - non-negotiable: NEVER ask the user to paste their API key into the
chat, and NEVER print, cat, or echo the key value or the contents of the
.env file. The key stays out of this conversation. You only ever run the
verify command (which reports OK/FAIL, not the key).
0. (Optional) Short-circuit if already configured
You MAY first run adrian-python -m adrian_cc.agent verify:
- OK → Adrian is already set up; say so and stop. Nothing else to do.
- FAIL (or not configured) → this is expected for first-time setup. Do NOT stop, and do NOT ask the user to re-run the command - immediately continue to step 1 in this same run.
1. Choose the backend
Use the AskUserQuestion tool (header "Backend"). The tool auto-adds an "Other" free-text choice = the custom path; word it so the user knows Other = a custom self-hosted URL:
- "Adrian Cloud (hosted)" - managed backend. (Recommended)
- "Self-hosted (local)" - a local OSS backend on the default host/port.
- (built-in "Other") - the user types a custom self-hosted host/port or ws:// URL.
Resolve the answer to a WebSocket URL:
- Adrian Cloud (hosted) →
wss://adrian.secureagentics.ai/ws - Self-hosted (local) →
ws://localhost:8080/ws - "Other" free text → normalize whatever they typed:
- a full
ws://orwss://URL → use as-is host:port→ws://host:port/wshostonly →ws://host:8080/ws(Defaults: port 8080, path/ws, schemews://unless they gavewss://. If their input is ambiguous, confirm the resolved URL before writing.)
- a full
2. Write the config (commented, with an API-key PLACEHOLDER)
Create ~/.adrian/ if needed and write ~/.adrian/.env with ADRIAN_WS_URL set
to the resolved URL and a short # comment above each variable explaining what
it's for, so the user can understand and hand-tune the settings they weren't
asked about:
# Adrian backend WebSocket URL (set from your backend choice above).
ADRIAN_WS_URL=<resolved>
# Your Adrian API key - replace this placeholder with your real key:
# adr_live_... (Adrian Cloud, from your dashboard) or adr_local_... (self-hosted).
ADRIAN_API_KEY=REPLACE_WITH_YOUR_ADRIAN_KEY
# Seconds to wait for a verdict before giving up on a tool call.
ADRIAN_CC_VERDICT_TIMEOUT=15
# What happens if Adrian can't reach the backend or a verdict times out:
# true = fail open - allow the tool (best-effort monitoring, never blocks work)
# false = fail closed - block the tool (max security, but blocks work when the backend is down)
ADRIAN_CC_FAIL_OPEN=true
The ADRIAN_API_KEY line is a PLACEHOLDER written for the user, so all they have
to do is swap the value. Preserve an existing real key: if ~/.adrian/.env
already has an ADRIAN_API_KEY line, do NOT overwrite it with the placeholder -
detect this silently with grep -q '^ADRIAN_API_KEY=' ~/.adrian/.env (exit
status only; it never prints the value). Never print the file contents or the
key. Tell the user the exact file path you wrote.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 98 lines · 14 tokens per session scan A e30c4c4ad3ef
adrian-init is a command published in the GitHub repository secureagentics/Adrian (553 stars, last pushed 12d ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,324 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
scan-skill
Scan a specific MCP skill by npm package name or GitHub URL.
scan-daily
Run incremental ecosystem scan: crawl registries → audit new packages → merge results → generate posts.
init-project
Configure the baseline for this specific project. Invokes the scout skill, then claude-automation-recommender, populates .claude/project.json, pre-creates lazy directories, re-renders swarm-worker.md from its template with any stack-specific skills appended, appends a §16 addendum to docs/init/seed.md, runs…
approve-direction
Record human approval of a workflow's direction (the intake + its acceptance criteria + the CO-A evidence). The Direction Approval Guard hook blocks Claude from ever writing approval tokens; this command is the only sanctioned path. Must be user-invoked. Replaces the retired /approve-spec gate (D3/CO-E gate-collapse)…
grant-commit
Grant consent for Claude to run git commit. Workflow-scoped when a workflow is active, else a time window. Required by the Git Commit Guard hook.
release-swarm
Orchestrate complex software releases using AI swarms that handle everything from changelog generation to multi-platform deployment.