You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b34f430
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/CLAUDE.md
+37-4Lines changed: 37 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,19 @@ Behavioral guidelines to reduce common LLM coding mistakes.
8
8
9
9
**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
10
10
11
+
## 0. Fast Path for Trivial Tasks
12
+
13
+
**For obvious, low-risk, reversible, text only ( no source code ), single-file changes, execute directly with minimal ceremony.**
14
+
15
+
- Do not create a plan, spawn or delegate to agents, run quorum review, inspect unrelated files, perform broad searches, or run Git archaeology.
16
+
- Read only the target and, when genuinely necessary, one directly relevant instruction or nearby example.
17
+
- Do not ask questions when the request and local convention determine the result; make the obvious reversible assumption.
18
+
- Use the minimum tool calls: inspect, edit, and verify once. Keep progress narration to one short update at most.
19
+
- If the preferred editing tool fails once because of an environment or tooling problem, use a safe direct fallback. Do not repeatedly debug the tool unless no safe fallback exists.
20
+
- Verification should be proportional to the change. For a simple text edit, rereading the changed content is sufficient.
21
+
22
+
This fast path overrides the planning, clarification, delegation, and quorum-review requirements below for trivial tasks. Higher-priority system, developer, safety, and explicitly invoked skill instructions still apply.
23
+
11
24
## 1. Clarify Before Executing
12
25
13
26
**Resolve ambiguity up front — before spawning agents or starting any autonomous work.**
@@ -36,6 +49,10 @@ Only once these questions are resolved do you move to execution (§4).
36
49
- No error handling for impossible scenarios.
37
50
- If you write 200 lines and it could be 50, rewrite it.
38
51
52
+
**Minimal comments**:
53
+
54
+
- avoid adding code comments unless necessary (i.e. only if the code itself is not self explanatory). When necessary, code comments must be as brief as possible to ensure readability and avoid overbloating.
55
+
39
56
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
40
57
41
58
## 3. Surgical Changes
@@ -85,10 +102,7 @@ Strong, agreed-upon criteria — settled in §1 — let you loop independently.
85
102
86
103
Act as an orchestrator. Fan out grunt work — reading files, gathering context, simple searches, minor mechanical edits, other simple tool calls — to cheaper agents, then review their findings and any code changes yourself before acting on them. Keep the important and dangerous work — architecture, ambiguous decisions, risky or hard-to-reverse edits, final review — on the more capable model.
87
104
88
-
Which tier to spawn depends on who you are:
89
-
90
-
-**If you are Fable 5**, spawn Opus 4.8 agents for grunt work that still needs some capability; for genuinely simple tasks, hand off directly to Sonnet 5 instead. Review what they return.
91
-
-**If you are Opus 4.8**, and a task needs little knowledge or context, fan out to Sonnet 5 agents and review what they return.
105
+
When delegation is available, use a less capable, cheaper model for genuinely simple, mechanical, low-risk work. Keep tasks requiring substantial context or judgment on the primary, more capable model.
92
106
93
107
Match the model to the task: pick the cheapest tier that can do the job well, and skip an intermediate tier when the work is simple enough for a lower one.
94
108
@@ -98,6 +112,25 @@ Guidelines:
98
112
- Give each agent a self-contained task with clear success criteria (per §4) so you can verify its output without redoing the work.
99
113
- Never merge a delegated finding or edit unblocked — review it first. The cheaper model did the legwork; you own the decision.
100
114
115
+
## 6. Quorum Review for Big Changes
116
+
117
+
**For bigger changes, three agents check the work and two of three must agree before it counts as a success.**
118
+
119
+
This applies to any change that is large, or that spans multiple files. For trivial, single-file edits, skip it and use §4's normal verification.
120
+
121
+
- Spawn **three independent agents** to review the completed change, each judging against the success criteria settled in §1/§4.
122
+
-**Vary each agent's prompt slightly so they are not identical.** Give them the same context and criteria, but frame each reviewer differently — a distinct persona or emphasis (e.g. one as a correctness-focused engineer, one probing edge cases, one checking that it actually satisfies the request). Don't hand all three the same "You are a systems engineer…" opening.
123
+
- The change is a success only when **at least two of the three agree** it is correct and complete.
124
+
- If the vote fails (two or more say it's wrong or incomplete), treat it as not done: address their objections, then re-run the quorum.
125
+
- Keep their judgments independent so the vote is meaningful, and read their reasoning yourself before accepting the verdict.
126
+
127
+
## 7. Reporting Results
128
+
129
+
- Keep straightforward findings and small fixes in chat.
130
+
- If a review has four or more substantive findings, or the detailed response would exceed roughly 25 lines, write the full results to a clearly named Markdown file in the repository.
131
+
- In chat, provide only a short summary and a link to that report.
132
+
- Do not create a report file for a simple bug, small change, or brief explanation.
133
+
101
134
## Project Overview
102
135
103
136
LogExpert is a Windows log file viewer and analyzer built with C# and Windows Forms. It's a GUI replacement for the Unix `tail` command with extensive features including tail mode, filtering, bookmarks, highlighting, and a plugin-based architecture for parsing custom log formats.
0 commit comments