Log
Log helps agents pick up a project with useful context. It combines source evidence with lessons you confirm, then proposes focused changes to the instructions future sessions read.
Flow
The diagrams show setup followed by the source-review decision. After setup, continue to the second diagram. A layout-only run follows its No branch and finishes without a source scan.
Setup and scope
Source review and completion
Start the command
Log validates clean main or master before reading review history, offering scan choices or investigating source. In a project without Git history, it can prepare instructions and leave them uncommitted. A source review and a shared-file setup are separate choices: you can connect the clients without requesting a new investigation.
An already-current result names the local commit it checked. It does not claim to have fetched the remote or tested the running application.
An established blocker ends the run before further investigation or proposals. Later failures preserve earlier verified setup work and actual drafts, with the prior review marker retained. An unanswered workflow question pauses the run; it does not authorize independent investigation while you decide.
Shared project instructions
The usual arrangement is AGENTS.md for shared knowledge and CLAUDE.md for its import plus Claude-specific additions. Log first follows the actual instruction files, imports and overrides. It preserves custom layouts, adopted rule pointers and confirmed settings; missing standard headings do not make an existing file broken.
For a new setup, missing settings such as local auto-commit and future shipping preferences can share a question batch with scan depth when the choices are independent. Existing settings are not silently replaced with defaults, and cancelling the work discards pending preferences.
When the existing instruction files can be reconciled without an unresolved policy choice, you see the recommended merge diff directly. A baseline question is reserved for real ambiguity; it does not replace approval of the resulting changes.
For example, a project may have a useful deployment warning in a custom section. Log keeps it even if the current scan does not rediscover why it was added; removing or contradicting it needs evidence and a reviewed change.
What the review covers
| Review | What you can expect |
|---|---|
| Full scan | Trace representative workflows across the project’s first-party packages, covering setup, architecture, domain constraints and operational hazards. |
| Gap scan | Follow changes from a verified earlier review to the knowledge and consumers they affect. |
| Layout only | Connect or reconcile instruction files without claiming a new source assessment. |
A Gap scan needs a usable review baseline. If history was rewritten, log first tries to establish the equivalent earlier commit from permitted evidence. It does not invent a baseline or interpret an unavailable marker as proof of completed coverage.
Lessons from your conversation also count. The agent checks what is confirmed, distinguishes lasting project guidance from a one-off preference, and includes the useful changes in the proposal.
Review and apply the proposal
Existing entries are assessed for accuracy and their value to future agents. An accurate implementation walkthrough may be too detailed for always-loaded instructions; a temporary task report may no longer belong there. Log can propose condensing or consolidating these passages, linking existing documentation or removing material with no durable value. It explains the reason and what useful knowledge remains. Missing source evidence for an old warning is not grounds to discard it, and custom sections are not converted to a standard outline automatically.
A Full scan assesses all existing knowledge alongside the project investigation. A Gap scan applies this review to affected passages and concerns selected for the run, while preserving unrelated content. The initial document check can identify a concrete problem even without new source commits; it does not establish source coverage or turn wording preferences into mandatory work.
Before any edit, you see the proposed changes and their reasons. Existing files receive a diff with literal - removals and + additions, followed by a clean Proposed result after approval preview. Settings, removals and review-marker changes are included. A new file appears once in full; proposed safety rules are identified there for your explicit approval.
Choose Write proposed changes or Cancel for layout or content updates. You can type an exact selection, correction or replacement wording. A changed proposal receives an affected preview and any missing approval without restarting the scan or rewriting unrelated content. Editorial cleanup alone does not advance the source-review marker.
With auto-commit off, writing approval does not approve a commit unless your specific request already covers the exact changes, paths and subject. Otherwise the commit decision follows verification. Dependent source review waits until an approved layout checkpoint is committed.
Approved layout work is verified separately from knowledge changes. Cancelling a later source update preserves an earlier layout change you already approved. Log does not install or refresh adopted rules; use adopt for that.
Your result
The final report separates updated instructions, completed review coverage and unresolved knowledge. It also reports instruction size so you can notice growing context costs.
A review marker identifies the source snapshot actually assessed. Layout repairs and incomplete acceptance do not advance it as if a full review finished. Eligible changes follow your local commit policy and stay on the current branch; ship handles later publication.
During ordinary development, a needed AGENTS.md correction comes as a proposed change before any edit. You can approve a bounded correction under log’s authoring standards or run log for its source review. Reading those standards does not invoke log, and an approved direct edit preserves the existing review marker.
Explore the source
For implementation details, read guides/log.md.