ai-toolkit: Command for Claude Code

.codex/commands/spartan.md

spartan is a command for Claude Code, Codex from c0x12c/ai-toolkit. It costs 35 tokens per session (4,419 once invoked), scanned B, original, no licence file.

A starting command for the Spartan AI Toolkit that detects the project context and selects a suitable workflow or command.

In plain words
What is it for?
Use it as the first step when entering a Spartan project or deciding which Spartan command fits the current task.
Why use it?
It helps when you know you want to use the toolkit but are unsure which workflow to choose.

Command for Claude CodeCodex

Written for Codex and Claude Code: installed under .codex/, but also a Claude Code command (commands/*.md).

This is c0x12c/ai-toolkit's own configuration. It tells Claude Code and Codex how to work on ai-toolkit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-toolkit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to c0x12c/ai-toolkit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/c0x12c/ai-toolkit/master/.codex/commands/spartan.md
Clone the repo
git clone --depth 1 https://github.com/c0x12c/ai-toolkit

Made for: Claude Code, Codex.

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 spartan

README.md
[![agentmods](https://agentmods.dev/badge/commands/c0x12c/ai-toolkit/spartan/github.svg)](https://agentmods.dev/commands/c0x12c/ai-toolkit/spartan)
Your own site
<a href="https://agentmods.dev/commands/c0x12c/ai-toolkit/spartan"><img src="https://agentmods.dev/badge/commands/c0x12c/ai-toolkit/spartan/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 spartan

Your own site · 80×15
<a href="https://agentmods.dev/commands/c0x12c/ai-toolkit/spartan"><img src="https://agentmods.dev/badge/commands/c0x12c/ai-toolkit/spartan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00035 $0.04419
Opus 5.5 $0.00014 $0.01768
Sonnet 5.5 $0.00007 $0.00884
Haiku 4.5 $0.00003 $0.00442

Measured 2mo ago against content hash b400afbcd4cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

spartan scanned grade B with 1 finding 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

LOCAL_VER=$(cat ~/.claude/.spartan-version 2>/dev/null || echo "")
.codex/commands/spartan.md · 374 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2mo ago First seen · 374 lines · 35 tokens per session scan B b400afbcd4cf

Subscribe to this mod's changes

spartan is a command published in the GitHub repository c0x12c/ai-toolkit (110 stars, last pushed 4mo ago), with no licence file. It adds 35 tokens to every session and 4,419 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

spartan compared with commands from other repositories

spartan next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spartanc0x12c/ai-toolkitCommand1104mo agononeB35Claude Code, Codex
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code