webchat-operations

A set of procedures for operating a local browser-based chat interface called WebChat. It covers how messages, browser events, and the local chat service move between each other.

In plain words
What is it for?
Use it to inspect WebChat status, route incoming messages, prepare outgoing replies, debug browser chat behavior, and review interaction tests.
Why use it?
It helps developers set up, test, and diagnose chat interactions when the browser, WebSocket connection, and local service must work together.

Skill for Claude CodeCodex

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 skills/codeinfinity1/stram/webchat-operations
Any agent
npx skills add CodeInfinity1/Stram --skill webchat-operations
Clone the repo
git clone --depth 1 https://github.com/CodeInfinity1/Stram

Made for: Claude Code, Codex.

Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00033 $0.00529
Opus 5 $0.00016 $0.00264
Sonnet 5 $0.00007 $0.00106
Haiku 4.5 $0.00003 $0.00053

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

Security

Grade A, and why

webchat-operations scanned grade A with 0 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/browser-web/webchat-operations/SKILL.md · 72 lines

How it starts

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

WebChat Operations

Purpose

Treat WebChat as the local/browser-facing user interface channel. This skill supports WebChat setup, event routing, user-visible replies, and debugging without depending on external reference WebChat code.

When To Use

Use when building or diagnosing the browser chat UI, WebSocket events, local Gateway messages, WebChat onboarding, or user-facing channel previews.

Inputs And Evidence

  • WebChat session ID, user ID, conversation ID, or browser runtime metadata.
  • Channel manifest for webchat.
  • Local UI/server status.
  • Outbox entries or interaction harness run IDs.

Tool Map

  • channel_manifest
  • channel_setup_status
  • channel_message_prepare
  • channel_outbox
  • activity_ingest
  • cognitive_interaction_review
  • browser_live_open
  • browser_live_observe

Workflow

  1. Read the WebChat manifest and determine whether the local UI/runtime is active.
  2. Route inbound WebChat text as structured channel stimuli with session metadata.
  3. Use the same cognitive decision path as voice and other channels.
  4. Prepare outbound messages when the runtime consumes outbox envelopes.
  5. If testing the UI, use live browser tools to observe the local WebChat page.
  6. Keep WebChat delivery claims tied to runtime acknowledgement, not only message preparation.

Native Implementation Boundaries

  • Implement WebChat runtime and WebSocket behavior in Stram-owned code.
  • Do not import external reference WebChat UI or Gateway implementation.
  • If only the outbox contract exists, say the UI/runtime handoff is pending.

Safety And Approval

  • WebChat may expose local files, logs, and tool results; redact secrets before display.
  • Keep external channel sends separate from WebChat local replies.
  • Do not assume a WebChat user is authenticated unless the runtime supplies identity evidence.

Verification

  • Confirm manifest and setup status.
  • Confirm browser UI state when testing local WebChat.
  • Confirm outbox or runtime acknowledgement for any visible reply.

Read the full file on GitHub · 72 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. 2d ago First seen · 72 lines · 33 tokens per session scan A 651ed8c1e07b

Subscribe to this mod's changes

webchat-operations is a skill published in the GitHub repository CodeInfinity1/Stram (10 stars, last pushed 22d ago), licensed MIT. It adds 33 tokens to every session and 529 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.