@phnx-labs/agents-cli 1.22.45 → 1.22.47
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/CHANGELOG.md +303 -0
- package/LICENSE +102 -182
- package/README.md +54 -17
- package/dist/cli/command-registry.d.ts +2 -1
- package/dist/cli/command-registry.js +6 -2
- package/dist/commands/accounts.js +56 -12
- package/dist/commands/auth.d.ts +2 -0
- package/dist/commands/auth.js +229 -0
- package/dist/commands/browser-sessions-picker.js +9 -7
- package/dist/commands/browser.js +266 -15
- package/dist/commands/config.js +26 -4
- package/dist/commands/cost.d.ts +1 -1
- package/dist/commands/detach.d.ts +13 -0
- package/dist/commands/detach.js +11 -8
- package/dist/commands/exec.js +55 -38
- package/dist/commands/feed-watch.d.ts +2 -0
- package/dist/commands/feed-watch.js +28 -0
- package/dist/commands/feed.js +27 -0
- package/dist/commands/feedback.js +3 -19
- package/dist/commands/insights.d.ts +1 -1
- package/dist/commands/insights.js +2 -2
- package/dist/commands/lease.js +3 -3
- package/dist/commands/routines.js +1 -1
- package/dist/commands/sessions-picker-factory.d.ts +2 -1
- package/dist/commands/sessions-picker-factory.js +1 -1
- package/dist/commands/sessions-stop.d.ts +24 -0
- package/dist/commands/sessions-stop.js +66 -0
- package/dist/commands/sessions-trace.d.ts +82 -0
- package/dist/commands/sessions-trace.js +387 -0
- package/dist/commands/sessions.js +4 -0
- package/dist/commands/ssh.d.ts +15 -0
- package/dist/commands/ssh.js +194 -16
- package/dist/commands/teams.js +34 -2
- package/dist/commands/view.d.ts +2 -0
- package/dist/commands/view.js +19 -32
- package/dist/commands/watchdog.js +9 -14
- package/dist/lib/account-capabilities.d.ts +4 -0
- package/dist/lib/account-capabilities.js +13 -9
- package/dist/lib/account-registry.d.ts +2 -0
- package/dist/lib/account-registry.js +30 -2
- package/dist/lib/accounting/rotate.d.ts +9 -0
- package/dist/lib/accounting/rotate.js +12 -2
- package/dist/lib/accounting/usage.d.ts +92 -6
- package/dist/lib/accounting/usage.js +329 -75
- package/dist/lib/agent-modes.js +29 -1
- package/dist/lib/agent-spec/agents.d.ts +4 -3
- package/dist/lib/agent-spec/agents.js +20 -7
- package/dist/lib/analytics/mix-commands.d.ts +1 -1
- package/dist/lib/analytics/mix-commands.js +2 -2
- package/dist/lib/auth-health.d.ts +13 -3
- package/dist/lib/auth-health.js +50 -8
- package/dist/lib/browser/devices.d.ts +19 -0
- package/dist/lib/browser/devices.js +23 -0
- package/dist/lib/browser/ipc.d.ts +1 -1
- package/dist/lib/browser/ipc.js +33 -7
- package/dist/lib/browser/profiles.d.ts +106 -1
- package/dist/lib/browser/profiles.js +300 -17
- package/dist/lib/browser/remote-control.d.ts +26 -2
- package/dist/lib/browser/remote-control.js +33 -3
- package/dist/lib/browser/runtime-state.d.ts +9 -0
- package/dist/lib/browser/runtime-state.js +24 -8
- package/dist/lib/browser/service.d.ts +37 -0
- package/dist/lib/browser/service.js +78 -20
- package/dist/lib/browser/sessions-list.d.ts +1 -3
- package/dist/lib/browser/sessions-list.js +3 -16
- package/dist/lib/browser/types.d.ts +12 -1
- package/dist/lib/cli-resources.js +17 -15
- package/dist/lib/codex-policy.d.ts +11 -1
- package/dist/lib/codex-policy.js +20 -5
- package/dist/lib/config-keys.d.ts +4 -3
- package/dist/lib/config-keys.js +17 -7
- package/dist/lib/daemon/runner.js +15 -2
- package/dist/lib/daemon-ticks.js +2 -2
- package/dist/lib/device-config.d.ts +25 -8
- package/dist/lib/device-config.js +90 -17
- package/dist/lib/devices/config-migration.d.ts +7 -0
- package/dist/lib/devices/config-migration.js +67 -3
- package/dist/lib/devices/harness-inventory.js +20 -3
- package/dist/lib/devices/health.d.ts +27 -2
- package/dist/lib/devices/health.js +39 -9
- package/dist/lib/devices/interactive-host.d.ts +15 -0
- package/dist/lib/devices/interactive-host.js +53 -0
- package/dist/lib/devices/registry.d.ts +61 -4
- package/dist/lib/devices/registry.js +94 -38
- package/dist/lib/devices/stats-cache.d.ts +6 -0
- package/dist/lib/devices/stats-cache.js +10 -2
- package/dist/lib/exec.d.ts +25 -3
- package/dist/lib/exec.js +75 -22
- package/dist/lib/feed/answer.d.ts +29 -0
- package/dist/lib/feed/answer.js +145 -0
- package/dist/lib/feed/attention.d.ts +83 -0
- package/dist/lib/feed/attention.js +0 -0
- package/dist/lib/feed/feed.d.ts +109 -0
- package/dist/lib/feed/feed.js +154 -3
- package/dist/lib/feed/pr-status.d.ts +14 -0
- package/dist/lib/feed/pr-status.js +47 -0
- package/dist/lib/feed/watch.d.ts +59 -0
- package/dist/lib/feed/watch.js +180 -0
- package/dist/lib/fleet/capture.js +6 -0
- package/dist/lib/fleet/remote-login.js +8 -3
- package/dist/lib/fleet/types.d.ts +17 -0
- package/dist/lib/harness/adapter.d.ts +11 -0
- package/dist/lib/harness/adapters/claude.js +38 -24
- package/dist/lib/harness/adapters/codex.js +2 -4
- package/dist/lib/hooks/cache.js +8 -0
- package/dist/lib/hooks/match.d.ts +3 -0
- package/dist/lib/hooks/match.js +25 -0
- package/dist/lib/hosts/passthrough.js +16 -0
- package/dist/lib/hosts/registry.js +7 -0
- package/dist/lib/identity/client.d.ts +53 -0
- package/dist/lib/identity/client.js +106 -0
- package/dist/lib/identity/index.d.ts +115 -0
- package/dist/lib/identity/index.js +82 -0
- package/dist/lib/menubar/MenubarHelper.app/Contents/CodeResources +0 -0
- package/dist/lib/menubar/MenubarHelper.app/Contents/MacOS/MenubarHelper +0 -0
- package/dist/lib/menubar/install-menubar.d.ts +13 -0
- package/dist/lib/menubar/install-menubar.js +26 -2
- package/dist/lib/open-url.d.ts +60 -2
- package/dist/lib/open-url.js +167 -12
- package/dist/lib/probe.d.ts +8 -0
- package/dist/lib/probe.js +105 -0
- package/dist/lib/refresh-coordinator.d.ts +1 -1
- package/dist/lib/refresh-coordinator.js +1 -1
- package/dist/lib/secrets/Agents CLI.app/Contents/CodeResources +0 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/Info.plist +2 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/MacOS/Agents CLI +0 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/Resources/AppIcon.icns +0 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/_CodeSignature/CodeResources +13 -1
- package/dist/lib/session/active.d.ts +67 -0
- package/dist/lib/session/active.js +69 -1
- package/dist/lib/session/db.js +4 -2
- package/dist/lib/session/discover.d.ts +2 -0
- package/dist/lib/session/discover.js +12 -6
- package/dist/lib/session/prompt.d.ts +35 -0
- package/dist/lib/session/prompt.js +56 -0
- package/dist/lib/session/remote/watch.d.ts +1 -1
- package/dist/lib/session/remote/watch.js +6 -1
- package/dist/lib/session/render.js +7 -3
- package/dist/lib/session/session-cache.js +5 -1
- package/dist/lib/session/trajectory-compare.d.ts +47 -0
- package/dist/lib/session/trajectory-compare.js +116 -0
- package/dist/lib/session/trajectory-html.d.ts +15 -0
- package/dist/lib/session/trajectory-html.js +750 -0
- package/dist/lib/session/trajectory-lineage.d.ts +92 -0
- package/dist/lib/session/trajectory-lineage.js +195 -0
- package/dist/lib/session/trajectory-text.d.ts +37 -0
- package/dist/lib/session/trajectory-text.js +277 -0
- package/dist/lib/session/trajectory.d.ts +102 -0
- package/dist/lib/session/trajectory.js +335 -0
- package/dist/lib/startup/command-registry.d.ts +5 -2
- package/dist/lib/startup/command-registry.js +8 -5
- package/dist/lib/state.d.ts +1 -1
- package/dist/lib/state.js +4 -2
- package/dist/lib/teams/agents.js +9 -0
- package/dist/lib/terminal/inject.d.ts +19 -0
- package/dist/lib/terminal/inject.js +19 -9
- package/dist/lib/tmux/session.d.ts +46 -13
- package/dist/lib/tmux/session.js +173 -27
- package/dist/lib/types.d.ts +16 -0
- package/dist/lib/usage-backoff.d.ts +2 -1
- package/dist/lib/usage-backoff.js +60 -19
- package/dist/lib/usage-refresh.d.ts +17 -3
- package/dist/lib/usage-refresh.js +57 -11
- package/dist/lib/view-types.d.ts +2 -2
- package/dist/lib/watchdog/log.d.ts +1 -1
- package/dist/lib/watchdog/log.js +1 -1
- package/dist/lib/watchdog/runner.d.ts +36 -45
- package/dist/lib/watchdog/runner.js +150 -119
- package/dist/lib/watchdog/service.d.ts +0 -1
- package/dist/lib/watchdog/service.js +0 -1
- package/dist/lib/watchdog/watchdog-agent.d.ts +38 -0
- package/dist/lib/watchdog/watchdog-agent.js +59 -0
- package/dist/lib/watchdog/watchdog.d.ts +11 -2
- package/dist/lib/watchdog/watchdog.js +37 -104
- package/package.json +2 -2
- package/dist/commands/usage.d.ts +0 -27
- package/dist/commands/usage.js +0 -96
package/LICENSE
CHANGED
|
@@ -1,185 +1,105 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
the
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
of
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
(d) If the Work includes a "NOTICE" text file as part of its distribution, then
|
|
99
|
-
any Derivative Works that You distribute must include a readable copy of the
|
|
100
|
-
attribution notices contained within such NOTICE file, excluding those notices
|
|
101
|
-
that do not pertain to any part of the Derivative Works, in at least one of the
|
|
102
|
-
following places: within a NOTICE text file distributed as part of the
|
|
103
|
-
Derivative Works; within the Source form or documentation, if provided along
|
|
104
|
-
with the Derivative Works; or, within a display generated by the Derivative
|
|
105
|
-
Works, if and wherever such third-party notices normally appear.
|
|
106
|
-
|
|
107
|
-
The contents of the NOTICE file are for informational purposes only and do not
|
|
108
|
-
modify the License. You may add Your own attribution notices within Derivative
|
|
109
|
-
Works that You distribute, alongside or as an addendum to the NOTICE text from
|
|
110
|
-
the Work, provided that such additional attribution notices cannot be construed
|
|
111
|
-
as modifying the License.
|
|
112
|
-
|
|
113
|
-
You may add Your own copyright statement to Your modifications and may provide
|
|
114
|
-
additional or different license terms and conditions for use, reproduction, or
|
|
115
|
-
distribution of Your modifications, or for any such Derivative Works as a whole,
|
|
116
|
-
provided Your use, reproduction, and distribution of the Work otherwise complies
|
|
117
|
-
with the conditions stated in this License.
|
|
118
|
-
|
|
119
|
-
5. Submission of Contributions. Unless You explicitly state otherwise, any
|
|
120
|
-
Contribution intentionally submitted for inclusion in the Work by You to the
|
|
121
|
-
Licensor shall be under the terms and conditions of this License, without any
|
|
122
|
-
additional terms or conditions. Notwithstanding the above, nothing herein shall
|
|
123
|
-
supersede or modify the terms of any separate license agreement you may have
|
|
124
|
-
executed with Licensor regarding such Contributions.
|
|
125
|
-
|
|
126
|
-
6. Trademarks. This License does not grant permission to use the trade names,
|
|
127
|
-
trademarks, service marks, or product names of the Licensor, except as required
|
|
128
|
-
for reasonable and customary use in describing the origin of the Work and
|
|
129
|
-
reproducing the content of the NOTICE file.
|
|
130
|
-
|
|
131
|
-
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
|
|
132
|
-
writing, Licensor provides the Work (and each Contributor provides its
|
|
133
|
-
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
134
|
-
KIND, either express or implied, including, without limitation, any warranties or
|
|
135
|
-
conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
136
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
137
|
-
appropriateness of using or redistributing the Work and assume any risks
|
|
138
|
-
associated with Your exercise of permissions under this License.
|
|
139
|
-
|
|
140
|
-
8. Limitation of Liability. In no event and under no legal theory, whether in
|
|
141
|
-
tort (including negligence), contract, or otherwise, unless required by
|
|
142
|
-
applicable law (such as deliberate and grossly negligent acts) or agreed to in
|
|
143
|
-
writing, shall any Contributor be liable to You for damages, including any
|
|
144
|
-
direct, indirect, special, incidental, or consequential damages of any character
|
|
145
|
-
arising as a result of this License or out of the use or inability to use the
|
|
146
|
-
Work (including but not limited to damages for loss of goodwill, work stoppage,
|
|
147
|
-
computer failure or malfunction, or any and all other commercial damages or
|
|
148
|
-
losses), even if such Contributor has been advised of the possibility of such
|
|
149
|
-
damages.
|
|
150
|
-
|
|
151
|
-
9. Accepting Warranty or Additional Liability. While redistributing the Work or
|
|
152
|
-
Derivative Works thereof, You may choose to offer, and charge a fee for,
|
|
153
|
-
acceptance of support, warranty, indemnity, or other liability obligations
|
|
154
|
-
and/or rights consistent with this License. However, in accepting such
|
|
155
|
-
obligations, You may act only on Your own behalf and on Your sole
|
|
156
|
-
responsibility, not on behalf of any other Contributor, and only if You agree to
|
|
157
|
-
indemnify, defend, and hold each Contributor harmless for any liability incurred
|
|
158
|
-
by, or claims asserted against, such Contributor by reason of your accepting any
|
|
159
|
-
such warranty or additional liability.
|
|
160
|
-
|
|
161
|
-
END OF TERMS AND CONDITIONS
|
|
162
|
-
|
|
163
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
164
|
-
|
|
165
|
-
To apply the Apache License to your work, attach the following boilerplate
|
|
166
|
-
notice, with the fields enclosed by brackets "[]" replaced with your own
|
|
167
|
-
identifying information. (Don't include the brackets!) The text should be
|
|
168
|
-
enclosed in the appropriate comment syntax for the file format. We also
|
|
169
|
-
recommend that a file or class name and description of purpose be included on
|
|
170
|
-
the same "printed page" as the copyright notice for easier identification
|
|
171
|
-
within third-party archives.
|
|
172
|
-
|
|
173
|
-
Copyright [yyyy] [name of copyright owner]
|
|
174
|
-
|
|
175
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
176
|
-
you may not use this file except in compliance with the License.
|
|
1
|
+
# Functional Source License, Version 1.1, Apache 2.0 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-Apache-2.0
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Phoenix Horizon, Inc.
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
177
98
|
You may obtain a copy of the License at
|
|
178
99
|
|
|
179
|
-
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
180
101
|
|
|
181
|
-
Unless required by applicable law or agreed to in writing, software
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
limitations under the License.
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ agents setup status # readiness for browser, computer, fleet,
|
|
|
54
54
|
agents run claude "explain this repo" # run any agent on your existing subscription
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
`agents setup` is interactive and idempotent -- safe to re-run on any machine. Once core setup exists, it opens a status-aware menu for browser, computer, secrets, fleet, share, watchdog, and device preferences; each choice delegates to the same wizard available under `agents setup <capability>`. In CI or another non-TTY, bare setup prints the checklist without prompting. The `agi-cli.sh` one-liner installs this same canonical `@phnx-labs/agents-cli` package. Prefer bun? `bun install -g @phnx-labs/agents-cli` works too.
|
|
57
|
+
Everything here — and every other command in this README — is free and needs no account; the optional `agents auth login` exists only for [team spaces](#sign-in). `agents setup` is interactive and idempotent -- safe to re-run on any machine. Once core setup exists, it opens a status-aware menu for browser, computer, secrets, fleet, share, watchdog, and device preferences; each choice delegates to the same wizard available under `agents setup <capability>`. In CI or another non-TTY, bare setup prints the checklist without prompting. The `agi-cli.sh` one-liner installs this same canonical `@phnx-labs/agents-cli` package. Prefer bun? `bun install -g @phnx-labs/agents-cli` works too.
|
|
58
58
|
|
|
59
59
|
Full path -- installing harnesses, logging in, smoke-testing `agents teams`, and setting up your own fleet: [`apps/cli/docs/QUICKSTART.md`](apps/cli/docs/QUICKSTART.md).
|
|
60
60
|
|
|
@@ -81,6 +81,7 @@ Also available as `ag` -- all commands work with both `agents` and `ag`.
|
|
|
81
81
|
- [Plugins](#plugins)
|
|
82
82
|
- [Make it yours](#make-it-yours)
|
|
83
83
|
- [Browser](#browser)
|
|
84
|
+
- [Sign in](#sign-in)
|
|
84
85
|
- [Accounts](#accounts)
|
|
85
86
|
- [Secrets](#secrets)
|
|
86
87
|
- [Routines](#routines)
|
|
@@ -223,8 +224,8 @@ Supports plan (read-only), edit, auto, and skip modes, effort levels, JSON outpu
|
|
|
223
224
|
Treat `skip` as a last-resort escape hatch. In direct-exec runs (without `--acp`),
|
|
224
225
|
agi-cli forwards the harness's native no-prompt flag; it does not add another
|
|
225
226
|
safety layer. Prefer `auto` where it adds a safer automatic policy (smart classifier
|
|
226
|
-
on Claude/Copilot,
|
|
227
|
-
everywhere else. For headless Kimi, `edit`, `auto`, and `skip` all use the same
|
|
227
|
+
on Claude/Copilot, never-prompt over a sandbox on Codex, native high-auto mode on
|
|
228
|
+
Droid, or interactive Kimi), or `edit` everywhere else. For headless Kimi, `edit`, `auto`, and `skip` all use the same
|
|
228
229
|
already-auto-approved `-p` behavior, so prefer `edit` rather than signaling a blanket
|
|
229
230
|
bypass. Harnesses without a native bypass flag reject direct-exec `skip`.
|
|
230
231
|
|
|
@@ -246,11 +247,13 @@ permission requests at the ACP protocol layer: it selects `allow_always` when of
|
|
|
246
247
|
otherwise the first permission option offered by the server. The same last-resort
|
|
247
248
|
warning applies.
|
|
248
249
|
|
|
249
|
-
Codex has
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
Codex has three managed permission profiles rather than a smart classifier. `edit`
|
|
251
|
+
and `auto` share one sandbox — the workspace, `~/.agents`, and regenerable toolchain
|
|
252
|
+
caches are writable, and network access is enabled — and differ only in approvals:
|
|
253
|
+
`edit` requests them on demand, while `auto` never prompts, so a sandbox-denied
|
|
254
|
+
command fails and the agent works around it instead of stopping on a dialog nobody
|
|
255
|
+
is watching. When `--mode` is omitted for Codex, `edit` is used. An explicit
|
|
256
|
+
`--mode plan` keeps the filesystem read-only while leaving network access on.
|
|
254
257
|
`agents run codex --mode skip` is different:
|
|
255
258
|
it bypasses approvals **and** removes the sandbox. `full` remains an alias for `skip`,
|
|
256
259
|
but new scripts should use the explicit `skip` name.
|
|
@@ -294,6 +297,11 @@ agents sessions render a1b2c3d4 -o session.md
|
|
|
294
297
|
# Or publish it as a link in one step (unlisted + redacted by default)
|
|
295
298
|
agents sessions share a1b2c3d4
|
|
296
299
|
|
|
300
|
+
# Visualize a session as a trajectory -- tool-call waterfall, timing, stalls, errors
|
|
301
|
+
agents trace a1b2c3d4 # opens the HTML (a person at a terminal)
|
|
302
|
+
agents trace a1b2c3d4 --text --errors-only # compact text an agent reads in-context
|
|
303
|
+
agents sessions trace a1b2c3d4 --json # the versioned sessions-trace envelope
|
|
304
|
+
|
|
297
305
|
# Just the last 3 turns, user messages only
|
|
298
306
|
agents sessions a1b2c3d4 --last 3 --include user
|
|
299
307
|
|
|
@@ -433,6 +441,8 @@ agents feed --flat # one row per agent (legacy)
|
|
|
433
441
|
agents feed --device mac-mini # scope the view to one or more hosts
|
|
434
442
|
agents feed --local # skip the SSH fan-out
|
|
435
443
|
agents feed --json # blocks stamped with their outcome key
|
|
444
|
+
agents feed watch --json # versioned agents + attention + activity NDJSON
|
|
445
|
+
agents feed answer <key> --choice 0 # first answer wins; route over the recorded reply rail
|
|
436
446
|
agents feed post --title "Halfway done" "CI green, watching merge" # title + body
|
|
437
447
|
```
|
|
438
448
|
|
|
@@ -599,7 +609,7 @@ agents hosts check gpu-box # reachable? which agi-cli version?
|
|
|
599
609
|
|
|
600
610
|
# Run there instead of locally
|
|
601
611
|
agents run claude --device gpu-box "profile this build" # headless: follows live by default
|
|
602
|
-
agents run claude --device gpu-box # no prompt → interactive TTY over SSH
|
|
612
|
+
agents run claude --device gpu-box # no prompt → direct interactive TTY over SSH
|
|
603
613
|
agents accounts sync work --device gpu-box # portable provider account only; native OAuth stays local
|
|
604
614
|
agents run claude --device auto "…" # affinity-pick host from 14d usage (harness stays claude)
|
|
605
615
|
agents run claude --device auto "…" # same — auto is a host value, not a harness name
|
|
@@ -637,10 +647,12 @@ agents devices sync # ingest `tailscale status`
|
|
|
637
647
|
agents devices ignore ipad # sync the dismissal via agents.yaml fleet.discovery
|
|
638
648
|
agents repo push user # carry device decisions to the other machines
|
|
639
649
|
agents repo pull user # pull and reconcile them into this machine's registry
|
|
640
|
-
agents devices list #
|
|
650
|
+
agents devices list # spec (cores/RAM/disk) + load/mem/disk + headroom + role + description
|
|
641
651
|
agents devices list --live # force a live probe of every device (alias of --refresh)
|
|
642
|
-
agents devices list --full # add per-device
|
|
652
|
+
agents devices list --full # add per-device free/total RAM detail
|
|
643
653
|
agents devices list --no-stats # instant: names/addresses only, skip the probe
|
|
654
|
+
agents devices describe mac-mini "signing + notarize box" # one-line purpose, synced + shown in the list
|
|
655
|
+
agents devices ignored # dismissed nodes — when, and which machine dismissed them
|
|
644
656
|
agents devices config zion interactive.host zion # the device agents show YOU artifacts on (★ in the list)
|
|
645
657
|
agents devices config mac-mini agents.max-concurrent 4 # per-device settings (tracked devices/<name>/agents.yaml)
|
|
646
658
|
agents devices config mac-mini scheduler.enabled off # bare `devices config <name>` opens a settings menu (TTY)
|
|
@@ -813,7 +825,7 @@ tools:
|
|
|
813
825
|
---
|
|
814
826
|
```
|
|
815
827
|
|
|
816
|
-
Workflows that need to write — post PR comments, edit files, send Slack — should run with `--mode edit`, or `--mode auto` on Claude Code
|
|
828
|
+
Workflows that need to write — post PR comments, edit files, send Slack — should run with `--mode edit`, or `--mode auto` on Claude Code, GitHub Copilot, and Codex. Reserve `--mode skip` (legacy alias: `full`) for last-resort bypasses. `agents run` defaults to `--mode plan` for other harnesses; Codex defaults to its safe writable profile. An explicit Codex `--mode plan` is read-only with network access.
|
|
817
829
|
|
|
818
830
|
Resolution is project > user > system: a `<repo>/.agents/workflows/<name>/` overrides a same-named workflow in `~/.agents/workflows/`. Commit project workflows with your repo so teammates get the same pipeline.
|
|
819
831
|
|
|
@@ -897,7 +909,7 @@ agents setup mine remove jack --purge
|
|
|
897
909
|
|
|
898
910
|
Under the hood, `init` drops a pure pass-through shim in `~/.agents/.cache/shims/<name>` (already on `PATH`) that sets `AGENTS_BRAND` and forwards every argument to the same binary — nothing is copied or forked. The brand's config lives in `~/.agents/agents.yaml` (`brands.<name>`), so it rides `agents repo push/pull` across your fleet. Disabling a command hides it **only** under that brand; plain `agents` / `ag` keep every command. Curated skills/plugins/MCP ride a per-brand [resource profile](apps/cli/docs/profiles.md). Full reference: [Make it yours](apps/cli/docs/mine.md).
|
|
899
911
|
|
|
900
|
-
>
|
|
912
|
+
> Branded builds are free for personal and commercial use alike. New versions ship under FSL-1.1-Apache-2.0: every user and company may use, modify, and redistribute; only offering agents-cli itself as a competing commercial product or service is barred, and each version automatically becomes Apache-2.0 two years after release.
|
|
901
913
|
|
|
902
914
|
---
|
|
903
915
|
|
|
@@ -1002,6 +1014,29 @@ agents browser profiles create cloud \
|
|
|
1002
1014
|
|
|
1003
1015
|
---
|
|
1004
1016
|
|
|
1017
|
+
## Sign in
|
|
1018
|
+
|
|
1019
|
+
Signing in is **optional**. Every local feature — `agents run`, sessions, teams, fleet dispatch, secrets, browser, computer — works with no account. The one thing an account unlocks is **team spaces**, the hosted surface under `agents auth space`. `agents auth` signs this machine in to **Phoenix ID**, the Phoenix Labs account layer behind team spaces. Sign-in is Google-only and runs a device-code flow: the CLI shows a code, your browser confirms it, and the CLI picks the session up.
|
|
1020
|
+
|
|
1021
|
+
```bash
|
|
1022
|
+
agents auth login # shows a code, opens a Phoenix-branded page
|
|
1023
|
+
agents auth whoami # who this machine is signed in as (--json)
|
|
1024
|
+
agents auth logout # clears THIS machine; no other device is touched
|
|
1025
|
+
|
|
1026
|
+
agents auth space create "Design Team" # spaces are the team primitive
|
|
1027
|
+
agents auth space list # spaces you belong to
|
|
1028
|
+
agents auth space invite ada@example.com --role member
|
|
1029
|
+
agents auth space members # who is in it
|
|
1030
|
+
agents auth space role ada@example.com admin
|
|
1031
|
+
agents auth space remove ada@example.com # or remove yourself to leave
|
|
1032
|
+
```
|
|
1033
|
+
|
|
1034
|
+
The session lives in this machine's agents state dir, so `logout` here signs out nothing else. `whoami` and every `space` subcommand take `--json`. `PHOENIX_ID_BASE` points the CLI at a different account service (a local one, for instance); it defaults to the deployed Phoenix ID service.
|
|
1035
|
+
|
|
1036
|
+
Distinct from **Accounts** below: this is *your human identity*; those are the *harness credentials* an agent runs under.
|
|
1037
|
+
|
|
1038
|
+
---
|
|
1039
|
+
|
|
1005
1040
|
## Accounts
|
|
1006
1041
|
|
|
1007
1042
|
Give a provider credential a durable name once, reuse it everywhere -- across harnesses, across machines.
|
|
@@ -1290,7 +1325,7 @@ Two repos with the same shape, different roles:
|
|
|
1290
1325
|
|
|
1291
1326
|
See [docs/concepts.md](apps/cli/docs/concepts.md) for the full mental model: DotAgents repos, resource kinds, and how resolution works end-to-end.
|
|
1292
1327
|
|
|
1293
|
-
Other useful commands: `agents doctor` checks CLI availability and resource sync drift, `agents
|
|
1328
|
+
Other useful commands: `agents doctor` checks CLI availability and resource sync drift, `agents view` shows per-account quota/rate-limit data for installed agents, `agents config budget` shows cross-vendor spend caps and current spend-to-cap (and enforces pre-flight estimates + a hard-cap kill-switch on every run — see [docs/observability.md](apps/cli/docs/observability.md#budget-guardrails-agents-budget)), `agents import` adopts an existing unmanaged install, `agents trash` lists and restores soft-deleted version directories, and `agents subagents` installs reusable subagent definitions for parent-agent workflows.
|
|
1294
1329
|
|
|
1295
1330
|
---
|
|
1296
1331
|
|
|
@@ -1475,7 +1510,7 @@ Claude Code, Codex CLI, Antigravity, Grok Build, and others each have their own
|
|
|
1475
1510
|
|
|
1476
1511
|
### Is it free?
|
|
1477
1512
|
|
|
1478
|
-
Yes. This developer tool is entirely free because we believe developers should have the best tools — fast and robust — so they can create the best products for their users.
|
|
1513
|
+
Yes — every feature, with no account and no signup. `agents run`, sessions, teams, fleet dispatch, secrets, browser, and computer automation all work the moment you install. The optional `agents auth login` exists only to unlock hosted team spaces (`agents auth space`); there are no paid tiers. This developer tool is entirely free because we believe developers should have the best tools — fast and robust — so they can create the best products for their users.
|
|
1479
1514
|
|
|
1480
1515
|
### Is this like `nvm` / `mise` / `asdf` for AI agents?
|
|
1481
1516
|
|
|
@@ -1509,7 +1544,9 @@ macOS and Linux. Windows via WSL works but isn't first-class yet.
|
|
|
1509
1544
|
|
|
1510
1545
|
**macOS-only features:** Keychain-based secrets (`agents secrets`, `agents accounts add`) require macOS. Default iCloud sync for bundles requires macOS + iCloud Keychain enabled; use `--no-icloud-sync` for device-local bundles. On Linux, use environment variables or `.env` files for API keys. Native Linux credential store support is planned.
|
|
1511
1546
|
|
|
1512
|
-
Interactive
|
|
1547
|
+
Interactive runs spawn directly by default. Enable `tmux.enabled` on a device to
|
|
1548
|
+
give each run an addressable pane for `agents message`, injection, and `agents
|
|
1549
|
+
focus`; tmux-backed runs require tmux 3.2 or newer.
|
|
1513
1550
|
|
|
1514
1551
|
### Do I need Node.js?
|
|
1515
1552
|
|
|
@@ -1568,4 +1605,4 @@ Commands in [`apps/cli/src/commands/`](apps/cli/src/commands/), libraries in [`a
|
|
|
1568
1605
|
|
|
1569
1606
|
## License
|
|
1570
1607
|
|
|
1571
|
-
Apache-2.0 -- see [LICENSE](./LICENSE).
|
|
1608
|
+
FSL-1.1-Apache-2.0 -- see [LICENSE](./LICENSE). Free for every user and company to use, modify, and redistribute; the only barred use is offering agents-cli itself as a competing commercial product or service. Each version automatically becomes Apache-2.0 two years after its release.
|
|
@@ -63,8 +63,8 @@ export declare const loadMenubar: ModuleLoader;
|
|
|
63
63
|
export declare const loadSync: ModuleLoader;
|
|
64
64
|
export declare const loadRefreshRules: ModuleLoader;
|
|
65
65
|
export declare const loadFactory: ModuleLoader;
|
|
66
|
-
export declare const loadUsage: ModuleLoader;
|
|
67
66
|
export declare const loadInsights: ModuleLoader;
|
|
67
|
+
export declare const loadTrace: ModuleLoader;
|
|
68
68
|
export declare const loadPerf: ModuleLoader;
|
|
69
69
|
export declare const loadPty: ModuleLoader;
|
|
70
70
|
export declare const loadTmux: ModuleLoader;
|
|
@@ -90,6 +90,7 @@ export declare const loadWebhooks: ModuleLoader;
|
|
|
90
90
|
export declare const loadHumans: ModuleLoader;
|
|
91
91
|
export declare const loadAccounts: ModuleLoader;
|
|
92
92
|
export declare const loadDaemon: ModuleLoader;
|
|
93
|
+
export declare const loadAuth: ModuleLoader;
|
|
93
94
|
/**
|
|
94
95
|
* Commands whose modules pull in the SQLite-backed session/cloud stack. They are
|
|
95
96
|
* registered AFTER `applyGlobalHelpConventions` (mirroring main's order: help
|
|
@@ -65,8 +65,8 @@ export const loadMenubar = async () => (await import('../commands/menubar.js')).
|
|
|
65
65
|
export const loadSync = async () => (await import('../commands/sync.js')).registerSyncCommand;
|
|
66
66
|
export const loadRefreshRules = async () => (await import('../commands/refresh-rules.js')).registerRefreshRulesCommand;
|
|
67
67
|
export const loadFactory = async () => (await import('../commands/factory.js')).registerFactoryCommands;
|
|
68
|
-
export const loadUsage = async () => (await import('../commands/usage.js')).registerUsageCommand;
|
|
69
68
|
export const loadInsights = async () => (await import('../commands/insights.js')).registerInsightsCommand;
|
|
69
|
+
export const loadTrace = async () => (await import('../commands/sessions-trace.js')).registerTraceCommand;
|
|
70
70
|
export const loadPerf = async () => (await import('../commands/perf.js')).registerPerfCommand;
|
|
71
71
|
export const loadPty = async () => (await import('../commands/pty.js')).registerPtyCommands;
|
|
72
72
|
export const loadTmux = async () => (await import('../commands/tmux.js')).registerTmuxCommands;
|
|
@@ -93,6 +93,7 @@ export const loadWebhooks = async () => (await import('../commands/webhook.js'))
|
|
|
93
93
|
export const loadHumans = async () => (await import('../commands/humans.js')).registerHumansCommands;
|
|
94
94
|
export const loadAccounts = async () => (await import('../commands/accounts.js')).registerAccountsCommand;
|
|
95
95
|
export const loadDaemon = async () => (await import('../commands/daemon.js')).registerDaemonCommand;
|
|
96
|
+
export const loadAuth = async () => (await import('../commands/auth.js')).registerAuthCommand;
|
|
96
97
|
/**
|
|
97
98
|
* Commands whose modules pull in the SQLite-backed session/cloud stack. They are
|
|
98
99
|
* registered AFTER `applyGlobalHelpConventions` (mirroring main's order: help
|
|
@@ -171,8 +172,10 @@ export const COMMAND_LOADERS = {
|
|
|
171
172
|
sync: [loadSync],
|
|
172
173
|
'refresh-rules': [loadRefreshRules],
|
|
173
174
|
factory: [loadFactory],
|
|
174
|
-
usage: [loadUsage],
|
|
175
175
|
insights: [loadInsights],
|
|
176
|
+
// `agents trace` is a top-level alias of `agents sessions trace` (precedent:
|
|
177
|
+
// `agents insights` aliases `agents sessions insights`). One implementation.
|
|
178
|
+
trace: [loadTrace],
|
|
176
179
|
perf: [loadPerf],
|
|
177
180
|
pty: [loadPty],
|
|
178
181
|
tmux: [loadTmux],
|
|
@@ -207,6 +210,7 @@ export const COMMAND_LOADERS = {
|
|
|
207
210
|
webhooks: [loadWebhooks],
|
|
208
211
|
humans: [loadHumans],
|
|
209
212
|
daemon: [loadDaemon],
|
|
213
|
+
auth: [loadAuth],
|
|
210
214
|
};
|
|
211
215
|
/**
|
|
212
216
|
* Register every module in {@link COMMAND_LOADERS} onto one fresh program and
|