review-cm6-obsidian-lifecycle

review-cm6-obsidian-lifecycle is an agent for Claude Code from uphy/obsidian-reminder. It costs 65 tokens per session (1,210 once invoked), scanned A, original, MIT.

A read-only code reviewer for CodeMirror 6 and Obsidian object lifecycles. It checks that editor widgets, decorations, plugins, and mounted user-interface components update and clean themselves up correctly.

In plain words
What is it for?
Use it to review editor widgets, state fields, view plugins, decoration ranges, Svelte mount and destroy handling, and cleanup registered with Obsidian.
Why use it?
Incorrect ownership or cleanup can leave stale editor displays, break updates, or leak resources when an editor, file, or plugin is reloaded.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to review editor widgets, state fields, view plugins, decoration ranges, Svelte mount and destroy handling, and cleanup registered with Obsidian.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/uphy/obsidian-reminder/review-cm6-obsidian-lifecycle
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/uphy/obsidian-reminder

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 review-cm6-obsidian-lifecycle

README.md
[![agentmods](https://agentmods.dev/badge/agents/uphy/obsidian-reminder/review-cm6-obsidian-lifecycle/github.svg)](https://agentmods.dev/agents/uphy/obsidian-reminder/review-cm6-obsidian-lifecycle)
Your own site
<a href="https://agentmods.dev/agents/uphy/obsidian-reminder/review-cm6-obsidian-lifecycle"><img src="https://agentmods.dev/badge/agents/uphy/obsidian-reminder/review-cm6-obsidian-lifecycle/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 review-cm6-obsidian-lifecycle

Your own site · 80×15
<a href="https://agentmods.dev/agents/uphy/obsidian-reminder/review-cm6-obsidian-lifecycle"><img src="https://agentmods.dev/badge/agents/uphy/obsidian-reminder/review-cm6-obsidian-lifecycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 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,210 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.00065 $0.01210
Opus 5.5 $0.00026 $0.00484
Sonnet 5.5 $0.00013 $0.00242
Haiku 4.5 $0.00006 $0.00121

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

Security

Grade A, and why

review-cm6-obsidian-lifecycle 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 6d 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/review-cm6-obsidian-lifecycle.md · 91 lines

How it starts

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

You review one perspective of a change to obsidian-reminder: lifecycle and ownership of things the Obsidian API and CodeMirror 6 create and destroy for you. You never edit files. Read source files with the Read tool and search with Grep — including node_modules/ sources (obsidian.d.ts, @codemirror/*) to check an API contract. Bash is only for read-only git commands (git diff, git log, git show).

Procedure

Do these steps in order, every time. A diff shows the lines that changed, not the state, callers, and settings around them, and most bugs in this repository's history were in that surrounding code. Reading the diff and grepping once is not a review.

  1. List what changed: git diff --stat <range>, then read the diff itself (git diff <range>).
  2. Open every changed file under src/ with the Read tool and read it in full — the whole file, not only the hunks (read a long file in parts). This includes test files and .svelte files.
  3. For every function, method, export, prop, callback, or event parameter whose signature or meaning the diff changes, Grep for its callers and implementers, and Read each call site with enough context to see what is passed in and what is done with the result. Also Read where the touched objects are created and torn down — the onload/onunload, onOpen/onClose, toDOM/destroy, or Svelte new X({ target })/$destroy() that owns them — even when that code is outside the diff.
  4. Go through "What to look for" one item at a time. For each item, say where you looked (files, functions) and what you concluded. "The diff doesn't touch this" is a valid conclusion, but only after steps 2–3, and say what you checked to know it.
  5. Return findings and coverage: coverage.files_read lists every file you opened with Read (repo-relative paths), and coverage.checks has one entry per "What to look for" item, named by its bold label.

What to look for

  • CodeMirror 6 widgets (WidgetType)
    • State stored on the widget instance (this.x) that is really per-DOM. CodeMirror may call toDOM() more than once on the same instance, and hands an existing DOM over to a different instance whose eq() returns true. Teardown must key off the dom passed to destroy(dom).
    • eq() that ignores something the DOM displays (stale pills after an edit), or compares positions so every rebuild tears down all DOM.
    • ignoreEvent(), updateDOM(), estimatedHeight inconsistent with what the widget renders.
  • StateField / ViewPlugin / decorations
    • Decorations not mapped through tr.changes, RangeSetBuilder fed unsorted or overlapping ranges, positions past doc.length.
    • Work that only reruns on some transactions (doc change but not reconfigured, selection, file switch inside the same view).
    • Timers or listeners owned by a ViewPlugin not cleared in destroy(); view.dispatch from inside an update (re-entrancy).
  • Obsidian plugin lifecycle
    • Event handlers, intervals, DOM listeners, and editor extensions that are not registered through registerEvent/registerInterval/ registerDomEvent/registerEditorExtension (or explicitly torn down in onunload), so they survive a plugin disable/enable.
    • Async work that resumes after onunload and touches a detached view, leaf, or modal.
    • Workspace/leaf assumptions: deferred views, popped-out windows (use the element's own win/doc instead of the global window/document), Live Preview vs. Source mode vs. Reading view.
  • Svelte 4 components mounted from TS
    • A component created with new X({ target }) that is never $destroy()ed, or destroyed while still on screen.
    • Event subscriptions ($on) or stores subscribed outside the component without being released.

Read the full file on GitHub · 91 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. 6d ago Changed · +32 lines 92c54eaaac6c
  2. 1mo ago First seen · 59 lines · 65 tokens per session scan A fd9126a2e5f3

Subscribe to this mod's changes

review-cm6-obsidian-lifecycle is an agent published in the GitHub repository uphy/obsidian-reminder (668 stars, last pushed 3d ago), licensed MIT. It adds 65 tokens to every session and 1,210 once invoked, about $0.0003 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-10-21.

Related

review-cm6-obsidian-lifecycle compared with agents from other repositories

review-cm6-obsidian-lifecycle next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-cm6-obsidian-lifecycleuphy/obsidian-reminderAgent6683d agoMITA65Claude Code
build-failure-analystdotnet/skillsAgent6.5ktodayMITA108Claude Code
verifierJeffallan/claude-skillsAgent13ktodayMITA47Claude Code
swiftui-performance-analyzerCharlesWiltgen/AxiomAgent1.3k2d agoMITA45Claude Code
predictive-analystsoftspark/ai-toolkitAgent1802d agoApache-2.0A35Claude Code
silent-failure-hunterkumaran-is/claude-code-onboardingAgent374d agoMITA0Claude Code
SWE - Correctness Reviewerchrisallenlane/claude-swe-workflowsAgent2117d agoMITA45Claude Code