kimiscope AGENTS.md

kimiscope AGENTS.md is an instructions file for Codex, OpenCode from LokarBOA/kimiscope. It costs 4,900 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

Install

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.

agentmods
npx agentmods add instructions/lokarboa/kimiscope/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,900 This file is loaded in full into every session.
When invoked 4,900 The same file — it is already loaded in full.
Security scan D 3 findings. Scan, not verified.
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 $0.04900 $0.04900
Opus 5 $0.02450 $0.02450
Sonnet 5 $0.00980 $0.00980
Haiku 4.5 $0.00490 $0.00490

Measured today against content hash bf4e5a1759bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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
AGENTS.md · 67 lines

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

  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 · 67 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. today Changed · +2 lines · +795 tokens per session scan B → D bf4e5a1759bc
  2. 4d 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 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.

Related

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

microsoft/vscode · 6,785 tokens

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.

github/spec-kit · 7,104 tokens

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.

openai/codex · 5,182 tokens

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.

langchain-ai/langchain · 4,345 tokens

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

microsoft/vscode · 5,001 tokens

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.

vercel/next.js · 7,296 tokens