debugging-local-task-agent-runs

debugging-local-task-agent-runs is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 201 tokens per session (2,147 once invoked), scanned A, original, MIT.

A troubleshooting guide for local PostHog task runs, where a setup wizard and coding agent run inside a Docker container through a Temporal workflow. Docker packages the run in an isolated container, while Temporal coordinates its steps.

In plain words
What is it for?
Use it to inspect the wizard and agent logs, check local configuration, and investigate why a local task run failed or stopped responding.
Why use it?
The workflow screen hides much of the useful output, so failures, hangs, and silent runs are difficult to diagnose from the timeline alone.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to inspect the wizard and agent logs, check local configuration, and investigate why a local task run failed or stopped responding.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/debugging-local-task-agent-runs
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 PostHog/posthog-foss --skill debugging-local-task-agent-runs
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

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 debugging-local-task-agent-runs

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-local-task-agent-runs/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/debugging-local-task-agent-runs)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/debugging-local-task-agent-runs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-local-task-agent-runs/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 debugging-local-task-agent-runs

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/debugging-local-task-agent-runs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-local-task-agent-runs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 201 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,147 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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: 5 findings, 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 Privilege Escalation · line 111
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Prompt Injection · line 19
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 26
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 27
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 28
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00201 $0.02147
Opus 5.5 $0.00080 $0.00859
Sonnet 5.5 $0.00040 $0.00429
Haiku 4.5 $0.00020 $0.00215

Measured 7d ago against content hash 444c99644ae2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debugging-local-task-agent-runs scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/debugging-local-task-agent-runs/SKILL.md · 118 lines

How it starts

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

Debugging local task/agent runs

A "cloud run" of the Tasks product (e.g. the setup-wizard cloud_run endpoint) executes as the Temporal process-task workflow on the development-task-queue. Locally (SANDBOX_PROVIDER=docker) each run gets a Docker sandbox container in which two things happen in sequence:

  1. run_wizard activity — runs the published @posthog/wizard to integrate PostHog (writes /tmp/posthog-wizard.log).
  2. agent-server — the coding agent that commits the wizard's changes, opens the PR, and keeps it green (writes /tmp/agent-server.log).

The hard part of debugging is that the Temporal UI doesn't show this output — workflow result/failure payloads are binary/encrypted, and the activity captures the wizard/agent output to the run's logs, not to the timeline. This skill is how you actually read it.

Prerequisites: env for local cloud runs

Cloud runs only work locally if all of these are set in .env.local (values shown are the local targets — never commit real secrets). Inside the Docker sandbox, localhost is the container itself, so PostHog URLs use host.docker.internal.

Key Purpose / local value
SANDBOX_PROVIDER "docker" — route sandboxes to local Docker instead of Modal
SANDBOX_MCP_URL "http://host.docker.internal:8787/mcp" — MCP server the agent uses
SANDBOX_AI_GATEWAY_URL "http://host.docker.internal:8080": local Go AI gateway the agent routes model calls through
SANDBOX_AI_GATEWAY_WORKER_URL "http://localhost:8080": the same gateway as the Tasks worker reaches it, for token minting
SANDBOX_AI_GATEWAY_PRODUCTS comma-separated ai_product values to route; must list the run's product or the run fails to start
SANDBOX_AI_GATEWAY_MINT_KEY the dev phs_ key that bin/setup-gateway-e2e mints (DEV_GATEWAY_PHS); the worker mints run tokens
SANDBOX_JWT_PRIVATE_KEY signs the scoped sandbox tokens
GITHUB_APP_CLIENT_ID your local GitHub App (clone + PR)
GITHUB_APP_CLIENT_SECRET ""
GITHUB_APP_SLUG ""
GITHUB_APP_PRIVATE_KEY ""

Read the full file on GitHub · 118 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. 7d ago Changed · +3 lines 444c99644ae2
  2. 3mo ago First seen · 115 lines · 201 tokens per session scan A 36f3b0aca9f3

Subscribe to this mod's changes

debugging-local-task-agent-runs is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 201 tokens to every session and 2,147 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

debugging-local-task-agent-runs compared with skills from other repositories

debugging-local-task-agent-runs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugging-local-task-agent-runsPostHog/posthog-fossSkill736todayMITA201Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill343todayApache-2.0A112Claude Code
performance-verificationvalkor-ai/loomSkill1.6k2d agoApache-2.0A45Claude Code, Codex
loop-engineeringhuytieu/COG-second-brainSkill1.6ktodayMITA63Claude Code