traceway CLAUDE.md

A set of repository instructions for Traceway, an error-tracking and monitoring platform with a SvelteKit dashboard, a Go API, a ClickHouse database, and a Go command-line client.

In plain words
What is it for?
It helps agents work on Traceway's dashboard, API, database-related code, and command-line client while following the project's conventions for comments, dialogs, buttons, and development tasks.
Why use it?
It gives coding agents the project's architecture, style rules, and development commands before they edit code. This reduces inconsistent UI changes and mistakes across the frontend, backend, database, and CLI.

Instructions file

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 instructions/tracewayapp/traceway/claude-md
Clone the repo
git clone --depth 1 https://github.com/tracewayapp/traceway
Per session 30,796 This file is loaded in full into every session.
When invoked 30,796 The same file — it is already loaded in full.
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.30796 $0.30796
Opus 5 $0.15398 $0.15398
Sonnet 5 $0.06159 $0.06159
Haiku 4.5 $0.03080 $0.03080

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

Security

Grade A, and why

traceway CLAUDE.md 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.

CLAUDE.md · 1,541 lines

How it starts

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

CLAUDE.md - Traceway Project

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Traceway is an error tracking and monitoring platform consisting of:

  • Frontend: SvelteKit 2 dashboard application with Svelte 5
  • Backend: Go/Gin API server with ClickHouse database
  • CLI: Go/Cobra command-line client for the backend HTTP API (/cli)

Code Style

  • No pointless comments: Do not add comments that simply describe what the code does. The code should be self-explanatory. Only add comments when explaining non-obvious "why" decisions.
  • No py-4 in dialog form content: Do not add py-4 on the content wrapper inside AlertDialog or Dialog components — it creates too much blank space between the form and the action buttons.
  • Dialog button labels & toasts: For form dialogs, use descriptive button labels with icons instead of generic "Create"/"Update". The {Entity} is always a platform entity, capitalized (Project, Widget, Dashboard, Channel, Rule, Token, Invitation, ...). Create actions: <Plus icon> New {Entity} with variant="success". Update actions: <Check icon> Update {Entity} with the default (primary) variant. Delete/revoke/remove confirm buttons: <Trash2 icon> Delete {Entity} (or Revoke {Entity} / Remove {Entity}) with variant="destructive". After success, show toast.success('Successfully created the {Entity}', { position: 'top-center' }) for creates and 'Successfully updated the {Entity}' for updates. The button should only be disabled during the loading state — never disable it to enforce validation; let the backend return 422 and show the error in the dialog instead.

Quick Start

Development Commands

Component Command Description
Frontend cd frontend && npm run dev Dev server (port 5173)
Frontend npm run build Production build
Frontend npm run check TypeScript checking
Backend cd backend && go run ./cmd/traceway API server (port 8082)
Backend cd backend && govulncheck ./... Vulnerability scan (default tags only); CI also scans the other storage build-tag combos (.github/workflows/backend-vulncheck.yml)
CLI cd cli && just build Builds bin/traceway
CLI cd cli && just test Runs unit tests
CLI cd cli && just check Lint + test + vulncheck + skill drift + contract tests (pre-commit gate; CI enforces it for cli/)
CLI cd cli && just smoke-test Live E2E (needs TRACEWAY_SMOKE_* env vars)
Any nix develop (or direnv via .envrc) Dev shell with the Go and Node versions read from backend/go.mod and frontend/package.json, plus just, golangci-lint, govulncheck (flake.nix; shells default, backend, frontend, oxc). Put JWT_SECRET in the gitignored .envrc.local

Read the full file on GitHub · 1,541 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 · 1,541 lines · 30,796 tokens per session scan A cc2449e5ce11

Subscribe to this mod's changes

traceway CLAUDE.md is an instructions file published in the GitHub repository tracewayapp/traceway (1,446 stars, last pushed yesterday), licensed MIT. It adds 30,796 tokens to every session, about $0.1540 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-30.