Related ToolsClaude CodeClaude

Claude Code Plus Google's New Workspace CLI Makes Inbox Cleanup Trivial

Claude by Anthropic
Image: Anthropic

Thousands of unread emails. We've all been there. One Claude Code user decided to tackle the problem head-on after Google released its Workspace command-line tool (gws CLI) three days ago, and the results make a compelling case for what happens when you combine an AI coding assistant with fresh API access.

The setup was simple: install the gws CLI as a tool available to Claude Code, then start a conversation. Rather than jumping straight to bulk deletion, the user began by asking Claude Code to analyze the inbox - counting messages, breaking down categories, and validating the numbers against what Gmail actually showed. This is smart. You want to trust the tool's data before letting it make changes.

From there, Claude Code could programmatically sort, filter, and process emails using the CLI, turning what would be hours of manual clicking into conversational commands. The entire workflow stayed inside a single Claude Code session.

The timing matters here. Google's Workspace CLI is brand new, and this is one of the first real-world examples of pairing it with an AI coding agent. It points to a broader pattern: every time a major platform ships a CLI or API, AI coding tools like Claude Code, Cursor, or GitHub Copilot can immediately put it to work. The gap between "new developer tool launches" and "non-developers can use it through AI" is shrinking to days.

If you have Claude Code and a messy inbox, this is a weekend project worth trying. Just make sure to start with read-only queries before you let it archive or delete anything.