Skip to content

Chrome DevTools for coding agents

chore: add hidden devtoolsComments flag (#2692)

Alex Rudenko9fd461a59eac
diff --git a/src/config/mcp-options.ts b/src/config/mcp-options.ts
index a707ae2e..fbce4443 100644
--- a/src/config/mcp-options.ts
+++ b/src/config/mcp-options.ts
@@ -50,6 +50,13 @@ export const mcpOptions = {
'Require pageId on page-scoped tools and route requests by page ID (useful for concurrent agent sessions). Use --no-page-id-routing to disable.',
default: true,
},
+ devtoolsComments: {
+ type: 'boolean',
+ describe:
+ 'Whether to enable DevTools comments tools. Internal WIP feature.',
+ hidden: true,
+ default: false,
+ },
experimentalDevtools: {
type: 'boolean',
describe: 'Whether to enable automation over DevTools targets',
diff --git a/src/telemetry/flag_usage_metrics.json b/src/telemetry/flag_usage_metrics.json
index 8d408c9c..793cd997 100644
--- a/src/telemetry/flag_usage_metrics.json
+++ b/src/telemetry/flag_usage_metrics.json
@@ -449,5 +449,13 @@
{
"name": "config_present",
"flagType": "boolean"
+ },
+ {
+ "name": "devtools_comments_present",
+ "flagType": "boolean"
+ },
+ {
+ "name": "devtools_comments",
+ "flagType": "boolean"
}
]
diff --git a/tests/cli.test.ts b/tests/cli.test.ts
index 89cdbb32..7e190cc0 100644
--- a/tests/cli.test.ts
+++ b/tests/cli.test.ts
@@ -57,6 +57,7 @@ describe('cli args parsing', () => {
experimentalStructuredContent: false,
pageIdRouting: true,
sourceMaps: true,
+ devtoolsComments: false,
};
it('parses with default args', async () => {
@@ -513,4 +514,9 @@ describe('cli args parsing', () => {
/Invalid JSON config file: Unknown argument: category-memory/,
);
});
+
+ it('parses with devtoolsComments enabled', async () => {
+ const args = parseArguments(['--devtoolsComments']);
+ assert.strictEqual(args.devtoolsComments, true);
+ });
});