harness
Installation
SKILL.md
Harness
pstack skills are written against a small set of neutral operations. They do not name tools or paths. This skill maps the operations onto the harness you are in right now. Every other pstack skill defers here.
Detect once per session
Run this before the first pstack operation, then keep the answer for the session. Do not re-detect per skill.
- Environment variables first.
COPILOT_CLI=1means GitHub Copilot CLI, adaptercopilot-cli.CLAUDECODE=1means Claude Code.OPENCODE=1orOPENCODE_PIDset means opencode.AI_AGENT=piorPI_CODING_AGENT=truemeans pi.CODEX_SANDBOXset means Codex CLI, a weak signal because it only appears under sandboxing. - Tool fingerprints next.
AskUserQuestionplus anAgenttool means Claude Code.request_user_inputplusupdate_planmeans Codex CLI.ask_userpluswrite_todosmeans Gemini CLI. Atasktool withsubagent_typeplustodowritemeans opencode.AskUserplusTaskOutputmeans Factory Droid.delegateplusloadmeans Goose. A read-onlyagenttool pluscrush_infomeans Crush. Built-in specialists namedReview,Search, orOraclewith no markdown persona support means Amp.AskQuestionplus aTasktool means Cursor. Atasktool plusread_agent,list_agents, andwrite_agentmeans GitHub Copilot CLI, adaptercopilot-cli. - Still unknown after both checks: ask the user once which harness this is, then remember it.
After detection, read references/<harness>.md from this skill and apply it for the rest of the session.