Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pi-inngest

БесплатноБез исполняемых скриптовНе проверен

Use Pi from Inngest safely in joelclaw. Covers event-driven detached Pi CLI runners, direct pi-ai calls inside step.run, service-account OAuth auth…

joelhooksот joelhooks★ 69 звёзд на GitHub

Об этом скилле

Pi + Inngest

Use this when implementing, reviewing, or debugging joelclaw flows where Inngest orchestrates work and Pi provides model execution, tool execution, or harness-native agent behavior.

This skill is joelclaw-specific. It assumes Inngest and Pi are first-class local infrastructure, not incidental dependencies.

When to Use

Load this skill when the task mentions:

  • Pi inside Inngest
  • pi-ai, @earendil-works/pi-ai, or legacy @mariozechner/pi-ai
  • launching pi from an Inngest function
  • step.waitForEvent around agent work
  • detached Pi CLI children
  • link ingest pi/workflow.* events
  • service-account Pi auth
  • OpenAI Codex OAuth/subscription auth from Pi
  • choosing between Pi CLI and direct pi-ai

Also use it when an Inngest function needs LLM context work and the current path is drifting into ad hoc API keys, polling loops, or mystery subprocesses.

Core Rule

Inngest owns durability. Pi owns agent/model execution.

Do not blur that boundary:

  • Inngest functions should emit and wait on events, persist claim-check files, and record terminal outcomes.
  • Pi CLI should be treated as an external actor, not an in-process library.
  • Direct pi-ai is allowed only for bounded model calls where Pi session/harness behavior is not needed.
  • Never smuggle raw model API keys into a Pi subprocess when machine OAuth auth is available.

Decision Guide

Use this When Avoid when
Direct pi-ai inside step.run Short deterministic source-context calls, classification, extraction repair, summary/context generation, no Pi tools/session needed Need Pi tools, skills, extension behavior, session artifacts, long-running agent work, or isolation from the worker process
Detached Pi CLI + event result Need real Pi harness behavior, tool policy, session logs, read/write tools, long-running agent work, or process isolation Tiny model-only calls where pi-ai would be simpler and faster
Synchronous pi -p inside one step.run Tiny smoke/probe only Production long-running work; this loses the event-driven shape and can wedge a step
Polling result files with step.sleep Temporary proof shim only Production orchestration; prefer step.waitForEvent plus a timeout watchdog

Bench receipt from 2026-06-20:

  • Direct pi-ai in step.run: 2/2 ok, ~5.5-6.5s wall, usage surfaced around 368 tokens / ~$0.0077 per call.
  • Detached Pi CLI + result event: 2/2 ok, ~8.0-9.1s wall, wrote pi-session/, pi-output.txt, and pi-result.json.
  • Receipt root: /Users/joel/.local/state/joelclaw-central/tmp/pi-runner-bench/e36f592d-786a-4c15-ba1d-affb5820bbdf.

Takeaway: use direct pi-ai for bounded source-context summarization. Use detached Pi CLI when harness parity, tools, session artifacts, or isolation matter.

Service Account Auth Contract

joelclaw Central services should use the macOS joelclaw service account for durable machine-owned auth where practical.

Current local facts:

  • Central Inngest runs as com.joelclaw.central.inngest under user joelclaw.
  • Joel-user clients/canaries may still run as Joel when they write Joel-side Brain files.
  • Pi auth is file-backed by auth.json in Pi's agent dir.
  • Pi agent dir is resolved by PI_CODING_AGENT_DIR; otherwise Pi uses ~/.pi/agent for the current OS user.
  • The verified model lane for this work is openai-codex/gpt-5.6-sol.

For durable service access:

  1. Prefer a real service-owned Pi agent dir, usually:
/Users/joelclaw/.pi/agent
  1. Set this explicitly in launchd/env for any service that calls Pi or pi-ai:
PI_CODING_AGENT_DIR=/Users/joelclaw/.pi/agent
  1. Keep auth.json owned by joelclaw and mode 0600 or stricter. Never print it.

  2. Verify auth without printing tokens:

sudo -u joelclaw \
  PI_CODING_AGENT_DIR=/Users/joelclaw/.pi/agent \
  node --input-type=module <<'NODE'
import { AuthStorage, ModelRegistry } from '@earendil-works/pi-coding-agent';
import { getModel } from '@earendil-works/pi-ai';

const provider = 'openai-codex';
const model = getModel(provider, 'gpt-5.6-sol');
const registry = ModelRegistry.create(AuthStorage.create());
const auth = await registry.getApiKeyAndHeaders(model);
console.log(JSON.stringify({
  provider,
  status: registry.getProviderAuthStatus(provider),
  ok: auth.ok,
  hasApiKey: Boolean(auth.apiKey),
  hasHeaders: Boolean(auth.headers && Object.keys(auth.headers).length),
  error: auth.error,
}, null, 2));
NODE

Expected safe shape:

{
  "provider": "openai-codex",
  "status": { "configured": true, "source": "stored" },
  "ok": true,
  "hasApiKey": true
}

Do not rely on Joel's personal ~/.pi/agent/auth.json from a Central service unless the service intentionally runs as Joel. Do not copy auth across accounts casually. If a one-time migration is unavoidable, record it as an explicit operator action, preserve 0600 permissions, and verify via the safe status check above.

Bridging Joel auth to th

Полный SKILL.md на GitHub

Установить pi-inngest в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл pi-inngest?

Use Pi from Inngest safely in joelclaw. Covers event-driven detached Pi CLI runners, direct pi-ai calls inside step.run, service-account OAuth auth, claim-check files, and when to choose each pattern.

Как установить скилл pi-inngest?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pi-inngest запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pi-inngest с