commerce-merchant-operations
Skill3.2k starsChanged 3 months agoApache-2.0View on GitHub
The reference merchant agent, covering its flows, staged changes and host approval, metrics grounding, the analysis delegate, store memory, components, and marketplace rules. Load when building or reviewing an agent for the operators of a store, property, subscriber base, or venue.
Trending
Quiet since September.about the whole repository
Who's talking about anthropics/commerce-agents
- A Hacker News story“Anthropic commerce agent: open-source blueprint for shopping and merchant agents”Hacker News · Sep 10, 2026 · 3 points
- A Hacker News story“Commerce Agents: Reference blueprint for building shopping and merchant agents”Hacker News · Sep 2, 2026 · 3 points
- @anthropicai.xmirror.bot“Also, see our open-source reference implementation. This includes shopping & merchant agents, four vertical …”Bluesky · Sep 2, 2026 · 3 likes
- @greg-harvey.tooting.ch.ap.brid.gy“Anthropic: "Hey, we do open source stuff too!" https://github.com/anthropics/commerce-agents Me: "Folks, …”Bluesky · Sep 16, 2026 · 2 likes
- ProSkillsMD/proskills“[Candidate] anthropics/commerce-agents/shopping-agent/skills/search-discovery - search-discovery”GitHub · Sep 28, 2026
The biggest 5 of 29 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 29
Talked about on GitHub, Bluesky and Hacker News (29 times).
On GitHub · 23
- Sep 28, 2026[Candidate] anthropics/commerce-agents/shopping-agent/skills/search-discovery - search-discovery — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/commerce-agents/shopping-agent/skills/purchase-research - purchase-research — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/commerce-agents/shopping-agent/skills/planning-goals - planning-goals — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/commerce-agents/shopping-agent/skills/memory-personalization - memory-personalization — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/commerce-agents/shopping-agent/skills/customer-care - customer-care — ProSkillsMD/proskills0 reactions · 2 comments
18 more on GitHub
- Sep 26, 2026[Candidate] anthropics/commerce-agents/merchant-agent/skills/pricing-promotions - pricing-promotions — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/commerce-agents/merchant-agent/skills/performance-insights - performance-insights — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/commerce-agents/merchant-agent/skills/marketing-campaigns - marketing-campaigns — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/commerce-agents/merchant-agent/skills/inventory-operations - inventory-operations — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/commerce-agents/merchant-agent/skills/catalog-listings - catalog-listings — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 13, 2026fix(81rv10): ground demo in commerce-agents import — huijoohwee/agentic-graph0 reactions · 1 comment
- Sep 12, 2026[新規記事候補] Claude Commerce Agents Blueprint — quintessence-lab/mdTechKnowledge0 reactions · 1 comment
- Sep 10, 2026[mdKnowledge更新候補] 2026-09-11 — quintessence-lab/mdTechKnowledge0 reactions · 2 comments
- Sep 3, 2026📰 Hacker News AI 社区动态日报 2026-09-03 — 96loveslife/big_model_radar0 reactions
- Sep 2, 2026APRV-241: commerce agents blueprint declined in the integrations register — approval-md/approval.md0 reactions
- Sep 2, 2026Add a generic application and workspace-agent builder — tyxter-dev/blackbox0 reactions
- Sep 2, 2026Define a provider-neutral memory policy and reference runtime — tyxter-dev/blackbox0 reactions
- Sep 2, 2026Add cross-surface semantic parity contracts for workspace agent packages — tyxter-dev/blackbox0 reactions
- Sep 2, 2026Add a provenance-gated staged-action reference agent — tyxter-dev/blackbox0 reactions
- Sep 2, 2026Add an optional trust and sanitization boundary for tool results — tyxter-dev/blackbox0 reactions
- Sep 2, 2026Enforce WorkspaceAgentSpec tool permissions at runtime — tyxter-dev/blackbox0 reactions · 1 comment
- Sep 2, 2026Commerce agents: wire the blueprint evals into ork:testing-llm — yonatangross/orchestkitsays it tested it0 reactions
- Sep 2, 2026Commerce agents: skill wrapping the blueprint's shopping and merchant harness for client sites — yonatangross/orchestkit0 reactions
On Bluesky · 4
- Sep 2, 2026Also, see our open-source reference implementation. This includes shopping & merchant agents, four vertical demos, and a Claude Code plugin… — @anthropicai.xmirror.bot3 likes and reposts · 1 reply
- Sep 16, 2026Anthropic: "Hey, we do open source stuff too!" https://github.com/anthropics/commerce-agents Me: "Folks, open sourcing your agents is like… — @greg-harvey.tooting.ch.ap.brid.gy2 likes and reposts
- Sep 6, 2026anthropics/commerce-agents Anthropic published a reference implementation for Claude-powered commerce agents. Shopping flows, merchant… — @githubprojects.bsky.social0 likes and reposts · 1 reply
- Sep 2, 2026Also, see our open-source reference implementation. This includes shopping & merchant agents, four vertical demos, and a Claude Code plugin… — @claudedevs-mirr.selfhosted.social0 likes and reposts · 1 reply
On Hacker News · 2
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- catalog-listingsSkill
- inventory-operationsSkill
- marketing-campaignsSkill
- performance-insightsSkill
- pricing-promotionsSkill
- commerce-architectureSkill
- commerce-evalsSkill
- commerce-prompt-cachingSkill
- commerce-trust-safetySkill
- commerce-ui-toolsSkill
- customer-careSkill
- memory-personalizationSkill
- planning-goalsSkill
- purchase-researchSkill
- search-discoverySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Every write is a stage_* tool (stage_listing_update, stage_price_update, stage_inventory_action, stage_promotion, stage_campaign).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Merchant agent
Paths are in the reference repo: merchant_agent/ is merchant-agent/core/merchant_agent/, merchant_agent_runtime/
is merchant-agent/runtime-messages-api/merchant_agent_runtime/, merchant_agent_sdk/ is
merchant-agent/runtime-agent-sdk/merchant_agent_sdk/, commerce_common/ is commerce-common/commerce_common/.
What it does
The merchant agent works with an operator inside their back office over one MerchantBackend (merchant_agent/backend.py).
Its five flows are the skills in merchant-agent/skills/: performance-insights, catalog-listings, inventory-operations,
pricing-promotions, marketing-campaigns. The mechanisms in commerce_common/ are shared; the prompt, tools, gates, and
executor are its own, and every tool result comes back inside MERCHANT_FENCE (merchant_agent/fencing.py).
The staged-change contract
- Every write is a
stage_*tool (stage_listing_update,stage_price_update,stage_inventory_action,stage_promotion,stage_campaign). Each returns the staged record and a note, emits achange_updateevent, and, withstage_shows_previewon (the default,merchant_agent/config.py), emits thechange_previewcard through the runnerpresent_change_previewuses (MerchantToolExecutor,merchant_agent/executor.py). The MCP server turns it off because its executor events do not reach the operator, so the hosted agent callspresent_change_preview; that tool also shows an earlier change again. Live state is untouched untilapply_change, which performs the platform write. - Staging accepts only listing and campaign ids that tools returned this session, and a content edit also needs a
get_listingread;apply_changeanddiscard_changeaccept only change ids that staging orget_pending_changesreturned (merchant_agent/gates.py). Showing the preview card marks nothing approved. check_guardrailsinmerchant_agent/changes.pyruns when a change is staged (ChangeLedger.stage, or your backend's equivalent) and again incheck_apply_change(merchant_agent/gates.py) under the config in force at apply time. The limits aremax_items_per_change,max_price_delta_pct,max_promotion_discount_pct,max_restock_quantity,max_campaign_budget, andmax_listing_field_charsinmerchant_agent/config.py; the defaults are demonstration values.protected_fieldscan never be staged,price_bearing_fieldsare the fields the price cap reads, andlisting_update_blocked_fieldsmay not ride a free-form listing update. A domain that prices under another name (a nightly rate, a monthly fee, a tier price) appends to these tuples and never replaces them.require_host_approvaldefaults toTrue:apply_changesucceeds only for an id inMerchantSessionState.approved_change_ids, which only host code writes. The three surfaces in the repo are the portal's/changes/{change_id}/applyroute (examples/demo_common/merchant.py),MerchantToolset.host_approve(merchant_agent_sdk/merchant_tools.py, prompted per change bymerchant-agent/runtime-agent-sdk/main.py), andalways_askonapply_changein the hosted manifest; there the MCP server's config setsrequire_host_approval=False(itsdefault_configdoes; a config you pass must too, or every apply is held). An approval typed into the chat sets nothing.require_host_approvalandapproval_surfacerender into the static prompt and into refusals, so they are set per deployment and a change to either is a redeploy (commerce-prompt-caching). Name the real surface inapproval_surface.- A change kind a system does not support raises
ChangeNotApplicable(merchant_agent/changes.py) and the executor relays it; the tool stays registered. Applied and discarded changes stay queryable as the audit trail, each stamped with the operator fromMerchantSessionContext.operator, which a production host derives from its authentication.
Grounding and follow-through
- A performance question forces
get_business_snapshot, and a change request carrying an apply phrase with nothing staged this session forcesget_pending_changes(GROUNDING_RULESinmerchant_agent/grounding.py; lexicons and flags inmerchant_agent/config.py, appended to and never replaced). - A turn that matched
change_requestedand ended on bare text, with nostage_*attempt and nopresent_suggestionsclose, getsSTAGING_FOLLOWTHROUGH_REMINDERonce, as a user message (merchant_agent/gates.py; applied inmerchant_agent_runtime/orchestrator.pyandmerchant_agent_sdk/agent.py); the reminder text is excluded from memory extraction. present_metricsjoins each pick from the snapshot, a queried series, a campaign, or a recorded analysis and drops the rest with a note (resolve_metricsinmerchant_agent/enrichment.py), so a card never carries a model-authored figure.
The analysis delegate
enable_analysis(default off) registersrun_analysis, aDelegateExtensionbuilt bybuild_analysis_delegateinmerchant_agent_runtime/analysis.py. The delegate's tools are a submit tool, a progress tool, theANALYSIS_READ_TOOLS(merchant_agent/analysis.py), and a query tool when the backend implementsMerchantBackend.execute_analysis_query(analysis_sql_onlythen leaves the per-series reads off). It holds no staging tool; its result is recorded inseen_analysesand rendered as its own metrics card.check_analysis_sqlrefuses anything other than one SELECT without comments before the backend runs it; the backend owns the read-only role and merchant scoping;analysis_query_timeout_sandcap_analysis_table(max_analysis_rows,max_analysis_table_chars) bound each query, andanalysis_timeout_s,max_analysis_iterations, andmax_delegate_calls_per_turnbound the run.analysis_use_code_executionmounts the hosted sandbox and works on the Anthropic API only (including a Foundry deployment hosted on Anthropic); the query method works everywhere (docs/deployment.md). On the Agent SDK the same contract is a subagent whose tools are exactly the read tools (build_analysis_agentinmerchant_agent_sdk/agent.py).- A scheduled digest is one headless turn of the same agent (
merchant-agent/managed-agents/scheduled-digest/run_morning_digest.py).
Memory and components
- Memory is keyed by
merchant_id(memory_subjectinmerchant_agent/executor.py); the extraction prompt inmerchant_agent/memory.pyadmits what the operator stated about running the operation and excludes anything from listings, reviews, buyer messages, or metrics and anything about an identifiable customer. The write filter, retention, delete, purge, andenable_memoryare the shared rules (commerce-trust-safety). - The built-in components (
merchant_agent/enrichment.py) arepresent_metrics,present_digest,present_change_preview, andpresent_suggestions; under host approval the prompt says no chip approves or applies. A vertical adds its own (present_occupancy_calendar,present_plan_mix,present_event_pacingin the examples) as extensions (commerce-ui-tools).
Marketplaces
- Many sellers' content goes through the one fence; there is no per-seller label and no seller whose text escapes it.
In a shopping deployment the seller is a search dimension (
SearchFilters.attributes) that the components show, andsearch_policiesresults state whose terms they are when platform and seller terms differ. - Provenance and caps are per session, so a session can stage against the listings its own tools returned and no others.
- Buyer and seller messages reach the model as fenced material; a message that says a change is approved sets no mark.
- The memory subject is the operator's own business, keyed by its
merchant_id; a shopper's facts are keyed by the shopper.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

