vibekit-agent 1.5.4 → 1.6.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/README.md +41 -17
- package/dist/agent.d.ts +43 -4
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +388 -127
- package/dist/agent.js.map +1 -1
- package/dist/codex-engine.d.ts +115 -0
- package/dist/codex-engine.d.ts.map +1 -0
- package/dist/codex-engine.js +708 -0
- package/dist/codex-engine.js.map +1 -0
- package/dist/codex-read-mcp.d.ts +2 -0
- package/dist/codex-read-mcp.d.ts.map +1 -0
- package/dist/codex-read-mcp.js +200 -0
- package/dist/codex-read-mcp.js.map +1 -0
- package/dist/codex-translate.d.ts +108 -0
- package/dist/codex-translate.d.ts.map +1 -0
- package/dist/codex-translate.js +331 -0
- package/dist/codex-translate.js.map +1 -0
- package/dist/config-mcp.js +15 -4
- package/dist/config-mcp.js.map +1 -1
- package/dist/config.d.ts +27 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +62 -5
- package/dist/config.js.map +1 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# vibekit-agent
|
|
2
2
|
|
|
3
|
-
Control your
|
|
3
|
+
Control Claude Code or Codex on your own computer from iPhone or Telegram. Ship code from your phone.
|
|
4
4
|
|
|
5
5
|
This is VibeKit's **local bridge mode**. Your code runs on **your machine**, not in VibeKit cloud.
|
|
6
6
|
|
|
7
|
-
**Free to use** - works with your existing Claude Pro/Max subscription.
|
|
7
|
+
**Free to use** - works with your existing Claude Pro/Max subscription or your ChatGPT plan.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -29,24 +29,41 @@ npm install -g vibekit-agent
|
|
|
29
29
|
npx vibekit-agent start
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
4. **Send messages from iPhone or Telegram** - they'll be executed by Claude Code on your machine.
|
|
32
|
+
4. **Send messages from iPhone or Telegram** - they'll be executed by Claude Code or Codex on your machine.
|
|
33
|
+
|
|
34
|
+
## Claude Code or Codex
|
|
35
|
+
|
|
36
|
+
`link` picks the coding agent for this computer: Claude Code if it is installed, otherwise Codex. To choose explicitly (remembered for next time):
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npx vibekit-agent start --engine codex
|
|
40
|
+
npx vibekit-agent start --engine claude
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Codex runs on your own ChatGPT account. Install it and log in on the computer first:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm install -g @openai/codex
|
|
47
|
+
codex login
|
|
48
|
+
```
|
|
33
49
|
|
|
34
50
|
## When to Use This
|
|
35
51
|
|
|
36
52
|
Use `vibekit-agent` when you want:
|
|
37
|
-
- iPhone first, then Telegram, to control Claude Code on your own laptop or desktop
|
|
38
|
-
- to use your local Claude
|
|
53
|
+
- iPhone first, then Telegram, to control Claude Code or Codex on your own laptop or desktop
|
|
54
|
+
- to use your local Claude or ChatGPT sign-in instead of VibeKit cloud execution
|
|
39
55
|
- a remote-control bridge for local development
|
|
40
56
|
|
|
41
57
|
Do **not** use it if you just want VibeKit-hosted tasks or deployments. For that, use `vibekit-cli` or `vibekit-mcp`.
|
|
42
58
|
|
|
43
59
|
## Features
|
|
44
60
|
|
|
45
|
-
- **Text messages** - Chat naturally,
|
|
46
|
-
- **Voice messages** - Send voice notes
|
|
61
|
+
- **Text messages** - Chat naturally, the agent responds
|
|
62
|
+
- **Voice messages** - Send voice notes
|
|
47
63
|
- **Images & screenshots** - Send photos for analysis or debugging
|
|
48
|
-
- **Document uploads** - Share files for
|
|
49
|
-
- **Conversation memory** -
|
|
64
|
+
- **Document uploads** - Share files for the agent to work with
|
|
65
|
+
- **Conversation memory** - The agent remembers context within a session
|
|
66
|
+
- **Ask before actions** - Approve or deny each command and edit from the app or the lock screen
|
|
50
67
|
|
|
51
68
|
## Remote Commands
|
|
52
69
|
|
|
@@ -65,43 +82,46 @@ Once connected, use these commands in the iOS app or bot:
|
|
|
65
82
|
| `vibekit-agent link` | Link this computer to your iPhone or Telegram account |
|
|
66
83
|
| `vibekit-agent start` | Start the remote agent |
|
|
67
84
|
| `vibekit-agent start -d /path/to/project` | Start in a specific directory |
|
|
85
|
+
| `vibekit-agent start --engine codex` | Switch this computer to Codex (or `claude`) |
|
|
68
86
|
| `vibekit-agent status` | Show connection status |
|
|
69
87
|
| `vibekit-agent logout` | Remove stored credentials |
|
|
70
88
|
| `vibekit-agent config` | View current configuration |
|
|
71
89
|
|
|
72
90
|
## Tool Permissions
|
|
73
91
|
|
|
74
|
-
By default
|
|
92
|
+
By default the agent has full access: it edits files and runs commands on your behalf, because you linked the computer for that. You can restrict it:
|
|
75
93
|
|
|
76
94
|
```bash
|
|
77
95
|
# View current tools
|
|
78
96
|
vibekit-agent config
|
|
79
97
|
|
|
80
98
|
# Set specific tools
|
|
81
|
-
vibekit-agent config --tools "WebSearch,
|
|
99
|
+
vibekit-agent config --tools "WebSearch,Read,Glob,Grep"
|
|
82
100
|
|
|
83
|
-
# Reset to
|
|
101
|
+
# Reset to a read-only set
|
|
84
102
|
vibekit-agent config --reset-tools
|
|
85
103
|
|
|
86
|
-
#
|
|
104
|
+
# Allow all tools again
|
|
87
105
|
vibekit-agent config --all-tools
|
|
88
106
|
```
|
|
89
107
|
|
|
90
|
-
**Default safe tools:** WebSearch, WebFetch, Read, Glob, Grep
|
|
91
|
-
|
|
92
108
|
**Available tools:** WebSearch, WebFetch, Bash, Read, Write, Edit, Glob, Grep
|
|
93
109
|
|
|
110
|
+
Codex has no native per-tool list, so it honors two settings: full access (all tools), or read-only (a list with no Write, Edit or Bash). In read-only mode VibeKit removes Codex's shell tool and supplies Read, Grep, Glob and LS tools confined to the selected working directory. A list that allows edits but not commands, or the reverse, is refused.
|
|
111
|
+
|
|
112
|
+
For **Ask before actions**, Remote starts Codex with a clean policy profile that shares your login but does not load local “always allow” command rules. This keeps every write and non-read command on the phone approval path.
|
|
113
|
+
|
|
94
114
|
## How It Works
|
|
95
115
|
|
|
96
116
|
1. The agent runs on your local machine
|
|
97
117
|
2. It connects to VibeKit's server via WebSocket
|
|
98
118
|
3. When you send a message from the iOS app or Telegram, it's relayed to your local agent
|
|
99
|
-
4. Claude Code executes the request and sends results back to the iOS app or Telegram
|
|
119
|
+
4. Claude Code or Codex executes the request and sends results back to the iOS app or Telegram
|
|
100
120
|
|
|
101
121
|
## Requirements
|
|
102
122
|
|
|
103
123
|
- Node.js 18+
|
|
104
|
-
- Claude Code CLI
|
|
124
|
+
- Claude Code CLI (`npm install -g @anthropic-ai/claude-code`) or Codex CLI (`npm install -g @openai/codex`)
|
|
105
125
|
- A VibeKit account (free to start)
|
|
106
126
|
|
|
107
127
|
## Troubleshooting
|
|
@@ -112,6 +132,10 @@ vibekit-agent config --all-tools
|
|
|
112
132
|
|
|
113
133
|
**"Claude Code not found"** - Install Claude Code: `npm install -g @anthropic-ai/claude-code`
|
|
114
134
|
|
|
135
|
+
**"Codex isn't installed on this computer"** - Install Codex: `npm install -g @openai/codex`. The agent skips a `codex` that fails `codex --version`, so reinstall a broken one.
|
|
136
|
+
|
|
137
|
+
**"Codex isn't logged in on this computer"** - Run `codex login` on that computer
|
|
138
|
+
|
|
115
139
|
## Related Packages
|
|
116
140
|
|
|
117
141
|
- `vibekit-cli`: terminal client for VibeKit cloud workflows
|
package/dist/agent.d.ts
CHANGED
|
@@ -2,7 +2,13 @@ import { Config } from './config';
|
|
|
2
2
|
export declare class AgentClient {
|
|
3
3
|
private config;
|
|
4
4
|
private ws;
|
|
5
|
-
private
|
|
5
|
+
private activeRun;
|
|
6
|
+
/** Which coding agent this machine runs. Decided at `link`; see start(). */
|
|
7
|
+
private engine;
|
|
8
|
+
/** The Codex app-server driver, created on the first Codex message and kept for the process. */
|
|
9
|
+
private codex;
|
|
10
|
+
/** The Codex CLI that runs here; looked up again on each message while missing. */
|
|
11
|
+
private codexBinary;
|
|
6
12
|
private caffeinateProcess;
|
|
7
13
|
private reconnectTimeout;
|
|
8
14
|
private reconnectDelay;
|
|
@@ -49,9 +55,9 @@ export declare class AgentClient {
|
|
|
49
55
|
private outboundQueue;
|
|
50
56
|
private static readonly MAX_OUTBOUND_QUEUE;
|
|
51
57
|
private resumedSessionThisRun;
|
|
52
|
-
private
|
|
53
|
-
private static readonly
|
|
54
|
-
private
|
|
58
|
+
private runTimeout;
|
|
59
|
+
private static readonly RUN_TIMEOUT_MS;
|
|
60
|
+
private canceledRuns;
|
|
55
61
|
private lastErrorWasDns;
|
|
56
62
|
private static readonly DNS_FAILURE_MIN_DELAY_MS;
|
|
57
63
|
constructor(config: Config);
|
|
@@ -67,6 +73,27 @@ export declare class AgentClient {
|
|
|
67
73
|
* Run claude command with the given prompt
|
|
68
74
|
*/
|
|
69
75
|
private runClaude;
|
|
76
|
+
/**
|
|
77
|
+
* Stop whatever run is in flight because a new message is starting one.
|
|
78
|
+
* handleUserMessage already sent a "canceled" reply to the old chat, and
|
|
79
|
+
* marking the run canceled stops its end handler from sending a
|
|
80
|
+
* misattributed fallback to the new chat.
|
|
81
|
+
*/
|
|
82
|
+
private supersedeActiveRun;
|
|
83
|
+
/**
|
|
84
|
+
* Bookkeeping every run shares, whichever engine runs it: it becomes the
|
|
85
|
+
* active run, gets the hard kill timer, starts from clean per-run state and
|
|
86
|
+
* gets the heartbeat statuses.
|
|
87
|
+
*/
|
|
88
|
+
private beginRun;
|
|
89
|
+
/**
|
|
90
|
+
* The shared start of a run's end. Returns false when there is nothing left
|
|
91
|
+
* to send: the run was stopped on purpose (Stop, supersede, timeout), whose
|
|
92
|
+
* stopper already messaged the chat, or it is no longer the active run.
|
|
93
|
+
*/
|
|
94
|
+
private settleRun;
|
|
95
|
+
/** The honest reply for a run that produced no text, so it never reads as a success. */
|
|
96
|
+
private noReplyFallback;
|
|
70
97
|
/**
|
|
71
98
|
* Process a single line of stream-json output from Claude
|
|
72
99
|
* Events include: system, assistant, tool_use, tool_result, result
|
|
@@ -214,6 +241,18 @@ export declare class AgentClient {
|
|
|
214
241
|
* Handle user message from Telegram or iOS app
|
|
215
242
|
*/
|
|
216
243
|
private handleUserMessage;
|
|
244
|
+
/**
|
|
245
|
+
* Run one Codex turn through app-server. Shares the run bookkeeping with
|
|
246
|
+
* runClaude (supersedeActiveRun, beginRun, settleRun), so Stop, supersede,
|
|
247
|
+
* the run timeout and the self-update idle check behave the same. Every
|
|
248
|
+
* event mapping is in codex-translate.ts.
|
|
249
|
+
*/
|
|
250
|
+
private runCodex;
|
|
251
|
+
private endCodexRun;
|
|
252
|
+
/** Per-thread MCP tools. Read-only mode gets filesystem readers because its native shell is disabled. */
|
|
253
|
+
private codexMcpServers;
|
|
254
|
+
/** The tool list the phone is shown: the raw list for Claude, and for Codex the access actually in force. */
|
|
255
|
+
private reportedAllowedTools;
|
|
217
256
|
/**
|
|
218
257
|
* Save attachments to temp directory and return file paths
|
|
219
258
|
*/
|
package/dist/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AASA,OAAO,EACL,MAAM,EAEP,MAAM,UAAU,CAAC;AAgMlB,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,EAAE,CAA0B;IACpC,OAAO,CAAC,SAAS,CAA0B;IAC3C,4EAA4E;IAC5E,OAAO,CAAC,MAAM,CAAoB;IAClC,gGAAgG;IAChG,OAAO,CAAC,KAAK,CAA4B;IACzC,mFAAmF;IACnF,OAAO,CAAC,WAAW,CAAkD;IACrE,OAAO,CAAC,iBAAiB,CAA6B;IACtD,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO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