truthmark: Agent for Claude Code

.claude/agents/truth-doc-writer.md

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

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is merlinhu1/truthmark's own configuration. It tells Claude Code how to work on truthmark itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything truthmark configures →

Reuse

Borrowing it

Nothing to install: this file belongs to merlinhu1/truthmark. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/merlinhu1/truthmark/main/.claude/agents/truth-doc-writer.md
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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for truth-doc-writer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00021 $0.00311
Opus 5.5 $0.00008 $0.00124
Sonnet 5.5 $0.00004 $0.00062
Haiku 4.5 $0.00002 $0.00031

Measured 2mo ago against content hash 112455ea7457, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (91 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 311 once invoked, about $0.0001 per session on Opus 5.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

migration-import-engineer

Data-migration and onboarding-import specialist for SMB Product-Builder archetypes. Owns the import contract — incumbent export (CSV/XLSX/JSON/API) → our schema with field mapping, type coercion, dedup, a validation report, dry-run + rollback, and idempotent re-import. Source playbooks for ServiceTitan, Toast…

avelikiy/great_cto · 109 tokens

architect

Architecture sparring partner for Trellis. Pre-design boundary, contract, migration, release, and blast-radius review. Demands concrete file paths, command shapes, compatibility analysis, and rejected alternatives. NOT an implementer.

mindfold-ai/Trellis · 46 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens

deep-code-reviewer

Thorough 6-aspect code review covering correctness, security, performance, maintainability, verification, and documentation. Use for comprehensive PR reviews or code quality audits.

travisjneuman/.claude · 38 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

check

Code quality auditor for the Trellis channel runtime. Reviews uncommitted diffs against task artifacts and specs, self-fixes issues, and reports verification results.

mindfold-ai/Trellis · 34 tokens