Skip to content
Agent Orchestration
Skill

/tendril-debug-job

Analyze a Tendril job's execution artifacts to identify issues and improvement opportunities in Tendril, promptware instructions, memory, or tools.

From plugin
tendril-skills
2036 skills

Claude Code

$ npx -y skills add Ivy-Interactive/Ivy-Tendril --skill tendril-debug-job --agent claude-code

SKILL.md

tendril-debug-job.SKILL.md
name: tendril-debug-job
description: Analyze a Tendril job's execution artifacts to identify issues and improvement opportunities in Tendril, promptware instructions, memory, or tools.

tendril-debug-job

Analyze a job's execution artifacts to identify issues and improvement opportunities in Tendril, the promptware instructions, memory, or tools.

Invocation

/tendril-debug-job <job-id> <comment>
  • **job-id** - Five-digit job id (e.g., `00458`). A full path to a job log also works.
  • **comment** - Free-text describing what to look for or what went wrong

Job Artifacts

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.

What This Skill Does

1. Reads the Job Log, the Job Prompt, and the Job Raw Log 2. Reconstructs the agent's execution timeline: tool calls, decisions, errors, retries 3. Cross-references with the promptware's Program.md, Memory, and Tools 4. Identifies concrete improvements to Tendril code, promptware instructions, or agent behavior 5. Produces actionable recommendations

Execution Steps

Phase 1 - Read the Job Log and Job Prompt

The Job Log (`{stem}.md`, produced by `JobLogWriter`) 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:

  • The promptware type and plan id (from the stem)
  • The program folder: `$TENDRIL_HOME/Promptwares/{promptware}` (in a dev checkout, `src/Ivy.Tendril/Promptwares/{promptware}`)
  • Status, exit code, duration, cost, tokens
  • The agent's own narrative from the `## Agent Log` sections
  • The final output

Phase 2 - Analyze the Raw JSONL

`{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):**

1. Count total lines: `wc -l` 2. Extract tool call patterns:

  • Grep for `"tool_use"` to find all tool calls
  • Count each tool type (Read, Write, Edit, Bash, Grep, Glob)
  • Identify repeated reads of the same file (redundant work)
  • Find failed tool calls (look for `"error"` or `"is_error":true` in tool_result lines)

3. Token usage:

  • Sum `input_tokens`, `output_tokens` from assistant messages
  • Check `cache_read_input_tokens` vs `cache_creation_input_tokens` for cache efficiency

4. Error patterns:

  • Grep for `error`, `failed`, `exception` in tool results
  • Count build-fix-build cycles (consecutive Bash calls with compilation errors)
  • Identify thrashing (read-edit-read-edit on same file)
  • `src/scripts/AnalyzeFailed.ps1` dumps every failed shell command across all raw logs

5. Timeline:

  • First and last timestamps for wall-clock duration
  • Long gaps between messages (rate limiting, slow tools)

Phase 3 - Cross-Reference with Promptware Source

Read 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:

  • Did the agent follow Program.md instructions in order?
  • Did it skip steps or go off-script?
  • Are there Memory entries that should have prevented a mistake?
  • Are there Tools that should have been used but weren't?
  • Did the compiled prompt provide sufficient context?

Phase 4 - Cross-Reference with Tendril Source

Based on findings, check relevant Tendril source files:

| File | What It Controls | |------|-----------------| | `Helpers/JobLogPaths.cs` | Where every job artifact lives and how its stem is built | | `Services/FirmwareCompiler.cs` | Firmware template, prompt compilation | | `Services/Agents/AgentProviderFactory.cs` | Tool permissions, model/effort resolution | | `Services/Jobs/JobLauncher.cs` | Job launch, firmware values, environment setup | | `Services/Jobs/JobCompletionHandler.cs` | Post-completion

Read more
@ivy-interactive
Ships withtendril-skills

AI agents can now write 99% of the code. This changes what it means to be a developer. Our role shifts to knowing "what good looks like". To do that, we need completely new developer tools. Tendril is what replaces your IDE in an agentic era.

Stars on GitHub

Momentum

stars in total
203
Star history of Ivy-Interactive/Ivy-Tendril on GitHub, a chart by star-history.com

Other skills on tendril-skills.

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw6d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca4d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip5d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about tendril-debug-job.

Which coding agents can use tendril-debug-job?
tendril-debug-job installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.