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 instructions/jkheadley/instar/claude-mdgit clone --depth 1 https://github.com/JKHeadley/instarWrote 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.
[](https://agentmods.dev/instructions/jkheadley/instar/claude-md)<a href="https://agentmods.dev/instructions/jkheadley/instar/claude-md"><img src="https://agentmods.dev/badge/instructions/jkheadley/instar/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.05924 | $0.05924 |
| Opus 5 | $0.02962 | $0.02962 |
| Sonnet 5 | $0.01185 | $0.01185 |
| Haiku 4.5 | $0.00592 | $0.00592 |
Grade B, and why
instar CLAUDE.md scanned grade B with 3 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 5d 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.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
- Create: `curl -X POST http://localhost:4040/view -H 'Content-Type: application/json' -d '{"title":"Report","markdown":"# Private content"}'` Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
1. **API endpoints** — Add to the Capabilities section with curl examples Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
# execFileSync/execSync callsites replaced; enforces audit trail), How it starts
The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — instar
What This Project Is
Persistent autonomy infrastructure for AI agents. Every molt, more autonomous.
Transforms Claude Code from a reactive CLI tool into a proactive, persistent agent with scheduled jobs, multi-user messaging, and system monitoring.
Born from the Dawn/Portal project — extracting battle-tested infrastructure patterns into a reusable, project-agnostic toolkit.
Quick Reference
pnpm build # Build TypeScript
pnpm dev # Watch mode build
pnpm test # Unit tests
pnpm test:watch # Watch mode tests
pnpm test:integration # Integration tests (spawns real sessions)
Architecture
src/
core/ # SessionManager, StateManager, Config, FeedbackManager,
# UpdateChecker, RelationshipManager, SleepWakeDetector,
# SourceTreeGuard (blocks destructive managers against the instar
# source tree; throws SourceTreeGuardError before any mutation),
# SafeGitExecutor (single-funnel for all destructive git ops —
# execFileSync/execSync callsites replaced; enforces audit trail),
# SafeFsExecutor (single-funnel for all destructive fs ops —
# rmSync/unlinkSync/rmdirSync callsites replaced; enforces audit trail),
# PendingInjectStore (durable ledger of in-flight initial-message
# injects — queued messages survive server restarts; recorded at
# spawn, cleared after the inject runs, swept at boot by
# SessionManager.recoverPendingInjects with loud loss reporting),
# types
scheduler/ # Cron-based job scheduling with quota awareness
monitoring/ # Health checks, QuotaTracker (threshold-based load shedding),
# CrashLoopPauser (auto-pause runaway jobs),
# CompactionSentinel (verified compaction recovery lifecycle —
# dedupe across triggers, JSONL-growth verification, retry with
# backoff, zombie-kill veto while recovery is in flight),
# PresenceProxy (standby heartbeat — fires when a user message
# goes unanswered past the tier threshold),
# PromiseBeacon (commitment follow-through — cadenced heartbeats
# on open beacon-enabled commitments; atRisk non-terminal state;
# boot-cap enforcement via maxActiveBeacons),
# CommitmentTracker (commitment lifecycle + single-writer CAS
# mutate(); feeds PromiseBeacon and /commitments/* routes),
# LlmQueue (rate-limited, priority-laned LLM call queue shared
# across PresenceProxy and PromiseBeacon; enforces daily spend cap),
# SessionWatchdog (stuck-process detection + escalating kill
# sequence; watchdog-notifications for user-facing messages),
# HelperWatchdog (stall + failure detection for spawned subagents
# via SubagentTracker events; signal-only: emits `stall` and
# `helper-failed` events; consumers handle retry/messaging),
# DeliveryFailureSentinel (Telegram relay recovery engine — drains
# PendingRelayStore, deterministic state machine, fixed-template
# escalation after retry exhaustion; Layer 3 of delivery-robustness),
# TemplatesDriftVerifier (verifies deployed relay scripts against
# shipped instar versions via SHA-history lint; Layer 7 of
# delivery-robustness),
# TokenLedger (read-only token-usage observability — scans Claude
# Code JSONL transcripts, SQLite-backed, exposes /tokens/summary
# and /tokens/sessions; never gates or mutates source files),
# TokenLedgerPoller (background JSONL scanner that feeds TokenLedger;
# tracks byte offsets per file so re-scans are idempotent)
messaging/ # TelegramAdapter (long-polling, JSONL history),
# WhatsAppAdapter, SlackAdapter, iMessage (platform adapters);
# TelegramMarkdownFormatter (GFM→HTML for Telegram; default
# 'markdown' — flip to 'legacy-passthrough' in .instar/config.json
# for byte-for-byte rollback; per-call `_formatMode: 'html'` opt-out
# for callers already producing Telegram HTML),
# slack/SlackMrkdwnFormatter (GFM→mrkdwn for Slack; default
# 'mrkdwn' — flip to 'legacy-passthrough' in the slack messaging
# config block for byte-for-byte rollback; per-call
# `formatMode: 'legacy-passthrough'` opt-out for callers already
# producing mrkdwn),
# MessageRouter (topic → adapter routing),
# DeliveryRetryManager (retry on failed delivery),
# PendingRelayStore (durable SQLite queue for Telegram relay;
# per-agent-id isolation; WAL + busy_timeout; Layer 2 of
# delivery-robustness),
# SpawnRequestManager (cross-session spawn coordination),
# MessageStore (cross-platform message persistence)
users/ # Multi-user identity resolution and permissions
server/ # HTTP server, routes, middleware (auth, CORS)
scaffold/ # Identity bootstrap, template file generation
commands/ # CLI: init, setup, server, status, user, job, add, feedback
templates/ # Default hook scripts, helper scripts for scaffolding
tests/
unit/ # Pure logic tests (no tmux/sessions)
integration/ # Full system tests (may spawn real sessions)
e2e/ # End-to-end lifecycle tests
fixtures/ # Test data and mock repos
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.
- 5d ago First seen · 357 lines · 5,924 tokens per session scan B b934a91ddcdc
instar CLAUDE.md is an instructions file published in the GitHub repository JKHeadley/instar (77 stars, last pushed yesterday), licensed MIT. It adds 5,924 tokens to every session, about $0.0296 per session on Opus 5. A static security scan graded it B with 3 findings (sends data to an external url, makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vanguard CLAUDE.md
Claude Code instructions for SebaBoler/vanguard, covering claude.md, hard constraints and style.
mcp-supersubagents typescript.instructions.md
Instructions for yigitkonur/mcp-supersubagents, covering typescript review guidelines, type safety, module system, patterns and enums and constants.
retry-axios GEMINI.md
Gemini CLI instructions for JustinBeckwith/retry-axios, covering project: retry-axios, project overview, building and running, dependencies and commands.
OwnPilot AGENTS.md
Instructions for ownpilot/OwnPilot, covering ownpilot, architecture, key patterns, commands and tech stack.
huly-mcp CLAUDE.md
Claude Code instructions for dearlordylord/huly-mcp, covering project instructions, design principle: llm-first api, project harness (copy to new projects), package manager and verification.
solo copilot-instructions.md
Copilot instructions for hiero-ledger/solo, covering github copilot instructions for hiero-ledger/solo and highest-frequency rules.