Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/rlrghb/olkcli/claude-mdgit clone --depth 1 https://github.com/rlrghb/olkcliWhat 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 | $0.03383 | $0.03383 |
| Opus 5 | $0.01691 | $0.01691 |
| Sonnet 5 | $0.00677 | $0.00677 |
| Haiku 4.5 | $0.00338 | $0.00338 |
Grade A, and why
olkcli 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 3d 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 — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides context for Claude Code when working on the olk project.
What is this project?
olk is a CLI tool for Microsoft Outlook and OneDrive via the Microsoft Graph API. It provides terminal access to email, calendar, contacts, tasks, and OneDrive files for both personal Microsoft accounts and enterprise Azure AD/Entra ID accounts.
Quick Reference
make build # Build binary to ./bin/olk
make test # Run tests
make lint # Lint with golangci-lint
go mod tidy # After changing dependencies
Validating on macOS: running a freshly built
./bin/olkagainst a real account triggers a macOS Keychain access prompt (each build is a new identity). A human must click "Always Allow" — you (an agent) can't dismiss the dialog, so don't treat a first-run hang as a bug; ask the user to approve it.
Architecture
- CLI framework:
github.com/alecthomas/kong— commands are Go structs withRun(ctx *RunContext) error - Auth: Raw OAuth2 against
login.microsoftonline.com— no MSAL. Two flows: device code (default) and authorization-code + PKCE via system browser with a loopback listener (--browser, ininternal/msauth/authcode.go) for tenants whose Conditional Access requires a compliant device or blocks device code. Both use PKCE (RFC 7636). Scopes defined ininternal/msauth/scopes.go. Enterprise-only scopes (MailboxSettings.ReadWrite,User.ReadBasic.All) are only requested with--enterpriseflag — personal accounts cannot consent to them. Token refresh is serialized per-email viasync.Mapof mutexes to prevent race conditions - API: Official
msgraph-sdk-gowrapped ininternal/graphapi/for ergonomic access - Secrets: OS keyring via
github.com/99designs/keyring(macOS Keychain, Linux Secret Service, Windows WinCred). File-backend password prompt writes to stderr (not stdout) to avoid corrupting piped output. SetOLK_KEYRING_PASSWORDfor headless/non-interactive use - Output: JSON envelope (
--json), aligned table (default), TSV (--plain) - Provider parity: calendar JSON supports opt-in
--body-format text|html, stable/lifecycle metadata, structured attendee responses, and lossless recurrence details. Mail and contact list/get/delta results expose provider synchronization IDs and timestamps. Calendar writes support--transaction-id,--no-reminder,--location none, and--all-day/--timedwith validation. - MCP server:
olk mcp(ininternal/cmd/mcp*.go) runs a stdio Model Context Protocol server exposing a curated allowlist of read-first tools (curatedToolsinmcp_server.go) — NOT the whole command tree. Tool calls reparse a rebuilt argv and run in-process with stdout captured under a mutex (mcp_capture.go). Read-only by default;--allow-write <tool>exposes a named curated safe-write tool (per-tool opt-in). No HTTP transport - Capability guards:
--no-write/--no-sendare enforced once at thegraphapi.Clientlayer (ensureWritable/ensureMaySend), so the guarantee holds across CLI, MCP, and scripts.--enable-commands[-exact]/--disable-commandsgate dispatch viacommandAllowed()(commands.go), checked inExecute()and reused to filter the MCP registry.--wrap-untrustedwrapsuntrusted:"true"-tagged struct fields in JSON/plain output (internal/outfmt/untrusted.go) - Timezone: Display-layer conversion via
outfmt.ConvertTime(). Resolved once per command viaRunContext.Timezone()(flag > env > config > Local). JSON output emits UTC timestamps as RFC3339 with aZsuffix (normalized vianormalizeGraphUTC— Graph'sDateTimeTimeZone.dateTimestrings lack a zone); envelope includestimezonefield. IANA db embedded viaimport _ "time/tzdata"
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.
- 3d ago First seen · 137 lines · 3,383 tokens per session scan A 4e3783581cf5
olkcli CLAUDE.md is an instructions file published in the GitHub repository rlrghb/olkcli (17 stars, last pushed 4d ago), licensed MIT. It adds 3,383 tokens to every session, about $0.0169 per session on Opus 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.
Other instructions, from other repositories
outlook-mcp CLAUDE.md
Instructions for mpalermiti/outlook-mcp, covering outlook mcp server, what this is, tech stack, commands and architecture.
outlook-ews-mcp AGENTS.md
Instructions for viartemev/outlook-ews-mcp, covering agents.md, engineering rules, project shape, testing and conventions.
outlook-ews-mcp CLAUDE.md
Instructions for viartemev/outlook-ews-mcp, a project described as: Secure MCP server for on-prem Microsoft Exchange (EWS) with tools for email, calendar, contacts, folders, attachments, and free/busy availability.
cli AGENTS.md
Instructions for nylas/cli, covering ai coding agent guidelines, quick reference: shared helpers, quick reference: adding a new feature and quick reference: credential storage.
calendar-mcp copilot-instructions.md
Instructions for MarimerLLC/calendar-mcp, covering github copilot instructions for calendar-mcp, 📖 quick context, 🎯 project overview, 🏗️ project structure and 🛠️ technology stack.
calendar-mcp CLAUDE.md
Instructions for MarimerLLC/calendar-mcp, covering project: calendar mcp, environment notes and kubernetes.