@freibergergarcia/phone-a-friend 1.12.1 → 2.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.
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +2 -2
- package/commands/curiosity-engine.md +3 -3
- package/commands/phone-a-friend.md +2 -2
- package/commands/phone-a-team.md +2 -2
- package/dist/index.js +4016 -3419
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[](https://www.npmjs.com/package/@freibergergarcia/phone-a-friend)
|
|
11
11
|
[](https://github.com/freibergergarcia/phone-a-friend/actions/workflows/ci.yml)
|
|
12
12
|
[](LICENSE)
|
|
13
|
-

|
|
14
14
|
[](https://freibergergarcia.github.io/phone-a-friend/)
|
|
15
15
|
|
|
16
16
|
</div>
|
|
@@ -38,7 +38,7 @@ Relay tasks to any backend, spin up multi-model teams, or run persistent multi-a
|
|
|
38
38
|
|
|
39
39
|
## Quick Start
|
|
40
40
|
|
|
41
|
-
**Prerequisites:** Node.js
|
|
41
|
+
**Prerequisites:** Node.js 22.13+ and at least one backend:
|
|
42
42
|
|
|
43
43
|
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code/setup)
|
|
44
44
|
- [Codex CLI](https://developers.openai.com/codex/quickstart/)
|
|
@@ -32,7 +32,7 @@ When `RELAY_MODE = direct`, call backend CLIs directly instead of using the
|
|
|
32
32
|
|
|
33
33
|
| Backend | Direct command |
|
|
34
34
|
|---------|---------------|
|
|
35
|
-
| **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>"` |
|
|
35
|
+
| **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>" < /dev/null` |
|
|
36
36
|
| **Gemini** | `gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"` |
|
|
37
37
|
| **Ollama** | `curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{"model":"<model>","messages":[{"role":"user","content":"<combined-prompt>"}],"stream":false}' \| jq -r '.message.content'` |
|
|
38
38
|
|
|
@@ -125,7 +125,7 @@ phone-a-friend --to <BACKEND> --repo "$PWD" --sandbox read-only --fast [--model
|
|
|
125
125
|
**Direct mode** (`RELAY_MODE = direct`):
|
|
126
126
|
```bash
|
|
127
127
|
# Codex:
|
|
128
|
-
codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<relay-prompt>"
|
|
128
|
+
codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<relay-prompt>" < /dev/null
|
|
129
129
|
# Gemini (always include -m):
|
|
130
130
|
gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<relay-prompt>"
|
|
131
131
|
# Ollama (use OLLAMA_SELECTED_MODEL from Step 2):
|
|
@@ -181,7 +181,7 @@ phone-a-friend --to <BACKEND> --repo "$PWD" --sandbox read-only --fast [--model
|
|
|
181
181
|
**Direct mode** (`RELAY_MODE = direct`):
|
|
182
182
|
```bash
|
|
183
183
|
# Codex:
|
|
184
|
-
codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<re-prompt>"
|
|
184
|
+
codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<re-prompt>" < /dev/null
|
|
185
185
|
# Gemini:
|
|
186
186
|
gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<re-prompt>"
|
|
187
187
|
# Ollama:
|
|
@@ -34,7 +34,7 @@ When `RELAY_MODE = direct`, call backend CLIs directly instead of using the
|
|
|
34
34
|
|
|
35
35
|
| Backend | Direct command |
|
|
36
36
|
|---------|---------------|
|
|
37
|
-
| **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>"` |
|
|
37
|
+
| **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>" < /dev/null` |
|
|
38
38
|
| **Gemini** | `gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"` |
|
|
39
39
|
|
|
40
40
|
In direct mode, combine prompt + context into a single string using this
|
|
@@ -96,7 +96,7 @@ I'm working on this task and got the above response. Please review it and return
|
|
|
96
96
|
**Direct mode** (`RELAY_MODE = direct`):
|
|
97
97
|
```bash
|
|
98
98
|
# Codex:
|
|
99
|
-
codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>"
|
|
99
|
+
codex exec -C "$PWD" --skip-git-repo-check --sandbox read-only "<combined-prompt>" < /dev/null
|
|
100
100
|
# Gemini (always include -m, see "Gemini Model Priority" below):
|
|
101
101
|
gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"
|
|
102
102
|
```
|
package/commands/phone-a-team.md
CHANGED
|
@@ -37,7 +37,7 @@ When `RELAY_MODE = direct`, call backend CLIs directly instead of using the
|
|
|
37
37
|
|
|
38
38
|
| Backend | Direct command |
|
|
39
39
|
|---------|---------------|
|
|
40
|
-
| **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>"` |
|
|
40
|
+
| **Codex** | `codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>" < /dev/null` |
|
|
41
41
|
| **Gemini** | `gemini --sandbox --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"` |
|
|
42
42
|
| **Ollama** | `curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{"model":"<model>","messages":[{"role":"user","content":"<combined-prompt>"}],"stream":false}' \| jq -r '.message.content'` |
|
|
43
43
|
|
|
@@ -400,7 +400,7 @@ Delegate the task to the backend via the relay. The lead's job is to
|
|
|
400
400
|
**Direct mode** (`RELAY_MODE = direct`):
|
|
401
401
|
```bash
|
|
402
402
|
# Codex:
|
|
403
|
-
codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>"
|
|
403
|
+
codex exec -C "$PWD" --skip-git-repo-check --sandbox <mode> "<combined-prompt>" < /dev/null
|
|
404
404
|
# Gemini (omit --sandbox for workspace-write):
|
|
405
405
|
gemini [--sandbox] --yolo --include-directories "$PWD" --output-format text -m <model> --prompt "<combined-prompt>"
|
|
406
406
|
# Ollama:
|