cubepi-trace

cubepi-trace is a skill for Claude Code, Codex from cubeplexai/cubepi. It costs 129 tokens per session (3,281 once invoked), scanned A, original, MIT.

A debugging aid for cubepi and cubebox agent runs that reads recorded JSONL trace files. It shows the sequence of model and tool calls, their results, errors, and token or cache counts.

In plain words
What is it for?
Use it to list, inspect, follow, and summarize recorded runs, including background agent calls.
Why use it?
It helps explain a missing reply, failed tool call, model error, unexpected behavior, or incorrect usage numbers without running the agent again.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to list, inspect, follow, and summarize recorded runs, including background agent calls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cubeplexai/cubepi/cubepi-trace
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.

Any agent
npx skills add cubeplexai/cubepi --skill cubepi-trace
Clone the repo
git clone --depth 1 https://github.com/cubeplexai/cubepi

Made for: Claude Code, 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 cubepi-trace

README.md
[![agentmods](https://agentmods.dev/badge/skills/cubeplexai/cubepi/cubepi-trace/github.svg)](https://agentmods.dev/skills/cubeplexai/cubepi/cubepi-trace)
Your own site
<a href="https://agentmods.dev/skills/cubeplexai/cubepi/cubepi-trace"><img src="https://agentmods.dev/badge/skills/cubeplexai/cubepi/cubepi-trace/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 cubepi-trace

Your own site · 80×15
<a href="https://agentmods.dev/skills/cubeplexai/cubepi/cubepi-trace"><img src="https://agentmods.dev/badge/skills/cubeplexai/cubepi/cubepi-trace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,281 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Supply Chain · line 187
    Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
    Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
How audits are shown
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.00129 $0.03281
Opus 5.5 $0.00052 $0.01312
Sonnet 5.5 $0.00026 $0.00656
Haiku 4.5 $0.00013 $0.00328

Measured 2mo ago against content hash a76c7ec643c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cubepi-trace scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Shell-executable curl (uses $BASE_URL / $API_KEY env vars)
skills/cubepi-trace/SKILL.md · 271 lines

How it starts

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

Debugging cubepi runs with cubepi trace

cubepi can record every agent run as an OpenTelemetry span tree, written to local JSONL files. The cubepi trace CLI reads those files so you can see exactly what happened inside a run without re-running it: which LLM calls and tool calls fired, in what order, what each returned, where it errored, and the token/cache counts. Reach for this before guessing at a bug.

When this applies

  • The final answer is missing, truncated, or the run "ended" with no reply.
  • A tool (web_search, web_fetch, execute, MCP tool, …) returned something wrong or empty, or the agent looped.
  • The model returned a 4xx/5xx (e.g. BadRequestError), or the run status is error.
  • Token / cache / cost numbers look wrong.
  • You just need to understand the agent's actual trajectory for a given input.
  • A background LLM call (e.g. memory consolidation via Tracer.oneshot()) isn't behaving as expected — oneshot calls produce invoke_agent spans too and are searchable by metadata.

Prerequisites (one-time)

Tracing must be on and recording content for the run you want to inspect. In cubebox it's config-driven (dynaconf):

  • tracing.enabled: true
  • tracing.directory: ./cubepi-traces (default; relative to the backend cwd)
  • tracing.record_content: true (needed to see prompts / tool args / results; off = you get the span tree and timings but no content)

Env override form: CUBEBOX_TRACING__ENABLED=true, CUBEBOX_TRACING__RECORD_CONTENT=true, CUBEBOX_TRACING__DIRECTORY=.... cubebox's config.development already enables this. Files land at <directory>/<YYYY-MM-DD>/<trace_id>.jsonl — sharded by trace_id, so one file holds the whole trace, including any nested subagent runs (they inherit the parent's trace). A trace that crosses UTC midnight is split across two date dirs; the CLI merges them. (cubepi.run_id is still recorded as a per-span attribute if you need to distinguish individual runs within a trace.)

Read the full file on GitHub · 271 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. 2mo ago First seen · 271 lines · 129 tokens per session scan A a76c7ec643c0

Subscribe to this mod's changes

cubepi-trace is a skill published in the GitHub repository cubeplexai/cubepi (54 stars, last pushed 2mo ago), licensed MIT. It adds 129 tokens to every session and 3,281 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cubepi-trace compared with skills from other repositories

cubepi-trace next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cubepi-tracecubeplexai/cubepiSkill542mo agoMITA129Claude Code, Codex
rust-errorBerriAI/litellmSkill63kyesterdaynoneA72Claude Code, Codex
rust-tracingBerriAI/litellmSkill63kyesterdaynoneA28Claude Code, Codex
code-reviewsrtab/daivSkill26yesterdayApache-2.0A164Claude Code, Codex
security-auditsrtab/daivSkill26yesterdayApache-2.0A153Claude Code, Codex
plansrtab/daivSkill26yesterdayApache-2.0A90Claude Code, Codex
initsrtab/daivSkill26yesterdayApache-2.0A86Claude Code, Codex