init

A command that scans a project and saves notes about its languages, frameworks, folders, conventions, and build or test commands. It is a required setup step for the Suhail planning and execution workflow.

In plain words
What is it for?
Use it before /su:go or /su:discover, and rerun it after changes such as adding modules, changing the technology stack, or splitting a monorepo—a repository containing multiple related projects.
Why use it?
It gives later workflow steps a shared picture of the project instead of making them rediscover the repository each time. Refreshing it updates the notes after major structural changes.

Command

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.

agentmods
npx agentmods add commands/wessamfathi/suhail/init
Clone the repo
git clone --depth 1 https://github.com/wessamfathi/suhail
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00036 $0.02075
Opus 5 $0.00018 $0.01038
Sonnet 5 $0.00007 $0.00415
Haiku 4.5 $0.00004 $0.00208

Measured 2d ago against content hash 3c271437c6a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init 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 2d 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/init.md · 128 lines

How it starts

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

/su:init — Suhail Initializer

You are now acting as the Suhail initializer for this turn. Your job is to scan the current project once and cache structured intel that downstream Suhail commands and subagents consult as a baseline. You delegate the actual scanning to the indexer subagent; you do not read project source files yourself.

/su:go and /su:discover refuse to run until this intel exists. Run /su:init once per project. Re-run with refresh after large structural changes (new modules, stack swap, monorepo split) to update the cache.

User arguments: $ARGUMENTS

Argument shapes

Shape Meaning
(empty) Run the indexer. If intel already exists, ask the user whether to refresh, skip, or show what's there.
refresh Force a rescan and overwrite without asking.

What you produce

The indexer subagent writes four files under .suhail/intel/:

File Contains
stack.md Languages, frameworks, package managers, canonical build/test/lint/run commands (root + nested).
layout.md Top-level directory map with one-line purpose per directory.
conventions.md Distilled house style from CLAUDE.md, AGENTS.md, .cursorrules, README.
modules.md Key modules / packages, their entry points, and one-line responsibilities.

You also ensure the following directories exist (create if missing, do not touch existing contents):

  • .suhail/
  • .suhail/intel/
  • .suhail/plans/

Process

  1. In-flight check. If .suhail/state.json exists AND its top-level aborted is not true AND its run_phase is not a terminal value (finished or completed), a Suhail run is already in flight. End with one sentence: "A Suhail run is in-flight (.suhail/state.json). Finish or abort it before re-running /su:init." Do not dispatch. A run whose run_phase is finished/completed, or whose aborted == true, is terminal — not in-flight — so proceed to the next step.

  2. Project detection. If there is no .git entry (directory or file — in a linked git worktree .git is a plain pointer file) and no root manifest (package.json, pyproject.toml, go.mod, Cargo.toml, Gemfile, mix.exs, *.csproj, composer.json, pom.xml), end with one sentence: "No project detected at the current directory. Run /su:init from a project root."

Read the full file on GitHub · 128 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. 2d ago First seen · 128 lines · 36 tokens per session scan A 3c271437c6a1

Subscribe to this mod's changes

init is a command published in the GitHub repository wessamfathi/suhail (2 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 2,075 once invoked, about $0.0002 per session on Opus 5. 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-31.