/tendril-skills:tendril-debug-jobfrom tendril-skills
Analyze a Tendril job's execution artifacts to identify issues and improvement opportunities in Tendril, promptware instructions, memory, or tools.
Ships in tendril-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze a job's execution artifacts to identify issues and improvement opportunities in Tendril, the promptware instructions, memory, or tools.
/tendril-debug-job <job-id> <comment>
00458). A full path to a job log also works.Every job writes four files, flat, into $TENDRIL_HOME/Jobs/. They share one stem:
{jobId}-{planId}-{promptware} e.g. 00458-00044-ExecutePlan
{jobId}-{promptware} when the job has no plan (e.g. CreatePlan)
| File | Name |
|---|---|
{stem}.md | Job Log - status, timings, CLI command, final output, agent-authored ## Agent Log sections |
{stem}.prompt.md | Job Prompt - the exact prompt handed to the agent |
{stem}.raw.jsonl | Job Raw Log - unparsed CLI stream-json output |
{stem}.eventwire.jsonl | Job Eventwire Log - Tendril's parsed event stream |
Locate them with a glob on the job id:
ls "$TENDRIL_HOME/Jobs/00458-"*
The promptware type is the last dash-separated segment of the stem; the plan id, when present, is the middle segment. There is no Logs/ folder anywhere - not under promptwares, not under plans.
The Job Log ({stem}.md, produced by JobLogger) has this structure:
# Job Log {stem}
- **JobId:** {id}
- **PlanId:** {planId} # present whenever the job produced or targeted a plan
- **Status:** {Completed|Failed|Timeout}
- **Exit Code:** {0|1|N/A}
- **Started:** {timestamp}
- **Completed:** {timestamp}
- **Duration:** {seconds}s
- **Provider:** {claude|copilot|codex|...}
- **SessionId:** {id}
- **Cost:** ${amount}
- **Tokens:** {count}
## CLI Command
{full command line}
## Final Output
{agent's last text response}
## Outcome
{commits, verifications, final plan state - ExecutePlan/RetryPlan only}
## Agent Log - {action} ({timestamp})
{narrative the agent appended mid-run via `tendril job add-log`}
The compiled prompt is not in this file. Read {stem}.prompt.md for the full firmware + Program.md + references + custom instructions.
Extract:
$TENDRIL_HOME/Promptwares/{promptware} (in a dev checkout, src/promptwares/{promptware})## Agent Log sections{stem}.raw.jsonl is the CLI's --output-format stream-json output. Each line is a JSON object with a type field:
| Type | Contents |
|---|---|
system | System prompt setup |
assistant | Agent response with content[] array (text blocks and tool_use blocks) and usage (token counts) |
tool_result | Result of a tool call |
result | Final result text |
{stem}.eventwire.jsonl is Tendril's own parsed view of that same stream - use it when you want Tendril's interpretation (including PermissionDenialEvent) rather than the provider's raw wire format.
Analysis approach (use targeted reads, never read the whole file if large):
wc -l"tool_use" to find all tool calls"error" or "is_error":true in tool_result lines)input_tokens, output_tokens from assistant messagescache_read_input_tokens vs cache_creation_input_tokens for cache efficiencyerror, failed, exception in tool resultsRead the promptware's source files from the program folder:
| File | Purpose |
|---|---|
Program.md | The agent's instructions - did it follow them? |
Memory/*.md | Accumulated learnings - is anything missing or wrong? |
Tools/* | Custom tools available - were they used appropriately? |
Check:
Based on findings, check relevant Tendril source files:
| File | What It Controls |
|---|---|
src/crates/tendril-core/src/jobs/logger.rs | Where every job artifact lives and how its stem is built |
src/crates/tendril-core/src/jobs/manager.rs | Job lifecycle, dependency checking, completion verification |
src/crates/tendril-core/src/jobs/firmware_values.rs | Firmware template, prompt compilation, and variable injection |
src/crates/tendril-core/src/jobs/recovery.rs | Stuck plan recovery and startup reconciliation |
src/crates/tendril-core/src/agents/runner.rs | Process execution, streaming json parsing, and output formatting |
src/crates/tendril-core/src/agents/providers.rs | Agent provider configuration, tool permissions, and model specs |
src/crates/tendril-core/src/promptware/mod.rs | Promptware compilation and firmware embedding |
src/crates/tendril-core/src/git/worktree.rs | Git worktree creation, validation, and isolation |
Output a structured analysis directly in the conversation (do NOT write files):
## Execution Summary
- **Job:** {jobId} ({promptware}, plan {planId})
- **Status:** {status} (exit code {code})
- **Duration:** {duration}
- **Tokens:** {input + output} (cache hit: {ratio}%)
- **Tool Calls:** {count} ({breakdown by type})
- **Errors:** {count}
## Timeline
Brief narrative of what the agent did step by step.
## Findings
### {Finding Title}
- **Category:** {Instruction Gap | Memory Gap | Tool Gap | Tendril Bug | Token Waste | Error Loop | Permission Issue}
- **Severity:** {Low | Medium | High | Critical}
- **Evidence:** {specific tool calls, line numbers in JSONL, quotes from output}
{Description of the issue.}
**Root Cause:** {why this happened}
**Recommendation:** {concrete fix - which file, what to change}
---
{Repeat for each finding}
## Concrete Fixes (Priority Order)
1. **[Severity] {file path}**: {what to change and why}
2. ...
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/tendril-debug-planDebug a Tendril plan by analyzing its execution logs, session JSONL, verification results, and checking infrastructure. Produces actionable bugfix and improvement recommendations. Use when the user wants to investigate why a plan failed, behaved unexpectedly, or to audit plan execution quality./tendril-extensionBuild, test, package, install, verify, and debug the Ivy Tendril extension across the VS Code family: VS Code, VS Code Insiders, VSCodium, Cursor, Windsurf, Antigravity IDE, Trae, Positron, Kiro and friends. Use when the user asks to install, link, update, build, test, package, or troubleshoot the Ivy Tendril extension in any VS Code-based IDE./tendrillablenpx claudepluginhub ivy-interactive/ivy-tendril-v2 --plugin tendril-skills