RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/Yeachan-Heo/oh-my-claudecode

AGENTS.md

src/tools/diagnostics/AGENTS.md
AGENTS.md

Quality

77/100

Scores the file, not the repository.

Length

369 words

15 headings · 6 code blocks

Repository

38k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
Yeachan-Heo/oh-my-claudecode/src/tools/diagnostics/AGENTS.mdRawGitHub
1<!-- Parent: ../AGENTS.md -->
2<!-- Generated: 2026-01-28 | Updated: 2026-01-28 -->
3 
4# diagnostics
5 
6Project-level diagnostics via TypeScript compiler (tsc) or LSP aggregation.
7 
8## Purpose
9 
10This directory provides project-wide type checking and error detection:
11- **Primary**: `tsc --noEmit` for fast, comprehensive TypeScript checking
12- **Fallback**: LSP iteration when tsc is unavailable
13- Powers the `lsp_diagnostics_directory` tool
14 
15## Key Files
16 
17| File | Description |
18|------|-------------|
19| `index.ts` | Main entry - `runDirectoryDiagnostics()` with strategy selection |
20| `tsc-runner.ts` | TypeScript compiler runner - parses `tsc --noEmit` output |
21| `lsp-aggregator.ts` | LSP fallback - iterates files and collects diagnostics |
22 
23## For AI Agents
24 
25### Working In This Directory
26 
27#### Strategy Selection
28 
29```typescript
30// Auto-select best strategy
31const result = await runDirectoryDiagnostics(directory, 'auto');
32 
33// Force specific strategy
34const tscResult = await runDirectoryDiagnostics(directory, 'tsc');
35const lspResult = await runDirectoryDiagnostics(directory, 'lsp');
36```
37 
38**Strategy logic:**
39```typescript
40if (strategy === 'auto') {
41 useStrategy = hasTsconfig ? 'tsc' : 'lsp';
42}
43```
44 
45#### TSC Runner
46 
47Uses `tsc --noEmit --pretty false` for parseable output:
48```typescript
49// Output format: file(line,col): error TS1234: message
50const regex = /^(.+)\((\d+),(\d+)\):\s+(error|warning)\s+(TS\d+):\s+(.+)$/gm;
51```
52 
53**Advantages:**
54- Fast (single process)
55- Comprehensive (full project type checking)
56- Accurate (uses tsconfig.json)
57 
58#### LSP Aggregator
59 
60Fallback that iterates through files:
61```typescript
62for (const file of files) {
63 const client = await lspClientManager.getClientForFile(file);
64 await client.openDocument(file);
65 await sleep(LSP_DIAGNOSTICS_WAIT_MS); // 300ms for server processing
66 const diagnostics = client.getDiagnostics(file);
67}
68```
69 
70**Use when:**
71- No tsconfig.json
72- Multi-language project
73- Need per-file incremental checking
74 
75### Common Patterns
76 
77**Result format:**
78```typescript
79interface DirectoryDiagnosticResult {
80 strategy: 'tsc' | 'lsp';
81 success: boolean;
82 errorCount: number;
83 warningCount: number;
84 diagnostics: string; // Formatted output
85 summary: string; // Human-readable summary
86}
87```
88 
89### Testing Requirements
90 
91```bash
92# Test with a TypeScript project
93npm test -- --grep &quot;diagnostics&quot;
94```
95 
96## Dependencies
97 
98### Internal
99- `../lsp/` - LSP client for aggregation mode
100 
101### External
102| Package | Purpose |
103|---------|---------|
104| `child_process` | Running tsc |
105| `fs`, `path` | File system operations |
106 
107## Performance Comparison
108 
109| Strategy | Speed | Accuracy | Requirements |
110|----------|-------|----------|--------------|
111| `tsc` | Fast (~1-5s) | High | tsconfig.json |
112| `lsp` | Slow (~0.3s/file) | Medium | Language server installed |
113 
114**Recommendation**: Always prefer `tsc` for TypeScript projects.
115 
116<!-- MANUAL: -->
117 

Commands it names

  • npm test -- --grep "diagnostics"
  • tsc --noEmit
  • tsc-runner.ts
  • tsc --noEmit --pretty false
  • tsc

Sections

  • diagnostics
  • Purpose
  • Key Files
  • For AI Agents
  • Working In This Directory
  • Common Patterns
  • Testing Requirements
  • Test with a TypeScript project
  • Dependencies
  • Internal
  • External
  • Performance Comparison

What it covers

testcode-stylearchitecturetypesdependenciesperformance

Stack — with the evidence

typescript

(1.00)

vitest

(1.00)

eslint

(1.00)

node

(0.70)

react

(0.70)

vite

(0.70)

pytest

(0.70)

javascript

(0.60)

github-actions

(0.60)

python

(0.50)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
Yeachan-Heo
Language
—
License
—
Archived
no

All configs in this repo

Also in Yeachan-Heo/oh-my-claudecode

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
Yeachan-Heo/oh-my-claudecode.github/CLAUDE.md · 38kCLAUDE.mdtypescriptvitest+8setupbuildstylegit+279/1003 days ago
Yeachan-Heo/oh-my-claudecodeAGENTS.md · 38kAGENTS.mdtypescriptvitest+8setuplint-formatstyletypes+445/1003 days ago
Yeachan-Heo/oh-my-claudecodeskills/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchdependencies+166/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8buildteststylearch+277/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/agents/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchdependencies+166/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/features/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchdependencies74/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/hooks/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8setupteststylearch+274/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/tools/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8setupteststylearch+186/1003 days ago
Yeachan-Heo/oh-my-claudecodesrc/tools/lsp/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8setupteststylearch+274/1003 days ago
Yeachan-Heo/oh-my-claudecodeCLAUDE.md · 38kCLAUDE.mdtypescriptvitest+8setupbuildstylegit+165/1003 days ago
Diff against .github/CLAUDE.md Diff against AGENTS.md Diff against skills/AGENTS.md Diff against src/AGENTS.md Diff against src/agents/AGENTS.md Diff against src/features/AGENTS.md Diff against src/hooks/AGENTS.md Diff against src/tools/AGENTS.md Diff against src/tools/lsp/AGENTS.md Diff against CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
trick77/agents-md-syncAGENTS.md · 2AGENTS.mdtypescriptnode+4setupbuildteststyle+5100/1003 days ago
code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67kAGENTS.mdtypescriptbun+10setupbuildtestlint-format+6100/1002 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack