CLAUDE.md
CLAUDE.mdCLAUDE.mdroot
Quality
57/100
Scores the file, not the repository.Length
217 words
6 headings · 1 code blocksRepository
31
— · pushed 98 days agoLast changed
3 days ago
First indexed 3 days ago.1# TG Claude - Telegram Bridge for Claude Code23## What This Is4Node.js bot that turns Mac into remote Claude Code terminal via Telegram. Not an API wrapper - runs real CLI with full tool access.56## Architecture7```8User (Telegram) -> Bot (Node.js) -> Claude Code CLI -> tools -> response -> User9```1011## Key Files12- `worker/` - Claude Code session management, message processing13- `approval-hook.mjs` - PreToolUse hook, sends approval buttons to Telegram14- `stop-hook.mjs` - Stop hook, notifies on session end15- `notify-hook.mjs` - Notification hook16- `mode.mjs` - Mode management (auto/confirm)17- `bot-system-prompt.md` - System prompt injected into every Claude session18- `config.json` - Bot token, allowed users, settings (NEVER commit)19- `launcher.sh` - Process manager2021## Rules22- **Telegram HTML formatting only** - no Markdown. Use `<b>`, `<code>`, `<pre>` tags23- **No Markdown tables** - Telegram doesn't render them24- **Concise responses** - phone screen, not desktop25- **bot-system-prompt.md** is the system prompt for Telegram sessions - edit there, not here26- **config.json** contains secrets - always in .gitignore27- **test.txt** in root is test artifact, can be deleted2829## Stack30- Node.js 20+ (ESM, .mjs)31- grammY (Telegram bot framework)32- Claude Code CLI (spawned as child process)33- No database - sessions in memory, config in JSON34
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| livewire/livewireCLAUDE.md · 24k | CLAUDE.md | setupbuildteststyle+4 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today |
