Metadata-Version: 2.5
Name: hey-my-buddy
Version: 0.72.1
Summary: A local blackboard where a Host buddy delegates micro tasks to Worker buddies in other coding harnesses and accepts every result itself.
Project-URL: Repository, https://github.com/Dsssyc/hey-my-buddy
Project-URL: Documentation, https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/README.md
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development
Requires-Python: <3.13,>=3.12
Requires-Dist: c-two==0.11.0
Requires-Dist: portalocker<4,>=3
Requires-Dist: psutil<8,>=7
Requires-Dist: pydantic<3,>=2
Requires-Dist: pywin32; sys_platform == 'win32'
Requires-Dist: pyyaml<7,>=6
Requires-Dist: zstandard<1,>=0.25
Description-Content-Type: text/markdown

<p align="right"><strong>English</strong> · <a href="https://github.com/Dsssyc/hey-my-buddy/blob/main/README.zh-CN.md">简体中文</a></p>

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Dsssyc/hey-my-buddy/main/docs/assets/banner-dark.svg">
  <img alt="hey-my-buddy" src="https://raw.githubusercontent.com/Dsssyc/hey-my-buddy/main/docs/assets/banner-light.svg" width="100%">
</picture>

<p align="center"><b>Delegate the work. Keep the responsibility.</b></p>

<p align="center">
  The coding agent you work with hands bounded tasks to other coding agents on your machine,<br>
  and checks every result before accepting it.
</p>

<p align="center">
  <a href="#how-it-works">How it works</a> ·
  <a href="#install">Install</a> ·
  <a href="#first-steps">First steps</a> ·
  <a href="#status-and-limits">Status</a> ·
  <a href="#documentation">Docs</a>
</p>

---

## What is hey-my-buddy

hey-my-buddy lets the coding agent you already work with hand parts of its work to other coding agents on your machine, and check each result before it lands.

- **Your agent stays in charge.** The coding agent you work with is the *Host buddy*: it splits the work, hands bounded parts to other agents and decides what is accepted. Any agent that can run the hey-my-buddy command can be the Host.
- **Other agents do the parts.** A *Worker buddy* is a coding agent in the CLI of DeepSeek Harness, ZCode, Codex or Claude Code, with the models and efforts you enabled. hey-my-buddy picks one for each part, or the Host names it.
- **Nothing is accepted unchecked.** In a Git repository each Worker works in its own checkout, and the Host reviews the result and runs the checks before anything reaches your branch. A Worker can also work directly in a folder you name, which suits an answer or a document; what it writes there is not sealed, so the Host checks the folder itself.
- **Work outlives your session.** A closed terminal, a lost connection or a service restart never cancels work; pick it up again by its id.
- **See who is doing what.** A private local console shows each piece of work as a timeline, every buddy's load and your settings.
- **Your harnesses, as you set them up.** Workers run in your own harnesses with your settings, providers, sign-in, skills, MCP servers and hooks; hey-my-buddy changes none of them and never keeps or forwards your credentials. See [accounts and terms](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/terms.md).

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Dsssyc/hey-my-buddy/main/docs/assets/console-timeline-en-dark.png">
  <img alt="Macro task detail in the console" src="https://raw.githubusercontent.com/Dsssyc/hey-my-buddy/main/docs/assets/console-timeline-en-light.png" width="100%">
</picture>

## How it works

1. **Delegate.** The Host writes a *micro task*: what to do, which files it may change and how to check it. It hands the micro task to the *blackboard*, a local service that keeps every step.
2. **Run.** The blackboard picks a Worker: the only one that fits, or a *Router buddy*'s choice among several, unless the Host names one. The Worker works in its own checkout, or directly in the folder the Host names. The Host can ask the running turn a question; when the Worker needs a decision, it stops and asks.
3. **Seal.** When the turn ends, the blackboard seals the checkout as it stood, so the result cannot change afterwards. For work done directly in a folder it fixes the Worker's result instead; the folder itself is not sealed.
4. **Review.** The Host checks the result against the micro task and runs the checks. If it is not right, the Host sends it back for another turn, to the same Worker unless it names another.
5. **Accept.** The Host integrates the sealed result into your repository and accepts it; only accepted work lands there. A result from work done directly in a folder is accepted without integration.

Related micro tasks form a *macro task*. The whole loop, with routing, inquiry, sending back and a *Lead buddy* that delegates on the Host's behalf:

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Dsssyc/hey-my-buddy/main/docs/assets/architecture-en-dark.svg">
  <img alt="The Host buddy delegates a micro task to the blackboard; unless the Host names a buddy, the blackboard takes the only eligible buddy or a Router buddy chooses among the candidates, and when none fits the micro task goes back to the Host; a Worker buddy runs a turn in its own checkout or directly in your folder; the Host can ask a running turn a question through the blackboard; when the turn ends its output is fixed and waits for the Host's acceptance; the Host checks the brief, the Worker's report and the output against one another, then accepts the output or sends it back, by default to the same Worker. A Git project takes in only accepted work. A Lead buddy delegates micro tasks of its own and accepts them." src="https://raw.githubusercontent.com/Dsssyc/hey-my-buddy/main/docs/assets/architecture-en-light.svg" width="100%">
</picture>

The details are in [workflow](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/workflow.md) and [architecture](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/architecture.md).

## Install

It needs [uv](https://docs.astral.sh/uv/), and Git 2.40 or later for work in a Git repository.

```sh
uvx hey-my-buddy@0.72.1 install
```

This installs one agent skill at `~/.agents/skills/hey-my-buddy`, which carries its own launcher, and a private service under `~/.local/share/hey-my-buddy` (`%LOCALAPPDATA%\hey-my-buddy` on Windows). Where Claude Code or Antigravity is installed, it also links the skill where that harness looks for skills: `~/.claude/skills/hey-my-buddy` and `~/.gemini/config/skills/hey-my-buddy`. It never changes your `PATH`, shell or agent settings.

To install from a checkout of this repository instead, build the wheel and install it:

```sh
uv build --wheel --out-dir dist
uvx --from "$PWD/dist/hey_my_buddy-0.72.1-py3-none-any.whl" hey-my-buddy install
```

<details>
<summary>Or let your agent install it</summary>

```text
Install hey-my-buddy on this machine for me.

1. Use the version I name, or the wheel I give you.
2. Run the install outside your sandbox through your own permission mechanism, without sudo.
3. Before it writes anything, list every path it will create or replace.
4. Report the skill version and place, the harness links, the service action and whether a backup was taken.
5. Verify with ~/.agents/skills/hey-my-buddy/scripts/hey-my-buddy health.
6. On LAUNCH_ACCESS_DENIED, allow that exact launcher command and retry. On UPGRADE_NOT_IDLE, report the listed work and wait; never cancel work to force an upgrade.
```

</details>

Upgrading runs the same command with the newer version. An upgrade that changes the contract refuses while work is running and takes a verified backup before it switches. [Operations](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/operations.md#installation) has the details, error codes and recovery.

## First steps

Ask your Host buddy in plain words, for example:

> Use hey-my-buddy to have a buddy check the links in this README and report the broken ones.

The skill tells the Host the rest. To look around yourself:

```sh
~/.agents/skills/hey-my-buddy/scripts/hey-my-buddy health    # routing and capacity
~/.agents/skills/hey-my-buddy/scripts/hey-my-buddy console   # open the private console
```

In the console, enable the buddies you want to work with and set how many may run at once. [Usage](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/usage.md) walks from install to a reviewed result; the [CLI reference](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/cli.md) covers every command.

## Status and limits

- **0.x.** While the version is 0.x the contract can change between middle versions; such an upgrade converts your board in one explicit, backed-up step.
- **Platforms.** macOS, Linux and Windows 11 (x64 and ARM64).
- **Harnesses.** Workers run in the CLI of DeepSeek Harness, ZCode, Codex or Claude Code. What each supports, and how far it is verified on each platform, is in [harnesses](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/harnesses.md).
- **Accounts and terms.** hey-my-buddy works with your own harness accounts and plans. What it does with them, where your task text goes and which terms apply are in [accounts and terms](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/terms.md).

## Documentation

- [Documentation index](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/README.md)
- [Operations](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/operations.md): install, upgrade, storage, error codes and recovery
- [Usage](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/usage.md) and [CLI](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/cli.md)
- [Console](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/console.md) and [harnesses](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/harnesses.md)
- [Architecture](https://github.com/Dsssyc/hey-my-buddy/blob/main/docs/reference/architecture.md) and [decisions](https://github.com/Dsssyc/hey-my-buddy/tree/main/docs/decisions/)

## Development

```sh
npm --prefix apps/console ci
uv run --frozen python -m hey_my_buddy.cli.checks
npm --prefix apps/console test
```

[AGENTS.md](https://github.com/Dsssyc/hey-my-buddy/blob/main/AGENTS.md) covers the repository's invariants, layout and checks. Report problems in [GitHub issues](https://github.com/Dsssyc/hey-my-buddy/issues).

## Acknowledgements

Thanks to the [LINUX DO](https://linux.do/) community for providing an open space for technical discussion and open-source sharing.

## License

[MIT](https://github.com/Dsssyc/hey-my-buddy/blob/main/LICENSE)
