Truss: Skill for Codex

.skills/truss-chat-interface/SKILL.md

truss-chat-interface is a skill for Codex from truss-harness/Truss. It costs 148 tokens per session (2,341 once invoked), scanned A, original, Apache-2.0.

A set of instructions for Truss's chat screen and its basic chat server route. It covers messages, transcript display, model selection, file attachments, agent modes, and streaming replies from AI providers.

In plain words
What is it for?
Use it when changing the chat landing page, conversation sidebar, message transcript, composer, attachments, model selector, chat mode, or the /api/chat request flow.
Why use it?
It shows which part of the application owns each chat feature, reducing the risk of breaking related screens or duplicating logic. It also helps keep the browser and chat API in sync.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; $skill-name invocation.

This is truss-harness/Truss's own configuration. It tells Codex how to work on Truss 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 Truss configures →

Reuse

Borrowing it

Nothing to install: this file belongs to truss-harness/Truss. 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/truss-harness/Truss/master/.skills/truss-chat-interface/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/truss-harness/Truss

Made for: Codex.

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 truss-chat-interface

README.md
[![agentmods](https://agentmods.dev/badge/skills/truss-harness/truss/truss-chat-interface.svg)](https://agentmods.dev/skills/truss-harness/truss/truss-chat-interface)
Your own site
<a href="https://agentmods.dev/skills/truss-harness/truss/truss-chat-interface"><img src="https://agentmods.dev/badge/skills/truss-harness/truss/truss-chat-interface.svg" alt="Measured on agentmods" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,341 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00148 $0.02341
Opus 5 $0.00074 $0.01171
Sonnet 5 $0.00030 $0.00468
Haiku 4.5 $0.00015 $0.00234

Measured 6d ago against content hash 0d09f9e5c414, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

truss-chat-interface 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 6d 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/truss-chat-interface/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.

Truss Chat Interface

Use this skill before changing the chat experience or the minimal chat backend in Truss.

Current Shape

  • src/client/components/ChatLanding.tsx owns the chat screen state, loaded transcript, generated conversation title display, session mutations, composer submit flow, and /api/chat streaming orchestration.
  • src/client/components/chat/ owns extracted chat UI pieces and helpers: ConversationSidebar.tsx for past conversations, context menus, stats tooltip, and manual rename; ChatPromptCard.tsx for composer controls and mode toggle; ChatTranscript.tsx for bubbles, message actions, thinking display, attachment previews, and message-edit attachment controls; AttachmentPreviewModal.tsx for transcript and composer attachment inspection, image crop, and image redaction; ConversationHeader.tsx for the title/model selector top bar; MobileNavigation.tsx for the mobile nav; useModelSelectorState.ts for model option loading; and chat-utils.ts/types.ts for reusable pure helpers and UI types.
  • FileDropTextarea.tsx owns textarea resize, Enter-to-send, Shift+Enter newline behavior, drag/drop attachment staging, attachment chips, disabled attachment staging state, and conversion from browser File objects to ChatAttachment payloads.
  • ModelSelector.tsx owns the searchable model dropdown. It defaults to the current conversation or agentic profile, labels providers in both closed and open states, and is rendered in ConversationHeader above the transcript/composer.
  • MaterialIcon.tsx is the shared Material Symbols wrapper.
  • src/client/markdown.tsx parses rendered chat markdown and delegates rich renderers to src/client/components/markdown/.
  • src/client/api.ts exposes streamChatMessage(...), a compatibility sendChatMessage(...), fetchAgentSessions(), fetchAgentSession(...), session action helpers, and model/session fetch helpers.
  • src/shared/protocol.ts defines ChatRequest, ChatResponse, ChatStreamEvent, ChatMessage, StoredChatMessage, ChatAttachment, ChatThinking, AgentSessionSummary stats, AgentSessionDetailResponse, and AgentSessionTitleEvent.
  • src/server/http/routes-chat.ts validates chat payloads, creates or reuses agent_sessions, syncs the request transcript before the provider call, appends the completed assistant reply, and routes to the selected providerId plus modelId.
  • src/server/storage/chat-messages.ts owns persisted chat transcript reads/writes and computed message/word stats for the sidebar. Do not query chat_messages directly from routes.
  • src/server/internal-ai/truss-internal-ai-services.ts generates internal helper-model metadata such as conversation titles through the fast-helper profile.
  • src/server/llm/chat-completions.ts calls OpenAI-compatible /chat/completions providers and Ollama /api/chat, forwards supported attachments, streams answer/thinking chunks, and returns optional exposed reasoning as ChatThinking.

Read the full file on GitHub · 72 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 72 lines · 148 tokens per session scan A 0d09f9e5c414

Subscribe to this mod's changes

truss-chat-interface is a skill published in the GitHub repository truss-harness/Truss (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 148 tokens to every session and 2,341 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

copilotkit-upgrade

Use when migrating a CopilotKit v1 application to v2 -- updating package imports, replacing deprecated hooks and components, switching from GraphQL runtime to AG-UI protocol runtime, and resolving breaking API changes.

CopilotKit/CopilotKit · 48 tokens

langbot-dev

Develop, build, and debug the LangBot core backend and web frontend. Use when working inside the LangBot repository — backend (Python/Quart, src/langbot/pkg), the Vite/React web UI, HTTP API controllers/services, Alembic migrations, or the MCP server. Covers the dev environment (uv, pnpm), repo layout, the API auth…

langbot-app/LangBot · 136 tokens

stripe-apps

Use when building, modifying, or reviewing a Stripe App — or when the user describes something that implies one (e.g. "add a panel to the customer page", "customize my Stripe Dashboard", "react to Stripe events from my app", "connect my service to Stripe without sharing API keys"). Covers the full app development…

stripe/ai · 197 tokens

web-design

Penguin visual language for generated web pages and app UIs — GitHub-style simplicity with a single blue accent, light and pure-black dark themes, design tokens, component and chat-interface recipes, plus an opt-in warm paper editorial theme.

Prism-Shadow/penguin-harness · 51 tokens

vllm

Deploy and serve LLMs with vLLM behind an OpenAI-compatible endpoint, with tool calling enabled for agent workloads.

Prism-Shadow/penguin-harness · 29 tokens

testing

Verify a Skyvern deployment is working correctly by smoke-testing the backend API, frontend rendering, browser session provisioning, and workflow execution. Use when the user says 'is Skyvern working', 'test my deployment', 'verify the installation', 'smoke test', or needs to check that a self-hosted or local Skyvern…

Skyvern-AI/skyvern · 71 tokens