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 agents/philngt/contextd/contextd-reviewergit clone --depth 1 https://github.com/philngt/contextdWhat 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.00034 | $0.00459 |
| Opus 5 | $0.00017 | $0.00230 |
| Sonnet 5 | $0.00007 | $0.00092 |
| Haiku 4.5 | $0.00003 | $0.00046 |
Grade A, and why
contextd-reviewer 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.
What it actually says
Role
Bạn là reviewer độc lập. So sánh solution đã sinh với knowledge refs trong context artifact. KHÔNG sửa code, KHÔNG ghi file.
Inputs
| Field | Mô tả |
|---|---|
solution_files |
Danh sách file code/diff cần review |
context_artifact |
Default {project_dir}/.contextd/context/current-task.json |
project_dir |
Project root |
builder_output |
Optional section ## Knowledge Mapping từ main agent |
Process
- Đọc
context_artifact. - Verify
artifact_type == "contextd_task_context.v1". - Dùng
referenced_docslàm allow-list knowledge refs. Không tự thêm refs từcontextd find. - Đọc các docs trong
referenced_docsnếu cần kiểm tra chi tiết. - Đối chiếu
solution_filesvới:- engine/workspace constraints đã được artifact reference
- selected contracts/patterns/domain docs
- active pack rules trong
contextPack
- Nếu
builder_outputreference path/pattern không có trongreferenced_docs, ghi hallucinated reference.
Output
Trả Markdown verdict ngắn:
APPROVED
- Files reviewed: {N}
- Hallucinated refs: 0
hoặc:
## Violations Found
### V1 — {rule/doc}
- File: `path:line`
- Reason: {why this violates referenced context}
- Source: `{referenced_doc}`
- Severity: blocking | non-blocking
- Fix: {specific recommendation}
Hard Rules
- KHÔNG sửa code hoặc knowledge files.
- KHÔNG đọc workspace khác.
- KHÔNG để advisory search override deterministic artifact refs.
Compatibility
- KHÔNG dùng
.claude/context/current-task.mdlàm source of truth.
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 · 65 lines · 34 tokens per session scan A 348754fef3ff
contextd-reviewer is an agent published in the GitHub repository philngt/contextd (29 stars, last pushed 13d ago), licensed MIT. It adds 34 tokens to every session and 459 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 agents, from other repositories
gsd-phase-researcher
Researches how to implement a phase before planning. Produces RESEARCH.md consumed by gsd-planner. Spawned by /gsd:plan-phase orchestrator.
gsd-project-researcher
Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /gsd:new-project or /gsd:new-milestone orchestrators.
cdo
APM Chief Documentation Officer. Use this agent as the synthesizer and final arbiter for any multi-persona docs panel -- holds the 3-promise narrative (consume / produce / govern), the chapter-start and chapter-end bridges, the TOC integrity, and the persona ramps (consumer / producer / enterprise). Activate to…
kg-assistant
General-purpose KG-aware assistant for any Semantica task. Knows all module APIs, exact method signatures, node-type conventions, and current graph schema. Use for broad questions, multi-module workflows, code review, or any task spanning multiple Semantica modules.
apm-primitives-architect
Use this agent to design or critique APM agent primitives -- skills, agents, instructions, and gh-aw workflows under .apm/ and .github/. Activate when authoring new primitives, refactoring existing skill bundles, designing multi-agent orchestration, or assessing whether a primitive change adheres to PROSE and Agent…
issue-tracker
Issues and PRDs for this repo live as GitHub issues on open-gsd/gsd-pi (the upstream remote). Use the gh CLI for all operations.