Skip to content

Commit ff6dda3

Browse files
committed
fix conflict
1 parent f429388 commit ff6dda3

10 files changed

Lines changed: 1184 additions & 124 deletions

File tree

docs/config-reference.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,28 @@ OpenAI API configuration.
163163
| `defaultRoot` | string | Current directory | Default workspace when none specified |
164164
| `allowDangerousOps` | boolean | `false` | Allow destructive operations without confirmation |
165165

166+
### Workspace Safety
167+
168+
Autohand automatically blocks operation in dangerous directories to prevent accidental damage:
169+
170+
- **Filesystem roots** (`/`, `C:\`, `D:\`, etc.)
171+
- **Home directories** (`~`, `/Users/<user>`, `/home/<user>`, `C:\Users\<user>`)
172+
- **System directories** (`/etc`, `/var`, `/System`, `C:\Windows`, etc.)
173+
- **WSL Windows mounts** (`/mnt/c`, `/mnt/c/Users/<user>`)
174+
175+
This check cannot be bypassed. If you try to run autohand in a dangerous directory, you'll see an error and must specify a safe project directory.
176+
177+
```bash
178+
# This will be blocked
179+
cd ~ && autohand
180+
# Error: Unsafe Workspace Directory
181+
182+
# This works
183+
cd ~/projects/my-app && autohand
184+
```
185+
186+
See [Workspace Safety](./workspace-safety.md) for full details.
187+
166188
---
167189

168190
## UI Settings
@@ -283,7 +305,8 @@ Control agent behavior and iteration limits.
283305
{
284306
"agent": {
285307
"maxIterations": 100,
286-
"enableRequestQueue": true
308+
"enableRequestQueue": true,
309+
"debug": false
287310
}
288311
}
289312
```
@@ -292,6 +315,17 @@ Control agent behavior and iteration limits.
292315
|-------|------|---------|-------------|
293316
| `maxIterations` | number | `100` | Maximum tool iterations per user request before stopping |
294317
| `enableRequestQueue` | boolean | `true` | Allow users to type and queue requests while agent is working |
318+
| `debug` | boolean | `false` | Enable verbose debug output (logs agent internal state to stderr) |
319+
320+
### Debug Mode
321+
322+
Enable debug mode to see verbose logging of agent internal state (react loop iterations, prompt building, session details). Output goes to stderr to avoid interfering with normal output.
323+
324+
Three ways to enable debug mode (in order of precedence):
325+
326+
1. **CLI flag**: `autohand -d` or `autohand --debug`
327+
2. **Environment variable**: `AUTOHAND_DEBUG=1`
328+
3. **Config file**: Set `agent.debug: true`
295329

296330
### Request Queue
297331

@@ -888,7 +922,8 @@ When hooks execute, these environment variables are available:
888922
},
889923
"agent": {
890924
"maxIterations": 100,
891-
"enableRequestQueue": true
925+
"enableRequestQueue": true,
926+
"debug": false
892927
},
893928
"permissions": {
894929
"mode": "interactive",
@@ -968,6 +1003,7 @@ ui:
9681003
agent:
9691004
maxIterations: 100
9701005
enableRequestQueue: true
1006+
debug: false
9711007

9721008
permissions:
9731009
mode: interactive
@@ -1060,6 +1096,7 @@ These flags override config file settings:
10601096
| `--temperature <n>` | Set temperature (0-1) |
10611097
| `--yes` | Auto-confirm prompts |
10621098
| `--dry-run` | Preview without executing |
1099+
| `-d, --debug` | Enable verbose debug output |
10631100
| `--unrestricted` | No approval prompts |
10641101
| `--restricted` | Deny dangerous operations |
10651102
| `--permissions` | Display current permission settings and exit |

docs/telemetry.md

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Autohand CLI includes an optional telemetry system designed to help improve the product while respecting user privacy. This document outlines what data is collected, how it's handled, and how users can control their data.
1212

1313
**Guiding Principles:**
14+
1415
1. **Privacy First** - No personally identifiable information (PII) is ever collected
1516
2. **Transparency** - Users know exactly what's collected
1617
3. **User Control** - Easy opt-out, data deletion on request
@@ -22,13 +23,13 @@ Autohand CLI includes an optional telemetry system designed to help improve the
2223

2324
### What We Collect
2425

25-
| Category | Data Points | Purpose |
26-
|----------|-------------|---------|
27-
| **Session** | Start/end time, duration, status | Understand usage patterns |
28-
| **Tools** | Which tools used, success/failure, duration | Improve tool reliability |
29-
| **Errors** | Error type, sanitized message | Fix bugs faster |
30-
| **Commands** | Slash commands used | Prioritize feature development |
31-
| **Environment** | OS, Node version, CLI version | Ensure compatibility |
26+
| Category | Data Points | Purpose |
27+
| --------------- | ------------------------------------------- | ------------------------------ |
28+
| **Session** | Start/end time, duration, status | Understand usage patterns |
29+
| **Tools** | Which tools used, success/failure, duration | Improve tool reliability |
30+
| **Errors** | Error type, sanitized message | Fix bugs faster |
31+
| **Commands** | Slash commands used | Prioritize feature development |
32+
| **Environment** | OS, Node version, CLI version | Ensure compatibility |
3233

3334
### What We Do NOT Collect
3435

@@ -120,6 +121,7 @@ Triggered on unexpected errors.
120121
```
121122

122123
**Stack Trace Sanitization**:
124+
123125
- `/Users/<username>/``/Users/***/`
124126
- `/home/<username>/``/home/***/`
125127
- `C:\Users\<username>\``C:\Users\***\`
@@ -240,13 +242,13 @@ Session data uploaded for cloud sync feature.
240242

241243
### Event Batching
242244

243-
| Setting | Value | Configurable |
244-
|---------|-------|--------------|
245-
| Batch size | 20 events | No |
246-
| Flush interval | 60 seconds | No |
247-
| Max queue size | 500 events | No |
248-
| Retry attempts | 3 | No |
249-
| Retry backoff | 1s, 2s, 3s | No |
245+
| Setting | Value | Configurable |
246+
| -------------- | ---------- | ------------ |
247+
| Batch size | 20 events | No |
248+
| Flush interval | 60 seconds | No |
249+
| Max queue size | 500 events | No |
250+
| Retry attempts | 3 | No |
251+
| Retry backoff | 1s, 2s, 3s | No |
250252

251253
### Network Behavior
252254

@@ -325,19 +327,19 @@ Enable both telemetry and cloud session sync:
325327

326328
### On-Device
327329

328-
| Data | Location | Retention |
329-
|------|----------|-----------|
330-
| Event queue | `~/.autohand/telemetry/queue.json` | Until synced |
330+
| Data | Location | Retention |
331+
| ------------------ | ----------------------------------------------- | --------------------- |
332+
| Event queue | `~/.autohand/telemetry/queue.json` | Until synced |
331333
| Session sync queue | `~/.autohand/telemetry/session-sync-queue.json` | Until synced (max 10) |
332-
| Device ID | `~/.autohand/device-id` | Permanent |
334+
| Device ID | `~/.autohand/device-id` | Permanent |
333335

334336
### Server-Side
335337

336-
| Data | Storage | Retention |
337-
|------|---------|-----------|
338-
| Telemetry events | D1 + R2 | 90 days |
339-
| Session data | R2 | 90 days |
340-
| Aggregated metrics | D1 | Indefinite |
338+
| Data | Storage | Retention |
339+
| ------------------ | ------- | ---------- |
340+
| Telemetry events | D1 + R2 | 90 days |
341+
| Session data | R2 | 90 days |
342+
| Aggregated metrics | D1 | Indefinite |
341343

342344
---
343345

@@ -352,18 +354,18 @@ Enable both telemetry and cloud session sync:
352354

353355
### Enterprise (Planned)
354356

355-
| Feature | Description |
356-
|---------|-------------|
357-
| **Private Telemetry Endpoint** | Self-hosted API for complete data control |
358-
| **Data Residency** | Choose region for data storage (EU, US, APAC) |
359-
| **Extended Retention** | Custom retention periods up to 2 years |
360-
| **Audit Logs** | Detailed logs of all data access |
361-
| **SSO Integration** | Link telemetry to enterprise identity |
362-
| **Team Analytics** | Aggregated usage across team members |
363-
| **Custom Dashboards** | Build custom analytics views |
364-
| **Export API** | Programmatic access to raw telemetry |
365-
| **Compliance Reports** | SOC2, GDPR, HIPAA compliance documentation |
366-
| **Data Deletion API** | Programmatic GDPR deletion requests |
357+
| Feature | Description |
358+
| ------------------------------ | --------------------------------------------- |
359+
| **Private Telemetry Endpoint** | Self-hosted API for complete data control |
360+
| **Data Residency** | Choose region for data storage (EU, US, APAC) |
361+
| **Extended Retention** | Custom retention periods up to 2 years |
362+
| **Audit Logs** | Detailed logs of all data access |
363+
| **SSO Integration** | Link telemetry to enterprise identity |
364+
| **Team Analytics** | Aggregated usage across team members |
365+
| **Custom Dashboards** | Build custom analytics views |
366+
| **Export API** | Programmatic access to raw telemetry |
367+
| **Compliance Reports** | SOC2, GDPR, HIPAA compliance documentation |
368+
| **Data Deletion API** | Programmatic GDPR deletion requests |
367369

368370
### Enterprise Configuration
369371

@@ -396,11 +398,11 @@ Enable both telemetry and cloud session sync:
396398

397399
### Data Processing
398400

399-
| Role | Entity |
400-
|------|--------|
401-
| Data Controller | Autohand AI LLC |
402-
| Data Processor | Cloudflare (hosting) |
403-
| Sub-processors | None |
401+
| Role | Entity |
402+
| --------------- | -------------------- |
403+
| Data Controller | Autohand AI LLC |
404+
| Data Processor | Cloudflare (hosting) |
405+
| Sub-processors | None |
404406

405407
### Security Measures
406408

@@ -446,12 +448,12 @@ sudo tcpdump -i any host api.autohand.ai
446448

447449
## Changelog
448450

449-
| Date | Change |
450-
|------|--------|
451+
| Date | Change |
452+
| ------- | --------------------------------------- |
451453
| 2024-12 | Initial telemetry system implementation |
452-
| 2024-12 | Added offline batching and sync |
453-
| 2024-12 | Added session cloud sync |
454-
| 2024-12 | Added enterprise feature planning |
454+
| 2024-12 | Added offline batching and sync |
455+
| 2024-12 | Added session cloud sync |
456+
| 2024-12 | Added enterprise feature planning |
455457

456458
---
457459

@@ -460,8 +462,8 @@ sudo tcpdump -i any host api.autohand.ai
460462
For telemetry-related questions or data requests:
461463

462464
- **Email**: privacy@autohand.ai
463-
- **GitHub**: https://github.com/autohand/cli/issues
465+
- **GitHub**: https://github.com/autohandai/code-cli/issues
464466

465467
---
466468

467-
*This document is part of the Autohand CLI open-source project and is subject to the Apache-2.0 license.*
469+
_This document is part of the Autohand CLI open-source project and is subject to the Apache-2.0 license._

0 commit comments

Comments
 (0)