alexandria

alexandria is a command for Claude Code from Starlight-Intelligence/Starlight-Intelligence-System. It costs 46 tokens per session (778 once invoked), scanned A, original, MIT.

Catalogued intelligence with receipts — plan a need against the Alexandria catalogue, price it, execute it inside the session budget, and return records plus a receipt. The one door for any record an artifact will cite.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Install with agentmods
npx agentmods add commands/starlight-intelligence/starlight-intelligence-system/alexandria
Install

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.

Clone the repo
git clone --depth 1 https://github.com/Starlight-Intelligence/Starlight-Intelligence-System

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alexandria

README.md
[![agentmods](https://agentmods.dev/badge/commands/starlight-intelligence/starlight-intelligence-system/alexandria/github.svg)](https://agentmods.dev/commands/starlight-intelligence/starlight-intelligence-system/alexandria)
Your own site
<a href="https://agentmods.dev/commands/starlight-intelligence/starlight-intelligence-system/alexandria"><img src="https://agentmods.dev/badge/commands/starlight-intelligence/starlight-intelligence-system/alexandria/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alexandria

Your own site · 80×15
<a href="https://agentmods.dev/commands/starlight-intelligence/starlight-intelligence-system/alexandria"><img src="https://agentmods.dev/badge/commands/starlight-intelligence/starlight-intelligence-system/alexandria.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 778 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00778
Opus 5.5 $0.00018 $0.00311
Sonnet 5.5 $0.00009 $0.00156
Haiku 4.5 $0.00005 $0.00078

Measured today against content hash 020b54614b62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

alexandria 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 today.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/alexandria.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/alexandria

Load verticals/alexandria/SKILL.md. Protocol: plan → budget → execute once → cite the receipt → verify → record.

Input

$ARGUMENTS

Steps

  1. Plan. Run node --import tsx -e against src/alexandria (or call the MCP tool alexandria_plan) with the need. Show the candidates: capability id, provider, score, credits, per-record flag, required options.
  2. Gate. If the recommended price exceeds the remaining session budget (default 200 credits, ALEXANDRIA_MAX_CREDITS), stop and show the cheaper candidates. Never raise the budget without an experiment id from verticals/alexandria/experiments/registry.json.
  3. Options. If the capability has requiresOneOf, ask for one of the named options or read it from the arguments. If the plan marks it perRecord, a record ceiling is required: take it from --expected-records or ask for it; the reservation is ceiling times the per-record price. Nothing runs until both are satisfied.
  4. Execute once. alexandria_execute with capabilityId, options, expectedRecords for per-record capabilities, and sipLayers only when the artifact that will use the record genuinely composes SIP elements. If the result is uncertain_outcome, the reservation stays held against the session; retry once with the returned requestId and exactly the same capability and options, which reuses that hold; never mint a new one and never change the call under a reused id (retry_mismatch). capability_suspended means a provider once charged more than was reserved: stop, read the overrun receipt, and reconcile the catalogue entry before anyone calls it again. receipt_persist_failed means the call was charged but not recorded: keep the returned requestId and receipt id in the artifact and fix the ledger path before the next call.
  5. Return. Records (summarised, never dumped past 20 rows), the receipt (id, contentHash, creditsCost, source, attribution if any), and the updated budget.
  6. Record. If the call served an experiment, append the receipt id to it. If a decision followed, write the vault entry.

Read the full file on GitHub · 41 lines

Changes

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.

  1. today First seen · 41 lines · 46 tokens per session scan A 020b54614b62

Subscribe to this mod's changes

alexandria is a command published in the GitHub repository Starlight-Intelligence/Starlight-Intelligence-System (12 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 778 once invoked, about $0.0002 per session on Opus 5.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-12-05.

Related

alexandria compared with commands from other repositories

alexandria next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
alexandriaStarlight-Intelligence/Starlight-Intelligence-SystemCommand12todayMITA46Claude Code
search-flightsAwardTravelFinder/mcpCommand184d agoMITA6Claude Code
addHainrixz/agente-pagokitCommand721mo agoMITA17Claude Code
financial-modelabinauv/business-consultingCommand481mo agoMITA9Claude Code
fundraising-strategy-plannermaigentic/stratartsCommand499mo agoMITA42Claude Code
negotiatepeerjakobsen/smartspenderCommand510mo agoMITA12Claude Code
checklistgithub/spec-kitCommand154kyesterdayMITA13Claude Code