debug-runs
Skill7.6k starsChanged 5 months agoMITView on GitHub
Find and read the agent chat runs behind a run id, a user's email, or an object id or link (deck, design, dashboard, document, plan, recording, …) in any app, then work out what failed or why the object looks the way it does. Use when someone reports a broken chat, a failed run, or a bad result and gives you any of those instead of a thread.
- Reads credentials
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Prefer the link over a bare id: it searches one app and also scans that app's audit log even when the object was deleted.
- Very specific: line 69
What failed: Start at the failed run's error, then the last tool call before it.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Debug Runs
scripts/debug-runs.ts reads production app databases (read-only, one
transaction per query) and turns a run id, email, or object id into the chats
and runs that touched it, with the full conversation.
It needs <APP>_DATABASE_URL entries in the repo-root .env or
DATABASE_URL in templates/<app>/.env. A worktree without its own .env
falls back to the main checkout's. An app whose credentials fail shows up as an error
entry; it was not searched, which is not the same as "nothing found".
1. Find the runs
pnpm exec tsx scripts/debug-runs.ts find <input> [--app NAME] [--days 30] [--limit 20]| Input | Example | How it is matched |
| Run id | run-1700000000000-example | live agent_runs/traces, else the thread active at the timestamp inside the id |
user@example.com | threads they own, plus their MCP/A2A calls | |
| Object link | https://slides.agent-native.com/deck/EXAMPLE_deck1 | app from the host, id from the path |
| Bare object id | EXAMPLE_design1 | every app: thread scope, owner lookup, owner's threads, audit inputs |
Prefer the link over a bare id: it searches one app and also scans that app's
audit log even when the object was deleted. --app does the same for a bare
id.
Each results[] entry is one app:
owners: the table the object lives in and its owner.threads[]:matchedBy, title, owner, scope, andruns[]with status, error, model, and timing.externalAgentSessions: calls from Claude Code, Codex, ChatGPT, and other MCP/A2A clients, grouped by client with 30-minute gaps. Their conversation lives in that client; only the calls reached us.uiSessions: audited UI edits to the object outside any chat.auditError: the audit scan timed out; rerun with a smaller--days.
2. Read a thread
pnpm exec tsx scripts/debug-runs.ts show <runId | threadId> [--app NAME]This writes .tmp/debug-runs/<app>-<threadId>.md and a .json beside it.
The .md has the run list, live run rows, terminal run events, failed trace
spans, versions the thread wrote, audited actions, and the transcript: user
messages, assistant text, reasoning, and every tool call with its arguments
and result. Long values are capped in the .md; the .json has them whole,
plus the raw thread_data, including _debugPrompts, the system prompt of
each run.
3. Diagnose
What failed. Start at the failed run's error, then the last tool call
before it. result: (none recorded…) means the run died inside that call.
Then check the terminal event and failed spans, if they are still retained. A
runs[].screen value is what the user was looking at when the run started.
For a provider ERROR ID, search Sentry (the sentry-cli skill) by the
user's email and the run's time window; run and thread ids sit in event
extras, not tags.
Why it looks like this. The "versions written by this thread" section
links each saved version to its runId/turnId, in apps that keep versions
(Analytics, Content, Design, Plan, Slides). Diff the version before and after
the run in that app's versions table. Elsewhere, follow the mutating tool
calls on the object in order. uiSessions and externalAgentSessions show
edits that came from outside this chat.
Retention
| Data | Kept |
chat_threads.thread_data (the full conversation) | until the user deletes the chat |
agent_runs, agent_run_events | 24h after success, 7 days after an error |
agent_trace_spans, agent_trace_summaries | 30 days |
agent_audit_log | 365 days |
A deleted chat is gone; its audit rows remain. Threads created before May 2026
have no run ids, so runs[] is empty and only the transcript is available.
Rules
- This is customer data. Keep it in
.tmp/. Never paste transcripts, emails, or object contents into GitHub, Slack, Jira, or commits; summarize the cause and cite ids. - For ad-hoc SQL beyond the script, stay read-only and never
LIKEacrosschat_threads.thread_datawithout anowner_emailor time filter. Design's table alone is over 1 GB, and an unfiltered scan times out against production.
Trending
More talk lately.about the whole repository
Who's talking about BuilderIO/agent-native
- @github-trending-js.bsky.social“📦 BuilderIO / agent-native ⭐ 4,978 (+89) 🗒 TypeScript A framework for building agentic apps”Bluesky · Sep 20, 2026 · 2 likes
- @github-trending-js.bsky.social“📦 BuilderIO / agent-native ⭐ 4,011 (+96) 🗒 TypeScript A framework for building agent-native applications.”Bluesky · Jul 26, 2026 · 2 likes
- @epicvibecoder.bsky.social“agent-native: a TypeScript framework from Builder.io for apps where AI agents are first-class users, not an …”Bluesky · Jun 20, 2026 · 2 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 BuilderIO / agent-native ⭐ 7,378 (+107) 🗒 TypeScript A framework for …”Bluesky · Oct 16, 2026 · 1 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド BuilderIO/agent-native Agent-Nativeは、自律的に動作するエージェントと専用UIを組み合わせて開発するためのTypeScriptフレームワークです。…”Bluesky · Sep 23, 2026 · 1 likes
The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 61
Talked about on GitHub and Bluesky (61 times).
On GitHub · 50
- Oct 28, 2026agent-skills.github.builderio.agent-native: 0-unstable-2026-10-27 → 0.1.287 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.builderio.agent-native: 0-unstable-2026-10-27 → 0.1.287 — sudosubin/agents.nix0 reactions
- Oct 28, 2026codex-marketplaces.github.builderio.agent-native: 0-unstable-2026-10-27 → 0.1.287 — sudosubin/agents.nix0 reactions
- Oct 28, 2026codex-plugins.github.builderio.agent-native: 0-unstable-2026-10-27 → 0.1.287 — sudosubin/agents.nix0 reactions
- Oct 28, 2026agent-plugins.github.builderio.agent-native: 0-unstable-2026-10-27 → 0.1.287 — sudosubin/agents.nix0 reactions
45 more on GitHub
- Oct 28, 2026claude-code-plugins.github.builderio.agent-native: 0-unstable-2026-10-26 → 0.1.287 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.builderio.agent-native: 1a39024 → efdb9df — sudosubin/agents.nix0 reactions
- Oct 27, 2026claude-code-marketplaces.github.builderio.agent-native: 869063e → 06e5709 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-marketplaces.github.builderio.agent-native: ba4ef37 → 06e5709 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-plugins.github.builderio.agent-native: 55d65b3 → 0cc74c0 — sudosubin/agents.nix0 reactions
- Oct 27, 2026chore: update Agent Native exported skills — BuilderIO/skills0 reactions · 1 comment
- Oct 27, 2026agent-plugins.github.builderio.agent-native: 1fcca73 → cc341a4 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-plugins.github.builderio.agent-native: 36006e6 → 1fcca73 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.builderio.agent-native: 3e6443d → 1a39024 — sudosubin/agents.nix0 reactions
- Oct 27, 2026claude-code-marketplaces.github.builderio.agent-native: 87ba124 → 869063e — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-marketplaces.github.builderio.agent-native: 12a91c6 → ba4ef37 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-plugins.github.builderio.agent-native: 7af9ac7 → 55d65b3 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-plugins.github.builderio.agent-native: e9d5ffa → 36006e6 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.builderio.agent-native: 0-unstable-2026-10-26 → 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026claude-code-marketplaces.github.builderio.agent-native: eaa780a → 87ba124 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-marketplaces.github.builderio.agent-native: 6b65dba → 12a91c6 — sudosubin/agents.nix0 reactions
- Oct 27, 2026claude-code-marketplaces.github.builderio.agent-native: 0-unstable-2026-10-26 → 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-marketplaces.github.builderio.agent-native: 0-unstable-2026-10-26 → 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026codex-plugins.github.builderio.agent-native: 0-unstable-2026-10-26 → 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-plugins.github.builderio.agent-native: 0-unstable-2026-10-26 → 0-unstable-2026-10-27 — sudosubin/agents.nix0 reactions
- Oct 27, 2026agent-skills.github.builderio.agent-native: 7faf806 → 7397901 — sudosubin/agents.nix0 reactions
- Oct 26, 2026claude-code-marketplaces.github.builderio.agent-native: e0ebd6b → 5252c0e — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-marketplaces.github.builderio.agent-native: e0ebd6b → 5252c0e — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-plugins.github.builderio.agent-native: e0ebd6b → 5252c0e — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-plugins.github.builderio.agent-native: 0ab7e59 → 5dc9ffe — sudosubin/agents.nix0 reactions
- Oct 26, 2026claude-code-plugins.github.builderio.agent-native: 0-unstable-2026-10-22 → 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-skills.github.builderio.agent-native: d2739c6 → 7faf806 — sudosubin/agents.nix0 reactions
- Oct 26, 2026chore: update Agent Native exported skills — BuilderIO/skills0 reactions · 1 comment
- Oct 26, 2026claude-code-marketplaces.github.builderio.agent-native: eb073a4 → e0ebd6b — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-marketplaces.github.builderio.agent-native: eb073a4 → e0ebd6b — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-plugins.github.builderio.agent-native: eb073a4 → e0ebd6b — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-plugins.github.builderio.agent-native: 0-unstable-2026-10-25 → 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-skills.github.builderio.agent-native: 0-unstable-2026-10-25 → 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
- Oct 26, 2026claude-code-marketplaces.github.builderio.agent-native: 0-unstable-2026-10-25 → 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-marketplaces.github.builderio.agent-native: 0-unstable-2026-10-25 → 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-plugins.github.builderio.agent-native: 0-unstable-2026-10-25 → 0-unstable-2026-10-26 — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-skills.github.builderio.agent-native: 1fe5d77 → 8505239 — sudosubin/agents.nix0 reactions
- Oct 26, 2026claude-code-marketplaces.github.builderio.agent-native: 1fe5d77 → 8505239 — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-marketplaces.github.builderio.agent-native: 1fe5d77 → 8505239 — sudosubin/agents.nix0 reactions
- Oct 26, 2026codex-plugins.github.builderio.agent-native: 1fe5d77 → 8505239 — sudosubin/agents.nix0 reactions
- Oct 26, 2026agent-plugins.github.builderio.agent-native: 1fe5d77 → 8505239 — sudosubin/agents.nix0 reactions
- Oct 22, 2026chore: update Agent Native exported skills — BuilderIO/skills0 reactions · 1 comment
- Oct 16, 2026[Candidate] builderio/agent-native - large collection (876 SKILL.md files) — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 15, 2026Builder.io, 에이전틱 앱 오픈소스 TS 프레임워크 'Agent-Native' 베타 출시 — UI·에이전트·HTTP·CLI·MCP·A2A 6개 서피스 공유 액션 (10/15, 공식 블로그) — roomedia/ax-trend0 reactions
- Oct 15, 2026Define human decisions once as schema-checked actions shared by the dashboard and factory mcp — mikeroySoft/factory0 reactions · 9 comments
On Bluesky · 11
- Sep 20, 2026📦 BuilderIO / agent-native ⭐ 4,978 (+89) 🗒 TypeScript A framework for building agentic apps — @github-trending-js.bsky.social2 likes and reposts
- Jul 26, 2026📦 BuilderIO / agent-native ⭐ 4,011 (+96) 🗒 TypeScript A framework for building agent-native applications. — @github-trending-js.bsky.social2 likes and reposts
- Jun 20, 2026agent-native: a TypeScript framework from Builder.io for apps where AI agents are first-class users, not an afterthought. Design once,… — @epicvibecoder.bsky.social2 likes and reposts · 1 reply
- Oct 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 BuilderIO / agent-native ⭐ 7,378 (+107) 🗒 TypeScript A framework for building agentic apps — @github-trending-js.bsky.social1 likes and repost
- Sep 23, 2026今日のGitHubトレンド BuilderIO/agent-native Agent-Nativeは、自律的に動作するエージェントと専用UIを組み合わせて開発するためのTypeScriptフレームワークです。… — @dailygithubtrends.bsky.social1 likes and repost
6 more on Bluesky
- Sep 20, 2026📦 BuilderIO / agent-native ⭐ 4,978 (+89) 🗒 TypeScript A framework for building agentic apps — @github-trending.bsky.social1 likes and repost
- Sep 20, 2026今日のGitHubトレンド BuilderIO/agent-native Agent-Nativeは、自律的な動作を行うエージェントと専用UIを統合して構築するためのTypeScriptフレームワークです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 19, 2026今日のGitHubトレンド BuilderIO/agent-native Agent-Nativeは、リッチなUIと自律型エージェントを統合したアプリケーションを構築するためのオープンソースフレームワークです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 19, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 BuilderIO / agent-native ⭐ 819 (+172) 🗒 TypeScript A framework for building agent-native applications. — @github-trending.bsky.social1 likes and repost
- Jun 18, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 BuilderIO / agent-native ⭐ 673 (+131) 🗒 TypeScript A framework for building agent-native applications. — @github-trending-js.bsky.social1 likes and repost
- Jun 23, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 BuilderIO / agent-native ⭐ 1,793 (+434) 🗒 TypeScript A framework for building agent-native… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- SemiAnalysisAI/InferenceX★ 2ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository103 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a2a-protocolSkill
- actionsSkill
- adding-a-featureSkill
- adding-tests-and-ciSkill
- adding-workspace-appsSkill
- address-feedbackSkill
- address-feedback-with-repliesSkill
- agent-native-docsSkill
- agent-native-toolkitSkill
- agent-pageSkill
- audit-logSkill
- authenticationSkill
- automationsSkill
- babysit-prSkill
- browser-sessionsSkill
- bug-traceSkill
- build-an-appSkill
- capture-learningsSkill
- changelogSkill
- chat-first-workbenchSkill
- client-methodsSkill
- client-side-routingSkill
- community-prsSkill
- composable-mini-appsSkill
- concurrent-agentsSkill
- configurationSkill
- context-awarenessSkill
- context-xraySkill
- create-skillSkill
- customizing-agent-nativeSkill
- data-programsSkill
- decisionsSkill
- delegate-to-agentSkill
- delegating-workSkill
- design-editor-reproSkill
- extension-pointsSkill
- extensionsSkill
- external-agentsSkill
- feature-flagsSkill
- fix-at-the-boundarySkill
- fragility-commonSkill
- framework-storesSkill
- frontend-designSkill
- generative-uiSkill
- harness-agentsSkill
- identify-fragile-systemsSkill
- integration-webhooksSkill
- internationalizationSkill
- investigate-bugSkill
- jira-refactor-findingsSkill
- launchdarklySkill
- multi-frontier-desktopSkill
- mvp-followupSkill
- native-navigationSkill
- new-branchSkill
- observabilitySkill
- onboardingSkill
- performanceSkill
- portabilitySkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

