pi-ask
Hand a task to a cheap DeepSeek pi worker and talk it over across several turns, for research, a PR review or a second opinion. Use when Greg asks to delegate…
от GregHilston★ 15 звёзд на GitHub
Установить pi-ask в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
pi-ask
One command, already on PATH. Run it in your shell (the terminal tool in
Hermes, Bash in Claude Code, bash in pi) exactly as shown: no python3 in front
and no directory.
pi-ask.py --session NAME --dir /abs/dir "task" # first turn
pi-ask.py --session NAME "follow-up" # same NAME: same conversation and dir
pi-ask.py --session NAME --dir /abs/dir @/abs/prompt.md # a long prompt, from a file
pi-ask.py --session NAME --max-cost 1.00 "big task" # raise the spend cap (default $0.50)
Don't call pi -p yourself. With a stdin left open pi hangs before its first
model call and prints nothing, and in plain text mode a timeout loses whatever it
did; pi-ask.py handles both.
- Name each task, such as
review-pr-42. Ask again with the same name to follow up: the worker keeps its context and its warm cache, so a follow-up costs a fraction of a cent. Push back on its answers this way. - The first turn fixes the dir. A follow-up runs there without
--dir, and a different--diris refused (exit 2): pi keys sessions by directory, so another one would start a new conversation. Use a new name for a new dir. - In Claude Code, run it with
run_in_background: true. It prints a start line, any alert lines (✗,!,⚠), then the answer, its cost and the follow-up command. The step-by-step narration goes to~/.cache/pi-ask/NAME.log; read it only if the answer puzzles you. You are notified when it exits; read the output then. Don't poll, and don't wrap it intimeout. - Write a long prompt to a file in one call, then pass
@filein the next. Put--before a prompt that starts with-. - Exit codes: 0 answered; 1 the turn failed (the error prints after the
answer); 2 it could not start: bad arguments, a prompt over the OS argument
limit, the session's dir gone, pi not on
PATH, or started from inside a pi worker; 3 silent for--idleseconds (default 300) and killed; 4 stopped past--max-cost(default $0.50) or--max-turns(default 100); 5 that session is already running, so wait for it; 75 peak hours (below). 129, 130 and 143 mean it was interrupted. After 3 or 4, ask again with the same name to carry on. Stop it with Ctrl-C or a plainkill, neverkill -9: that leaves pi running on its own with no cost cap. - Peak refusal: exit 75 means wait and retry. At DeepSeek's peak (01-04 and
06-10 UTC, Mon-Fri) every model but
local-*andcloud-lunais refused, on stderr, with the off-peak start time. Sleep until then and rerun. Only Greg adds--allow-peak; never add it yourself. - It runs on the gateway's
cloudmodel: OpenCode Go, then GPT-5.6 Luna on ChatGPT Plus, then DeepSeek.--model cloud-go,cloud-lunaorcloud-deepseekruns only that one, failing when it refuses. The answer header gives the cost at DeepSeek's prices, which--max-costuses; a turn Luna answered costs $0. - What the worker can touch. It reads anything under
~/Git; copy in anything else first. Itsedittool is refused outside--dir, but inside it can change and discard files (git checkout -- .,sed -i), and shell commands are not path-checked anywhere. It can't commit, push, pull or delete recursively. Point--dirat a clean checkout or worktree, never at work in progress. Toolbox scripts such asreddit-search.pyare on itsPATH;pi-ask.pyitself refuses to run there. - "No project session found with id …" on a follow-up is a problem: pi lost the conversation and started afresh. Say so rather than trusting the answer's memory of earlier turns. pi-ask hides it on a first turn, where it is normal.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pi-ask?
Hand a task to a cheap DeepSeek pi worker and talk it over across several turns, for research, a PR review or a second opinion. Use when Greg asks to delegate to pi or DeepSeek, or for bulk reading not worth Claude tokens.
Как установить скилл pi-ask?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pi-ask запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…