library-deepen

library-deepen is a command for Claude Code from frankxai/agentic-creator-os. It costs 27 tokens per session (948 once invoked), scanned A, original, Apache-2.0.

A command that expands an existing book review into a deeper knowledge page with selected quotes, chapter summaries, and related learning resources.

In plain words
What is it for?
Use it to add quotes and chapter information, then prepare the entry for related books, talks, interviews, and lectures.
Why use it?
It avoids rebuilding the book entry from scratch when more detailed material is needed.

Command for Claude Code

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

Part of the agentic-creator-os plugin — 131 commands, 68 agents shipped together

Good fit Use it to add quotes and chapter information, then prepare the entry for related books, talks, interviews, and lectures.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/frankxai/agentic-creator-os/library-deepen
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/frankxai/agentic-creator-os

Made for: Claude Code.

Or install agentic-creator-os, the plugin that ships this one along with the rest of its 131 commands, 68 agents.

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 library-deepen

README.md
[![agentmods](https://agentmods.dev/badge/commands/frankxai/agentic-creator-os/library-deepen.svg)](https://agentmods.dev/commands/frankxai/agentic-creator-os/library-deepen)
Your own site
<a href="https://agentmods.dev/commands/frankxai/agentic-creator-os/library-deepen"><img src="https://agentmods.dev/badge/commands/frankxai/agentic-creator-os/library-deepen.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 948 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.00027 $0.00948
Opus 5 $0.00014 $0.00474
Sonnet 5 $0.00005 $0.00190
Haiku 4.5 $0.00003 $0.00095

Measured 4d ago against content hash 20894def1b26, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

library-deepen 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 4d 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/commands/library-deepen.md · 94 lines

How it starts

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

/library-deepen — Deep-Dive an Existing Book

You are the Library OS Deep-Dive agent. Your job is to take an existing library entry and upgrade it into a single-page knowledge hub by populating quotes, chapters, and triggering the research agent for continueReading + videos.

Input

Arguments: /library-deepen {slug} (e.g. /library-deepen atomic-habits)

Optionally: --source=path/to/book.pdf or --source=path/to/notes.md to base extraction on the actual text.

Execution

Step 1 — Load the entry

Read data/book-reviews.ts, find the entry by slug. If the book does not exist yet, run /library-add first.

Step 2 — Curate quotes

Target: 10–20 quotes that are:

  • Memorable — short enough to quote (ideally under 30 words)
  • Load-bearing — carry a key idea, not just rhetoric
  • Distributed — spread across the book, not clustered in one chapter
  • Attributable — each ends with a chapter reference in the data

Delegate to the book-distiller subagent with the book title + author + source (if provided) + target count. The subagent returns BookQuote[] in the exact shape of the type.

Each quote MUST include:

  • text — the quote verbatim (or the best English translation)
  • chapter"Chapter 3 — Problem-Solving" format (include both number and title)
  • context (optional) — one sentence framing why this quote matters

Step 3 — Distill chapters

Target: every chapter of the book, no exceptions. Each chapter gets:

  • number — 1-indexed
  • title — exact chapter title
  • keyIdea — one sentence, the chapter's thesis
  • summary — 2–4 sentences, what the chapter argues

Delegate to book-distiller with mode: 'chapters'. Returns BookChapterSummary[].

Step 4 — Offer research handoff

Print:

Quotes added: N
Chapters added: N

Run /library-research {slug} to populate continueReading + videos.

Step 5 — Type-check + preview

npx tsc --noEmit data/book-reviews.ts

Optionally, fetch the rendered page in dev to sanity-check: the TOC should now list Quotes + Chapter-by-Chapter sections.

Read the full file on GitHub · 94 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. 4d ago First seen · 94 lines · 27 tokens per session scan A 20894def1b26

Subscribe to this mod's changes

library-deepen is a command published in the GitHub repository frankxai/agentic-creator-os (10 stars, last pushed 4d ago), licensed Apache-2.0. It adds 27 tokens to every session and 948 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-09-03.