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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for truss-chat-interface

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00059 $0.00936
Sonnet 5.5 $0.00030 $0.00468
Haiku 4.5 $0.00015 $0.00234

Measured 2mo ago against content hash 0d09f9e5c414, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 3mo ago), licensed Apache-2.0. It adds 148 tokens to every session and 2,341 once invoked, about $0.0006 per session on Opus 5.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

truss-chat-interface compared with skills from other repositories

truss-chat-interface next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
truss-chat-interfacetruss-harness/TrussSkill53mo agoApache-2.0A148Codex
vllmPrism-Shadow/penguin-harnessSkill3.2kyesterdayApache-2.0B29Claude Code, Codex
onecli-gatewaysuyoumo/ClawProBenchSkill8292mo agoApache-2.0A81Claude Code, Codex
stripe-projectsNousResearch/hermes-agentSkill261kyesterdayMITA15Claude Code, Codex
fastapi-patternsaffaan-m/ECCSkill298k4d agoMITA35Claude Code, Kiro
statusmem0ai/mem0Skill68k2d agoApache-2.0A54Claude Code
open-sourcebrowser-use/browser-useSkill120kyesterdayMITA137Claude Code