Metadata-Version: 2.4
Name: bobp
Version: 0.4.0
Summary: CLI front-end for the Bob Protocol multi-persona AI development framework
Author: Drew
License-Expression: GPL-3.0-only
Project-URL: Homepage, https://github.com/drusifer/bob_protocol
Project-URL: Repository, https://github.com/drusifer/bob_protocol
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Operating System :: OS Independent
Requires-Python: <4,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Jinja2>=3.1
Requires-Dist: typesafe-sdk>=0.7.5
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: build; extra == "dev"
Dynamic: license-file

# bobp

`bobp` is the packaged, installable front-end for the **Bob Protocol** — a
multi-persona AI development framework for Codex, Gemini CLI, Cursor, Copilot,
and other Agent Skills harnesses. It wraps the loose collection of helper scripts
(`chat.py`, `tldr.py`, `make.py`, …) that the protocol relies on
into a single `bobp` command, and ships the persona/skill/template content
needed to scaffold the framework into any project.

> Status: `bobp` is published on PyPI (`pip install bobp` or `uv tool install bobp`).

## Contents

- [Install](#install)
- [What's in here](#whats-in-here)
- [Bob Protocol overview](#bob-protocol-overview)
- [Development](#development)
- [Documentation and guides](#documentation-and-guides)
- [License](#license)

## Install

From PyPI (latest release):

```bash
uv tool install bobp   # or: pip install bobp
bobp --help
```

From source (latest `main`):

```bash
git clone git@github.com:drusifer/bob_protocol.git
cd bob_protocol
uv sync --python 3.15 --locked --extra dev
uv run bobp --help
```

This creates the locked development environment in `.venv/` and runs the
packaged CLI from that environment. To install `bobp` as a uv-managed user
tool, run `uv run bobp make system-install` from the checkout.

### Versions and keeping a project current

`bobp --version` (or `-V`) prints the installed version. `bobp install` and
`bobp update` record that version, and every path they installed, in
`agents/.bobp-inventory`.
When you run any other `bobp` command inside a project whose recorded version
is missing or older than the installed bobp, it prints one line to stderr
with the command to run and then carries on with what you asked:

```text
bobp: this project was set up with bobp 0.1.0; installed is bobp 0.2.0. Run: bobp update /path/to/project
```

bobp never asks a question or changes the project on its own. The line repeats
on every run until you run `bobp update`. Set `BOBP_NO_VERSION_CHECK=1` to
silence it (for example in CI).

### `bobp update` is declarative

Think `terraform apply`: `bobp update <project>` makes everything bobp ships match the installed version, overwriting local edits, and reports `+` added, `~` changed and `-` destroyed (or `No changes.`). `--dry-run` shows the plan. Your memory is never rewritten: `state.md`, `CHAT.md`, chat archives, lessons, memory, `agents/PROJECT.md`, and skills or subagents with names bobp does not ship.

### Harness discovery (skills, subagents, and `AGENTS.md`)

`bobp install` and `bobp update` install all 34 skills (10 role skills and 24 workflow/tool skills) as real directories under `.agents/skills/`, compile 30 harness-native subagent definitions (10 personas × 3 harnesses), and write shared instructions to a real root `AGENTS.md` with **no symlinks**:

- **Harness-native persona subagents (all 10 personas, shared working memory):**
  - **Claude Code:** `.claude/agents/<persona>.md` (native persona discovery + `--agent <persona>`)
  - **OpenAI Codex:** `.codex/agents/<persona>.toml`
  - **Gemini CLI:** `.gemini/agents/<persona>.md` (`kind: local`)
  - Every generated subagent across all three harnesses reads and updates the **exact same** `agents/<persona>/state.md` and `agents/CHAT.md` (zero harness-private memory, inherited model and tools) so you can switch harnesses mid-task seamlessly. `bobp update` always overwrites the 30 persona files; subagents with other names are left alone.
- **Skills (`.agents/skills/`):** discovered automatically by Codex, Gemini CLI, Cursor, and Copilot. Personas are not skills: each subagent says **who** does the work and points at one role skill (`swe`, `devops`, `qa`, `sec`, `lead`, `pm`, `sm`, `doc`, `user`, `prompt`) that says **how**. Claude Code reads the personas from `.claude/agents/` and loads skills from `.agents/skills/` on demand. `bobp update` removes the persona skill folders older versions installed (only the ones it owns).
- **Root instructions (`AGENTS.md`) + `agents/BOB_AGENTS.md`:** `bobp install` / `bobp update` always keep `agents/BOB_AGENTS.md` up to date with Bob Protocol's operating rules, and install the root `AGENTS.md` pointer to it, overwriting whatever is there. Read natively by Codex, Cursor, and Copilot; **Gemini CLI** requires adding `"AGENTS.md"` to `context.fileName` in its own settings.

## What's in here

- **`bobp/tools/`** — the actual implementation: posting to `CHAT.md`,
  rendering the Mermaid chat diagram, conflict-safe merging of timestamped
  Markdown logs (`bobp merge`, plus opt-in Git merge driver), installing real
  skills in `.agents/skills/` and configuring Via MCP/capabilities, the `make`
  output filter, TL;DR tooling, session tracing, and persona evaluation.
- **`bobp/templates/`** — the redistributable Bob Protocol scaffolding
  (persona `PERSONA.md` files, role and shared skills, document templates) that
  `bobp install` copies into a target project. See
  [`BOB_PROTOCOL.md`](bobp/templates/agents/docs/BOB_PROTOCOL.md) for what the
  protocol itself provides once installed.
- **`agents/`** (repo root) — this project dogfoods its own framework: Bob
  Protocol is installed into `bob_protocol` itself, so the personas
  (Neo, Trin, Morpheus, Oracle, …) have real state and chat history here,
  same as any other project that installs `bobp`. This is the *live*
  instance, not the template — don't confuse it with
  `bobp/templates/agents/`, which is the generic, reusable source that
  ships in the package.

## Bob Protocol Overview

Bob Protocol coordinates autonomous, multi-agent software engineering through specialized personas and structured SDLC loops:

- **The Team (10 Personas)**: **Neo** (Senior SWE), **Morpheus** (Tech Lead), **Trin** (QA Guardian), **Oracle** (Knowledge Officer), **Mouse** (Scrum Master), **Cypher** (Product Manager), **Bob** (Prompt Engineer), **Smith** (Expert User & UX Advocate), **Tank** (DevOps Engineer), **Switch** (Security Engineer).
- **Planning Loops (Strategic Scoping)**: `*plan epic` (*Shape Up* / *Inspired*), `*plan story` (*User Story Mapping* / *Agile Estimating*), `*plan sprint` (*The Scrum Guide*).
- **Work Loops (Tactical Execution)**: `*impl` (TDD — *Beck*), `*fix` (Surgical diagnosis & fix — *Agans*), `*refactor` (Two-Hats behavioral parity — *Fowler*), `*spike` (Disposable exploration — *XP Installed*), `*uat` (User acceptance testing — *Crispin & Gregory*), `*deploy` (Continuous delivery & smoke test — *Humble & Farley*).
- **Loop Conductor (`*bloop`)**: Autonomous multi-persona execution engine with strict anti-loop guards (max 2 failures $\rightarrow$ Oracle $\rightarrow$ user escalate) and context budgeting (`*prep-clear`).
- **Templates & Review Rubrics**: Standardized artifact templates and binary quality checks cataloged in [`agents/templates/ARTIFACTS.md`](agents/templates/ARTIFACTS.md) (stories, architecture, domain model, tasks, ADRs, SDLC, `mise.toml`/`Taskfile.yml`/`Makefile`, security reviews, test strategies, UAT plans, lessons, and persona skills).

See **[agents/docs/STARTUP.md](agents/docs/STARTUP.md)** for LLM session startup instructions, **[agents/docs/WALKTHROUGH.md](agents/docs/WALKTHROUGH.md)** for a complete step-by-step tutorial, and **[agents/docs/SHORTHAND_GUIDE.md](agents/docs/SHORTHAND_GUIDE.md)** for the complete trigger reference.

## Development

```bash
uv sync --python 3.15 --locked --extra dev
uv run bobp make test   # captured project test run
uv run bobp make install-hooks    # enable the gitleaks pre-commit hook (once per clone)
uv run bobp make security-scan     # secrets + dependency audits
uv run bobp make release           # tag v<version> and publish via GitHub Release to PyPI
```

See [docs/SDLC.md](docs/SDLC.md) for the full toolchain, gates, and release process.

## Documentation and guides

- [Startup guide](agents/docs/STARTUP.md) — initialize or resume a Bob Protocol session
- [Shorthand guide](agents/docs/SHORTHAND_GUIDE.md) — command and skill trigger reference
- [Walkthrough](agents/docs/WALKTHROUGH.md) — build an example application with the workflow
- [Persona evaluation](agents/docs/PERSONA_EVALUATION.md) — setup, run, and review persona eval suites
- [SDLC](docs/SDLC.md) — toolchain, quality gates, and change lifecycle
- [Protocol overview](bobp/templates/agents/docs/BOB_PROTOCOL.md) — framework scaffolding shipped by `bobp`

## License

GPLv3 — see [LICENSE](LICENSE).
