Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Shell launchers must keep LF endings, or sh fails on Windows checkouts with core.autocrlf=true.
plugins/zeph/scripts/te text eol=lf
plugins/zeph/scripts/te-hook text eol=lf
plugins/zeph/scripts/*.cmd text eol=crlf
84 changes: 69 additions & 15 deletions .github/README
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ zeph

If you want to go fast, go deep first.

One skill set for Claude Code, Codex and Cursor. A router, pilot, picks a
One skill set for Claude Code and Cursor. A router, pilot, picks a
playbook for your task, and every change gets proven before it's called
done.

Expand All @@ -12,8 +12,8 @@ A few skills you won't find elsewhere:
benny triages a production alert and writes the RCA
failure-map maps every exit of an endpoint, with its status, severity
and log line, before you write it
ui builds or restyles a UI, then reviews it against
interface guidelines
ui builds, cleans up or restyles a UI, then reviews it
against interface guidelines
doc writes RFCs, design docs and runbooks traced to the code
interrogate sends reviewers with different lenses to break a diff

Expand All @@ -26,10 +26,11 @@ Demo: https://github.com/adarshba/zeph/blob/main/docs/demo.gif
What is this?
-------------

pilot reads your task, picks one of twenty-two playbooks (bug fix,
pilot reads your task, picks one of twenty-three playbooks (bug fix,
feature, refactoring, perf, investigation, shipping and more) and runs the
other skills as its steps need them. Skills use neutral terms;
plugins/zeph/docs/harness.md maps each one to the agent you run.
plugins/zeph/skills/pilot/references/harness.md maps each one to Claude
Code and Cursor.


Quick Start
Expand All @@ -40,12 +41,35 @@ Claude Code:
claude plugin marketplace add adarshba/zeph
claude plugin install zeph@zeph

Inside a session, "/plugin marketplace add adarshba/zeph" and
"/plugin install zeph@zeph" do the same.

Codex, Cursor and other agents, skills only:

npx skills add adarshba/zeph

Then pick models with /zeph:setup-zeph and start real work with
/zeph:pilot. Unsure which skill fits? Ask /zeph:help.
A skills-only install copies the skill folders and nothing else. It has
no background hooks, no "te" command line, no pilot-agent or
comment-sicko subagent, no zeph: prefix, no guide and no plugin README,
so the guide links in /help don't resolve there. The harness map covers Claude Code and
Cursor only; Codex and other agents get the skills with no map of their
terms.

Then pick models with /zeph:setup and start real work with
/zeph:pilot. Unsure which skill fits? Ask /zeph:help. Those three are
all you need to type. Say what you want, and what done looks like:

/zeph:pilot the export button downloads an empty file. fix it. done means a failing test now passes.
/zeph:pilot add a --json flag to status. done means the text output is unchanged.
/zeph:pilot why is the nightly job slow? change nothing. done means you name the slow step and its time.
/zeph:pilot check on pr 123. done means ci is green and every comment has a reply.
/zeph:pilot write an rfc for moving sessions to redis. done means it has no open questions.

Every other skill is pilot's toolbox. It picks one up when a step needs
it, so you don't have to learn them. Other agents drop the zeph: prefix.

You need Python 3.10+ for the hooks, gh for the PR playbooks and bun for
the GitHub PR watcher.

Claude Code installs a cached copy. After a skill changes, run
"claude plugin update zeph@zeph" and start a new session.
Expand All @@ -56,19 +80,19 @@ Skills

pilot default entry point for any non-trivial task
help which skill, playbook or principle fits
setup-zeph pick the model and effort for each role
setup pick the model and effort for each role
how, why how a subsystem works; why it was built that way
interrogate reviewers with different lenses try to break a diff
arena, swarm parallel attempts at one thing; parallel workers on slices
failure-map every exit of an endpoint, its status, severity and log line
doc RFCs, design docs and runbooks traced to the code
ui build or restyle a UI, then review it against guidelines
ui build, clean up or restyle a UI, then review it against guidelines
tdd failing test first, then the fix
unslop strip AI tells from writing
benny production alert triage and incident RCA

Twenty-four principle skills back these. plugins/zeph/README.md lists
every skill and playbook.
Twenty-four principles back these. plugins/zeph/README.md lists every
skill.


Configuration
Expand All @@ -79,21 +103,51 @@ Anything that names real systems lives outside the repository, in
conventions without it.

benny.md alert channel, topology and data sources (written by
/zeph:setup-benny)
/zeph:benny setup)
pr.md PR house format, forges and single-commit repositories
docs.md where each kind of doc is published
api.md log store, API spec and status rules for failure-map
deny.txt terms "bun run check" refuses to find in the repository


Background hooks
----------------

On Claude Code only, zeph also runs TokenEconomizer's hooks (MIT,
https://github.com/microsoft/TokenEconomizer). They guard against stuck
loops and propose tool deny rules that you apply yourself. A turn that
looks stuck costs a small model call. Learning repo facts is off by
default. State is in ~/.tokeneconomizer. plugins/zeph/README.md says what
each one does and how to turn it off. Do not also install the standalone
tokeneconomizer plugin.


Layout
------

plugins/zeph/skills/ skills, /zeph:<name>
plugins/zeph/skills/pilot/playbooks/ the playbooks pilot routes to
plugins/zeph/automations/benny/ benny: production alert triage and
incident RCA
plugins/zeph/agents/ subagents: pilot-agent, comment-sicko
plugins/zeph/docs/ the guide
plugins/zeph/hooks/ TokenEconomizer's hooks
plugins/zeph/scripts/ TokenEconomizer's launchers
plugins/zeph/lib/ TokenEconomizer's vendored package
scripts/check.ts the repository check
tests/statechart/ tests for the statechart scripts


Development
-----------

bun install
bun run check manifests, names, frontmatter, links,
harness-neutral prose, deny list
bun run check:full plus the bundled script tests and a live
routing smoke
harness-neutral prose, deny list, the two READMEs
bun run check:full plus the bundled script tests, the TokenEconomizer
hook and a live routing smoke

Every PR passes "bun run check:full" before merge.

While editing, "claude --plugin-dir plugins/zeph" loads the working copy.
CONTRIBUTING.md has the rules for a change.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.DS_Store
.claude/
__pycache__/
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ Run `bun run check:full` before you ask for a merge. While editing, `claude --pl

## Rules

- **Harness-neutral prose.** Skills say what to do, not which harness tool does it. [`docs/harness.md`](plugins/zeph/docs/harness.md) is the one place that maps a step to a harness. The check fails on harness-specific names elsewhere in the plugin.
- **Harness-neutral prose.** Skills say what to do, not which harness tool does it. [`harness.md`](plugins/zeph/skills/pilot/references/harness.md) is the one place that maps a step to a harness. The check fails on harness-specific names elsewhere in the plugin.
- **No employer or personal identifiers.** No company, team, system, channel or person names in the repository. List your own terms in `~/.config/zeph/deny.txt`, and `bun run check` refuses to find them.
- **Two READMEs.** `README.md` and `.github/README` (the one GitHub shows) change together. The check fails when a command, name or install line in `README.md` is missing from the other.
- **Local config stays local.** Anything that names a real system goes in `~/.config/zeph/<name>.md`, and the skill falls back to the repo's own conventions without it. The [`.github/README`](.github/README) lists the files.
- **Third-party notices.** A file adapted from another project keeps its upstream notice and names the upstream commit in its header. Add a row to [`THIRD_PARTY.md`](THIRD_PARTY.md) with the path, upstream, pinned commit, license and notice file. The check fails when any of them goes missing.

Expand Down
60 changes: 53 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,33 @@

[![check](https://github.com/adarshba/zeph/actions/workflows/check.yml/badge.svg)](https://github.com/adarshba/zeph/actions/workflows/check.yml)

One skill set for Claude Code, Codex and Cursor. A router, `/zeph:pilot`, picks a playbook for your task, and every change gets proven before it's called done.
One skill set for Claude Code and Cursor. A router, `/zeph:pilot`, picks a playbook for your task, and every change gets proven before it's called done.

## Start here

After [installing](#install), you need three commands:

| Command | Use it to |
|---|---|
| `/zeph:pilot` | do a task |
| `/zeph:help` | ask what to type |
| `/zeph:setup` | pick your models, once |

Say what you want, and what done looks like:

```text
/zeph:pilot the export button downloads an empty file. fix it. done means a failing test now passes.
/zeph:pilot add a --json flag to status. done means the text output is unchanged.
/zeph:pilot why is the nightly job slow? change nothing. done means you name the slow step and its time.
/zeph:pilot check on pr 123. done means ci is green and every comment has a reply.
/zeph:pilot write an rfc for moving sessions to redis. done means it has no open questions.
```

Every other skill is pilot's toolbox. It picks one up when a step needs it, so you don't have to learn them.

- **You need** Python 3.10+ for the hooks, `gh` for the PR playbooks and `bun` for the GitHub PR watcher.
- **In the background**, on Claude Code only, [hooks](#background-hooks) watch for stuck loops, which can cost a small model call, and propose tool deny rules.
- **Other agents** drop the `zeph:` prefix.

![zeph's pilot fixing a failing test](docs/demo.gif)

Expand All @@ -12,11 +38,11 @@ A few skills you won't find elsewhere:

- [`benny`](plugins/zeph/automations/benny/README.md) triages a production alert and writes the RCA.
- [`failure-map`](plugins/zeph/skills/failure-map/SKILL.md) maps every exit of an endpoint, with its status, severity and log line, before you write it.
- [`ui`](plugins/zeph/skills/ui/SKILL.md) builds or restyles a UI, then reviews it against interface guidelines.
- [`ui`](plugins/zeph/skills/ui/SKILL.md) builds, cleans up or restyles a UI, then reviews it against interface guidelines.
- [`doc`](plugins/zeph/skills/doc/SKILL.md) writes RFCs, design docs and runbooks with every claim traced to the code.
- [`interrogate`](plugins/zeph/skills/interrogate/SKILL.md) sends reviewers with different lenses to break a diff.

Skills use neutral terms, and [`docs/harness.md`](plugins/zeph/docs/harness.md) maps them to each harness.
Skills use neutral terms, and [`harness.md`](plugins/zeph/skills/pilot/references/harness.md) maps them to Claude Code and Cursor.

## Install

Expand All @@ -35,7 +61,9 @@ Codex, Cursor and other agents, skills only:
npx skills add adarshba/zeph
```

Then run `/zeph:setup-zeph` to pick models, and start real work with `/zeph:pilot`. Unsure which skill fits? Ask `/zeph:help`. The [plugin README](plugins/zeph/README.md) lists every skill.
A skills-only install copies the skill folders and nothing else. It has no background hooks, no `te` command line, no `pilot-agent` or `comment-sicko` subagent, no `zeph:` prefix, no guide and no plugin README, so the guide links in `/help` don't resolve there. The harness map covers Claude Code and Cursor only; Codex and other agents get the skills with no map of their terms.

The [plugin README](plugins/zeph/README.md) lists every skill.

Claude Code installs a cached copy. After you change a skill, run `claude plugin update zeph@zeph` and start a new session. While editing, `claude --plugin-dir plugins/zeph` loads the working copy directly.

Expand All @@ -47,15 +75,33 @@ Claude Code installs a cached copy. After you change a skill, run `claude plugin
| `plugins/zeph/skills/pilot/playbooks/` | The playbooks `/zeph:pilot` routes to |
| `plugins/zeph/automations/benny/` | benny: production alert triage and incident RCA |
| `plugins/zeph/agents/` | Subagents: `pilot-agent`, `comment-sicko` |
| `plugins/zeph/docs/` | The guide and the harness map |
| `plugins/zeph/docs/` | The guide |
| `plugins/zeph/hooks/`, `plugins/zeph/scripts/`, `plugins/zeph/lib/` | TokenEconomizer's hooks, launchers and vendored package |
| `scripts/check.ts` | The repository check |
| `tests/statechart/` | Tests for the statechart scripts |

## Configuration

Anything that names real systems lives outside the repository, in `~/.config/zeph/`. Each file is optional; skills fall back to the repo's own conventions without it.

| File | Holds |
|---|---|
| `benny.md` | Alert channel, topology and data sources, written by `/zeph:benny setup` |
| `pr.md` | PR house format, forges and single-commit repositories |
| `docs.md` | Where each kind of doc is published |
| `api.md` | Log store, API spec and status rules for `failure-map` |
| `deny.txt` | Terms `bun run check` refuses to find in the repository |

## Background hooks

On Claude Code, zeph also runs [TokenEconomizer](https://github.com/microsoft/TokenEconomizer)'s hooks (MIT). They guard against stuck loops and propose tool deny rules that you apply yourself. A turn that looks stuck costs a small model call. Learning repo facts is off by default. State is in `~/.tokeneconomizer`. What each one does, and how to turn it off, is in the [plugin README](plugins/zeph/README.md#background-hooks-tokeneconomizer). Do not also install the standalone tokeneconomizer plugin.

## Check

```sh
bun install
bun run check # manifests, names, frontmatter, links, harness-neutral prose
bun run check:full # plus the bundled script tests and a live routing smoke
bun run check # manifests, names, frontmatter, links, harness-neutral prose, deny list, the two READMEs
bun run check:full # plus the bundled script tests, the TokenEconomizer hook and a live routing smoke
```

Every PR passes `bun run check:full` before merge. [CONTRIBUTING.md](CONTRIBUTING.md) has the rules.
Expand Down
4 changes: 4 additions & 0 deletions THIRD_PARTY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ zeph is MIT. These files adapt work published under other terms. Each keeps its
|---|---|---|---|---|
| `plugins/zeph/skills/ui/SKILL.md` | [anthropics/skills frontend-design](https://github.com/anthropics/skills/tree/41bbe19d1a1a7eaab5e7bb9050a417e5c6cffc8f/skills/frontend-design) | `41bbe19d1a1a7eaab5e7bb9050a417e5c6cffc8f` | Apache-2.0 | `plugins/zeph/skills/ui/LICENSE-frontend-design.txt` |
| `plugins/zeph/skills/ui/references/guidelines.md` | [vercel-labs/web-interface-guidelines](https://github.com/vercel-labs/web-interface-guidelines/tree/434b7f91364665f2f733b310ec54809bf8f37937) | `434b7f91364665f2f733b310ec54809bf8f37937` | MIT, Copyright (c) 2025 Vercel Labs | `plugins/zeph/skills/ui/references/guidelines.md` |
| `plugins/zeph/skills/ui/references/slop.md` | [heydamir/unslop](https://github.com/heydamir/unslop/tree/8091f22aaf303843caf45528541f746b4767e3de/skills/unslop/references/signs.md) | `8091f22aaf303843caf45528541f746b4767e3de` | CC BY 4.0, Damir Sokolovsky | `plugins/zeph/skills/ui/LICENSE-unslop.txt` |
| `plugins/zeph/lib/UPSTREAM.md` | [microsoft/TokenEconomizer](https://github.com/microsoft/TokenEconomizer/tree/7993da53b42288263e2837c96707a2fc30f90066) (`lib/tokeneconomizer/`, `scripts/`, `hooks/`) | `7993da53b42288263e2837c96707a2fc30f90066` | MIT, Copyright (c) 2026 Microsoft | `plugins/zeph/lib/LICENSE-tokeneconomizer.txt` |
| `plugins/zeph/skills/pilot/principles/laziness-protocol.md` | [DietrichGebert/ponytail](https://github.com/DietrichGebert/ponytail/tree/ebd8654c2c627f721eb8f9c0d1bd4090a29f9e10/skills) (`ponytail`) | `ebd8654c2c627f721eb8f9c0d1bd4090a29f9e10` | MIT, Copyright (c) 2026 DietrichGebert | `plugins/zeph/skills/pilot/principles/LICENSE-ponytail.txt` |
| `plugins/zeph/skills/unslop/SKILL.md` | [DietrichGebert/ponytail](https://github.com/DietrichGebert/ponytail/tree/ebd8654c2c627f721eb8f9c0d1bd4090a29f9e10/skills) (`ponytail`, `ponytail-review`) | `ebd8654c2c627f721eb8f9c0d1bd4090a29f9e10` | MIT, Copyright (c) 2026 DietrichGebert | `plugins/zeph/skills/unslop/LICENSE-ponytail.txt` |
2 changes: 1 addition & 1 deletion plugins/zeph/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "zeph",
"version": "0.16.0",
"version": "0.17.0",
"description": "if you want to go fast, go deep first. zeph helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.",
"author": {
"name": "Adarsh B A",
Expand Down
2 changes: 1 addition & 1 deletion plugins/zeph/.cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeph",
"displayName": "zeph",
"version": "0.16.0",
"version": "0.17.0",
"description": "if you want to go fast, go deep first. zeph helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.",
"author": {
"name": "Adarsh B A"
Expand Down
Loading