tma1

Featured

Query TMA1 observability data (Claude Code, Codex, GitHub Copilot CLI, OpenClaw, any OTel SDK). Use when the user asks: how much did I spend, token usage, what has my agent been doing, agent cost, show me traces, show me events, check for errors, model comparison, tool usage.

AI & Automation 118 stars 14 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 88/100

Stars 20%
69
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# TMA1 Observability Query You are helping the user query their local TMA1 observability data. TMA1 stores data from five kinds of sources: - **Claude Code** sends OTel **metrics** (cumulative counters) + **logs** (event stream) + hooks + JSONL transcripts - **Codex** sends OTel **logs** + **metrics** + session JSONL (auto-parsed from `~/.codex/sessions/`) - **GitHub Copilot CLI** — session JSONL only (auto-parsed from `~/.copilot/session-state/<sessionId>/events.jsonl`, no OTel). Data lives in `tma1_hook_events` (`agent_source='copilot_cli'`) and `tma1_messages` (`session_id LIKE 'cp:%'`). - **OpenClaw** sends OTel **traces** (spans with openclaw.* attributes) + **metrics** (openclaw_* tables) + session JSONL (auto-parsed from `~/.openclaw/agents/*/sessions/`) - **Other agents** (standard GenAI SDK) send OTel **traces** (spans with gen_ai.* semantic conventions) ## Step 1: Check TMA1 is running ```bash curl -sf http://localhost:14318/health ``` If this fails, tell the user to run `/tma1-setup` first. ## Step 2: Detect available data sources ``` exec_query: SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' ``` Check which tables exist to determine what queries to use: - If `claude_code_cost_usage_USD_total` exists → use Claude Code metrics queries - If `codex_turn_token_usage_sum` or `codex_*` tables exist → use Codex queries - If `openclaw_tokens_total` exists → use OpenClaw queries - If `opentelemetry_traces` exists → use traces-based qu...

Details

Author
tma1-ai
Repository
tma1-ai/tma1
Created
6 months ago
Last Updated
today
Language
Go
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category