PHEWSH CLI

Continuity Layer

Portable project context across compatible AI tools.

One .intent/ folder. Define success once, work in any native tool, verify what happened.

"One project. Many AI tools. Visible handoffs."

$ curl -fsSL phewsh.com/install.sh | sh Copy

Node-aware, nvm-aware, never sudo. No curl? Fallback: npm install -g phewsh

$… | sh && phewsh shim on && phewsh ambient onCopy
$… && phewsh pack install allCopy

Fuller setups: front door on supported AI tools (shim + ambient) · plus the official vendored packs. All reversible.

Local-first & MIT. Read the source: github.com/cleverIdeaz/phewsh-cli — what it reads, writes, and sends is documented in SECURITY.md. Something off? phewsh feedback files it publicly.

Then phewsh pack — one place to discover and adopt the best of what the community is building. Browse the catalog ↓

1

Install

$curl -fsSL phewsh.com/install.sh | sh Copy

Global CLI. Node.js 18+ required.

2

Ground

$phewsh clarify Copy

A guided walk through the Intent Compass — your answers become .intent/, project truth supported tools read through native adapters. In a hurry? phewsh init is the two-question version.

3

Sync

$phewsh watch Copy

Syncs one canonical core into CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules, and cloud.

Works with
Claude Code
Cursor
Hermes Agent
Codex CLI
OpenClaw

No API key required — phewsh ai runs through the agent CLIs you already have, on their own logins (Claude subscription, ChatGPT plan, Google account).

Packs

Install from one catalog.
Keep the truth upstream.

Packs are the installation interface: managed additions are previewed and reversible; linked projects remain with their creators. Metadata, provenance, and trust state come from the same catalog as the public Atlas.

Open the canonical Skills Atlas →

Boat to Shore skill-copy

Move one repository from unfinished to verified and shippable, one bounded slice and one honest handoff at a time.

$mkdir -p ~/.claude/skills/boat-to-shore && curl -fsSL https://raw.githubusercontent.com/cleverIdeaz/phewsh-cli/main/skills/boat-to-shore/SKILL.md -o ~/.claude/skills/boat-to-shore/SKILL.md Copy

Phewsh Original · Phewsh tested

Portfolio Boat Loop skill-copy

Choose which repository receives the next execution window without losing portfolio-level state.

$mkdir -p ~/.claude/skills/portfolio-boat-loop && curl -fsSL https://raw.githubusercontent.com/cleverIdeaz/phewsh-cli/main/skills/portfolio-boat-loop/SKILL.md -o ~/.claude/skills/portfolio-boat-loop/SKILL.md Copy

Phewsh Original · Phewsh tested

Karpathy-style Coding Guidelines managed-block

Add concise think-first, simplicity, surgical-change, and goal-driven coding guidance to project agent files.

$phewsh pack install karpathy-style Copy

Adapted from · Phewsh tested

Model Routing managed-block

Plan high, execute wide, and judge high by routing work according to intelligence, taste, cost, and effort.

$phewsh pack install model-routing Copy

Phewsh Synthesis · Phewsh tested

Governance Audits managed-block

Audit whether an AI-assisted project remains goal-oriented, evidence-backed, governable, and transferable.

$phewsh pack install governance-audits Copy

Inspired by · Phewsh tested

Loopy / Loop Library upstream

Composable agent loops with explicit checks and stopping conditions.

$phewsh pack install loop-library Copy

Linked upstream · Unreviewed

Skills for Real Engineers upstream

Composable engineering skills for requirements, TDD, diagnosis, research, architecture, review, and handoffs.

$phewsh pack install matt-skills Copy

Linked upstream · Unreviewed

GSD upstream

A complete spec-driven planning, execution, research, debugging, and verification workflow.

$phewsh pack install gsd Copy

Linked upstream · Unreviewed

gstack upstream

An opinionated collection of CEO, design, engineering, QA, review, browser, and shipping workflows.

$phewsh pack install gstack Copy

Linked upstream · Unreviewed

DeerFlow upstream

An agent harness with subagents, memory, sandboxes, and skills.

$phewsh pack install deer-flow Copy

Linked upstream · Unreviewed

Hermes Agent upstream

A separate agent harness mapped as a compatibility candidate.

$phewsh pack install hermes-agent Copy

Linked upstream · Unreviewed

Anthropic Cybersecurity Skills upstream

A large security-focused community skill collection that requires deliberate scope review.

$phewsh pack install cybersecurity-skills Copy

Linked upstream · Unreviewed

SkillSpector upstream

A security scanner for AI-agent skills; a scan is evidence, not a guarantee.

$phewsh pack install skillspector Copy

Linked upstream · Unreviewed

Codebase Memory MCP upstream

A persistent code-intelligence MCP server for repository memory and lookup.

$phewsh pack install codebase-memory-mcp Copy

Linked upstream · Unreviewed

Unlimited OCR upstream

A local or GPU OCR candidate for image and PDF workflows.

$phewsh pack install unlimited-ocr Copy

Linked upstream · Unreviewed

Palmier Pro upstream

An open-source macOS video editor with an MCP surface.

$phewsh pack install palmier-pro Copy

Linked upstream · Unreviewed

OpenMontage upstream

An agentic video-production system with pipelines, tools, and skills.

$phewsh pack install openmontage Copy

Linked upstream · Unreviewed

Hyperframes upstream

HTML-to-video rendering for agent-produced demos and media.

$phewsh pack install hyperframes Copy

Linked upstream · Unreviewed

Voicebox upstream

An open-source AI voice studio for audio workflows.

$phewsh pack install voicebox Copy

Linked upstream · Unreviewed

How it works

Is phewsh a wrapper? No.
It's the layer above your tools.

In plain terms: you write down what you're building once, and native adapters let supported AI tools you already use — Claude Code, Codex, Cursor, Gemini — read the same project-owned record. You can switch tools without changing the source of truth. Their capabilities and transcripts remain separate, and each captured Phewsh handoff says what carried — and what did not.

Technically: a local project-truth router and execution bridge. It grounds the harnesses you already have before work starts, routes intent into each tool's native files, exposes an opt-in local worker bridge for the web and Ion, and records & verifies outcomes after. No model inside, no proxy in the default path.

1 · Capture

.intent/ is plain markdown + JSON, committed with your code. Your goal, constraints, and the decisions you've made. Not locked to phewsh — any tool can read it.

2 · Sequence

phewsh compiles one canonical core into each tool's native file — shared truth inside a managed block, tool-specific notes preserved outside it.

3 · Work native

Accepted success criteria travel with the verified brief into your installed tool, using its own login and native interface.

4 · Verify & reconcile

After exit, phewsh checks repository evidence, reports pass/fail/unknown/human verdicts, and updates shared intent only after your approval.

What sets it apart from every other CLI harness

Claude Code, Codex, Aider, Cursor, Goose — they're all execution engines. Each owns its own session, permissions, interface, and capabilities. They're routable choices at the coordination layer, even though their capabilities differ, and none can transfer a private transcript into the others.

phewsh is the one thing that isn't an engine. It keeps no model of its own, holds no capability list, and never sees your subscription credentials. It passes your prompt straight through to the real tool — so new native capabilities remain available without Phewsh maintaining a duplicate model or capability catalog.

The result: one project-owned truth across supported adapters, a record of what you decided and kept, and native context files those tools can read after adapter setup even when the Phewsh front door is closed. That cross-tool record is the moat — not the routing. Swap the engine without rebuilding the car.

Go deeper
No API key needed — your subscriptions work

phewsh is not another agent. It's the layer that uses the ones you already have. If Claude Code, Codex CLI, Gemini CLI, Cursor Agent, or OpenCode is installed, phewsh executes through it on its own login — your Claude subscription, your ChatGPT plan, your Google account. No API credits burned.

phewsh ai run "…"Auto-detects an installed agent CLI when no key is set
phewsh ai run -p codex "…"Pin a specific harness (claude-code, codex, gemini, cursor, opencode)
phewsh ai providersSee what's installed and what's configured

Prefer raw APIs? OpenRouter, Anthropic, Groq, Ollama and the PHEWSH gateway (pooled credits, budget-gated) all work too via phewsh login --set-key.

One package, one system

phewsh — everything. Intent authoring, sync, the bridges, receipts, dispatch — and the MCP server, bundled. phewsh mcp setup wires it into Claude Code, Cursor, or any MCP client via phewsh mcp serve --stdio. An interactive agent session gets your project's briefing, task queue, and enforcement gate — and shares state with the bridges, so everything lands in the same receipts. No second install.

Rule of thumb: phewsh serve dispatches tasks to your agents from the web. phewsh mcp setup lets agents pull tasks from PHEWSH mid-session. See it live at /mcp.

The Ecosystem

PHEWSH sits above supported AI tools as the continuity layer.

ChatGPT / ClaudeReasoning models & conversational interfaces
Claude Code / HermesExecution agents that actually perform work
HonchoPersistent memory + contextual continuity
MCPStandard protocol for connecting tools & data
PHEWSHCross-system continuity coordinating all of it

Or simpler: Models think. Agents act. Memory remembers. MCP connects. PHEWSH keeps everything continuous.

Why continuity matters

The AI ecosystem is fragmenting hard. Different models excel at different things. APIs change. Pricing shifts. Providers disappear. Context gets trapped inside silos.

Right now people repeatedly re-upload context, re-explain projects, rebuild prompts, migrate workflows manually, and lose continuity between devices, tools, and models.

PHEWSH's value: your workflow survives even if your tools change. Use whatever AI is best today without losing continuity tomorrow.

"Swap the engine without rebuilding the car."

All commands

Everything works as phewsh <cmd> from terminal or /<cmd> inside a session. The whole idea is four plain words — Project · Next · Work · Record — and they work even with no AI in the loop.

phewshOpen session — create, plan, work with AI
statusAll four words at a glance — Project · Next · Work · Record
nextNEXT — queue work and define accepted success criteria
briefVerified project state + the accepted work contract for any harness
workWORK — native handoff, evidence-backed postflight, and current verdicts
wrap / reconcileObserve evidence, then approve the exact shared-record update
rememberRECORD — jot a decision into portable .intent/ truth
clarifyTurn a messy idea into .intent/ artifacts
intentCreate, view, evolve .intent/ (--init, --status, --evolve)
gateSet constraints: budget, time, skill, urgency
aiOne-shot prompt with .intent/ context
watchWhile running: refresh native files; signed-in cloud push unless --no-push
contextExport .intent/ (--claude, --copy, --file)
push / pullManual sync to/from phewsh.com/intent
serveSame-machine Ion worker — human-initiated claims only
mcpOptional bounded MCP adapter — no autonomous execution authority
receiptsLocal evidence trail — routes, changes, verdicts, and explicit losses
updateUpdate phewsh to the latest version
loginIdentity + API key + cloud sync
linkLink local .intent/ to cloud project
The Decision Gate

Part of Project: record constraints for supported tool briefs — and decide whether to build before you build.

phewsh > /gate
  Budget?     $50
  Time?       15 hrs/week
  Skill?      expert
  Urgency?    high

When you ask "what should I do next?", the answer respects what you can actually spend. No more AI suggesting $500 solutions to $50 problems.

MCP Server for AI agents

Configured MCP clients can read bounded project context and tasks, then report results. MCP is an optional adapter, not project truth or permission for autonomous execution.

$ phewsh mcp setup    # add to Claude Code config

Agent tools: phewsh_start, phewsh_next_task, phewsh_complete_task, phewsh_flag_blocker, phewsh_get_context

Security & privacy — what we verified

A maintained, source-backed self-assessment — not an independent audit. Read the threat model and release checklist. npm provenance is not live yet.

Native tools keep their own trust boundary. When phewsh executes through Claude Code, Codex, or another installed tool, that tool uses its own login and data policy. phewsh does not read those credentials or receive the native transcript. Provider, cloud, and browse features still send the data their selected destination requires.

API keys are stored owner-only. A bring-your-own key lives in ~/.phewsh/config.json written at filesystem mode 0600 (only your user can read it), in a 0700 directory. A key you set is never written to command history. BYOK requests go directly to the provider — not through phewsh.

The local bridge is loopback-only by default, not authenticated. phewsh serve binds to 127.0.0.1 / ::1 and applies a browser origin allowlist. Another process on your machine may still call it; loopback is not authentication. Never expose the optional unauthenticated MCP HTTP host on an untrusted network.

Telemetry is counts, never content. Sustainability tracking sends the model name, token counts, and an energy estimate — never your prompts or the responses. There is no hidden content collection.

Ambient hooks do not read native transcripts. They read selected project-owned .intent/ files and Phewsh's local decision record to build a brief, then leave metadata breadcrumbs. Treat those project records as potentially sensitive.

No lock-in. .intent/ is plain markdown/JSON in your repo. Delete phewsh and it's all still there, readable by any tool.

Found something? Responsible disclosure: hello@phewsh.com.

Where to go next

Intent app Set your project intent → Create .intent/ artifacts in the browser. Sync to your project. Gateway API Enforce the gate budget → One header makes your budget a hard wall at the inference layer. Demo See it in 2 minutes → Watch the gate fire a real 402 and context survive the switch.
Copied to clipboard