Ask in plain words. The agent opens with intellijsfcc_project_context, which picks the right chain of tools for the task, and follows it. Reads run at once. Anything that changes an instance starts as a plan the server checks before it runs, see Plans & Safety
| Ask | What the agent does |
|---|---|
| "Check the sandbox for errors" | Ranks the open issues and finds the line in your project behind each |
| "Which copy of Cart.js runs?" | Lists every copy along the cartridge path, the one that runs first |
| "What type is basket here?" | Proves the type at that line and where it came from |
| "Override the product model in app_custom" | Creates the override in the right cartridge and checks it |
| "Add a route to Cart and test it on the sandbox" | Edits the effective controller, uploads, requests the page and watches the logs |
| "Parse all errors and tail the logs" | Parses the logs into the Log Center and watches for new issues |
| "What changed since the last deploy?" | Compares the logs before and after the deploy |
| "Stop my sandbox for the weekend" | Plans the stop, then runs it |
| "Import the site archive on the sandbox" | Plans the import job, then runs it |
| "Clear the page cache for RefArch" | Plans the project's cache job, then runs it |
| "Why is shippingCost empty here?" | Captures the variable's value at a breakpoint, or drives a debug session |
Check for errors
"Check the sandbox for errors", "Fix the top production error"
intellijsfcc_project_contextintellijsfcc_issue_triageranks the open issues by regressions, new ones, rises, count and severity, and resolves the top frames to files in your project- The agent edits the file, then
intellijsfcc_change_verifychecks it - After a deploy and a clean window of logs,
intellijsfcc_logs_center_mark_fixed
The agent fixes one issue at a time, the most frequent first, and never marks one fixed before the fix is deployed and the logs stay clean
Which copy runs
"Which copy of Cart.js runs?", "Where does this template come from?"
intellijsfcc_file_overrides lists every copy of a path along the cartridge path, the one that runs first. intellijsfcc_path_resolve resolves */cartridge/... paths, templates and resource keys to the file the runtime loads, with the rule that decided
Templates, slots and content assets
"Where does product come from in this template?", "Which slot configurations use this slot?"
intellijsfcc_isml_variable_sources lists every isset of a variable. For one template it also shows what that template sees: its own variables, the templates that render it, the ones it renders and session variables. intellijsfcc_site_data_lookup follows a slot from its isslot tags to every slot configuration, with the template each one renders, and a content asset from its library to the code and slots that name it
The type of a value
"What type is basket here?", "Is this a dw.order.Basket?"
intellijsfcc_type_proof returns the type at a line and column, where it came from and each step that led there, such as a require or module.superModule
Change a route or override a model
"Add a check to Cart-AddProduct", "Override the product model in app_custom"
intellijsfcc_project_contextintellijsfcc_edit_preparereturns the effective file, where an override must go, the types in scope and the routes, templates and hooks around it- The agent edits or creates the override
intellijsfcc_change_verifychecks the changed files: problems, unresolved requires and templates, and missing resource keys
The agent edits your override, never app_storefront_base, and keeps server.extend(module.superModule) in custom controllers
Ship and verify
"Upload the fix to the sandbox and check it"
intellijsfcc_remote_diffandintellijsfcc_change_verify, side by sideintellijsfcc_upload_planorintellijsfcc_deploy_plan, thenintellijsfcc_mutation_execute, which runs it at onceintellijsfcc_logs_center_watch_pollstarts watching the logsintellijsfcc_route_invokerequests the pageintellijsfcc_logs_center_watch_pollreports new errors, then stops
A new code version adds intellijsfcc_code_version_activate_plan before the page is requested. To move code from one instance to the next, the agent deploys to the lower environment first, see Several instances in one task
Logs
| Ask | What the agent runs |
|---|---|
| "Parse all errors and tail the logs" | intellijsfcc_logs_center_parse, then intellijsfcc_logs_center_watch_poll until you stop it |
| "Find anomalies in the last day" | intellijsfcc_logs_center_anomalies, intellijsfcc_logs_center_compare and intellijsfcc_logs_center_timeline, then a report with intellijsfcc_logs_center_reports_generate |
| "What changed since the last deploy?" | intellijsfcc_logs_center_compare around the last deploy |
| "Did my fix work?" | intellijsfcc_logs_center_compare around the time the issue was marked fixed |
An agent keeps at most 3 log watches per project, and a watch stops after 30 minutes without a poll. Reports land in .intellij-sfcc/logs-streaming/reports/ in the project. See Fix with an AI agent
Files on the instance
"List the files in Impex/src", "Copy these images to the sandbox"
intellijsfcc_webdav_roots, intellijsfcc_webdav_list, then intellijsfcc_webdav_read_text or intellijsfcc_webdav_download. Writes go through intellijsfcc_webdav_mutate_plan, then intellijsfcc_mutation_execute, see Files & Deploys
Jobs, site archives and the page cache
"Run the catalog import job", "Export RefArch as a site archive", "Clear the page cache"
| Ask | What the agent runs |
|---|---|
| Run a job | intellijsfcc_job_list, then intellijsfcc_job_run_plan, and intellijsfcc_job_status until the job ends |
| Import a site archive | intellijsfcc_site_archive_plan plans the system job sfcc-site-archive-import in merge mode. The archive must already be in Impex/src/instance |
| Export a site archive | intellijsfcc_site_archive_plan plans the system job sfcc-site-archive-export with the sites, the global data and whether to overwrite |
| Clear the page cache | intellijsfcc_cache_invalidate_plan plans the job in the project's jobs.xml whose flow has the InvalidateCache step |
Every plan runs with intellijsfcc_mutation_execute. Running a job, an import and clearing the cache are Live change. An export is Instance write
B2C Commerce has no call that clears the page cache on its own, so the agent runs your cache job. When the project has no such job, the agent gets the Business Manager steps to clear it by hand
Jobs need OCAPI set up for the connection, see OCAPI & Jobs. intellijsfcc_ocapi_settings_preview writes the Data or Shop API settings with only the resources the plugin uses, for you to paste in Business Manager. It reads no credential. When a job or an activation is refused with 403, the answer names the missing resource and points to this preview
Sandboxes
"Start my sandbox", "Add 8 hours to zzrx-001", "Create a sandbox for this branch"
intellijsfcc_ods_listandintellijsfcc_ods_detailsintellijsfcc_ods_action_planto start, stop, restart or reset, orintellijsfcc_ods_update_planto add hours, change the schedule or tags, or resizeintellijsfcc_mutation_executeruns the planintellijsfcc_ods_statusuntil the sandbox is ready
To create one, the agent checks the realm with intellijsfcc_ods_realm_status, then plans with intellijsfcc_ods_create_plan. A new sandbox always has a time to live, never 0, and narrow API access. The preview shows what it costs and what data a reset or delete loses, with a warning when the sandbox is active, being debugged or watched
The agent prefers stopping to deleting. After a reset, the Log Center's stored logs of that sandbox are stale. See On-Demand Sandboxes
Live debugging
"Why is shippingCost empty at line 42?", "Debug Cart-Show on the sandbox"
- A one-shot capture:
intellijsfcc_debug_capture_invokestops at the line once, reads the variables and resumes - A debug session:
intellijsfcc_debug_status,intellijsfcc_debug_sessionto start,intellijsfcc_debug_breakpoint_edit,intellijsfcc_route_invokein the background,intellijsfcc_debug_wait_for_stop,intellijsfcc_debug_inspect,intellijsfcc_debug_executionto step, then the agent removes its breakpoints
The debugger works on the active connection, see Debugging with Agents