maggy-init

maggy-init is a command for Claude Code from alinaqi/maggy. It costs 0 tokens per session (841 once invoked), scanned B, original, MIT.

An interactive setup wizard for configuring Maggy, an AI engineering command center, for a team’s organization, issue tracker, repositories, and codebases.

In plain words
What is it for?
Use it to configure an organization, choose GitHub or Asana, register repositories and local codebases, and define competitor categories.
Why use it?
It gathers the project details Maggy needs in one place and writes them to its configuration file while installing required dependencies.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths.

Good fit Use it to configure an organization, choose GitHub or Asana, register repositories and local codebases, and define competitor categories.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/alinaqi/maggy/maggy-init"><img src="https://agentmods.dev/badge/commands/alinaqi/maggy/maggy-init.svg" alt="Reviewed on agentmods" width="80" 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 841 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 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.00841
Opus 5 $0.00000 $0.00420
Sonnet 5 $0.00000 $0.00168
Haiku 4.5 $0.00000 $0.00084

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

Security

Grade B, and why

maggy-init 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 11d 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.

BOOTSTRAP_DIR=$(cat ~/.claude/.bootstrap-dir)
commands/maggy-init.md · 104 lines

How it starts

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

/maggy-init — Set Up Maggy for This Team

Interactive wizard that configures Maggy for the user's org, issue tracker, and codebases. Writes ~/.maggy/config.yaml and ensures deps are installed.


Usage

/maggy-init — run the full setup wizard


Steps

1. Check prerequisites

  • Python 3.11+ available
  • claude CLI on PATH (warn but don't block)
  • Maggy installed (check ~/.claude/.bootstrap-dir)

2. Run installer

BOOTSTRAP_DIR=$(cat ~/.claude/.bootstrap-dir)
cd "$BOOTSTRAP_DIR/maggy"
./install.sh

This installs Python deps and copies the config template to ~/.maggy/config.yaml.

3. Interactive config wizard

Ask the user:

  1. Org name — human-readable name (e.g. "Acme Corp")
  2. Domain — primary competitive domain (e.g. "fintech", "devtools", "cx", "healthcare"). This drives competitor discovery.
  3. Issue trackergithub (default) or asana. Linear is a stub.
  4. For GitHub: org name + comma-separated repo list (acmecorp/api, acmecorp/web)
  5. For Asana: workspace ID + project GID for their default board
  6. Codebases — paths to each repo Maggy should execute in. Prompt key per path (short name like api, web).
  7. Competitor categories — comma-separated (can match domain; encourages 1-3 categories)
  8. OKRs — "skip" or "yaml" (paste OKRs inline if yaml)

4. Write config

Patch ~/.maggy/config.yaml with the user's answers using a Python helper:

import yaml
from pathlib import Path

cfg_path = Path.home() / ".maggy" / "config.yaml"
cfg = yaml.safe_load(cfg_path.read_text())

cfg["org"]["name"] = "<answer>"
cfg["org"]["domain"] = "<answer>"
cfg["issue_tracker"]["provider"] = "<answer>"
# ... set github/asana section accordingly
cfg["codebases"] = [{"path": "<path>", "key": "<key>"}, ...]
cfg["competitors"]["categories"] = ["<cat>", ...]

cfg_path.write_text(yaml.safe_dump(cfg, sort_keys=False))

5. Credentials check

Tell the user to export these in their shell and source them when starting Maggy:

Read the full file on GitHub · 104 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. 11d ago First seen · 104 lines · 0 tokens per session scan B ebc2e03336e2

Subscribe to this mod's changes

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