kronus
CLAUDE.md4 starsChanged 8 months agoMITView on GitHub
Active work: v5.3 Platform & Marketplace. See root CLAUDE.md for current v5.3 context, plan docs, and branch strategy. This file documents the base v4.1 architecture that v5.3 builds on. Par1kKronus v4.1 is a hybrid agent + skill system with a Telegram control plane daemon. Agents handle complex multi-turn work. Skills handle repeatable quick workflows. MCP servers connect external tools. Teams coordinate parallel swarms. The daemon routes Telegram messages to per-project Claude Code sessions. The daemon (daemon/src/) is a Bun/TypeScript process…
- Reads credentials
In this repository31 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- global/CLAUDE.mdCLAUDE.md
- auditSkill
- case-studySkill
- ci-commentSkill
- cold-outreachSkill
- daily-briefingSkill
- dep-checkSkill
- github-readmeSkill
- hub-statusSkill
- invoice-genSkill
- kronus-helpSkill
- kronusSkill
- kronus-troubleshootSkill
- lead-qualifySkill
- linkedin-postSkill
- manifest-validateSkill
- meeting-notesSkill
- planSkill
- profile-optimizeSkill
- project-summarySkill
- quick-reviewSkill
- reviewSkill
- secret-scanSkill
- seo-articleSkill
- standup-updateSkill
- telegram-projectSkill
- test-genSkill
- test-runSkill
- testSkill
- upwork-proposalSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 174
Only 2 agents have Bash: code-reviewer, security-auditor
- Distinctive: line 175
Only 4 skills have Bash: test-run, daily-briefing, project-summary, standup-update, dep-check
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Par1kKronus v4.1 — Internal Architecture Reference
Active work: v5.3 Platform & Marketplace. See root
CLAUDE.mdfor current v5.3 context, plan docs, and branch strategy. This file documents the base v4.1 architecture that v5.3 builds on.
System Architecture
Par1kKronus v4.1 is a hybrid agent + skill system with a Telegram control plane daemon. Agents handle complex multi-turn work. Skills handle repeatable quick workflows. MCP servers connect external tools. Teams coordinate parallel swarms. The daemon routes Telegram messages to per-project Claude Code sessions.
Telegram Daemon Architecture
The daemon (daemon/src/) is a Bun/TypeScript process that:
- Runs a grammy bot for Telegram message handling
- Routes group messages to per-project Claude Code sessions
- Spawns Claude in headless mode:
claude -p --output-format stream-json --resume - Parses stream-json output and forwards responses to Telegram
- Intercepts AskUserQuestion tool calls and renders them as Telegram inline buttons
- Manages session lifecycle (spawn, resume, cleanup, graceful shutdown)
Key files:
daemon/src/index.ts— Entry point, PID management, signal handlingdaemon/src/session-manager.ts— Claude process spawning and stream processingdaemon/src/telegram-router.ts— grammy bot, access control, question handlingdaemon/src/stream-parser.ts— NDJSON parser for stream-json outputdaemon/src/config.ts— Config loading (projects.json, access.json, .env)daemon/src/types.ts— Shared TypeScript types
Config files:
~/.claude/channels/telegram/projects.json— group_id → project mapping~/.claude/channels/telegram/access.json— access control (shared with plugin)~/.claude/channels/telegram/.env— bot token~/.claude/channels/telegram/daemon.pid— daemon PID file~/.claude/channels/telegram/logs/daemon.log— daemon logs
Agent Reference (10)
Tier 1: Orchestration (opus)
- planner — Task decomposition, dispatch to agents/skills, parallel planning. Tools: Read, Write, Task, Glob, Grep. Memory: project. MaxTurns: 100.
- team-lead — Agent swarm coordination, parallel execution, fan-out/fan-in. Tools: Read, Write, Task, Glob, Grep. Memory: project. MaxTurns: 100.
Tier 2: Context (sonnet)
- memory-retriever — Query past context with 5 search modes. Tools: Read, Glob, Grep. Memory: project. MaxTurns: 25.
Tier 3: Engineering (sonnet)
- ai-engineer — RAG, prompt engineering, model selection, evaluation. Tools: Read, Write, Glob, Grep. Memory: project. MaxTurns: 60.
- frontend-dev — React/Next.js/Tailwind, forms, routing, state. Tools: Read, Write, Glob, Grep. Memory: local. MaxTurns: 50.
- backend-infra — APIs, databases, Docker, Terraform, auth, caching. Tools: Read, Write, Glob, Grep. Memory: local. MaxTurns: 50.
- code-reviewer — PR analysis, quality/security/performance. Tools: Read, Write, Glob, Grep, Bash. Memory: local. MaxTurns: 50.
- security-auditor — SAST, dependency scanning, OWASP Top 10. Tools: Read, Write, Bash, Glob, Grep. Memory: local. MaxTurns: 50.
- fuzzing-agent — Fuzz testing, edge case generation. Tools: Read, Write, Glob, Grep. Memory: local. MaxTurns: 30.
Tier 4: Business (sonnet)
- proposal-writer — Proposals, SOWs, RFP responses. Tools: Read, Write, Glob, Grep. Memory: user. MaxTurns: 30.
Skill Reference (19 + 4 composite)
Development (4)
| Skill | Model | Context | Tools |
| test-gen | sonnet | fork | Read, Write, Glob, Grep |
| test-run | sonnet | fork | Read, Write, Bash, Glob, Grep |
| ci-comment | haiku | fork | Read, Write, Glob |
| quick-review | sonnet | fork | Read, Glob, Grep |
Business (4)
| Skill | Model | Context | Tools |
| upwork-proposal | sonnet | fork | Read, Write, WebFetch, Glob, Grep |
| lead-qualify | haiku | fork | Read, Write |
| cold-outreach | sonnet | fork | Read, Write, Glob, Grep |
| invoice-gen | haiku | fork | Read, Write |
Content (5)
| Skill | Model | Context | Tools |
| seo-article | sonnet | fork | Read, Write, Glob, Grep, WebSearch |
| profile-optimize | sonnet | fork | Read, Write, Glob, Grep |
| linkedin-post | sonnet | fork | Read, Write |
| case-study | sonnet | fork | Read, Write, Glob, Grep |
| github-readme | sonnet | fork | Read, Write, Glob, Grep |
Productivity (4)
| Skill | Model | Context | Tools |
| meeting-notes | haiku | fork | Read, Write |
| daily-briefing | sonnet | fork | Read, Bash, Glob, Grep |
| project-summary | haiku | fork | Read, Bash, Glob, Grep |
| standup-update | haiku | fork | Read, Bash, Glob, Grep |
Security (2)
| Skill | Model | Context | Tools |
| dep-check | haiku | fork | Read, Bash, Glob, Grep |
| secret-scan | haiku | fork | Read, Glob, Grep |
Composite (4)
| Skill | Model | Agent | Purpose |
| plan | opus | planner | Task breakdown |
| review | sonnet | code-reviewer | Code review pipeline |
| test | sonnet | — | test-gen → test-run chain |
| audit | sonnet | security-auditor | Security audit pipeline |
Execution Patterns
Sequential Pipeline
planner → ai-engineer → backend-infra → frontend-dev → test-gen → test-run → code-reviewerParallel Execution
security-auditor ─┐
fuzzing-agent ─────┤ (parallel scan)
dep-check ─────────┤
secret-scan ───────┘
→ code-reviewer (sequential review)Agent Team (Swarm)
team-lead coordinates:
teammate-1 (own context) ─┐
teammate-2 (own context) ──┼→ shared task list + mailbox
teammate-3 (own context) ─┘Lead → Proposal Pipeline
lead-qualify → upwork-proposal → proposal-writer (if complex)Content Blitz (parallel)
seo-article ───┐
linkedin-post ──┤ (all parallel)
case-study ─────┘
→ profile-optimize (update with references)MCP Servers
Configured in .claude/mcp.json:
| Server | Package | Auth |
| github | @modelcontextprotocol/server-github | GITHUB_TOKEN |
| playwright | @playwright/mcp | none |
| brave-search | @brave/brave-search-mcp-server | BRAVE_API_KEY |
| context7 | @upstash/context7-mcp | optional |
| filesystem | @modelcontextprotocol/server-filesystem | path config |
| memory | @modelcontextprotocol/server-memory | none |
| notion | @notionhq/notion-mcp-server | NOTION_TOKEN |
| slack | remote: https://mcp.slack.com/ | OAuth |
| linear | remote: https://mcp.linear.app/mcp | OAuth |
Teams
Defined in .claude/teams/:
- engineering — pipeline: design → parallel implement → validate
- security — fan-out/fan-in: parallel scan → sequential review
- full-stack — pipeline: design → parallel build → parallel validate
- business — fan-out/fan-in: context → parallel generate → review
Hooks
| Event | Trigger | Action |
| PreToolUse: Bash | All bash commands | pre-bash-check.sh (block destructive) |
| PostToolUse: Write|Edit | File changes | post-write-lint.sh (auto-lint) |
| Notification | Claude needs attention | macOS notification with sound |
Security Notes
- Only 2 agents have Bash: code-reviewer, security-auditor
- Only 4 skills have Bash: test-run, daily-briefing, project-summary, standup-update, dep-check
- Bash skills restricted to specific commands (test runners, git, audit tools)
- Pre-bash-check hook blocks destructive commands globally
- Post-write-lint hook validates all file changes
Rules
| Rule | Purpose |
| agent-output.md | Structured JSON output for agents |
| skill-output.md | Markdown output for skills |
| coding-standards.md | TypeScript/Python standards |
| testing.md | 80%+ coverage, AAA pattern |
| security.md | Secrets, validation, auth |
| cost-control.md | Model routing (haiku/sonnet/opus) |
| client-voice.md | Tone for client-facing content |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

