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 skills/firstp1ck/pi-coding-agent-forge/deep-researchnpx skills add Firstp1ck/pi-coding-agent-forge --skill deep-researchgit clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forgeWhat 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.00046 | $0.01686 |
| Opus 5 | $0.00023 | $0.00843 |
| Sonnet 5 | $0.00009 | $0.00337 |
| Haiku 4.5 | $0.00005 | $0.00169 |
Grade A, and why
deep-research 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deep Research
Deterministic research pipeline that produces reproducible, schema-validated output. Same input + same state = same output.
Triggers
Activate when the user asks for rigorous multi-source research or uses any of these commands:
/deep-research [topic]/deepresearch [topic]/dpr [topic]/dp [topic]/dr [topic]
Quick Start
S="{baseDir}/scripts"
B="{baseDir}"
# Full deterministic run (after claims + evidence are collected):
python3 $S/run_deep_research.py \
--topic "Does caffeine improve focus?" \
--topic-summary "Common belief that caffeine enhances concentration." \
--claims-file /tmp/dr-claims.json \
--evidence-file /tmp/dr-evidence.json \
--policy $B/policy.json \
--schema $B/output-schema.json \
--state $B/state.json \
--output-json /tmp/dr-output.json \
--output-md /tmp/dr-output.md
Exit codes: 0 success, 1 validation/policy error, 2 partial retrieval, 3 no-evidence fallback.
Workflow
Phase 1: General Research (Agent-Driven)
Search the web to understand the topic. Identify up to 5 key claims to fact-check.
Write claims to a JSON file using this exact schema:
[
{
"claim_text": "Caffeine (100-300mg) improves sustained attention",
"evidence_required": "RCTs or meta-analyses on caffeine and attention",
"confidence_target": 0.7
}
]
Required fields per claim: claim_text, evidence_required, confidence_target.
Phase 2: Scientific Fact-Check (Agent-Driven)
For each claim, search source databases in tier order:
| Tier | Sources | Flag |
|---|---|---|
peer_reviewed |
PubMed, Google Scholar | ✅ |
preprint |
arXiv, bioRxiv, medRxiv | 📝 |
community |
Reddit, StackExchange, forums | 🗨️ |
social |
X/Twitter | 🐦 |
Evidence budget per claim: 2 peer-reviewed + 1 fallback (max 5 total).
Write evidence to a JSON file:
[
{
"claim_id": "C001",
"sources": [
{
"title": "Effects of caffeine on cognitive performance",
"authors": "Smith et al.",
"year": 2020,
"tier": "peer_reviewed",
"url": "https://pubmed.ncbi.nlm.nih.gov/12345678",
"citation": "Smith et al., \"Effects of caffeine on cognitive performance\", J. Neuroscience, 2020. https://pubmed.ncbi.nlm.nih.gov/12345678",
"supports_claim": true,
"relevance_note": "RCT showing improved reaction time at 200mg dose",
"retrieved_at": "2026-02-26T10:00:00+00:00"
}
]
}
]
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- output-schema.json 6.9 KB
- policy.json 3.6 KB
- scripts/run_deep_research.py 25 KB runs code
- tests/fixtures/claims_caffeine.json 420 B
- tests/fixtures/claims_no_evidence.json 196 B
- tests/fixtures/evidence_caffeine.json 2.9 KB
- tests/fixtures/evidence_community_only.json 1.1 KB
- tests/fixtures/evidence_empty.json 54 B
- tests/fixtures/evidence_tie_break.json 1.5 KB
- tests/test_determinism.py 14 KB runs code
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.
- 3d ago First seen · 207 lines · 46 tokens per session scan A 49828d8eddaf
deep-research is a skill published in the GitHub repository Firstp1ck/pi-coding-agent-forge (74 stars, last pushed 3d ago), licensed MIT. It adds 46 tokens to every session and 1,686 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-30.
Other skills, from other repositories
github-release-management
Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management.
flow-nexus-platform
Comprehensive Flow Nexus platform management - authentication, sandboxes, app deployment, payments, and challenges.
github-code-review
Comprehensive GitHub code review with AI-powered swarm coordination.
github-multi-repo
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration.
github-project-management
Comprehensive GitHub project management with swarm-coordinated issue tracking, project board automation, and sprint planning.
github-workflow-automation
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management.