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/lsp/AGENTS.md
AGENTS.md

Quality

74/100

Scores the file, not the repository.

Length

543 words

16 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/lsp/AGENTS.mdRawGitHub
1<!-- Parent: ../AGENTS.md -->
2<!-- Generated: 2026-01-28 | Updated: 2026-01-28 -->
3 
4# lsp
5 
6Language Server Protocol (LSP) client implementation providing IDE-like code intelligence.
7 
8## Purpose
9 
10This directory implements the LSP client that enables agents to:
11- Connect to language servers (TypeScript, Python, Rust, Go, etc.)
12- Get type information, documentation, and signatures
13- Find definitions, references, and symbols
14- Perform refactoring operations (rename, code actions)
15- Collect diagnostics (errors, warnings)
16 
17## Key Files
18 
19| File | Description |
20|------|-------------|
21| `index.ts` | Module exports - re-exports client, servers, utils |
22| `client.ts` | `LspClient` class - JSON-RPC 2.0 over stdio communication |
23| `servers.ts` | `LSP_SERVERS` config - known language server definitions |
24| `utils.ts` | Formatting utilities for LSP responses |
25 
26## For AI Agents
27 
28### Working In This Directory
29 
30#### LSP Client Architecture
31 
32```
33┌─────────────────┐ JSON-RPC 2.0 ┌──────────────────┐
34│ LspClient │◄────────────────────►│ Language Server │
35│ │ stdio │ (tsserver, etc.) │
36│ - connect() │ │ │
37│ - hover() │ │ │
38│ - definition() │ │ │
39│ - references() │ │ │
40│ - diagnostics() │ │ │
41└─────────────────┘ └──────────────────┘
42```
43 
44#### Client Manager
45 
46`lspClientManager` is a singleton that pools connections:
47 
48```typescript
49// Get client for a file (auto-selects appropriate server)
50const client = await lspClientManager.getClientForFile('src/index.ts');
51 
52// Client is reused for same workspace/server combo
53const key = `${workspaceRoot}:${serverConfig.command}`;
54```
55 
56#### Server Configuration
57 
58Each server in `LSP_SERVERS` has:
59```typescript
60interface LspServerConfig {
61 name: string; // Human-readable name
62 command: string; // Executable command
63 args: string[]; // Command arguments
64 extensions: string[]; // File extensions handled
65 installHint: string; // Installation instructions
66}
67```
68 
69### Common Patterns
70 
71**Request/Response:**
72```typescript
73// All requests use JSON-RPC 2.0 format
74const request = {
75 jsonrpc: '2.0',
76 id: this.requestId++,
77 method: 'textDocument/hover',
78 params: { textDocument: { uri }, position: { line, character } }
79};
80 
81// Wrapped in Content-Length header
82const message = `Content-Length: ${content.length}\r\n\r\n${content}`;
83```
84 
85**Notification handling:**
86```typescript
87// Server pushes diagnostics via notifications
88if (notification.method === 'textDocument/publishDiagnostics') {
89 this.diagnostics.set(params.uri, params.diagnostics);
90}
91```
92 
93### Testing Requirements
94 
95LSP tests require language servers to be installed:
96```bash
97# Install TypeScript server
98npm i -g typescript-language-server typescript
99 
100# Run tests
101npm test -- --grep &quot;lsp&quot;
102```
103 
104## Dependencies
105 
106### Internal
107- None
108 
109### External
110| Package | Purpose |
111|---------|---------|
112| `vscode-languageserver-protocol` | LSP type definitions |
113| `child_process` | Spawning language servers |
114| `fs`, `path` | File operations |
115 
116## Supported Language Servers
117 
118This table documents catalog/discovery support. Runtime semantic quality still depends on installing and correctly configuring the underlying language server.
119 
120| Language | Server | Command | Extensions |
121|----------|--------|---------|------------|
122| TypeScript/JS | typescript-language-server | `typescript-language-server` | .ts, .tsx, .js, .jsx |
123| Python | ty | `ty server` | .py, .pyw |
124| Rust | rust-analyzer | `rust-analyzer` | .rs |
125| Go | gopls | `gopls` | .go |
126| C/C++ | clangd | `clangd` | .c, .h, .cpp, .cc, .hpp |
127| Java | jdtls | `jdtls` | .java |
128| JSON | vscode-json-language-server | `vscode-json-language-server` | .json, .jsonc |
129| HTML | vscode-html-language-server | `vscode-html-language-server` | .html, .htm |
130| CSS | vscode-css-language-server | `vscode-css-language-server` | .css, .scss, .less |
131| Vue | vue-language-server | `vue-language-server --stdio` | .vue |
132| YAML | yaml-language-server | `yaml-language-server` | .yaml, .yml |
133 
134<!-- MANUAL: -->
135 

Commands it names

  • npm i -g typescript-language-server typescript
  • npm test -- --grep "lsp"

Sections

  • lsp
  • Purpose
  • Key Files
  • For AI Agents
  • Working In This Directory
  • Common Patterns
  • Testing Requirements
  • Install TypeScript server
  • Run tests
  • Dependencies
  • Internal
  • External
  • Supported Language Servers

What it covers

setuptestcode-stylearchitecturetypesdependencies

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/diagnostics/AGENTS.md · 38kAGENTS.mdtypescriptvitest+8teststylearchtypes+277/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/diagnostics/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