Skip to content

docs: rewrite CLAUDE.md to reflect the plugin's actual state - #9

Open
jagp wants to merge 1 commit into
developfrom
claude/claude-md-docs-hamnv5
Open

docs: rewrite CLAUDE.md to reflect the plugin's actual state#9
jagp wants to merge 1 commit into
developfrom
claude/claude-md-docs-hamnv5

Conversation

@jagp

@jagp jagp commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Why

The existing CLAUDE.md predated the hook implementation: it described the repo as a scaffolding skill and instructed the model to hand-write log lines into omnilog.md — exactly the fabrication problem the omnilog hooks were built to eliminate (docs/autologging.md §6 calls out the model's invented <init:2500> entries). It contained no information about the codebase itself.

What changed

Rewrote CLAUDE.md as codebase documentation for future Claude Code sessions:

  • What the repo is — a PowerShell Claude Code plugin (omnilog + ado) that doubles as its own single-plugin marketplace, with an explicit "logging is done by hooks, not by you" correction of the old instruction.
  • Commands — full suite / single test via tests/run-all.ps1 (auto-discovery noted), trunk check / trunk fmt, and the Windows PowerShell 5.1 target (no substitute verification on machines without powershell).
  • Architecture — the dual hook registration (hooks/hooks.json with ${CLAUDE_PLUGIN_ROOT} vs. dogfooding .claude/settings.json) and the keep-in-sync / no-autoload-here rules; event flow through omnilog-lib.ps1; pointer to docs/autologging.md as the verified schema reference.
  • Invariants — hooks always exit 0, append-only ledger, descriptions-never-raw-material, dedupe-by-requestId token costs with no placeholders, artifacts resolve into the calling project.
  • Scope resolution — full precedence chains for omnilog (OMNILOG_ENABLEDOMNILOG_FILEenabled:scope:) and ado (ADO_SCOPEADO_FILEado:/ado-path: → marker gate).
  • Conventions — git-flow (PRs target develop), plugin/marketplace version sync + everything tests/plugin-manifest.ps1 enforces, patch-bump-to-bust-cache, command frontmatter, pure-ASCII 5.1-parseable script source.

Sourced from README.md, docs/autologging.md, evals/README.md, CHANGELOG.md, the hook libraries, and the test suite. No code changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T3ef4ev6SxG78to6aAAbrN


Generated by Claude Code

The old CLAUDE.md predated the hook implementation: it described the repo
as a scaffolding skill and instructed the model to hand-write log lines
into omnilog.md - exactly the fabrication problem the omnilog hooks were
built to eliminate. Replace it with current codebase documentation: test
and lint commands, the dual hook registration (plugin vs dogfood), the
log invariants, scope-resolution precedence, and release conventions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T3ef4ev6SxG78to6aAAbrN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants