Borrowing it
Nothing to install: this file belongs to LokarBOA/kimiscope. 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/LokarBOA/kimiscope/main/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/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/lokarboa/kimiscope/agents-md"><img src="https://agentmods.dev/badge/instructions/lokarboa/kimiscope/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.07095 | $0.07095 |
| Opus 5.5 | $0.02838 | $0.02838 |
| Sonnet 5.5 | $0.01419 | $0.01419 |
| Haiku 4.5 | $0.00709 | $0.00709 |
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 12d 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.
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 — 73 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.
- 12d ago Changed · +1 lines · +377 tokens per session 9934dc70b59a
- 18d ago Changed · +181 tokens per session 6151e1d1aa00
- 19d ago Changed · +3 lines · +878 tokens per session 3716bef955f9
- 1mo ago Changed · +1 lines · +381 tokens per session 1f0553563f0e
- 1mo ago Changed · +1 lines · +378 tokens per session 96be494b2682
- 2mo ago Changed · +2 lines · +795 tokens per session scan B → D bf4e5a1759bc
- 2mo 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 13d ago), licensed MIT. It adds 7,095 tokens to every session, about $0.0284 per session on Opus 5.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.
kimiscope AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kimiscope AGENTS.mdLokarBOA/kimiscope | Instructions file | 2 | 13d ago | MIT | D | 7,095 | 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 |