diff --git a/.gitignore b/.gitignore
index 61dc9d2fcf..fcfdf2a8d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,6 +40,7 @@ xcuserdata/
release/**
*.kiro/
.claude/
+.worktrees/
# npx electron-builder --mac --win
# Playwright
@@ -66,3 +67,5 @@ result-*
# Auto-caption model + ORT wasm — regenerated at build by scripts/fetch-caption-model.mjs
/caption-assets/
+opencode.json
+opencode.json
diff --git a/.opencode/prompts/playwright-test-generator.md b/.opencode/prompts/playwright-test-generator.md
new file mode 100644
index 0000000000..08f19919dd
--- /dev/null
+++ b/.opencode/prompts/playwright-test-generator.md
@@ -0,0 +1,53 @@
+You are a Playwright Test Generator, an expert in browser automation and end-to-end testing.
+Your specialty is creating robust, reliable Playwright tests that accurately simulate user interactions and validate
+application behavior.
+
+# For each test you generate
+- Obtain the test plan with all the steps and verification specification
+- Run the `generator_setup_page` tool to set up page for the scenario
+- For each step and verification in the scenario, do the following:
+ - Use Playwright tool to manually execute it in real-time.
+ - Use the step description as the intent for each Playwright tool call.
+- Retrieve generator log via `generator_read_log`
+- Immediately after reading the test log, invoke `generator_write_test` with the generated source code
+ - File should contain single test
+ - File name must be fs-friendly scenario name
+ - Test must be placed in a describe matching the top-level test plan item
+ - Test title must match the scenario name
+ - Includes a comment with the step text before each step execution. Do not duplicate comments if step requires
+ multiple actions.
+ - Always use best practices from the log when generating tests.
+
+
demo-n8n-as-code-1.mp4
+AXCUT_TRANSCRIPT v1 +META source_video="1781621786114-dcfd85d8-f757-45b1-9f29-5f34f36f17cd-demo-n8n-as-code-1.mp4" duration=154.717 language="en" kind="source" +SEGMENT id=s0001 start=0.000 end=7.480 text="okay so let's see how to install and run any 10s code from scratch so you will" +WORD id=w000001 segment=s0001 start=0.000 end=1.200 text="okay" +WORD id=w000002 segment=s0001 start=1.200 end=1.400 text="so" +WORD id=w000003 segment=s0001 start=1.400 end=1.640 text="let''s" +WORD id=w000004 segment=s0001 start=1.640 end=1.880 text="see" +WORD id=w000005 segment=s0001 start=1.880 end=2.140 text="how" +WORD id=w000006 segment=s0001 start=2.140 end=2.520 text="to" +WORD id=w000007 segment=s0001 start=2.520 end=3.000 text="install" +WORD id=w000008 segment=s0001 start=3.000 end=3.500 text="and" +WORD id=w000009 segment=s0001 start=3.500 end=4.140 text="run" +WORD id=w000010 segment=s0001 start=4.140 end=4.540 text="any" +WORD id=w000011 segment=s0001 start=4.540 end=4.960 text="10s" +WORD id=w000012 segment=s0001 start=4.960 end=5.180 text="code" +WORD id=w000013 segment=s0001 start=5.180 end=5.640 text="from" +WORD id=w000014 segment=s0001 start=5.640 end=6.180 text="scratch" +WORD id=w000015 segment=s0001 start=6.180 end=7.080 text="so" +WORD id=w000016 segment=s0001 start=7.080 end=7.180 text="you" +WORD id=w000017 segment=s0001 start=7.180 end=7.480 text="will" +SEGMENT+
demo-n8n-as-code-1.mp4
+Drag on each side to adjust the crop area
+Reprenez un projet existant ou parcourez vos fichiers
+Choisissez un point de départ et donnez-lui un nom
+