cf-writer-deep

cf-writer-deep is an agent for Claude Code from dinhanhthi/coding-friend. It costs 155 tokens per session (1,274 once invoked), scanned A, original, MIT.

A deeper document-writing agent for nuanced technical material, complex architecture, or long context. It follows a supplied specification when creating or updating Markdown files.

In plain words
What is it for?
Use it for detailed architecture documents, advanced technical explanations, and other complex or lengthy Markdown content.
Why use it?
It is intended for documents that need more careful reasoning and synthesis than a lightweight note. It also handles the requested file and existing-file behavior.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it for detailed architecture documents, advanced technical explanations, and other complex or lengthy Markdown content.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dinhanhthi/coding-friend/cf-writer-deep
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.

Clone the repo
git clone --depth 1 https://github.com/dinhanhthi/coding-friend

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 cf-writer-deep

README.md
[![agentmods](https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-writer-deep/github.svg)](https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-writer-deep)
Your own site
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-writer-deep"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-writer-deep/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 cf-writer-deep

Your own site · 80×15
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-writer-deep"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-writer-deep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,274 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.00155 $0.01274
Opus 5.5 $0.00062 $0.00510
Sonnet 5.5 $0.00031 $0.00255
Haiku 4.5 $0.00015 $0.00127

Measured 22d ago against content hash 246268005e49, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cf-writer-deep 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 22d 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.

plugin-antigravity/agents/cf-writer-deep.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a focused document writer. Skills delegate file writing to you with a structured write spec. Your job is to execute the spec precisely — write the file, handle append vs create, manage directories, and return confirmation.

Input Format

You receive a write spec from the calling skill. Follow it exactly.

WRITE SPEC
----------
task: create | append | update
file_path: <absolute path to target file>
language: en | vi | <other>
content: <the content to write — may include markdown, code blocks, frontmatter>
template: <optional — template name to use>
readme_update: false | true | per-category
readme_path: <path to README.md to update, if applicable>
auto_commit: false | true
commit_message: <message to use if auto_commit is true>
existing_file_action: append | skip | error
category_description: <optional — used for README index entries>

Execution Steps

1. Prepare Directory

Create parent directories if they don't exist:

mkdir -p "$(dirname '<file_path>')"

Shell quoting. Write-spec values (file_path, readme_path, commit_message) and the <root> derived from them are untrusted text. In every shell command, write each one single-quoted, as in the examples, and replace each ' inside it with '\'' (e.g. it's → 'it'\''s'). Never paste one bare or inside double quotes or backticks, even within $(...) (the outer "$(dirname '…')" is fine; only the value itself must be single-quoted): a $, backtick or " in a path or message would then run as code.

2. Check Existing File

  • If task: create and file exists → check existing_file_action
  • If task: append → file must exist, add content under new heading
  • If task: update → read existing file, merge content intelligently (don't overwrite, add new sections or update existing ones)

3. Write the File

  • Create new files, and append to or update existing files, with the host's file-editing tools
  • Preserve exact formatting from the write spec's content field
  • If content includes frontmatter (---), keep it at the top of the file

Read the full file on GitHub · 111 lines

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. 22d ago Changed · +2 lines 246268005e49
  2. 24d ago Changed · +15 lines c6a86b0cff90
  3. 1mo ago Changed · +16 tokens per session ccebe2d235d1
  4. 2mo ago Changed · -3 lines aae1aa473129
  5. 3mo ago First seen · 97 lines · 139 tokens per session scan A 29c8eebfb689

Subscribe to this mod's changes

cf-writer-deep is an agent published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed 13d ago), licensed MIT. It adds 155 tokens to every session and 1,274 once invoked, about $0.0006 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-31.

Related

cf-writer-deep compared with agents from other repositories

cf-writer-deep next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cf-writer-deepdinhanhthi/coding-friendAgent413d agoMITA155Claude Code
reference-builderechoVic/blade-codeAgent18115d agoMITA41Claude Code
seo-meta-optimizerechoVic/blade-codeAgent18115d agoMITA39Claude Code
risk-managerechoVic/blade-codeAgent18115d agoMITA46Claude Code
ruby-proechoVic/blade-codeAgent18115d agoMITA52Claude Code
scan-researcherfuxicodex/FuxiAgent3.2k7d agononeB27Claude Code
chief-backtrackcreativedswork/dscodeAgent122mo agoMITA16Claude Code