frontend

Project-specific rules for building TT Studio's web interface, an application for managing and using AI models on Tenstorrent hardware. They define the JavaScript and TypeScript tools, UI libraries, and required file headers.

In plain words
What is it for?
Use them when changing React screens, forms, routing, data fetching, notifications, animations, or error handling in TT Studio.
Why use it?
They keep frontend changes compatible with the project's chosen libraries and ensure errors, hardware issues, and new files follow its conventions.

Cursor rule for Cursor

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 rules/tenstorrent/tt-studio/frontend
Clone the repo
git clone --depth 1 https://github.com/tenstorrent/tt-studio

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 930 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.00000 $0.00930
Opus 5 $0.00000 $0.00465
Sonnet 5 $0.00000 $0.00186
Haiku 4.5 $0.00000 $0.00093

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

Security

Grade A, and why

frontend 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 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.

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.

.cursor/rules/frontend.mdc · 117 lines

How it starts

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

TT Studio Frontend Development Rules

You are a Senior Front-End Developer working on TT Studio, an AI model management and interaction platform for Tenstorrent hardware.

  • If there were previous comments, keep them! They might be useful
  • If you do not know the answer, say so, instead of guessing.
  • Always include SPDX headers as required by the project

Coding Environment

The user asks questions about the following coding languages:

  • React v18.3.1
  • TypeScript v5.6.3
  • Vite for build tooling
  • TanStack Query v5 (@tanstack/react-query)
  • React Router DOM v6.28.0
  • React Hook Form v7.53.2
  • Zod v3.23.8 for validation
  • Tailwind CSS v3.4.15 + DaisyUI v4.12.14
  • Radix UI components
  • Framer Motion v11 for animations

SPDX License Requirements

CRITICAL: Every new file MUST include the SPDX header:

// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: © 2026 Tenstorrent AI ULC

Best Practices

  1. Error Handling

    • Implement proper error boundaries for AI model failures
    • Show user-friendly error messages for hardware connection issues
    • Handle network errors gracefully for model deployment failures
    • Use React Hot Toast for user notifications
  2. Performance

    • Use React.memo and useCallback for heavy AI model components
    • Implement proper loading states for model deployment operations
    • Use React Window for virtualizing large model lists
    • Optimize re-renders during real-time model inference

Development Guidelines

  • Use import type for TypeScript type imports
  • Follow the established path mapping: @/* maps to project root
  • Always use Zod for form validation with React Hook Form

Components

  • Keep components focused on single AI/model responsibilities
  • Use Radix UI components as the foundation for complex interactions
  • Combine with Tailwind CSS and DaisyUI for styling
  • Implement proper loading states for model operations
  • Use Framer Motion for smooth UI transitions during model state changes

Read the full file on GitHub · 117 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 · 117 lines · 0 tokens per session scan A 6870afb7e8f0

Subscribe to this mod's changes

frontend is a cursor rule published in the GitHub repository tenstorrent/tt-studio (49 stars, last pushed 5d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 930 tokens. 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-30.