How a Simple /clear Command Cut Claude Code Usage After Playwright MCP Testing
A developer using Claude Code at work noticed unexpectedly high usage credits being consumed, prompting a closer look at their daily workflow. Using the /clear command, they found that 36% of usage was linked to the Playwright MCP server and that 79% of sessions involved contexts exceeding 150,000 tokens. The root cause was accumulated browser-testing context from repeated Playwright MCP operations — such as page navigation, element inspection, and form interactions — that lingered in the session even after testing was complete. The developer realized that continuing to work in the same session carried forward large, no-longer-needed context, making subsequent processing heavier and more credit-intensive. Their fix was straightforward: after finishing a Playwright MCP test, if the context is not needed for the next task, they now run /clear to reset the session.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in