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/lokarboa/kimiscope/agents-mdgit clone --depth 1 https://github.com/LokarBOA/kimiscopeWrote 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/lokarboa/kimiscope/agents-md)<a href="https://agentmods.dev/instructions/lokarboa/kimiscope/agents-md"><img src="https://agentmods.dev/badge/instructions/lokarboa/kimiscope/agents-md.svg" alt="Measured on agentmods" 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 | $0.04900 | $0.04900 |
| Opus 5 | $0.02450 | $0.02450 |
| Sonnet 5 | $0.00980 | $0.00980 |
| Haiku 4.5 | $0.00490 | $0.00490 |
Grade D, and why
kimiscope AGENTS.md scanned grade D with 3 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 today.
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.
Reads MCP configurationmediumAgent snooping
mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.
6. **MCP servers** (optional powers): write `~/.kimi-code/mcp.json` (template in README), then restart the daemon. All servers self-download on first use. GitHub tools additionally need `winget install GitHub.cli` + `gh Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **0.40.1 (verified live 2026-09-03, clean-session smoke 13/13 + new-route probes 6/6):** fully additive. REST +3: **per-turn file history** (`sessions/{id}/file-history/changes?turn_id=N` → `{changes:[{path,status,addi Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
5. **Install KimiScope** from `src-tauri/target/release/bundle/` (or `npm run tauri build` from source with Rust present). The app auto-starts the server (`kimi web --no-open`; `kimi server run` pre-0.28) and reads `~/.k How it starts
The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
KimiScope
Standalone desktop UI for Kimi Code — a Tauri 2 app that renders rich session UI (streaming, thinking, todos, tool cards with diffs, subagents, approvals, usage) on top of the kimi daemon's local REST + WebSocket API. It contains no agent logic; sessions live in the daemon (kimi web), the app is a disposable renderer.
Fresh machine bootstrap (agent-executable)
To set up KimiScope on a new Windows machine, an agent can do everything with these steps (verify each before continuing):
- Node.js:
winget install OpenJS.NodeJS→ verifynode -vandnpm -v. - Kimi CLI:
npm install -g @moonshot-ai/kimi-code→ verifykimi --version. - Login:
kimi login(device-code flow; needs the user to approve in a browser once) → verify~/.kimi-code/credentialsexists. - uv (hands):
winget install astral-sh.uvorpip install uv→ verifyuv --version. - Install KimiScope from
src-tauri/target/release/bundle/(ornpm run tauri buildfrom source with Rust present). The app auto-starts the server (kimi web --no-open;kimi server runpre-0.28) and reads~/.kimi-code/server.token— verifycurl http://127.0.0.1:58627/api/v1/healthzafter first launch. - MCP servers (optional powers): write
~/.kimi-code/mcp.json(template in README), then restart the daemon. All servers self-download on first use. GitHub tools additionally needwinget install GitHub.cli+gh auth login, then this entry (token fromgh auth token):"github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer <token>" } }Logged-in browser additionally needs:"playwright-personal": { "command": "npx", "args": ["-y", "@playwright/mcp@latest", "--browser", "msedge", "--user-data-dir", "%LOCALAPPDATA%\\KimiScope\\edge-agent-profile"] }(create the profile dir first; the user logs into sites once in its window).
Architecture
- Daemon:
kimi web --no-openserves REST onhttp://127.0.0.1:58627+ WS onws://127.0.0.1:58627/api/v1/ws, bearer auth (0.28+: foreground process; 0.27 and earlier:kimi server run, self-daemonizing). Token is persisted in~/.kimi-code/server.token(one per home, shared by all instances). Port discovery:~/.kimi-code/server/instances/*.json(0.28+, may be stale — always probe the port), falling back to~/.kimi-code/server/lock(0.27) and the default. Busy default port ⇒ 0.28 takes the next free one and records it in its instance file. API specs:reference/openapi.json,reference/asyncapi.json(regenerate types withnpm run gen:api). - Rust side (
src-tauri/src/lib.rs): thin — ensures the daemon runs, hands{baseUrl, wsUrl, token}to the frontend via theget_connection_infocommand. Nothing else. - Frontend (React 19 + TS + Vite + Tailwind v4 + zustand): talks to the daemon directly.
src/api/— REST client (client.ts), WS client (ws.ts, auth viaSec-WebSocket-Protocol: kimi-code.bearer.<token>, the only browser-feasible mechanism), event types (events.ts).src/state/—store.ts(zustand, per-session state + frame reducer),sync.ts(socket lifecycle, snapshot→subscribeSessionSync, history pulls, notifications).src/components/— SessionList (workspaces), ChatView (messages/streaming), ToolCard (per-tool renderers incl. diffs + subagent panels), ThinkingBlock, ApprovalBar, QuestionDialog, InsightRail (todos/usage), Composer (+ CommandMenu/popup), ErrorSurface.
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.
- today Changed · +2 lines · +795 tokens per session scan B → D bf4e5a1759bc
- 4d ago First seen · 65 lines · 4,105 tokens per session scan B 3d230a34ac43
kimiscope AGENTS.md is an instructions file published in the GitHub repository LokarBOA/kimiscope (2 stars, last pushed today), licensed MIT. It adds 4,900 tokens to every session, about $0.0245 per session on Opus 5. A static security scan graded it D with 3 findings (reads mcp configuration, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.