Metadata-Version: 2.5
Name: baudrier
Version: 0.13.0
Summary: Baudrier CLI: install, convert and prove whole agent harnesses (hooks, rules, skills, subagents) for Claude Code and Codex
Project-URL: Homepage, https://baudrier-ai.com
Project-URL: Hub, https://baudrier-ai.com/hub/
License: Baudrier CLI - Proprietary Licence (draft, to be reviewed)
        
        Copyright (c) 2026 Jonathan Mondaut. All rights reserved.
        
        1. Grant. You may install and use this software (the "CLI") solely to access and
           use the Baudrier service.
        
        2. Restrictions. You may not redistribute, sublicense, sell, resell or rent the CLI;
           modify it for the purpose of redistribution; or reverse engineer, decompile or
           attempt to extract the source or workings of the Baudrier service.
        
        3. Ownership. The CLI and the Baudrier service remain the property of the copyright
           holder. No rights are granted except those stated above.
        
        4. No warranty. The CLI is provided "as is", without warranty of any kind, express
           or implied, including merchantability, fitness for a particular purpose and
           non-infringement.
        
        5. Limitation of liability. To the maximum extent permitted by law, the copyright
           holder is not liable for any indirect, incidental or consequential damages, or
           for any loss of data or profits, arising from the use of the CLI. Total
           liability is limited to the amount you paid for the Baudrier service in the
           twelve months before the claim (zero for free beta use).
        
        6. Termination. This licence ends automatically if you breach it.
        
        7. Governing law. This licence is governed by French law. Courts of France have
           jurisdiction, subject to any mandatory consumer protection rules.
License-File: LICENSE
Classifier: Environment :: Console
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: fastmcp<5,>=4.0
Requires-Dist: jsonschema>=4.21
Requires-Dist: pydantic>=2.7
Requires-Dist: pyyaml>=6.0
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == 'dev'
Provides-Extra: verify
Description-Content-Type: text/markdown

# baudrier

The command-line client of [Baudrier AI](https://baudrier-ai.com). A harness is everything around a coding
agent: the hooks that stop a bad command, the permission rules, the skills, the subagents and the MCP servers.
`baudrier` installs a whole harness into a project for Claude Code or Codex, converts one between the two, and
proves that its guards still block.

## Install

```bash
uv tool install baudrier
```

## Harnesses (no account needed)

```bash
baudrier install                                   # the harnesses of the hub (https://baudrier-ai.com/hub/)
baudrier install agentmob --to codex --dry         # look first: licence, what Codex keeps, the hooks it would run
baudrier install agentmob --to codex               # add it to this project, merged with your own setup
baudrier install agentmob --to codex --replace     # or: its hooks in place of yours (yours go to a backup)
baudrier selftest . --runtime codex                # replay the guard cases here

baudrier absorb --own --name my-harness --out ~/my-harness           # lift your own setup into a harness
baudrier convert ~/my-harness --to codex --out ./as-codex --verify   # the same harness for another agent
baudrier hub pack ~/my-harness --out ~/team-hub --verify             # a hub is a folder: keep one for your team
```

Commands write by default; `--dry` shows what would happen and writes nothing. By default `install` merges: the
harness's hooks, rules and MCP servers are added to the settings files you have, and a file of yours with other
content stops it. With `--replace` the harness's hooks take the place of yours and its files win where both
exist; your permission rules, `CLAUDE.md` and `AGENTS.md` always stay, and what gives way is first copied to
`.baudrier/replaced/`. A harness is code that runs on your computer: install lists its hook scripts and, when the
harness comes from a hub, asks before writing (`--yes` answers for scripts and agents). `--verify` and `selftest`
run those scripts. After an install, paste the line it prints into your coding agent: it reads
`.baudrier/harness/<name>/FINISH_SETUP.<agent>.md` and adapts the harness to your project.

## Share yours on the open hub

```bash
baudrier login                                     # sign in with GitHub
baudrier publish ~/my-harness --dry                # the checks the hub makes: licence, secrets, hooks
baudrier publish ~/my-harness --verify             # prove the guards here, then publish as <you>/my-harness
baudrier publish ~/my-harness --private            # or keep it to yourself (--team: your team workspace)
baudrier install alice/shop-guards --to claude     # anyone installs what somebody published
```

A published version never changes: raise `metadata.version` to publish again. A harness needs an open-source
licence, and what grows from a share-alike harness keeps its licence. Hooks that download code, call the network
or reach outside the project are published as "unreviewed": installable by name with a warning, and listed once a
person has read them. What you install from the open hub is its publisher's, not Baudrier's: `install` says who
published it and shows the publisher's own proof, and `selftest` replays the guards on your computer. A harness
installed from the hub remembers it: when you `absorb` the project later, the new harness names the one it grew
from, and you can publish it under your own login.

## Hosted service

Keep one harness current in every repository you open, and get what your agents learn back as pull requests:

```bash
baudrier login                      # sign in with your browser
baudrier use <you>/my-harness       # in any repository
baudrier sync                       # refresh skills, then review local changes for one pull request
```

The hosted commands talk to `https://api.baudrier-ai.com`; pass `--url` only for another server.
Run `baudrier --help` for the menu and `baudrier <command> --help` for details.

## Licence

Proprietary, all rights reserved. See `LICENSE`. Harnesses installed from a hub keep their own licence, which
travels with them.
