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 commands/arslan70/haytham/validategit clone --depth 1 https://github.com/arslan70/haythamWhat 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.00027 | $0.04917 |
| Opus 5 | $0.00014 | $0.02459 |
| Sonnet 5 | $0.00005 | $0.00983 |
| Haiku 4.5 | $0.00003 | $0.00492 |
Grade A, and why
validate scanned grade A 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -H "User-Agent: haytham/1.0" "[URL].json" How it starts
The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Haytham: Idea Validation (Phase 1 - WHY)
You are running Phase 1 of the Haytham validation workflow. This phase analyzes the startup idea, researches the market, and produces a recommendation.
IMPORTANT: Always read agent output from files, not from conversation history.
Progress Tracking
After Setup completes (and before Step 0), call TodoWrite once with one todo per step that will actually run for this invocation. Steps 0, 4, 6 are skipped in BATCH_MODE; skipped steps must not be added to the todo list. If resuming from --from N, only include steps from N onward.
Default (interactive) todo set:
- Step 0 — Founder context
- Step 1 — Idea analysis
- Step 2 — Market & competitor research
- Step 3 — Research brief
- Step 4 — Founder review
- Step 5 — Validation report
- Step 6 — Gate 1
Mark each todo in_progress when starting the step and completed when its output file is written (or the gate decision is recorded). If a step re-runs because the founder corrected something, set it back to in_progress.
Setup & Resume Detection
Flag Parsing
First, check if the argument contains --batch. If so:
- Remove
--batchfrom the argument string (the remainder is the idea, URL, or--from N) - Set BATCH_MODE to true
Then check if the user passed --from N as the argument (e.g., /haytham:validate --from 5). If so, set START_STEP to N.
URL Detection
If the argument is not --from N, check if it looks like a URL:
If it matches https?://(www\.)?reddit\.com/ (Reddit post):
- Try WebFetch to retrieve the URL content
- If WebFetch fails (blocked or errors), fall back to the Reddit JSON API via Bash:
Parse the JSON response to extractcurl -s -H "User-Agent: haytham/1.0" "[URL].json"titleandselftextfromdata.children[0].data. - Extract the post title and body text from the fetched content
- Set IDEA_TEXT to the extracted title + body
- Set SOURCE_URL to the original URL
- Set SOURCE_TYPE to
reddit_post
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.
- 2d ago First seen · 403 lines · 27 tokens per session scan A c34dce52b9d8
validate is a command published in the GitHub repository arslan70/haytham (13 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 4,917 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
constitution
Create or update the project constitution from interactive or provided principle inputs.