Anthropic open-sources commerce-agents blueprint for AI shopping assistants

A new reference implementation for building shopping and merchant agents with Claude, featuring industry-specific demos and a Claude Code plugin.

cpaua3 min142

Developers can now build specialized AI assistants for retail and B2B operations using the anthropics/commerce-agentsgithub.com/anthropics/commerce-agents open-source blueprint from Anthropic. This framework provides the architecture, guardrails, and reference implementations needed to deploy shopping agents for consumers and merchant agents for back-office staff across sectors like travel, telecom, and entertainment.

The distinction between shopping and merchant agents

The blueprint defines two primary roles. The shopping agent handles consumer-facing tasks: searching catalogs, comparing products, managing carts, and answering policy questions. It uses a StorefrontBackend to interface with a company's existing catalog and order systems.

The merchant agent is designed for internal staff to manage store operations. It analyzes sales performance, flags inventory shortages, and drafts marketing campaigns. To ensure safety, every write operation performed by the merchant agent is staged and requires human approval before going live.

Modular skills instead of subagents

Anthropic implements a single-agent loop with modular skills rather than a multi-agent orchestrator. This approach avoids the state loss and latency associated with handing off conversations between subagents. Instructions for common tasks, such as product search, reside in the system prompt, while less frequent tasks are loaded as skills.

UI components are treated as tools. Instead of prompting the model to generate custom markup, the agent calls specific tools like present_products or present_itinerary. This ensures the model emits a typed schema that the client renders, maintaining a reliable record of what is visible on the user's screen.

Deployment paths and the Claude Code plugin

The agents can be run via the Messages API, the Agent SDK, or as Managed Agents. The system is compatible with the Claude API, Amazon Bedrock, Google Cloud Vertex AI, and Microsoft Foundry. To accelerate development, a plugin for Claude Code allows users to scaffold an agent based on their own backend stack.

bash
claude plugin marketplace add anthropics/commerce-agents
claude plugin install commerce-builder@claude-commerce-agents
claude
/scaffold-commerce-agent a shopping assistant for our store

Running the industry vertical demos

The repository includes four runnable examples: retail, travel, telecom, and entertainment. These demos use fictional data from a company called ACME to showcase different capabilities, such as date-bound inventory for travel or plan matrices for telecom.

bash
git clone https://github.com/anthropics/commerce-agents.git && cd commerce-agents
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
(cd examples && npm ci)
python scripts/run_demo.py retail

Sources

anthropics/commerce-agentsgithub.com/anthropics/commerce-agents

A guide to the anatomy of effective commerce agents | Claude by Anthropic

Building commerce agents with Claude | Claude by Anthropic

Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.