@zetaloop/chappie 0.4.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "chappie",
3
+ "description": "Connect ChatGPT and local agents across devices",
4
+ "mcpServers": {
5
+ "chappie": {
6
+ "command": "node",
7
+ "args": ["dist/cli.js", "codex"],
8
+ "env_vars": ["CODEX_HOME"],
9
+ "cwd": "."
10
+ }
11
+ },
12
+ "version": "1.0.0"
13
+ }
package/README.md CHANGED
@@ -1,62 +1,53 @@
1
1
  # Chappie
2
2
 
3
- Use ChatGPT to work through [Pi](https://github.com/earendil-works/pi): edit local files, run commands, call Pi extensions, exchange files and images, and move between sessions on one or more devices.
3
+ Use ChatGPT to work through Pi, Oh My Pi, OpenCode, or Codex: edit projects, run commands, and exchange files and images. Agent sessions can also work with each other, on the same computer or across devices.
4
4
 
5
5
  ## Setup
6
6
 
7
- Install the Pi package:
7
+ Install Chappie in each participating agent:
8
+
9
+ | Agent | Install |
10
+ | ------------------------------------------------- | ------------------------------------------------ |
11
+ | [Pi](https://github.com/earendil-works/pi) | `pi install npm:@zetaloop/chappie` |
12
+ | [Oh My Pi](https://github.com/can1357/oh-my-pi) | `omp plugin install @zetaloop/chappie` |
13
+ | [OpenCode](https://github.com/anomalyco/opencode) | `opencode plugin add @zetaloop/chappie` |
14
+ | [Codex](https://github.com/openai/codex) | [Plugin and provider setup](docs/setup.md#codex) |
15
+
16
+ The broker connects these sessions to ChatGPT and to each other. Install it on one device:
8
17
 
9
18
  ```sh
10
- pi install npm:@zetaloop/chappie
19
+ pnpm add -g @zetaloop/chappie
11
20
  ```
12
21
 
13
- Run Chappie as the MCP server managed by [otunnel](https://github.com/zetaloop/otunnel):
22
+ ## With ChatGPT
23
+
24
+ Run the broker through [otunnel](https://github.com/zetaloop/otunnel) with this MCP configuration:
14
25
 
15
26
  ```yaml
16
27
  mcp:
17
28
  commands:
18
29
  - channel: main
19
- command: pi --chappie
20
- ```
21
-
22
- Add the tunnel as a developer-mode app in ChatGPT, then start Pi in a project:
23
-
24
- ```sh
25
- pi --provider chappie --model chatgpt
30
+ command: chappie
26
31
  ```
27
32
 
28
- Call `init` from ChatGPT to connect the conversation to Pi. A conversation can resume an existing task with its Pi session ID, while `sessions` can find connected sessions by device, directory, or name.
29
-
30
- ## Usage
33
+ Add the tunnel as a developer-mode app in ChatGPT. Open a project in the agent with its Chappie model selected, then tell ChatGPT which project or session to use and what to do:
31
34
 
32
- Chappie exposes common coding tools directly and every active Pi tool through `tools` and `call`. `chat` sends an assistant message to Pi, Pi input accompanies later tool results, and `transfer` moves files in either direction. `history` reads recent Pi messages and activity with timestamps. `ask` can present a persistent question in ChatGPT when webpage questions are enabled.
35
+ > Use \@Chappie to review the recent changes in the website project.
33
36
 
34
- See the [tool guide](docs/tools.md) for session selection, history, synchronization, Pi tools, webpage questions, and file transfer.
37
+ Tool activity and assistant messages appear in the agent's interface. Messages entered there reach ChatGPT with later tool results. Attach files in ChatGPT for the agent to use, or ask for generated files to be sent back.
35
38
 
36
- ## Configuration
39
+ To continue from another chat or branch, ask ChatGPT to reconnect to the same agent session.
37
40
 
38
- `chappie.json` in Pi's agent directory configures Chappie.
41
+ ## Between agents
39
42
 
40
- A broker can accept Pi sessions from other devices on the local network:
43
+ An agent using its usual model can work through another agent session. For example, an assistant on macOS can run a build in a Windows session and retrieve the output files.
41
44
 
42
- ```json
43
- { "listen": true }
44
- ```
45
-
46
- Remote Pi sessions connect through the broker device's mDNS name:
45
+ Start `chappie` in a terminal, or use the broker already running through otunnel. On the controlling agent's device, enable local tools in `~/.chappie/config.json`:
47
46
 
48
47
  ```json
49
- { "connect": "<broker>.local" }
48
+ { "localTools": true }
50
49
  ```
51
50
 
52
- The default port is `24274`. Set `listen` to a port number or append `:port` to `connect` to use another one. Only the broker device runs otunnel; local and remote sessions appear in the same session list.
53
-
54
- Set `ask` to `false` to disable webpage questions.
55
-
56
- Enable synchronization to resolve conflicting activity:
57
-
58
- ```json
59
- { "sync": true }
60
- ```
51
+ Use the usual model in the controlling session and the Chappie model in the target session. Ask the controlling assistant to find that session and work on its project.
61
52
 
62
- Initialization returns a short name and a private code. `sync` pauses conflicting work for discussion through `chat` and `history`. The verified coordinator decides who continues, their tasks, and who exits, including retaining only one execution. See [synchronization](docs/tools.md#synchronization).
53
+ See [setup and configuration](docs/setup.md) for device connections and agent-specific settings, and the [tool guide](docs/tools.md) for the available operations and their parameters.