Borrowing it
Nothing to install: this file belongs to lee-lou2/sidekick. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lee-lou2/sidekick/main/CLAUDE.mdgit clone --depth 1 https://github.com/lee-lou2/sidekickWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/lee-lou2/sidekick/claude-md)<a href="https://agentmods.dev/instructions/lee-lou2/sidekick/claude-md"><img src="https://agentmods.dev/badge/instructions/lee-lou2/sidekick/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/lee-lou2/sidekick/claude-md"><img src="https://agentmods.dev/badge/instructions/lee-lou2/sidekick/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.07557 | $0.07557 |
| Opus 5.5 | $0.03023 | $0.03023 |
| Sonnet 5.5 | $0.01511 | $0.01511 |
| Haiku 4.5 | $0.00756 | $0.00756 |
Grade A, and why
sidekick CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
data = client.fetch(location, units) How it starts
The opening of the file, as written. The whole thing — 904 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Quick reference for Claude Code. See AGENTS.md for detailed tool creation guide.
Project Overview
Stack: Python 3.10+, Pydantic AI, Google Gemini, FastAPI, Slack, MCP
Purpose: Personal AI agent with custom tools, Slack integration, REST API, and MCP-powered extended capabilities.
Commands
# Make 명령어 (권장)
make # 도움말
make run # 실행 (설정 + 모드 선택)
make test # 코어 테스트
make test-all # 전체 테스트 (커스텀 도구 포함)
make lint # 린트 + 자동 수정
make format # 코드 포맷팅
make tool-install # 외부 도구 설치
make tool-upload # 도구 공유용 업로드
make edit-env # .env 편집
# 직접 실행 (Make 없이)
uv run pytest tests/ --ignore=tests/tools -v # 코어 테스트
uv run pytest tests/ -v # 전체 테스트
uv run ruff check src/ tests/ --fix # 린트
uv run python src/interfaces/slack/bot.py # Slack 봇
uv run uvicorn src.interfaces.api:app --port 8000 # API 서버
Architecture
src/
├── config.py # pydantic-settings 기반 Settings 클래스
├── core/
│ ├── agent/
│ │ ├── core.py # Backward-compat re-exports
│ │ ├── utils.py # AgentRunResult, retry logic, image normalization
│ │ ├── factory.py # AgentFactory (creates isolated agents)
│ │ └── runner.py # AgentRunner (run/run_async with image extraction)
│ ├── context/ # Request context management (ContextVar)
│ │ └── image.py # Attached images context + bounded caches (LRU)
│ ├── lifecycle.py # LifecycleManager - singleton startup/shutdown
│ ├── commands/ # Custom command management
│ │ ├── executor.py # CommandExecutor
│ │ ├── models.py # Command data model
│ │ ├── parser.py # Command parsing
│ │ ├── prompts.py # Prompt building
│ │ ├── repository.py # SQLite CRUD
│ │ └── tools.py # Command CRUD tools
│ ├── memory/
│ │ └── prompts.py # MEMORY_SYSTEM_PROMPT, build_memory_prompt()
│ └── scheduler/
│ ├── __init__.py # SchedulerManager, parse_korean_time exports
│ ├── models.py # ScheduledTask dataclass
│ ├── time_parser.py # Korean/English time expression parser
│ ├── manager.py # APScheduler wrapper (SQLite persistence)
│ ├── executor.py # Scheduled task execution + Slack notification
│ └── tools.py # schedule_task, list_scheduled_tasks, cancel_scheduled_task
├── interfaces/
│ ├── slack/ # Modularized Slack bot (127-line orchestrator)
│ │ ├── bot.py # Event router (thin orchestrator)
│ │ ├── handlers.py # Event handlers (mention, DM, reaction)
│ │ ├── context.py # Thread/channel context building
│ │ ├── images.py # Image extraction and upload
│ │ ├── progress.py # Progress indicator formatting
│ │ └── slack_api.py # Slack API utilities (retry, rate limits)
│ └── api/
│ ├── main.py # FastAPI app
│ ├── security.py # API key auth + rate limiting (slowapi)
│ ├── schemas.py # Pydantic models
│ ├── tasks.py # Background tasks + webhooks
│ └── task_repository.py # SQLite-based task persistence
├── middleware/
│ ├── guardrails/
│ │ ├── __init__.py # Exports: GuardrailConfig, GuardrailViolation, GuardrailEnforcer
│ │ ├── core.py # Generic guardrail framework (aggregates server rules)
│ │ └── enforcer.py # Defense-in-depth for ALL tool types
│ ├── preprocessing/ # Request preprocessing
│ │ └── __init__.py # preprocess_command(), re-exports from core
│ └── postprocessing/ # Response postprocessing (minimal)
├── tools/
│ ├── __init__.py # get_custom_toolset() - custom tools only
│ ├── catalog.py # ToolCatalog - unified tool source management
│ ├── registry.py # @register_tool decorator, auto-registration
│ ├── mcp_registry.py # MCPServerConfig, ServerGuardrailRules, register_mcp_server()
│ ├── mcp_client.py # MCPManager class (with guardrails)
│ ├── mcp/ # MCP server definitions (register_mcp_server, gitignored)
│ └── custom/ # User-implemented tools (@register_tool, gitignored)
└── utils/
├── logging.py # Structured JSON logging with request_id
├── observability.py # Logfire integration (setup_logfire)
├── image_handler.py # ImageData, extract_images_from_result()
├── slack_files.py # Slack file download/upload utilities
└── slack_formatter.py # Markdown → Slack mrkdwn conversion
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 904 lines · 7,557 tokens per session scan A 0a4d5e789586
sidekick CLAUDE.md is an instructions file published in the GitHub repository lee-lou2/sidekick (2 stars, last pushed 9mo ago), licensed MIT. It adds 7,557 tokens to every session, about $0.0302 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
sidekick CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sidekick CLAUDE.mdlee-lou2/sidekick | Instructions file | 2 | 9mo ago | MIT | A | 7,557 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |