kimiscope: Instructions file for Codex

AGENTS.md

kimiscope AGENTS.md is an instructions file for Codex, OpenCode from LokarBOA/kimiscope. It costs 7,095 tokens per session, scanned D, original, MIT.

Instructions for setting up and operating KimiScope, a desktop app that displays sessions from the Kimi Code service. The app shows items such as streaming output, thinking, tasks, tool results, approvals, and usage while the service runs the sessions.

In plain words
What is it for?
It is for bootstrapping KimiScope on a Windows machine, installing and checking its required tools, signing in, building or installing the app, and verifying the local service.
Why use it?
It gives an agent a repeatable setup process and explains how the app communicates with the local Kimi service.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

This is LokarBOA/kimiscope's own configuration. It tells Codex and OpenCode how to work on kimiscope itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kimiscope configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/LokarBOA/kimiscope/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/LokarBOA/kimiscope

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for kimiscope AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lokarboa/kimiscope/agents-md/github.svg)](https://agentmods.dev/instructions/lokarboa/kimiscope/agents-md)
Your own site
<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.

agentmods 80×15 button for kimiscope AGENTS.md

Your own site · 80×15
<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>
Per session 7,095 This file is loaded in full into every session.
When invoked 7,095 The same file — it is already loaded in full.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 9934dc70b59a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
AGENTS.md · 73 lines

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):

  1. Node.js: winget install OpenJS.NodeJS → verify node -v and npm -v.
  2. Kimi CLI: npm install -g @moonshot-ai/kimi-code → verify kimi --version.
  3. Login: kimi login (device-code flow; needs the user to approve in a browser once) → verify ~/.kimi-code/credentials exists.
  4. uv (hands): winget install astral-sh.uv or pip install uv → verify uv --version.
  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 ~/.kimi-code/server.token — verify curl http://127.0.0.1:58627/api/v1/healthz after first launch.
  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 auth login, then this entry (token from gh 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-open serves REST on http://127.0.0.1:58627 + WS on ws://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 with npm run gen:api).
  • Rust side (src-tauri/src/lib.rs): thin — ensures the daemon runs, hands {baseUrl, wsUrl, token} to the frontend via the get_connection_info command. 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 via Sec-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→subscribe SessionSync, 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.

Read the full file on GitHub · 73 lines

Changes

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.

  1. 12d ago Changed · +1 lines · +377 tokens per session 9934dc70b59a
  2. 18d ago Changed · +181 tokens per session 6151e1d1aa00
  3. 19d ago Changed · +3 lines · +878 tokens per session 3716bef955f9
  4. 1mo ago Changed · +1 lines · +381 tokens per session 1f0553563f0e
  5. 1mo ago Changed · +1 lines · +378 tokens per session 96be494b2682
  6. 2mo ago Changed · +2 lines · +795 tokens per session scan B → D bf4e5a1759bc
  7. 2mo ago First seen · 65 lines · 4,105 tokens per session scan B 3d230a34ac43

Subscribe to this mod's changes

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.

Related

kimiscope AGENTS.md compared with instructions from other repositories

kimiscope AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kimiscope AGENTS.mdLokarBOA/kimiscopeInstructions file213d agoMITD7,095Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode