claude-comms 1.0.31 → 1.0.33

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/.agents/AGENTS.md CHANGED
@@ -43,14 +43,17 @@ Evaluate the Change for a given Assignment/Task against the following criteria:
43
43
 
44
44
 
45
45
  [VALIDATE]
46
- 1. Run required commands — all must pass without warnings or errors:
46
+ Run required commands — all must pass without warnings or errors:
47
47
  - `pnpm lint`
48
48
  - `pnpm ts:check`
49
49
  - `pnpm test:all`
50
50
  - `pnpm build`
51
- 2. Perform manual QA:
52
- - Use chrome-devtools MCP to manually exercise the impacted flows.
53
- - Visually inspect any UI/UX areas touched by the change for regressions or accessibility issues.
51
+
52
+ [UAT]
53
+ Perform manual QA:
54
+ - Run `uv run .agents/tools/chrome-devtools/browsertools.py --help` to learn how to use the UAT toolkit
55
+ - manually exercise the impacted flows.
56
+ - Visually inspect any UI/UX areas touched by the change for regressions or accessibility issues.
54
57
 
55
58
 
56
59
  [/AGENT OPERATING PROCEDURES]
@@ -0,0 +1,45 @@
1
+ # Agent Tools
2
+
3
+ Collection of specialized tools for agent workflows.
4
+
5
+ ## Available Tools
6
+
7
+ ### chrome-devtools/
8
+ Chrome DevTools MCP wrapper for browser automation and UAT.
9
+
10
+ **Quick start:**
11
+ ```bash
12
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon start
13
+ uv run .agents/tools/chrome-devtools/browsertools.py nav http://localhost:5173/
14
+ uv run .agents/tools/chrome-devtools/browsertools.py snap
15
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon stop
16
+ ```
17
+
18
+ **Documentation:**
19
+ - [README.md](chrome-devtools/README.md) - Quick start and examples
20
+ - [TOOL_REFERENCE.md](chrome-devtools/TOOL_REFERENCE.md) - Complete parameter reference
21
+ - [CONFIG.md](chrome-devtools/CONFIG.md) - Environment configuration
22
+ - [COVERAGE.md](chrome-devtools/COVERAGE.md) - Tool coverage analysis
23
+
24
+ **Features:**
25
+ - 96% context token reduction vs native MCP
26
+ - Persistent state across CLI invocations
27
+ - Network/console debugging
28
+ - Configurable for any environment (local/sandbox/CI)
29
+
30
+ ---
31
+
32
+ ## Adding New Tools
33
+
34
+ When creating new agent tools:
35
+
36
+ 1. Create subdirectory: `.agents/tools/<tool-name>/`
37
+ 2. Add main script (preferably uv-based)
38
+ 3. Add README.md with usage examples
39
+ 4. Update this index
40
+
41
+ **Design principles:**
42
+ - Minimize context token usage
43
+ - Provide clear documentation
44
+ - Support non-interactive CLI usage
45
+ - Handle cleanup properly
@@ -0,0 +1,101 @@
1
+ # Chrome DevTools Browser Automation Tool
2
+
3
+ Stateful Chrome automation wrapper that reduces context token usage by 96% while maintaining full browser state across multiple CLI invocations.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # From repo root - start daemon in background
9
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon start &
10
+ sleep 5
11
+
12
+ # Use commands - state persists across invocations!
13
+ uv run .agents/tools/chrome-devtools/browsertools.py nav http://localhost:5173/
14
+ uv run .agents/tools/chrome-devtools/browsertools.py snap
15
+ uv run .agents/tools/chrome-devtools/browsertools.py click 1_7
16
+ uv run .agents/tools/chrome-devtools/browsertools.py snap
17
+
18
+ # Stop when done
19
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon stop
20
+ ```
21
+
22
+ ## Full Command Reference
23
+
24
+ Run `uv run .agents/tools/chrome-devtools/browsertools.py --help` to see all commands.
25
+
26
+ **Key commands:**
27
+ - `daemon start` - Start browser (run in background with `&`)
28
+ - `nav <url>` - Navigate to URL
29
+ - `snap` - Get page snapshot with element UIDs
30
+ - `click <uid>` - Click element
31
+ - `fill <uid> <value>` - Fill input/select
32
+ - `shot [path]` - Screenshot
33
+ - `conslist`, `netlist` - Debug console/network
34
+ - `daemon stop` - Clean shutdown
35
+
36
+ ## Configuration
37
+
38
+ **Default:** Headless mode (no Chrome window)
39
+
40
+ **To use visual mode:** Create `~/.browsertools/config.json`:
41
+ ```json
42
+ {
43
+ "mcp_args": ["-y", "chrome-devtools-mcp@latest", "--isolated"]
44
+ }
45
+ ```
46
+
47
+ **For sandbox:** See `config.json` in this directory for examples.
48
+
49
+ ## Architecture
50
+
51
+ - **Persistent daemon** - Single MCP server runs in background
52
+ - **Unix socket bridge** - Multiple CLI commands share state via socket
53
+ - **Stateful** - Snapshots, tabs, cookies persist across invocations
54
+ - **Clean shutdown** - Process groups ensure no orphaned Chrome processes
55
+
56
+
57
+ ## Complete UAT Example
58
+
59
+ ```bash
60
+ # Start daemon
61
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon start &
62
+ sleep 5
63
+
64
+ # Navigate and get page structure
65
+ uv run .agents/tools/chrome-devtools/browsertools.py nav http://app.com/login
66
+ uv run .agents/tools/chrome-devtools/browsertools.py snap | grep email
67
+ # Found: uid=1_23 input "email"
68
+
69
+ # Fill form
70
+ uv run .agents/tools/chrome-devtools/browsertools.py fill 1_23 user@example.com
71
+ uv run .agents/tools/chrome-devtools/browsertools.py fill 1_24 password
72
+ uv run .agents/tools/chrome-devtools/browsertools.py click 1_25
73
+
74
+ # Verify
75
+ uv run .agents/tools/chrome-devtools/browsertools.py wait "Dashboard"
76
+ uv run .agents/tools/chrome-devtools/browsertools.py conslist --types error
77
+ uv run .agents/tools/chrome-devtools/browsertools.py shot /tmp/success.png
78
+
79
+ # Cleanup
80
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon stop
81
+ ```
82
+
83
+ ## Troubleshooting
84
+
85
+ **Chrome window appears:** Remove `~/.browsertools/config.json` to use default headless mode
86
+
87
+ **"Daemon not running":**
88
+ ```bash
89
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon status
90
+ uv run .agents/tools/chrome-devtools/browsertools.py daemon start &
91
+ ```
92
+
93
+ **Timeouts:** Increase with `--timeout` flag on nav/wait commands
94
+
95
+ ## Files
96
+
97
+ - `browsertools.py` - Main tool (24KB)
98
+ - `config.json` - Default config (headless mode)
99
+ - `README.md` - This file
100
+
101
+ User config at `~/.browsertools/config.json` overrides repo defaults.