icpg-bootstrap

icpg-bootstrap is a command for Claude Code from alinaqi/maggy. It costs 0 tokens per session (418 once invoked), scanned A, original, MIT.

A command that reads recent Git commit history and infers the intentions behind past changes. It records those inferred intentions as ReasonNodes, which connect goals to code symbols and files.

In plain words
What is it for?
Use it once when setting up iCPG, choose how many days of history to scan, inspect inferred intents, and review low-confidence results.
Why use it?
It helps an existing codebase gain project context without requiring that history to be documented by hand, while identifying uncertain inferences for review.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it once when setting up iCPG, choose how many days of…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alinaqi/maggy/icpg-bootstrap
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/alinaqi/maggy

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 icpg-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/commands/alinaqi/maggy/icpg-bootstrap.svg)](https://agentmods.dev/commands/alinaqi/maggy/icpg-bootstrap)
Your own site
<a href="https://agentmods.dev/commands/alinaqi/maggy/icpg-bootstrap"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/icpg-bootstrap.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 418 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.00000 $0.00418
Opus 5 $0.00000 $0.00209
Sonnet 5 $0.00000 $0.00084
Haiku 4.5 $0.00000 $0.00042

Measured 7d ago against content hash b53813a26d04, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

icpg-bootstrap 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 7d 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.

commands/icpg-bootstrap.md · 75 lines

What it actually says

/icpg-bootstrap — Bootstrap from Git History

Infer ReasonNodes from existing git commit history. One-time setup for existing codebases.


Usage

/icpg-bootstrap [--days N]

Default: 90 days of history.


Steps

1. Initialize iCPG if needed

icpg init

2. Run bootstrap

icpg bootstrap --days 90 --verbose

If no LLM API key available:

icpg bootstrap --days 90 --verbose --no-llm

3. Show results

iCPG BOOTSTRAP COMPLETE
═══════════════════════

History scanned: {N} days ({M} commits)
Commit clusters: {K}
ReasonNodes created: {R}
Symbols linked: {S}
Duplicates skipped: {D}

TOP INFERRED INTENTS:
  1. [0.80] "Add JWT authentication" — 12 symbols, 5 files
  2. [0.75] "Refactor payment processing" — 8 symbols, 3 files
  3. [0.65] "Fix rate limiting bug" — 3 symbols, 2 files
  ...

LOW CONFIDENCE (review recommended):
  - [0.55] "Update dependencies" — may be too generic
  - [0.50] "Misc fixes" — commit message unclear

4. Offer review

Ask the user:

{N} ReasonNodes were inferred from git history. {M} are low-confidence and may need review.

Would you like to:

  1. Keep all (proceed with current quality)
  2. Review low-confidence intents (I'll show each one)
  3. Run drift scan now (icpg drift check)

5. Post-bootstrap drift scan

icpg drift check

Show any immediate drift detected.

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. 7d ago First seen · 75 lines · 0 tokens per session scan A b53813a26d04

Subscribe to this mod's changes

icpg-bootstrap is a command published in the GitHub repository alinaqi/maggy (705 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 418 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.