self-test

self-test is a command for Claude Code from dork-labs/dorkos. It costs 38 tokens per session (7,879 once invoked), scanned F, original, MIT.

A command that tests the DorkOS chat interface in a real browser session and produces a report based on observed evidence. It can compare what the user interface shows with API state and saved JSONL transcripts.

In plain words
What is it for?
Testing a local DorkOS URL, checking selected focus areas, monitoring transcripts, investigating issues, and generating findings or an ideation prompt.
Why use it?
It helps find problems in the full application flow, including missing messages, streaming failures, task displays, and tool-call interactions.

Command for Claude Code

Part of the flow plugin — 17 skills, 37 commands, 5 agents shipped together

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 commands/dork-labs/dorkos/self-test
Clone the repo
git clone --depth 1 https://github.com/dork-labs/dorkos

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 17 skills, 37 commands, 5 agents.

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 self-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/dork-labs/dorkos/self-test.svg)](https://agentmods.dev/commands/dork-labs/dorkos/self-test)
Your own site
<a href="https://agentmods.dev/commands/dork-labs/dorkos/self-test"><img src="https://agentmods.dev/badge/commands/dork-labs/dorkos/self-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,879 The whole file, excluding the scripts and references it only reads on demand.
Security scan F 4 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.00038 $0.07879
Opus 5 $0.00019 $0.03939
Sonnet 5 $0.00008 $0.01576
Haiku 4.5 $0.00004 $0.00788

Measured 3d ago against content hash 07d8b81f4ade, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade F, and why

self-test scanned grade F with 4 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 3d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s "http://localhost:$API_PORT/api/config" | python3 -c "

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

JSONL_FILE=$(find ~/.claude/projects -name "${URL_SESSION_ID}.jsonl" -type f 2>/dev/null)

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

dotenv -- sh -c 'rm -rf /tmp/dorkos-test-mode-4243 && turbo run build --filter=@dorkos/server && pnpm --filter @dorkos/server exec tsx src/index.ts'

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf -X PATCH http://localhost:4248/api/config -H 'content-type: application/json' \
.claude/commands/chat/self-test.md · 613 lines

How it starts

The opening of the file, as written. The whole thing — 613 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Self-test the DorkOS chat UI in a live browser session. This command drives real interactions through the full stack, monitors JSONL transcripts on disk, compares API vs UI state at every step, researches any issues found, and produces an evidence-based findings report. If bugs or significant UX issues are found, it generates a prompt for the /flow:ideate command (requires the flow plugin, dork-labs/marketplace, loaded via --plugin-dir).


Argument Parsing

Parse $ARGUMENTS for two optional inputs:

  1. URL: Any argument starting with http — use as TEST_URL. Default (expand $HOME to the actual home directory; create the dir if missing with mkdir -p "$HOME/Keep/temp/empty"):

    TEST_URL="http://localhost:6241/?dir=$HOME/Keep/temp/empty"
    
  2. Focus areas: An argument starting with focus: — comma-separated list of specific areas to test. Examples:

    • focus:streaming — Focus on SSE streaming, freeze detection, chunk delivery
    • focus:history — Focus on reload-from-history, message persistence, JSONL fidelity
    • focus:tasks — Focus on task list UI (TaskCreate), task state rendering
    • focus:tools — Focus on tool call cards, approval flows, expand/collapse
    • focus:scroll — Focus on auto-scroll, viewport overflow, scroll anchoring
    • focus:sidebar — Focus on session list, new session, session switching
    • focus:status — Focus on status bar, model selector, permission mode
    • focus:code — Focus on code block rendering, syntax highlighting, copy button
    • focus:commands — Focus on slash command palette, command discovery
    • focus:markdown — Focus on markdown rendering, links, lists, headings

    Multiple areas can be combined: focus:streaming,history,tasks

    When focus areas are specified:

    • Phase 4 messages are tailored to exercise those areas specifically
    • Phase 5b checks are weighted toward those areas
    • Phase 6 research digs deeper into focused areas
    • Unfocused areas still get basic coverage but with less depth

    When no focus is specified, run the full default test suite.

  3. mode:sandbox|live — which stack the run drives (meta/chat-capabilities.md §11).

    • mode:sandbox — the test-mode runtime: throwaway data dir, deterministic, no model spend. Verifies UI plumbing (rendering, history reload, stream lifecycle).
    • mode:live — the dev stack with a real runtime. Model defaults to claude-haiku-4-5 (Phase 3). Verifies streaming feel, real tool loops, timing.
    • If the invocation does not state a mode, ASK the user before spending anything (AskUserQuestion, offering both, with the cost of each). Never assume live.

Store parsed values as TEST_URL, FOCUS_AREAS (array, possibly empty), and MODE.

Read the full file on GitHub · 613 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. 3d ago First seen · 613 lines · 38 tokens per session scan F 07d8b81f4ade

Subscribe to this mod's changes

self-test is a command published in the GitHub repository dork-labs/dorkos (9 stars, last pushed 3d ago), licensed MIT. It adds 38 tokens to every session and 7,879 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it F with 4 findings (downloads and executes remote code, reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.