alexandria

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

A command for Alexandria, a catalogue that plans access to records, prices the work, runs it within a session budget, and returns cited receipts. A receipt is a record of what was requested and obtained so another artifact can refer to it.

In plain words
What is it for?
Use it to find candidate data capabilities, compare their costs, execute one approved request, and return records with a receipt.
Why use it?
It puts planning, budget checks, execution, citation, and verification in one controlled process. It stops when required options, record limits, or available credits are missing.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the starlight-intelligence-system plugin — 8 skills, 122 commands, 7 agents, 4 hooks shipped together

Good fit Use it to find candidate data capabilities, compare their costs, execute one approved request, and return records with a receipt.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/frankxai/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/frankxai/Starlight-Intelligence-System

Made for: Claude Code.

Or install starlight-intelligence-system, the plugin that ships this one along with the rest of its 8 skills, 122 commands, 7 agents, 4 hooks.

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/frankxai/starlight-intelligence-system/alexandria/github.svg)](https://agentmods.dev/commands/frankxai/starlight-intelligence-system/alexandria)
Your own site
<a href="https://agentmods.dev/commands/frankxai/starlight-intelligence-system/alexandria"><img src="https://agentmods.dev/badge/commands/frankxai/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/frankxai/starlight-intelligence-system/alexandria"><img src="https://agentmods.dev/badge/commands/frankxai/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 100% copy Near-identical to another mod 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 1mo ago 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 1mo ago.

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

This is a copy

100% identical to alexandria — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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. 1mo ago 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 frankxai/Starlight-Intelligence-System (10 stars, last pushed 27d ago), 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. It is 100% identical to alexandria, differing in 0 lines, and is treated as a copy.

Related

alexandria compared with commands from other repositories

alexandria next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
alexandriafrankxai/Starlight-Intelligence-SystemCommand1027d agoMITA46Claude Code
memoriesseokan-jeong/team-shinchanCommand94mo agoMITA5Claude Code
forgetseokan-jeong/team-shinchanCommand94mo agoMITA3Claude Code
learnseokan-jeong/team-shinchanCommand94mo agoMITA5Claude Code
mpm-session-resumebobmatnyc/claude-mpmCommand1613mo agononeA5Claude Code
gbu-retroXyndoX/good-bad-uglyCommand14mo agoMITA12Claude Code
fd-checkpointDVNghiem/FlowDeckCommand4419d agoMITA21Claude Code