Borrowing it
Nothing to install: this file belongs to annenpolka/roo-logger. 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/annenpolka/roo-logger/main/CLAUDE.mdgit clone --depth 1 https://github.com/annenpolka/roo-loggerWrote 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/annenpolka/roo-logger/claude-md)<a href="https://agentmods.dev/instructions/annenpolka/roo-logger/claude-md"><img src="https://agentmods.dev/badge/instructions/annenpolka/roo-logger/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/annenpolka/roo-logger/claude-md"><img src="https://agentmods.dev/badge/instructions/annenpolka/roo-logger/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.01111 | $0.01111 |
| Opus 5.5 | $0.00444 | $0.00444 |
| Sonnet 5.5 | $0.00222 | $0.00222 |
| Haiku 4.5 | $0.00111 | $0.00111 |
Grade A, and why
roo-logger CLAUDE.md scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
プロジェクト概要
このプロジェクトはRoo Activity Loggerという MCP (Model Context Protocol) サーバーです。Roo の開発活動(コマンド実行、コード生成、ファイル操作など)を自動的に記録し、JSON 形式で保存します。記録されたログは後から検索・分析・文脈の復元が可能です。
開発コマンド
# 依存関係のインストール
npm install
# TypeScript ビルド(実行権限設定含む)
npm run build
# 開発モード(ts-node-esm使用)
npm run dev
# 本番実行
npm start
# テスト実行
npm test
# ウォッチモードでテスト
npm test:watch
# カバレッジ付きテスト
npm test:coverage
アーキテクチャ
ファイル構成
src/index.ts: メインのMCPサーバー実装src/types.ts: TypeScript型定義(ActivityLog, 各種Args型など)src/utils/search.ts: ログ検索機能の実装tests/: Vitestを使用したテストファイル
主要コンポーネント
RooActivityLogger クラス
- MCPサーバーのメイン実装
- 3つのツールを提供:
log_activity: アクティビティをJSONファイルに記録get_log_files: 保存されたログファイルの一覧取得search_logs: 多様な条件でログを検索
ActivityLog型
6種類のアクティビティタイプをサポート:
command_execution: コマンド実行code_generation: コード生成file_operation: ファイル操作error_encountered: エラー発生decision_made: 判断記録conversation: 会話記録
ログ構造
各ログエントリには以下が含まれる:
- 基本情報: ID, timestamp, type, level, summary
- 文脈情報: intention, context, details
- 関係性情報: parentId, sequence, relatedIds
設計原則
- 絶対パス必須: logsDir パラメータは常に絶対パスで指定
- 日付ベースファイル: ログは
roo-activity-YYYY-MM-DD.json形式で保存 - 再帰的検索: ディレクトリを再帰的に探索(maxDepth制御)
- 型安全性: TypeScript の readonly 型と as const を活用
- エラーハンドリング: Result型によるエラー処理
テスト
- フレームワーク: Vitest
- 設定:
vitest.config.tsでNode.js環境を指定 - カバレッジ: v8プロバイダーを使用
- テストファイル:
tests/unit/search/配下に検索機能のテスト
使用技術
- TypeScript: ES2020, NodeNext モジュール解決
- MCP SDK:
@modelcontextprotocol/sdk - ライブラリ: winston (ログ), date-fns (日付), minimatch (パターンマッチ), uuid (ID生成)
- 開発ツール: ts-node-esm, vitest
MCPサーバーとしての特徴
- stdio トランスポートによる通信
- Cline/Roo-Code での利用を想定
npxによる直接実行をサポート- 設定可能なログディレクトリ
開発ルール
重要: すべての操作(ファイル操作、コマンド実行、コード生成、判断、エラー処理など)の後に、必ず mcp__roo-activity-logger__log_activity ツールを使用してアクティビティを記録してください。これにより作業履歴が適切にトラッキングされ、後から振り返りが可能になります。
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 · 104 lines · 1,111 tokens per session scan A b79ff4de4c06
roo-logger CLAUDE.md is an instructions file published in the GitHub repository annenpolka/roo-logger (25 stars, last pushed 1y ago), licensed MIT. It adds 1,111 tokens to every session, about $0.0044 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
roo-logger CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| roo-logger CLAUDE.mdannenpolka/roo-logger | Instructions file | 25 | 1y ago | MIT | A | 1,111 | 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 |