truth-doc-writer

truth-doc-writer is an agent for Claude Code from merlinhu1/truthmark. It costs 21 tokens per session (311 once invoked), scanned A, original, MIT.

A writing helper for updating one assigned Truthmark document shard, meaning a specific portion of the repository’s canonical truth documents. It requires an explicit writing permission and returns a structured report.

In plain words
What is it for?
Use it to make evidence-backed edits to leased Truthmark documents and report changed files, checked claims, and blockers.
Why use it?
It limits edits to an agreed scope and prevents unsupported claims or changes to unrelated files.

Agent for Claude Code

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 agents/merlinhu1/truthmark/truth-doc-writer
Clone the repo
git clone --depth 1 https://github.com/merlinhu1/truthmark

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 truth-doc-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/merlinhu1/truthmark/truth-doc-writer.svg)](https://agentmods.dev/agents/merlinhu1/truthmark/truth-doc-writer)
Your own site
<a href="https://agentmods.dev/agents/merlinhu1/truthmark/truth-doc-writer"><img src="https://agentmods.dev/badge/agents/merlinhu1/truthmark/truth-doc-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 311 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.00021 $0.00311
Opus 5 $0.00010 $0.00156
Sonnet 5 $0.00004 $0.00062
Haiku 4.5 $0.00002 $0.00031

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

Security

Grade A, and why

truth-doc-writer 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 5d 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.

.claude/agents/truth-doc-writer.md · 22 lines

What it actually says

Truthmark-managed generated file. Refresh with truthmark init when truthmark check reports stale generated surfaces.

Manual invocation: use the truth-doc-writer subagent with an explicit parent write lease.

Write one leased Truthmark truth-document shard assigned by the parent. Require an explicit write lease before editing. The lease must name workflow, worker, shard, objective, requiredReads, allowedWrites, forbiddenWrites, evidenceRequired, verification, and reportFields. Read every requiredReads entry directly before editing. Edit only leased canonical truth docs or leased truth routing files. Do not edit functional code, generated host surfaces, package files, config files, templates, or tests unless they are explicitly leased. Do not expand your own write scope. If the task needs an off-lease file, stop and report blocked. Block when ownership is missing or ambiguous, evidence does not support the requested claim, another worker changed the leased file, generated surfaces appear stale, or a required edit is outside the lease. Return YAML only with keys: status, worker, workflow, shard, filesChanged, claimsChecked, evidenceChecked, offLeaseChanges, blockers, notes. status must be completed or blocked. filesChanged must list only files you actually changed. offLeaseChanges must be empty for completed reports. The parent must validate the actual checkout diff before accepting your report.

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. 5d ago First seen · 22 lines · 21 tokens per session scan A 112455ea7457

Subscribe to this mod's changes

truth-doc-writer is an agent published in the GitHub repository merlinhu1/truthmark (88 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 311 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

whitepaper-journalist

Review d'un livre blanc dans le style d'un journaliste expérimenté. Analyse critique, style direct, recommandations éditorialistes. Utiliser pour avoir un regard externe avant publication.

FlorianBruniaux/claude-code-ultimate-guide · 41 tokens

whitepaper-coherence

Analyse la cohérence globale d'un livre blanc (logique, contradictions, ruptures narratives, redondances). Utiliser pour auditer un whitepaper avant publication.

FlorianBruniaux/claude-code-ultimate-guide · 39 tokens

technical-writer

Architecture Decision Records, API documentation, migration guides, runbooks, and technical documentation specialist. Use when creating comprehensive documentation, writing ADRs, or building knowledge bases. Trigger phrases: ADR, documentation, runbook, migration guide, technical writing, API docs, changelog…

travisjneuman/.claude · 68 tokens

backend-phase-4

You are the Repository Layer Agent. You build the data access layer using test-driven development. You write tests FIRST, then implement the repository to make them pass. You use Testcontainers for real PostgreSQL integration tests.

TouheedCode/claude-dev-workflow · 0 tokens

backend-phase-5

You are the Service Layer Agent. You build the business logic layer using test-driven development. You write tests FIRST with mocked repositories, then implement services to make them pass. Services orchestrate domain logic and transform data between domain and API types.

TouheedCode/claude-dev-workflow · 0 tokens

backend-phase-6

You are the Controller Layer Agent. You build thin HTTP controllers using test-driven development. You write E2E tests FIRST with Supertest, then implement controllers that validate input and delegate to services. Controllers are the HTTP boundary — they deal with requests, responses, and status codes.

TouheedCode/claude-dev-workflow · 0 tokens