From 6364acf316e1e18547e2790d168ec34afecca0ee Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Mon, 26 Jan 2026 13:42:44 +0100 Subject: [PATCH] agents updates --- AGENTS.md | 5 ++++- PLAYWRITER_AGENTS.md | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 90befab..cfbd05a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -173,6 +173,9 @@ sometimes the user will ask you to debug an mcp issue. to do this you may want t if the problem was in the ws server you can restart that yourself killing process listening on 19988 and sending a new mcp call. +## running playwriter cli locally + +to run the cli locally with your current changes call `tsx playwriter/src/cli.ts -e ...`. also make sure you kill process on 19988 first to make sure to use the latest relay executor code. ## playwright source code @@ -191,7 +194,7 @@ ignore ./claude-extension. this is the source code of the Claude Chrome extensio you can find the logfile for playwriter executing `playwriter logfile`. read that then to understand issues happening and debug them -the cdp log is a jsonl file (one json object per line). you can use jq to compress it. for example, list direction + method: + `playwriter logfile` also logs a jsonl file with all CDP commands and events being sent between extension, cli, mcp and relay. the cdp log is a jsonl file (one json object per line). you can use jq to process and read it efficiently. for example, list direction + method: ```bash jq -r '.direction + "\t" + (.message.method // "response")' /tmp/playwriter/cdp.jsonl | uniq -c diff --git a/PLAYWRITER_AGENTS.md b/PLAYWRITER_AGENTS.md index 1f97b14..ac0c650 100644 --- a/PLAYWRITER_AGENTS.md +++ b/PLAYWRITER_AGENTS.md @@ -171,6 +171,9 @@ sometimes the user will ask you to debug an mcp issue. to do this you may want t if the problem was in the ws server you can restart that yourself killing process listening on 19988 and sending a new mcp call. +## running playwriter cli locally + +to run the cli locally with your current changes call `tsx playwriter/src/cli.ts -e ...`. also make sure you kill process on 19988 first to make sure to use the latest relay executor code. ## playwright source code @@ -189,7 +192,7 @@ ignore ./claude-extension. this is the source code of the Claude Chrome extensio you can find the logfile for playwriter executing `playwriter logfile`. read that then to understand issues happening and debug them -the cdp log is a jsonl file (one json object per line). you can use jq to compress it. for example, list direction + method: + `playwriter logfile` also logs a jsonl file with all CDP commands and events being sent between extension, cli, mcp and relay. the cdp log is a jsonl file (one json object per line). you can use jq to process and read it efficiently. for example, list direction + method: ```bash jq -r '.direction + "\t" + (.message.method // "response")' /tmp/playwriter/cdp.jsonl | uniq -c