copilot-agent 0.9.0 → 0.11.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 +104 -24
- package/dist/index.js +583 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,8 +12,15 @@ Autonomous AI agent manager — auto-resume sessions, discover tasks, run overni
|
|
|
12
12
|
| **`overnight`** | Run tasks continuously until a deadline (e.g. 07:00) |
|
|
13
13
|
| **`research`** | Architecture, security, and performance analysis |
|
|
14
14
|
| **`report`** | Session activity report — tools, commits, files, tokens |
|
|
15
|
-
| **`dashboard`** |
|
|
15
|
+
| **`dashboard`** | htop-style TUI dashboard with blessed (scrollable, keyboard nav) |
|
|
16
16
|
| **`web`** | Web dashboard with live updates (Hono + htmx + SSE) |
|
|
17
|
+
| **`config`** | Persistent configuration defaults (global + per-project) |
|
|
18
|
+
| **`proxy`** | Manage copilot-api proxy for Claude Code via Copilot |
|
|
19
|
+
| **`diff`** | Show git changes made by an agent session |
|
|
20
|
+
| **`quota`** | Track premium requests, tokens, and usage over time |
|
|
21
|
+
| **`compact`** | Generate context summary for session handoff/resume |
|
|
22
|
+
| **`hooks`** | Event-driven automation (on_task_complete, on_error, etc.) |
|
|
23
|
+
| **`pr`** | Auto-create GitHub Pull Request from session changes |
|
|
17
24
|
|
|
18
25
|
All commands support `--agent copilot` or `--agent claude` (auto-detects if omitted).
|
|
19
26
|
|
|
@@ -43,7 +50,6 @@ copilot-agent status --active
|
|
|
43
50
|
|
|
44
51
|
# Filter by agent
|
|
45
52
|
copilot-agent status --agent claude
|
|
46
|
-
copilot-agent status --agent copilot
|
|
47
53
|
```
|
|
48
54
|
|
|
49
55
|
### Watch & auto-resume
|
|
@@ -83,46 +89,119 @@ copilot-agent overnight ~/my-project
|
|
|
83
89
|
|
|
84
90
|
# Run with Claude Code
|
|
85
91
|
copilot-agent overnight --agent claude --until 07 --max-premium 200
|
|
86
|
-
|
|
87
|
-
# Use worktree for parallel tasks
|
|
88
|
-
copilot-agent overnight --worktree
|
|
89
92
|
```
|
|
90
93
|
|
|
91
|
-
### Session report
|
|
94
|
+
### Session report & diff
|
|
92
95
|
|
|
93
96
|
```bash
|
|
94
|
-
# Latest session
|
|
97
|
+
# Latest session report
|
|
95
98
|
copilot-agent report
|
|
96
99
|
|
|
97
|
-
#
|
|
98
|
-
copilot-agent
|
|
100
|
+
# Show git changes from latest session
|
|
101
|
+
copilot-agent diff
|
|
102
|
+
|
|
103
|
+
# Show changes from specific session with diffstat
|
|
104
|
+
copilot-agent diff abc12345-... --stat
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Dashboards
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# htop-style TUI (blessed — scrollable, keyboard nav)
|
|
111
|
+
copilot-agent dashboard
|
|
112
|
+
|
|
113
|
+
# Simple ANSI fallback (no dependencies)
|
|
114
|
+
copilot-agent dashboard --simple
|
|
115
|
+
|
|
116
|
+
# Web UI (Hono + htmx, opens browser)
|
|
117
|
+
copilot-agent web
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Configuration
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# Set persistent defaults
|
|
124
|
+
copilot-agent config set agent claude
|
|
125
|
+
copilot-agent config set steps 50
|
|
126
|
+
copilot-agent config set worktree true
|
|
99
127
|
|
|
100
|
-
#
|
|
101
|
-
copilot-agent
|
|
128
|
+
# View all config (defaults + global + project)
|
|
129
|
+
copilot-agent config list
|
|
102
130
|
|
|
103
|
-
#
|
|
104
|
-
copilot-agent report --project ~/my-project
|
|
131
|
+
# Per-project config: create .copilot-agent.yaml in project root
|
|
105
132
|
```
|
|
106
133
|
|
|
107
|
-
###
|
|
134
|
+
### Proxy management (Claude Code via Copilot)
|
|
108
135
|
|
|
109
136
|
```bash
|
|
110
|
-
#
|
|
111
|
-
copilot-agent
|
|
137
|
+
# Start copilot-api proxy (auto-detects Copilot OAuth token)
|
|
138
|
+
copilot-agent proxy start
|
|
112
139
|
|
|
113
|
-
#
|
|
114
|
-
copilot-agent
|
|
140
|
+
# Check status (PID, port, token, model count)
|
|
141
|
+
copilot-agent proxy status
|
|
115
142
|
```
|
|
116
143
|
|
|
117
|
-
###
|
|
144
|
+
### Usage tracking
|
|
118
145
|
|
|
119
146
|
```bash
|
|
120
|
-
#
|
|
121
|
-
copilot-agent
|
|
147
|
+
# Show last 7 days of premium/token usage
|
|
148
|
+
copilot-agent quota
|
|
122
149
|
|
|
123
|
-
#
|
|
124
|
-
copilot-agent
|
|
125
|
-
|
|
150
|
+
# All-time usage
|
|
151
|
+
copilot-agent quota --all
|
|
152
|
+
|
|
153
|
+
# Last 30 days
|
|
154
|
+
copilot-agent quota --days 30
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Context handoff (compact)
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
# Generate context summary from latest session
|
|
161
|
+
copilot-agent compact
|
|
162
|
+
|
|
163
|
+
# Save compact to file
|
|
164
|
+
copilot-agent compact --save
|
|
165
|
+
|
|
166
|
+
# Get a resume prompt to continue the work
|
|
167
|
+
copilot-agent compact --resume-prompt
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Hooks (event-driven automation)
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
# Show configured hooks
|
|
174
|
+
copilot-agent hooks list
|
|
175
|
+
|
|
176
|
+
# Test-run hooks for an event
|
|
177
|
+
copilot-agent hooks test on_task_complete
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Create `~/.copilot-agent/hooks.yaml` or `.copilot-agent/hooks.yaml`:
|
|
181
|
+
|
|
182
|
+
```yaml
|
|
183
|
+
on_task_complete:
|
|
184
|
+
- command: "npm test"
|
|
185
|
+
name: "Run tests"
|
|
186
|
+
on_session_end:
|
|
187
|
+
- command: "git push origin HEAD"
|
|
188
|
+
name: "Auto-push"
|
|
189
|
+
on_error:
|
|
190
|
+
- command: "curl -X POST $SLACK_WEBHOOK -d '{\"text\":\"Agent error!\"}'"
|
|
191
|
+
name: "Notify Slack"
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Auto-create Pull Request
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
# Create PR from latest session
|
|
198
|
+
copilot-agent pr
|
|
199
|
+
|
|
200
|
+
# Dry-run (preview without creating)
|
|
201
|
+
copilot-agent pr --dry-run
|
|
202
|
+
|
|
203
|
+
# Create ready (non-draft) PR
|
|
204
|
+
copilot-agent pr --no-draft
|
|
126
205
|
```
|
|
127
206
|
|
|
128
207
|
## How it works
|
|
@@ -133,6 +212,7 @@ copilot-agent web --port 8080
|
|
|
133
212
|
4. **Task discovery** — Detects project type and generates relevant maintenance tasks
|
|
134
213
|
5. **Race prevention** — File locking + process tracking prevents concurrent agents in the same directory
|
|
135
214
|
6. **Worktree isolation** — Optional `--worktree` flag for parallel task execution via `git worktree`
|
|
215
|
+
7. **Config layering** — Defaults → `~/.copilot-agent/config.yaml` → `.copilot-agent.yaml` → CLI flags
|
|
136
216
|
|
|
137
217
|
## Supported project types
|
|
138
218
|
|