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 agents/sixb-ai/sixb/authorizationgit clone --depth 1 https://github.com/sixb-ai/sixbWhat 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.00000 | $0.00498 |
| Opus 5 | $0.00000 | $0.00249 |
| Sonnet 5 | $0.00000 | $0.00100 |
| Haiku 4.5 | $0.00000 | $0.00050 |
Grade A, and why
authorization 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 — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Authorization
Agents touch the same data and actions as everyone else, so the same authorization model governs them. Two things decide what an agent can do: the groups on its definition and the owner of each thread.
When authentication is disabled for the runtime, requests through the Agent API gateway follow the same unrestricted authorization behavior as normal API requests. The group restrictions below apply when authentication is enabled.
Groups gate use and reach
An agent's groups (set on defineAgent) do two things:
- Who can use it. A principal can list and run an agent only if their grants cover it
(
run:agent).GET /api/agentsreturns only agents the caller may run; running one without the grant is rejected. - What it can reach. A run acts under its own identity whose memberships mirror the agent's groups — so it can query the objects, read the telemetry, and request the actions its groups allow, and nothing else. Its instructions can ask for anything; only its permissions get through.
import { defineAgent, defineGroup } from "@sixb/core"
import { gateway } from "ai"
const financeAdmins = defineGroup("finance-admins")
export const invoiceAssistant = defineAgent("invoice-assistant", {
name: "Invoice Assistant",
model: gateway("openai/gpt-5.5"),
instructions: "...",
groups: [financeAdmins], // only finance admins can run it; it acts with their reach
})
Every referenced group must exist in your security registry (security/groups/ or
createSixb({ groups })), or startup fails.
Threads are owner-scoped
A thread records the principal that created it. Reading it, posting to it, and subscribing to its
stream all require that owner (plus the run:agent grant). Anyone else sees it as not-found.
The run API exposes requestedBy, resolved from its immutable execution record. The Agent's managed service account is the execution authority; it is stored once in that execution record rather than copied onto the run.
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 · 50 lines · 0 tokens per session scan A 7efb1768d639
authorization is an agent published in the GitHub repository sixb-ai/sixb (53 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 498 tokens. 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 agents, from other repositories
tools
Give your Agents capabilities with built-in tools, MCP servers, and custom scripts.
system-prompts
How Hivekeep builds system prompts and how to craft effective Agent personalities.
memory
How Agents remember and learn across conversations.
overview
Understanding Hivekeep's persistent AI agents.
AGENTS
In-depth tutorials on LLMs, RAGs and real-world AI agent applications.
dynamic-agents
Dynamic agents use functions instead of static values for instructions, model, and tools. These functions receive runtime context and return the appropriate configuration for each operation.