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/AGENTS.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/agents-md)<a href="https://agentmods.dev/instructions/lee-lou2/sidekick/agents-md"><img src="https://agentmods.dev/badge/instructions/lee-lou2/sidekick/agents-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/agents-md"><img src="https://agentmods.dev/badge/instructions/lee-lou2/sidekick/agents-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.06717 | $0.06717 |
| Opus 5.5 | $0.02687 | $0.02687 |
| Sonnet 5.5 | $0.01343 | $0.01343 |
| Haiku 4.5 | $0.00672 | $0.00672 |
Grade A, and why
sidekick AGENTS.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 — 902 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md - Tool Creation & Style Guide
This guide explains how to create tools for the Pydantic AI-based personal AI agent and follow consistent code style.
For Claude Code users: See CLAUDE.md for quick reference and MCP documentation.
Response Guidelines
- 답변 언어: 항상 한국어로 응답
- 답변 스타일: 핵심만 요약해서 간결하게
- Git 컨벤션: docs/GIT_CONVENTIONS.md 참조
Tool Architecture
Tools are plain Python functions registered with Pydantic AI's FunctionToolset.
src/
├── config.py # pydantic-settings 기반 Settings 클래스
├── interfaces/ # Entry points
│ ├── slack/ # Slack bot integration (모듈화됨)
│ │ ├── bot.py # 이벤트 라우터 (127줄)
│ │ ├── handlers.py # 이벤트 핸들러
│ │ ├── context.py # 스레드/채널 컨텍스트
│ │ ├── images.py # 이미지 처리
│ │ ├── progress.py # 진행 상태 포맷팅
│ │ └── slack_api.py # Slack API 유틸리티
│ └── api/ # FastAPI REST API
│ ├── main.py # FastAPI app
│ ├── security.py # API 키 인증 + Rate Limiting
│ ├── schemas.py # Pydantic 요청/응답 모델
│ ├── tasks.py # 백그라운드 작업 + 웹훅
│ └── task_repository.py # SQLite 작업 영속성
├── middleware/ # Cross-cutting concerns
│ ├── guardrails/ # Security guardrails
│ │ ├── core.py # Generic guardrail framework (서버 규칙 집계)
│ │ └── enforcer.py # 모든 도구 유형 보호 (Defense in Depth)
│ ├── preprocessing/ # 요청 전처리
│ │ └── __init__.py # preprocess_command(), core 모듈 re-export
│ └── postprocessing/ # 응답 후처리 (최소화)
├── core/ # Core business logic
│ ├── agent/ # AgentRunner, AgentFactory
│ │ ├── core.py # Backward-compat re-exports
│ │ ├── utils.py # AgentRunResult, retry, image normalization
│ │ ├── factory.py # AgentFactory (isolated agent 생성)
│ │ └── runner.py # AgentRunner (run/run_async + 이미지 추출)
│ ├── context/ # 요청 컨텍스트 관리 (ContextVar)
│ │ └── image.py # 첨부 이미지 컨텍스트 + bounded LRU 캐시
│ ├── scheduler/ # Task scheduling system
│ ├── commands/ # Command system
│ ├── lifecycle.py # 싱글톤 라이프사이클 관리
│ └── memory/ # Memory/graph system
├── tools/ # Tool definitions
│ ├── catalog.py # 통합 ToolCatalog
│ ├── mcp_registry.py # MCPServerConfig, ServerGuardrailRules, register_mcp_server()
│ ├── mcp_client.py # MCPManager (다중 MCP 서버 연결)
│ ├── mcp/ # MCP server definitions (register_mcp_server, gitignored)
│ ├── custom/ # Custom tools (@register_tool, gitignored)
│ └── registry.py # Tool registration
└── utils/ # Utilities
├── logging.py # 구조화 로깅 (JSON + request_id)
├── observability.py # Logfire 통합
├── image_handler.py # ImageData, extract_images_from_result()
├── slack_files.py # Slack 파일 다운로드/업로드 유틸리티
└── slack_formatter.py # Markdown → Slack mrkdwn 변환
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 · 902 lines · 6,717 tokens per session scan A 909eff43f584
sidekick AGENTS.md is an instructions file published in the GitHub repository lee-lou2/sidekick (2 stars, last pushed 9mo ago), licensed MIT. It adds 6,717 tokens to every session, about $0.0269 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 AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sidekick AGENTS.mdlee-lou2/sidekick | Instructions file | 2 | 9mo ago | MIT | A | 6,717 | Codex, OpenCode |
| 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 |