npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

skoter

v0.1.0

Published

A bounded execution boundary for local coding-agent CLIs

Readme

Koter

Koter is a small execution boundary for parent coding agents that call external local agent CLIs. It invokes a registered provider directly, captures its noisy transport privately, validates the provider's terminal response, and prints exactly one bounded JSON envelope. This reduces context amplification without pretending to reduce or disable the model's internal reasoning.

The registered adapters cover Cursor Agent, Antigravity Agy, FX, Cline, and OpenCode. A run is available only when the installed executable matches its reviewed version and runtime schema. Agy 1.1.15, 1.1.18, 1.1.19, and 1.1.20 share a verified non-streaming JSON terminal envelope; Koter defaults Agy to accept-edits for implementation work and retains explicit plan mode. Cursor supports its provider default plus the reviewed cursor-grok-4.6-low selection. Cline is pinned to its reviewed DeepSeek V4 Flash model. OpenCode is limited to a reviewed model allowlist covering Mimo v2.5 Free, Ox Alpha, Muse Spark 1.2 Free, and the current general-purpose Nvidia Nemotron targets. See docs/current-state.md for the latest non-model availability snapshot; provider version drift is expected to fail closed.

Install and develop

Koter requires Bun 1.3.14.

After publication, run the npm package directly with Bun:

bunx koter --version
printf '%s' 'Return only the final answer.' | bunx koter run cursor

For local development:

bun install --frozen-lockfile
bun run check
bun link
koter --version

Dependencies are exactly pinned. Tests use fake executables and make no paid model calls. bun run build creates dist/koter.js; bun run package:smoke packs the publishable npm tarball, installs it into a clean temporary consumer, and invokes bunx --no-install koter from that consumer.

Deterministic routing

Koter's routing layer is a bounded policy surface above the adapter registry. It consumes a strict koter.task-descriptor/v1, derives availability and model capabilities from the live adapter definitions and non-model diagnostics, and returns one strict koter.execution-plan/v1 document. It does not execute the selected route, infer task meaning, grant mutation authority, or establish completion; Sol retains integration and final-claim responsibility while deterministic authority documents, gates, verification, and receipts establish admissible completion.

koter route --descriptor task-descriptor.json --json
printf '%s' "$DESCRIPTOR_JSON" | koter route --descriptor - --json
koter route --descriptor task-descriptor.json --native-capabilities native-capabilities.json --json
koter routing status --json

See docs/task-descriptor-example.json for a complete strict descriptor and docs/current-state.md for the latest non-model roster and qualification snapshot. The three safety inputs are explicit: requirementsClarity, operationClass, and activeWriterOverlap.

The descriptor is deliberately small: task class/lane, size, coupling, context warmth, write scope, oracle strength, risk, parallelism, diversity value, privacy class, classification confidence, requirements clarity, operation class, active writer overlap, and an optional bounded executor request. Unknown members and values fail closed. Native Sol/Luna capability state is caller-supplied under koter.native-capabilities/v1; Koter never claims to discover or execute native Codex models.

Hard policy keeps context-warm small/moderate work, ambiguous or low-confidence classification, incident response, final integration, active writer overlap, shared/cross-cutting writes, architecture, security, migration, concurrency, numerical invariants, weak-oracle high-risk work, and privacy-ineligible work with Sol. A shared/cross-cutting assignment may receive one separately labeled read-only advisory lane where privacy and availability permit, but its writer remains Sol. A bounded isolated implementation with a strong oracle may select native Luna when the caller explicitly reports the required native capability. External Koter routes remain advisory: Agy accept-edits is callable directly, but a live probe showed that a successful sandboxed terminal result did not establish a persistent write in the inherited workspace, so deterministic routing does not qualify it as a writer. Agy is also never inserted into automatic ordering because its provider-selected model is not terminally attested.

Plans permit at most one corrected same-route retry and one qualified fallback/switch. There is no waterfall through the roster. Plans are source-bound: their deterministic identities cover the exact descriptor, explicit native-capability document (or an absent-input identity), live adapter registry, qualification registry, immutable routing policy, and plan output. They contain route metadata and enum reason codes only; task descriptions, prompts, results, paths, credentials, and provider streams are excluded. routing status performs only version/runtime diagnostics and exposes the current routing-registry, qualification-registry, and policy identities. There is no routing result command yet because Koter has no persisted execution-transition consumer.

For long-running provider work, koter run --help shows the effective adapter defaults and koter adapters --json/koter doctor --json report them as defaultTimeoutMs. Cursor's reviewed default is 900000 ms; adapters without a separate reviewed value use 300000 ms. Explicit --timeout-ms values are preserved within the 50–1800000 ms global bounds. If the caller turn or terminal session is lost, check the metadata-only status surface before relaunching:

koter runs --json

The koter.runs/v1 document reports running, terminal, or bounded orphaned invocations and a retry count. It contains no prompt, result, child stream, credential, cwd, executable path, or conversation UUID. It cannot recover a final envelope or repair Codex's own Unknown process id; a running entry may still own a provider process, so callers should not launch a duplicate until the entry is terminal or deliberately judged orphaned. Status persistence and cleanup are subordinate to the final run envelope.

The reviewed qualification registry is separate from transport readiness. koter.routing-qualification-registry/v1 grants a specific privacy class and task lane only for an exact adapter, model-selection mode, and reviewed provider version; missing qualification is ineligible, and sensitive/restricted content has no external qualification. The immutable koter.routing-policy/v1 contains ordered exact endpoint/model references per lane. It never selects models[0]: Mimo is the read-research/review fallback role, Hy3 is the preferred independent-review role, Nvidia Nemotron 3.5 Lightning is the investigation/performance role, and Nvidia Nemotron 3 Super is the performance role. Ox Alpha, Muse Spark, OpenCode-hosted free Nemotron aliases, and Nvidia Nemotron Nano/Ultra remain catalog-only until separately qualified.

The roster's live capability/model metadata is derived from the reviewed adapters; routing preferences intentionally name only those reviewed adapter families and their ordered evidence lanes. Cursor is ask-mode with an optional exact Grok 4.6 Low allowlist; an explicit read-only requestedExecutor: "grok" routes to that model, while write-bearing Grok requests remain with Sol. Agy is qualified only for explicit read-only requests, which use plan; write-bearing requests stay with Sol until persistent inherited-workspace writes are independently proven. It has no automatic task-lane ordering or model pin, and requestedExecutor: "gemini" remains unsupported because Agy cannot attest an exact Gemini model in its terminal envelope. FX 0.0.5 exposes observed zai/glm-5.2 but Koter cannot pin it; Cline 3.0.57 is the current routing qualification within the adapter's reviewed 3.0.55–3.0.57 range and remains fixed to deepseek/deepseek-v4-flash, plan mode, headless tool auto-approval, and provider-fixed xhigh. OpenCode transport is eligible only for exact allowlisted IDs, and routing qualification is narrower than that allowlist. DeepSeek Pro, Laguna, Composer, MiniMax, and other catalog/skill-only routes are not silently invented as Koter adapters. Provider health, reviewed-version compatibility, qualification, and catalog availability can still differ; unknown or unqualified state returns Sol ownership.

Run Cursor

stdin is the preferred prompt source:

printf '%s' 'Review this function and return only the final findings.' | koter run cursor

Or use a prompt file:

koter run cursor --prompt-file prompts/review.txt --timeout-ms 180000 --max-output-bytes 524288

Cursor v1 is deliberately read-only and fixed to this direct argv shape:

cursor-agent -p --trust --mode ask --output-format json [--model cursor-grok-4.6-low] <prompt>

--trust is a fixed noninteractive workspace acknowledgement; it does not enable Cursor's --force/--yolo tool approval. Koter always retains read-only ask mode. The provider default remains simple, while Grok can be selected explicitly:

printf '%s' 'Return only the final answer.' | koter run cursor
printf '%s' 'Return only the final answer.' | koter run cursor --model cursor-grok-4.6-low

No other Cursor model or arbitrary provider flag is accepted. Current Cursor envelopes expose input, cache-read, and output token counts; reasoning and cost remain unknown.

Run FX

FX 0.0.5 uses one reviewed, noninteractive invocation in the caller's current working directory:

fx --no-additional-dirs ask --json --no-save --no-color

Use stdin or a bounded prompt file as with other adapters:

printf '%s' 'Return only the final review.' | koter run fx
koter run fx --prompt-file prompts/review.txt --timeout-ms 180000

FX receives the already bounded prompt through its child stdin pipe, which Koter closes deterministically; prompt text is never placed in FX's argv or process listing. Cursor, Agy, Cline, and OpenCode retain their separately reviewed argv transports. Koter never passes --yolo, --auto, model flags, resume/session flags, images, or additional workspace paths to FX. Before every prompt-bearing FX process, Koter runs the non-model fx status --json surface and refuses execution if the persisted permission mode is yolo or the status schema is unknown. --no-save disables session persistence and --no-additional-dirs limits workspace scope to FX's primary inherited working directory.

The verified 0.0.5 status and terminal probes report zai/glm-5.2. Koter does not pin that model because fx ask exposes no model option; the success envelope reports the model returned by that invocation. FX 0.0.5 no longer reports a sandbox field, so Koter makes no sandbox claim. Its optional, exact auto_recovered terminal metadata is validated but not exposed. Non-empty tool-call shapes still fail closed. Token usage, reasoning usage, and cost are absent from the terminal schema and remain explicit unknown values.

Run Cline

Cline 3.0.55, 3.0.56, and 3.0.57 are reviewed with the locally configured DeepSeek V4 Flash model (deepseek/deepseek-v4-flash) and a plan-mode invocation with Koter's fixed headless auto-approval enabled:

cline --json --plan --auto-approve true --provider cline --model deepseek/deepseek-v4-flash --thinking xhigh -- <prompt>

Use it through Koter with the prompt on stdin or a bounded prompt file:

printf '%s' 'Return only the final review.' | koter run cline
printf '%s' 'Return only the final review.' | koter run cline --model deepseek/deepseek-v4-flash
koter run cline --prompt-file prompts/review.txt --timeout-ms 180000

Cline's CLI only exposes the prompt as a positional argument, so this adapter uses argv transport after an explicit end-of-options delimiter. Koter pins the provider, exact nested model identity, plan mode, --auto-approve true, and xhigh reasoning effort. Cline documents that non-TTY runs deny required tools when auto-approval is false; the previous setting therefore aborted ordinary filesystem review. Headless auto-approval is fixed rather than exposed as passthrough, and Cline remains advisory in routing. Its provider-defined plan workflow is not a Koter sandbox or an enforced read-only filesystem boundary, so prompts and cwd must remain bounded. Supplying the exact fixed model is accepted as an idempotent request for easier generated-command DX; every other model and all provider/session passthrough remain rejected. Cline's JSON mode emits newline-delimited lifecycle events. Koter extracts only a verified completed run_result and maps its aggregate input, cache-read, output, and cost fields; reasoning usage remains unknown. A strict run_result followed by Cline's run_aborted terminal maps to provider_aborted and suggests one narrower retry. When Cline emits a reviewed structured stop notice, the failure envelope also reports its enum reason and the last completed assistant-text event as explicitly non-final context. Raw abort diagnostics, reasoning, tool output, and stderr remain private. The 3.0.57 completed and aborted terminal contracts were verified from local behavior.

The latest local non-model check observed Cline 3.0.58, which is outside that reviewed range. It also observed FX 0.0.6, outside FX's reviewed 0.0.3 and 0.0.5 contracts. Koter reports both as version drift and refuses their prompt-bearing processes until those versions receive separate reviews; the 2026-08-26 readiness snapshot therefore passes 3/5 checks.

Run OpenCode

OpenCode 1.18.9 is fixed to its pure plan agent and requires an explicit model from Koter's reviewed allowlist:

opencode run --pure --format json --agent plan --model <reviewed-model> -- <prompt>

Examples:

printf '%s' 'Return only the final review.' | koter run opencode --model opencode/mimo-v2.5-free
printf '%s' 'Return only the final review.' | koter run opencode --model nvidia/nvidia/nemotron-3.5-lightning-30b-a3b

The currently reviewed IDs are:

  • opencode/mimo-v2.5-free
  • opencode/hy3-free
  • openrouter/stealth/ox-alpha
  • opencode/muse-spark-1.2-contributor-free
  • opencode/nemotron-3-ultra-free
  • opencode/nemotron-3.5-lightning-free
  • nvidia/nvidia/nemotron-3-nano-30b-a3b
  • nvidia/nvidia/nemotron-3-super-120b-a12b
  • nvidia/nvidia/nemotron-3-ultra-550b-a55b
  • nvidia/nvidia/nemotron-3.5-lightning-30b-a3b

Koter rejects every other OpenCode model ID rather than forwarding arbitrary provider configuration. --pure disables external plugins. The plan agent is an OpenCode provider workflow, not a Koter sandbox or strict read-only guarantee: provider configuration may expose tools such as bash/network operations or permit plan-file writes. Koter does not independently enforce those semantics. OpenCode JSON mode emits lifecycle events, text parts, tool events, and step_finish records; it has no reviewed final-only JSON transport. Koter therefore enforces an OpenCode-specific minimum --max-output-bytes value of 524,288 and rejects lower explicit ceilings before model execution. The default remains 1,048,576 bytes. Koter discards text from tool-call steps, emits only text from the terminal stop step, validates Muse Spark's exact OpenAI item metadata without retaining it, and reports component token/cost fields. OpenCode documents tokens.total as an independent optional finite provider field, so Koter validates it but does not require it to equal the mapped components. All ten allowlisted IDs above produced exact final-only live envelopes on OpenCode 1.18.9 during the 2026-08-22 qualification pass. Catalog/live availability can still change with provider credentials and configuration, and deterministic routing qualification remains narrower than execution allowlisting.

Codex-thread integration skill

For Codex threads, use skills/codex-thread-koter/SKILL.md. It requires the thread to classify a bounded descriptor, invoke koter route, and execute selected adapters only through koter run; it explicitly prevents direct Agy, Cursor, FX, Cline, or OpenCode invocation. skills/cline-subagent/SKILL.md provides the focused explicit Cline workflow, while skills/multi-model-coding-orchestrator/SKILL.md remains the broader reusable routing contract, including the Kalu composition boundary. Review these repository artifacts before installing them into a global skills directory.

Run Agy

Agy 1.1.15, 1.1.18, 1.1.19, and 1.1.20 use these reviewed non-streaming invocations. Koter selects the Antigravity app data namespace so app-created conversation UUIDs are visible to the CLI. When the caller's exact real working directory is registered as an Antigravity project, Koter also inserts the provider's UUID as --project <uuid>:

agy --app_data_dir antigravity [--project <registered-project-uuid>] --mode plan --sandbox --disable-slash-commands --output-format json [--effort low|medium|high] [--conversation <uuid>] --dangerously-skip-permissions --print <prompt>
agy --app_data_dir antigravity [--project <registered-project-uuid>] --mode accept-edits --sandbox --disable-slash-commands --output-format json [--effort low|medium|high] [--conversation <uuid>] --dangerously-skip-permissions --print <prompt>

Example:

printf '%s' 'Implement the bounded task.' | koter run agy --effort medium
printf '%s' 'Return a concise plan.' | koter run agy --mode plan --effort medium
printf '%s' 'Review without permission prompts.' | koter run agy --mode plan
koter run agy --prompt-file prompts/plan.txt --effort high --timeout-ms 180000
printf '%s' 'Continue with the next bounded step.' | koter run agy --conversation 00000000-0000-4000-8000-000000000099 --effort high
printf '%s' 'Require provider permission checks.' | koter run agy --no-dangerously-skip-permissions
printf '%s' 'Require permission checks for this plan.' | koter run agy --mode plan --no-dangerously-skip-permissions

--print takes the prompt as its flag value; it is not a standalone switch. Koter therefore places every reviewed option before --print and places the already bounded prompt immediately after it. Although the parent should provide prompts through Koter stdin or --prompt-file, Agy receives the prompt through its reviewed argv contract, so prompt text may be visible in a local process listing while the child is running.

Koter explicitly launches every provider in the directory from which Koter was called; callers do not need to restate the working directory. Agy separately records a provider project identity. Koter boundedly inspects Antigravity's local project registry and passes --project only for one exact real-path match, failing closed if the registry contains multiple matches. Without a registered exact match, Agy still runs in the correct OS working directory but may store a new conversation under its generic CLI project, which history viewers can display under the Antigravity data folder. Existing conversations are not retroactively reclassified.

Agy's verified terminal object has status, response, conversation_id, timing/turn metadata, and token usage. Koter accepts only the exact SUCCESS shape, emits only response, and maps input, cache-read, output, and thinking tokens into the common usage contract. With --conversation, Koter accepts only a canonical UUID, passes it through the reviewed Agy flag, and requires the terminal conversation_id to match before accepting the result. Conversation IDs are not stored in analytics or metadata traces. ERROR, malformed JSON, unknown members/statuses, invalid usage, empty responses, mismatched conversation IDs, and nonzero exits fail closed. Agy's operational stderr remains a separate bounded capture and is never forwarded.

Koter does not use stream-json or --json-schema, expose Agy model selection, add workspaces, discover conversations, or pass arbitrary session/provider flags. accept-edits is the default because Agy is primarily used as an implementation subagent; it can modify files in Koter's inherited working directory, so the caller remains responsible for granting and bounding mutation authority. Use explicit --mode plan for advisory work. A conversation UUID is optional in either mode and is required only when resuming that specific conversation. Koter adds Agy's reviewed --dangerously-skip-permissions flag by default in both modes so a noninteractive subagent can use tools without stopping at a permission prompt. Use --no-dangerously-skip-permissions when provider permission checks are intentionally required and accept that a noninteractive tool request may then fail with provider_permission_denied. Supplying the positive flag remains an accepted idempotent request. Koter never retries a denied run automatically, avoiding duplicated model work or partially repeated actions. A strict Find deadline maps to provider_tool_timeout, which invites at most one retry with a narrower prompt or search scope. Neither condition is reclassified as success.

When a strictly parsed Agy terminal reports a reviewed transport interruption, Koter may make one fixed-text continuation only in plan mode, with the verified conversation UUID and the original total timeout/output budgets. Quota exhaustion, rate limiting, permission denial, schema drift, output limits, timeouts, parent cancellation, and unknown failures are never automatically resumed. A parent signal remains the primary child_signal result, but a complete provider failure envelope may retain only a bounded stable reason; stderr and partial/unverified output are never used.

The live catalog proved that Agy can select models, but the terminal envelope does not report the selected model and this MVP does not pin one; the parent envelope therefore reports model: "unknown". --sandbox is an Agy provider flag, not a Koter security sandbox, and does not make accept-edits or the dangerous bypass read-only. Agy remains outside automatic deterministic route ordering. An explicit read-only requestedExecutor: "agy" may select provider plan; a write-bearing request stays with Sol because a successful accept-edits --sandbox probe did not leave its requested file in the inherited workspace. Direct koter run agy still defaults to accept-edits, but callers must verify any claimed filesystem effect.

Parent-agent integration

A parent agent can parse one document instead of ingesting reasoning deltas and tool traffic:

result="$(printf '%s' "$TASK_PROMPT" | koter run cursor --no-trace)"
printf '%s\n' "$result"

For a long-running invocation, parent stdout intentionally remains silent until that one final document is ready. The running Koter process itself is the basic liveness signal. Clients that need periodic machine-readable progress can opt into a private sidecar without contaminating stdout or stderr:

heartbeat_dir="$(mktemp -d)"
printf '%s' "$TASK_PROMPT" | koter run agy \
  --heartbeat-file "$heartbeat_dir/agy.json" \
  --heartbeat-ms 5000

The client may poll that file while Koter runs. Each atomic koter.heartbeat/v1 document contains only the invocation ID, adapter, running|complete|failure status, sequence, elapsed milliseconds, and update timestamp. It never contains the prompt, result, child streams, credentials, cwd, or selected executable path. The target must be an absolute, previously absent file outside the active workspace; Koter creates it with mode 0600. The interval is bounded from 250 to 60,000 milliseconds. A stale running timestamp indicates that the caller should separately check whether the Koter process still exists. Once initialized, heartbeat-write failure is advisory and cannot change provider-result classification.

Success is one line on stdout and nothing on stderr:

{"adapter":"cursor","adapterVersion":"2026.08.11-e8db854","invocationId":"inv_example","metrics":{"childStderrBytes":42,"childStdoutBytes":170,"parentEnvelopeBytes":462,"wallMs":1250},"model":"unknown","result":"Final answer only.","schema":"koter.agent-result/v1","status":"complete","telemetry":"recorded","traceRef":null,"usage":{"cachedInputTokens":"unknown","costUsd":"unknown","inputTokens":"unknown","outputTokens":"unknown","reasoningTokens":"unknown"}}

Failures also produce exactly one bounded document, write no raw child streams, and exit nonzero:

{"adapter":"cursor","adapterVersion":"unknown","error":{"code":"timeout","message":"Child exceeded the 300000 ms timeout"},"invocationId":"inv_example","metrics":{"childStderrBytes":0,"childStdoutBytes":0,"parentEnvelopeBytes":488,"wallMs":300001},"model":"unknown","schema":"koter.error/v1","status":"failure","telemetry":"recorded","traceRef":null,"usage":{"cachedInputTokens":"unknown","costUsd":"unknown","inputTokens":"unknown","outputTokens":"unknown","reasoningTokens":"unknown"}}

Provider failures may include reviewed, bounded context (abridged here):

{"error":{"code":"provider_aborted","context":{"lastAgentMessage":"I could not complete the requested review.","lastAgentMessageTruncated":false,"providerReason":"mistake_limit"},"message":"Cline reached its consecutive-mistake limit and aborted before producing a final result; retry once with a narrower task"},"schema":"koter.error/v1","status":"failure"}

lastAgentMessage is a diagnostic clue, not a final result. It comes only from an adapter-reviewed completed assistant-text event, is credential-redacted and capped at 2,048 characters, and is never copied into analytics or metadata traces. Koter still suppresses reasoning, tool events, raw stderr, and unverified provider diagnostics.

Failure codes cover invalid arguments, missing/unsafe executables, pending schemas, adapter mismatch, malformed JSON, missing final results, provider failures, nonzero exits, signals, timeouts, output limits, and bounded internal errors.

Diagnostics and analytics

These commands do not invoke a model:

koter adapters
koter adapters --json
koter doctor
koter doctor --json
koter routing status --json
koter route --descriptor task-descriptor.json --json
koter analytics summary
koter analytics summary --json
koter analytics export --json
koter analytics purge --older-than-days 30
koter analytics purge --all --confirm PURGE

doctor reports executable resolution, detected versions and SHA-256 hashes, adapter capabilities, and Koter's data-path permissions. adapters --json omits executable paths and hashes; privacy-safe analytics exports contain aggregates only and never machine paths. routing status --json also reads live non-model diagnostics and exposes the derived availability class, exact reviewed models, qualification registry, and policy/registry identity hashes.

Analytics uses a private local SQLite database in the platform application-data directory (for example, Library/Application Support/Koter on macOS). It records operational metadata: IDs and time, versions, outcome/error code, byte counts, duration and timeout, trace state, retry count, prompt byte count, and usage availability. It does not store prompt text, result text, child output, credentials, or raw traces. Unknown usage remains the explicit string unknown, never a fabricated zero.

Summary and export JSON include deterministic daily economics ordered by date, adapter, and Koter version:

{"adapter":"cursor","amplificationRatio":2.75,"childTransportBytes":5500,"date":"2026-08-19","failures":1,"invocations":4,"koterVersion":"0.1.0","outputLimitFailures":1,"parentEnvelopeBytes":2000,"timeouts":0}

These privacy-safe buckets make changes in transport amplification and failure rates comparable over time without retaining prompt or result content.

Routing analytics add only enum classifications, selected executor/adapter/model metadata, availability class, disposition, actual fallback/retry counts, and timing. Because no routing execution-transition consumer exists yet, route planning records actual fallback/retry counts as zero. They never retain a task description, prompt, result, source path, credential, or provider stream.

Tracing is off by default. --trace writes only a private metadata record—no prompt, result, stdout, or stderr—using an atomic write. Traces are limited to seven days and 100 files. traceRef is a relative artifact reference such as traces/inv_example.json#sha256=...; resolve the path beneath the data directory reported by koter doctor, and use the fragment to verify identity. If analytics persistence fails, the child classification is preserved and the envelope reports telemetry: "failed".

Koter inherits only a documented environment allowlist needed for local configuration and common provider authentication. Agy receives only its reviewed Google/Anthropic provider keys in addition to the baseline local configuration environment; OpenCode's NVIDIA_API_KEY, OPENROUTER_API_KEY, and OPENCODE_API_KEY are passed only to the OpenCode adapter. Credentials are never written to analytics or traces. A selected provider executable and its user configuration are trusted local code. Optional absolute pins (KOTER_CURSOR_AGENT_PATH, KOTER_AGY_PATH, KOTER_FX_PATH, KOTER_CLINE_PATH, or KOTER_OPENCODE_PATH) are validated as executable regular files and rejected if the pin itself is a symlink. Every prompt-bearing run is refused when the detected provider version is outside its adapter's reviewed versions. KOTER_DATA_DIR is a trusted operational override, but it is accepted only as an absolute path outside the active workspace.

Periodic smoke testing

smoke provides one stable koter.smoke-report/v1 document and a meaningful process exit code. The default is a free readiness pass: it checks executable discovery, reviewed versions, platform cleanup support, and adapter schema disposition without invoking a model.

koter smoke --json
bun run smoke

Live mode is deliberately explicit because it invokes authenticated providers and may consume quota. The core profile runs sequentially and checks one tiny constant response through Cursor default, Agy provider-default in plan mode, FX inherited configuration, fixed Cline DeepSeek V4 Flash, and the first reviewed OpenCode model. It requires the final result, after surrounding whitespace is removed, to equal the expected constant exactly.

koter smoke --live --json
koter smoke --live --adapter cline --json
koter smoke --live --adapter opencode --model opencode/hy3-free --json

Use --all-models for a less frequent exhaustive pass. It adds Cursor's reviewed Grok selection and every exact OpenCode allowlisted model; fixed and provider-default adapters still receive one check. --adapter may be repeated to bound the roster. --model may be repeated for exact reviewed IDs and can be combined with matching adapter filters, but not with --all-models.

koter smoke --live --all-models --timeout-ms 120000 --json
bun run smoke:live:all-models

The command continues after ordinary provider failures so one report describes the whole selected roster; parent cancellation stops further launches. A nonzero exit means at least one check failed. Each check reports only adapter/model identity, mode, version, status, bounded metrics, telemetry disposition, and an enum error code such as adapter_mismatch, timeout, provider_failure, or smoke_result_mismatch. Prompts, returned constants, unexpected results, provider messages, streams, credentials, executable paths, and cwd never enter the report. Live checks use the normal content-free invocation analytics; readiness checks write no invocation rows.

For periodic operation, run the free readiness profile frequently and a live core profile on the cadence appropriate for provider quota. A scheduler should retain the final JSON and exit status in a private operational location. Koter does not install a daemon or scheduler and does not launch paid checks unless --live is present.

Relationship and limitations

Spiracha observes and visualizes agent activity; Koter executes and compacts a provider interaction. For deeper post-hoc investigation, run bunx spiracha, open the relevant persisted conversation, and export Focused evidence. Focused evidence can retain bounded failures, retries, workarounds, nearby commentary, and omission accounting. Koter does not auto-launch Spiracha or import transcript data: not every provider run exposes a resolvable conversation ID, and doing so would turn a private local-history browser into a required execution dependency. Future Kalu Fleet integrations can be named adapters. Spiracha and Kalu remain optional consumers, not Koter runtime dependencies.

Koter is not a general sandbox or arbitrary-command proxy. A provider may still reason internally, access whatever its reviewed mode permits, and consume its normal model quota. Koter suppresses that transport from the parent context; it does not turn reasoning off. Cursor reports input/cache-read/output tokens but no reasoning or cost; Cline reports aggregate input/cache-read/output/cost but no reasoning; FX usage remains unavailable; Agy reports token counts but no cost; and OpenCode reports component token/cost fields from verified step_finish events. FX inherits its configured model and makes no sandbox claim in 0.0.5; Cursor uses read-only ask mode with fixed workspace trust; Cline and OpenCode use provider-defined plan workflows rather than Koter sandboxes; Agy defaults to its provider-defined accept-edits workflow and offers explicit plan, while its --sandbox flag is not a Koter-enforced sandbox.

Prompt files are opened once, verified as regular files on that descriptor, and read with a hard byte sentinel, avoiding size-check/read replacement races. Parent envelopes have a 131,072-byte serialized UTF-8 ceiling, including JSON escaping and the trailing newline; exceeding it produces output_limit rather than truncation. On macOS and Linux, providers run in a new Koter-owned process group and timeout/cancellation sends TERM followed by KILL to that group. Other platforms report process-tree cleanup as unsupported and fail closed before provider execution.