agentleFS
kronus-techkronus-tech/kronus/.claude/CLAUDE.md

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

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
  1. Distinctive:

    Only 2 agents have Bash: code-reviewer, security-auditor

    line 174
  2. Distinctive:

    Only 4 skills have Bash: test-run, daily-briefing, project-summary, standup-update, dep-check

    line 175

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Par1kKronus v4.1 — Internal Architecture Reference

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.

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:

  1. Runs a grammy bot for Telegram message handling
  2. Routes group messages to per-project Claude Code sessions
  3. Spawns Claude in headless mode: claude -p --output-format stream-json --resume
  4. Parses stream-json output and forwards responses to Telegram
  5. Intercepts AskUserQuestion tool calls and renders them as Telegram inline buttons
  6. Manages session lifecycle (spawn, resume, cleanup, graceful shutdown)

Key files:

  • daemon/src/index.ts — Entry point, PID management, signal handling
  • daemon/src/session-manager.ts — Claude process spawning and stream processing
  • daemon/src/telegram-router.ts — grammy bot, access control, question handling
  • daemon/src/stream-parser.ts — NDJSON parser for stream-json output
  • daemon/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)

SkillModelContextTools
test-gensonnetforkRead, Write, Glob, Grep
test-runsonnetforkRead, Write, Bash, Glob, Grep
ci-commenthaikuforkRead, Write, Glob
quick-reviewsonnetforkRead, Glob, Grep

Business (4)

SkillModelContextTools
upwork-proposalsonnetforkRead, Write, WebFetch, Glob, Grep
lead-qualifyhaikuforkRead, Write
cold-outreachsonnetforkRead, Write, Glob, Grep
invoice-genhaikuforkRead, Write

Content (5)

SkillModelContextTools
seo-articlesonnetforkRead, Write, Glob, Grep, WebSearch
profile-optimizesonnetforkRead, Write, Glob, Grep
linkedin-postsonnetforkRead, Write
case-studysonnetforkRead, Write, Glob, Grep
github-readmesonnetforkRead, Write, Glob, Grep

Productivity (4)

SkillModelContextTools
meeting-noteshaikuforkRead, Write
daily-briefingsonnetforkRead, Bash, Glob, Grep
project-summaryhaikuforkRead, Bash, Glob, Grep
standup-updatehaikuforkRead, Bash, Glob, Grep

Security (2)

SkillModelContextTools
dep-checkhaikuforkRead, Bash, Glob, Grep
secret-scanhaikuforkRead, Glob, Grep

Composite (4)

SkillModelAgentPurpose
planopusplannerTask breakdown
reviewsonnetcode-reviewerCode review pipeline
testsonnet—test-gen → test-run chain
auditsonnetsecurity-auditorSecurity audit pipeline

Execution Patterns

Sequential Pipeline

planner → ai-engineer → backend-infra → frontend-dev → test-gen → test-run → code-reviewer

Parallel 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:

ServerPackageAuth
github@modelcontextprotocol/server-githubGITHUB_TOKEN
playwright@playwright/mcpnone
brave-search@brave/brave-search-mcp-serverBRAVE_API_KEY
context7@upstash/context7-mcpoptional
filesystem@modelcontextprotocol/server-filesystempath config
memory@modelcontextprotocol/server-memorynone
notion@notionhq/notion-mcp-serverNOTION_TOKEN
slackremote: https://mcp.slack.com/OAuth
linearremote: https://mcp.linear.app/mcpOAuth

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

EventTriggerAction
PreToolUse: BashAll bash commandspre-bash-check.sh (block destructive)
PostToolUse: Write|EditFile changespost-write-lint.sh (auto-lint)
NotificationClaude needs attentionmacOS 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

RulePurpose
agent-output.mdStructured JSON output for agents
skill-output.mdMarkdown output for skills
coding-standards.mdTypeScript/Python standards
testing.md80%+ coverage, AAA pattern
security.mdSecrets, validation, auth
cost-control.mdModel routing (haiku/sonnet/opus)
client-voice.mdTone for client-facing content

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.