/immybot:immybot <command> [args] | install cli|mcpfrom immybot
Queries ImmyBot's API and mirrors data into local SQLite for cross-tenant analysis. Use for post-maintenance triage, software version audits, and deployment troubleshooting across tenants.
Ships in immybot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill drives the immybot-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
bash <(curl -fsSL https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/immybot/install.sh)
iwr -useb https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/immybot/install.ps1 | iex
immybot-cli --version~/.local/bin (macOS / Linux) or %LOCALAPPDATA%\Programs\msp-skills (Windows) is on $PATH.The installer downloads the immybot-cli and immybot-mcp binaries into ~/.local/bin
(macOS / Linux) or %LOCALAPPDATA%\Programs\msp-skills (Windows). It does not
register the skill with your agent and writes no MCP client config - see
mcp-install.md for that wire-up.
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
ImmyBot's API is large and entirely per-tenant, so the questions MSPs actually ask span calls the web UI never joins. This CLI types the whole surface, mirrors it into local SQLite with full-text search, and adds commands built on that mirror: session-triage collapses a night of failures into distinct root causes, version-spread ranks one software title across every tenant with a real semver comparator, and assignment-explain shows which deployment rule actually won on a given machine.
Use this CLI for any ImmyBot question that spans more than one tenant, or that needs history the API does not keep. It is the right tool for post-maintenance triage, cross-tenant software version audits, working out why a deployment did or did not land on a machine, and reconciling ImmyBot against a linked PSA or RMM. It is also the fastest way to script against the full ImmyBot surface, since every endpoint is typed and every command speaks JSON.
Do not use this CLI for:
session-triage - Group the last window's failed maintenance actions by normalized root cause instead of reading the same error on forty machines.
Reach for this first after any maintenance window: it turns N red machines into the handful of distinct problems worth a ticket.
immybot-cli session-triage --since 24h --agent
version-spread - Semver-ordered distribution of one software title across every tenant, flagging everything below a floor.
This is the CVE-response command: one call answers which clients are still exposed on a given title.
immybot-cli version-spread "Google Chrome" --min-version 140 --agent
fleet-diff - What changed between two syncs: computers added or removed, software versions moved, assignments modified. Record a baseline with --snapshot after a sync, then compare with --since.
Use this to answer what changed since last night without diffing two exports by hand.
immybot-cli fleet-diff --since 24h --agent
onboarding-stalled - Computers stuck waiting to onboard, bucketed by age and annotated with whether onboarding was ever attempted.
Surfaces machines that silently never finished onboarding, which is the failure mode clients notice first.
immybot-cli onboarding-stalled --older-than 3d --agent
drift - Per-tenant compliance posture across every software title, ranked by how far installed versions trail the newest version seen in the fleet.
Use this for a whole-tenant compliance posture; use version-spread for one title.
immybot-cli drift --tenant Contoso --agent
computer-dossier - Identity, tenant, installed software and recent maintenance history for one computer, assembled from the local mirror in one pass.
One call before touching a machine a client is asking about.
immybot-cli computer-dossier 4821 --agent
assignment-explain - Show every target assignment that resolves onto one computer, which scope matched, and which rules are shadowed.
Use this for any why-didn't-this-machine-get-X question.
immybot-cli assignment-explain 4821 --agent
script-blast-radius - Every maintenance task, software package and computer that a script reaches before you edit it.
Run this before editing any shared script; it is the only way to see downstream reach across tenants.
immybot-cli script-blast-radius 312 --agent
deployment-health - Historical success rate per deployment, including ones that never worked.
Find the deployments that have never once succeeded before a client asks why the software is missing.
immybot-cli deployment-health --only-failing --agent
psa-reconcile - Diff the ImmyBot roster against a linked PSA or RMM asset roster to find unlinked computers and orphaned assets.
Run after each week of onboards and decommissions; mapping gaps otherwise surface as a wrong invoice or a machine that stopped getting maintenance.
immybot-cli psa-reconcile --provider 7 --agent
schedule-orphans - Maintenance schedules whose target, tenant or target type no longer exists, plus disabled schedules, from the local mirror.
A schedule pointing at a deleted target still looks configured: this lists every one so a missed maintenance window is caught before a client notices.
immybot-cli schedule-orphans --agent
provider-link-health - Every RMM or PSA provider link that is disabled, unhealthy or reporting a sync failure, with the failure messages ImmyBot recorded.
A broken provider link silently stops agent and client syncing; this is the check to run when computers stop appearing.
immybot-cli provider-link-health --agent
access - Manage access
immybot-cli access create-delete-azure-tenant-auth-details - Create delete azure tenant auth detailsimmybot-cli access create-request - Create requestimmybot-cli access create-update-azure-tenant-auth-details - Create update azure tenant auth details (echoes the tenant's app registration secret back: CLI only, never cached or stored, never offered over MCP)immybot-cli access get-get-azure-tenant-auth-details-by-azure-tenant-principal-id - Get get azure tenant auth details by azure tenant principal id (returns the tenant's app registration secret, shown as a withheld notice: CLI only, never cached or stored, never offered over MCP)immybot-cli access get-get-ip-addresses - Get get ip addressesimmybot-cli access get-me-permissions-by-permission-type-tenants - Get me permissions by permission type tenantsimmybot-cli access list - Listapplication-locks - Manage application locks
immybot-cli application-locks create-request-cancellation - Create request cancellationimmybot-cli application-locks get-realtime-event-stream - Get realtime event streamimmybot-cli application-locks list - Listapplication-logs - Manage application logs
immybot-cli application-logs create-source-context - Create source contextimmybot-cli application-logs create-source-context-clear - Create source context clearimmybot-cli application-logs create-source-context-clear-all - Create source context clear allimmybot-cli application-logs create-streaming - Create streamingimmybot-cli application-logs get-source-contexts - Get source contextsaudits - Manage audits
immybot-cli audits get-global-dx - Get global dximmybot-cli audits get-local-dx - Get local dxazure - Manage azure
immybot-cli azure create-disambiguate-tenant-type - Create disambiguate tenant typeimmybot-cli azure create-preconsent-customer-tenants - Create preconsent customer tenantsimmybot-cli azure create-sync-details-from-tenants - Create sync details from tenantsimmybot-cli azure create-sync-users-from-tenants - Create sync users from tenantsimmybot-cli azure create-tenant-consented - Create tenant consentedimmybot-cli azure get-app-registration-options - Get app registration optionsimmybot-cli azure get-partner-tenant-customers-by-partner-principal-id - Get partner tenant customers by partner principal idimmybot-cli azure get-partner-tenant-infos - Get partner tenant infosazure-errors - Manage azure errors
immybot-cli azure-errors get-dx - Get dximmybot-cli azure-errors get-for-tenant-by-tenant-principal-id-dx - Get for tenant by tenant principal id dxbilling - Manage billing
immybot-cli billing create-cancel-subscription - Create cancel subscriptionimmybot-cli billing create-information - Create informationimmybot-cli billing create-reactivate-subscription - Create reactivate subscriptionimmybot-cli billing create-update-addon - Create update addonimmybot-cli billing create-update-subscription - Create update subscriptionimmybot-cli billing get-credit-cards - Get credit cardsimmybot-cli billing get-download-invoice - Get download invoiceimmybot-cli billing get-feature-usage-counts - Get feature usage countsimmybot-cli billing get-information - Get informationimmybot-cli billing get-platform-details - Get platform detailsimmybot-cli billing get-product-catalog - Get product catalogimmybot-cli billing get-product-catalog-items - Get product catalog itemsimmybot-cli billing get-subscription-details - Get subscription detailsbrandings - Manage brandings
immybot-cli brandings create - Createimmybot-cli brandings create-global-default-by-id - Create global default by idimmybot-cli brandings create-send-test-email - Create send test emailimmybot-cli brandings create-validate-time-format-by-time-format - Create validate time format by time formatimmybot-cli brandings delete-by-id - Delete by idimmybot-cli brandings get-by-id - Get by idimmybot-cli brandings get-support - Fetches support related branding changes to be used in the Support Sidebar, Session Support Requestimmybot-cli brandings list - Listimmybot-cli brandings update-by-id - Update by idchange-requests - Manage change requests
immybot-cli change-requests delete-by-id - Delete by idimmybot-cli change-requests get-dx - Get dximmybot-cli change-requests get-open-count - Get open countchocolatey - Manage chocolatey
immybot-cli chocolatey get-find-packages-by-id - Get find packages by idimmybot-cli chocolatey get-search - Get searchcomputers - Manage computers
immybot-cli computers create-add-tags - Create add tagsimmybot-cli computers create-bulk-delete - Create bulk deleteimmybot-cli computers create-change-tenant - Create change tenantimmybot-cli computers create-remove-tags - Create remove tagsimmybot-cli computers create-restore - Create restoreimmybot-cli computers create-set-excluded-from-user-affinity - Create set excluded from user affinityimmybot-cli computers create-skip-onboarding - Create skip onboardingimmybot-cli computers get-agent-status - Get agent statusimmybot-cli computers get-by-id - Get by idimmybot-cli computers get-dx - Get dximmybot-cli computers get-export - Get exportimmybot-cli computers get-inventory - Get inventoryimmybot-cli computers get-inventory-export - Get inventory exportimmybot-cli computers get-inventory-software-search-by-name - Get inventory software search by nameimmybot-cli computers get-inventory-software-search-by-upgrade-code - Get inventory software search by upgrade codeimmybot-cli computers get-my - Get myimmybot-cli computers get-onboarding - Get onboardingimmybot-cli computers get-paged - List computers with server-side paging, filtering, and sorting (skip/take)immybot-cli computers get-user-affinities - Get user affinitiesimmybot-cli computers get-user-affinities-export - Get user affinities exportimmybot-cli computers list - Listimmybot-cli computers update-by-id - Update by iddynamic-provider-types - Manage dynamic provider types
immybot-cli dynamic-provider-types create-global - Create globalimmybot-cli dynamic-provider-types create-global-by-id - Create global by idimmybot-cli dynamic-provider-types create-global-by-id-reload - Create global by id reloadimmybot-cli dynamic-provider-types create-local - Create localimmybot-cli dynamic-provider-types create-local-by-id - Create local by idimmybot-cli dynamic-provider-types create-local-by-id-reload - Create local by id reloadimmybot-cli dynamic-provider-types create-reload - Create reloadimmybot-cli dynamic-provider-types create-test-environment-by-terminal-id - Create test environment by terminal idimmybot-cli dynamic-provider-types create-test-environment-by-terminal-id-bind-configuration-form - Create test environment by terminal id bind configuration formimmybot-cli dynamic-provider-types create-test-environment-by-terminal-id-execute-method-by-method - Create test environment by terminal id execute method by methodimmybot-cli dynamic-provider-types delete-global-by-id - Delete global by idimmybot-cli dynamic-provider-types delete-local-by-id - Delete local by idimmybot-cli dynamic-provider-types delete-test-environment-by-terminal-id - Delete test environment by terminal idimmybot-cli dynamic-provider-types get-global-by-id - Get global by idimmybot-cli dynamic-provider-types get-local-by-id - Get local by idimmybot-cli dynamic-provider-types list - Listeffective-permissions - Manage effective permissions
immybot-cli effective-permissions create-groups-by-group-id-evaluate-all-assignments - Returns all role assignments for a group grouped by permission without evaluation context.immybot-cli effective-permissions create-groups-by-group-id-evaluate-resource - Evaluates permissions for a group against a specific resource.immybot-cli effective-permissions create-groups-by-group-id-evaluate-tenant - Evaluates permissions for a group against a specific tenant.immybot-cli effective-permissions create-users-by-user-id-evaluate-all-assignments - Returns all role assignments for a user grouped by permission without evaluation context.immybot-cli effective-permissions create-users-by-user-id-evaluate-resource - Evaluates permissions for a user against a specific resource.immybot-cli effective-permissions create-users-by-user-id-evaluate-tenant - Evaluates permissions for a user against a specific tenant.ephemeral-session - Manage ephemeral session
immybot-cli ephemeral-session get-by-agent-instance-id-by-provider-agent-id - Get by agent instance id by provider agent idimmybot-cli ephemeral-session get-development-latest-ephemeral-binary - Get development latest ephemeral binaryimmybot-cli ephemeral-session get-development-latest-ephemeral-binary-v2 - Get development latest ephemeral binary v2getting-started - Manage getting started
immybot-cli getting-started create-checklist-complete - Create checklist completeimmybot-cli getting-started create-checklist-reset - Create checklist resetimmybot-cli getting-started get-checklist - Get checklistgroups - Manage groups
immybot-cli groups create - Createimmybot-cli groups delete-by-id - Delete by idimmybot-cli groups get-by-id - Get by idimmybot-cli groups list - Listimmybot-cli groups update-by-id - Update by idimmy-agent-metadata - Manage immy agent metadata
immybot-cli immy-agent-metadata - Get agent hashinstaller - Manage installer
immybot-cli installer - Create agent rekey requestinventory-tasks - Manage inventory tasks
immybot-cli inventory-tasks create-local - Create localimmybot-cli inventory-tasks create-local-by-id - Create local by idimmybot-cli inventory-tasks create-local-by-id-scripts - Create local by id scriptsimmybot-cli inventory-tasks delete-local-by-id - Delete local by idimmybot-cli inventory-tasks delete-local-by-task-id-scripts-by-inventory-key - Delete local by task id scripts by inventory keyimmybot-cli inventory-tasks list - Listlicenses - Manage licenses
immybot-cli licenses create - Createimmybot-cli licenses create-upload - Create uploadimmybot-cli licenses delete-by-id - Delete by idimmybot-cli licenses get-by-id - Get by idimmybot-cli licenses get-dx - Get dximmybot-cli licenses list - Listimmybot-cli licenses update-by-id - Update by idmaintenance-actions - Manage maintenance actions
immybot-cli maintenance-actions create-latest-action-for-computers - Create latest action for computersimmybot-cli maintenance-actions create-latest-action-for-tenants - Create latest action for tenantsimmybot-cli maintenance-actions get-computer-by-computer-id-needs-attention - Get computer by computer id needs attentionimmybot-cli maintenance-actions get-dx - Get dximmybot-cli maintenance-actions get-dx-for-computer-by-computer-id - Get dx for computer by computer idimmybot-cli maintenance-actions get-latest-for-computer-by-computer-id - Get latest for computer by computer idimmybot-cli maintenance-actions get-latest-for-tenant-by-tenant-id - Get latest for tenant by tenant idimmybot-cli maintenance-actions get-latest-non-compliant-actions-for-tenant-by-tenant-id - Get latest non compliant actions for tenant by tenant idimmybot-cli maintenance-actions get-maintenance-item - Get maintenance itemimmybot-cli maintenance-actions get-version - Get versionmaintenance-emails - Manage maintenance emails
maintenance-sessions - Manage maintenance sessions
immybot-cli maintenance-sessions create-cancel - Create cancelimmybot-cli maintenance-sessions create-cancel-all - Create cancel allimmybot-cli maintenance-sessions create-rerun-v2 - Create rerun v2immybot-cli maintenance-sessions get-by-session-id - Get by session idimmybot-cli maintenance-sessions get-cancel-for-schedule-by-schedule-id - Get cancel for schedule by schedule idimmybot-cli maintenance-sessions get-dx - Get dximmybot-cli maintenance-sessions get-status-counts - Get status countsmaintenance-tasks - Manage maintenance tasks
immybot-cli maintenance-tasks create-duplicate - Create duplicateimmybot-cli maintenance-tasks create-global - Create globalimmybot-cli maintenance-tasks create-global-by-id - Create global by idimmybot-cli maintenance-tasks create-global-by-id-param-block-from-parameters - Create global by id param block from parametersimmybot-cli maintenance-tasks create-local - Create localimmybot-cli maintenance-tasks create-local-by-id - Create local by idimmybot-cli maintenance-tasks create-local-by-id-migrate-local-to-global - Create local by id migrate local to globalimmybot-cli maintenance-tasks create-local-by-id-param-block-from-parameters - Create local by id param block from parametersimmybot-cli maintenance-tasks create-validate-param-block-parameters - Create validate param block parametersimmybot-cli maintenance-tasks delete-global-by-id - Delete global by idimmybot-cli maintenance-tasks delete-local-by-id - Delete local by idimmybot-cli maintenance-tasks get-global - Get globalimmybot-cli maintenance-tasks get-global-by-id - Get global by idimmybot-cli maintenance-tasks get-local - Get localimmybot-cli maintenance-tasks get-local-by-id - Get local by idimmybot-cli maintenance-tasks get-local-by-id-migrate-local-to-global-what-if - Get local by id migrate local to global what ifimmybot-cli maintenance-tasks get-reference-count - Get reference countimmybot-cli maintenance-tasks get-search - Get searchme - Manage me
immybot-cli me - Gets all role assignments and groups for the current usermedia - Manage media
immybot-cli media create-global-by-id - Create global by idimmybot-cli media create-global-upload - Create global uploadimmybot-cli media create-local-by-id - Create local by idimmybot-cli media create-local-by-id-authorization - Create local by id authorizationimmybot-cli media create-local-upload - Create local uploadimmybot-cli media create-request-file-download-url - Create request file download urlimmybot-cli media create-support-upload - Create support uploadimmybot-cli media delete-global-by-id - Delete global by idimmybot-cli media delete-local-by-id - Delete local by idimmybot-cli media get-global - Get globalimmybot-cli media get-global-by-id - Get global by idimmybot-cli media get-global-by-id-download-url - Get global by id download urlimmybot-cli media get-local - Get localimmybot-cli media get-local-by-id - Get local by idimmybot-cli media get-local-by-id-authorization - Get local by id authorizationimmybot-cli media get-local-by-id-download-url - Get local by id download urlimmybot-cli media get-search - Get searchmetrics - Manage metrics
immybot-cli metrics create-circuit-breakers-isolate - Create circuit breakers isolateimmybot-cli metrics create-circuit-breakers-reset - Create circuit breakers resetimmybot-cli metrics get-circuit-breakers - Get circuit breakersimmybot-cli metrics get-provider-links - Get provider linksimmybot-cli metrics get-provider-links-by-provider-link-id-rate-limit-statistics - Returns the current rate limiter statistics for a provider link. 200: stats available. 204: provider not initialized.notifications - Manage notifications
immybot-cli notifications create-acknowledge - Create acknowledgeimmybot-cli notifications get-dx - Get dximmybot-cli notifications get-unacknowledged - Get unacknowledgedimmybot-cli notifications list - Listoauth - Manage oauth
immybot-cli oauth create-access-tokens-by-id-refresh - Create access tokens by id refreshimmybot-cli oauth create-begin-auth-code-flow - Create begin auth code flowimmybot-cli oauth create-fail-auth-code-flow - Create fail auth code flowimmybot-cli oauth create-finish-auth-code-flow - Create finish auth code flowimmybot-cli oauth delete-access-tokens-by-id - Delete access tokens by idimmybot-cli oauth get-access-tokens - Get access tokensimmybot-cli oauth get-access-tokens-by-id-by-access-token-id - Get access tokens by id by access token idpersons - Manage persons
immybot-cli persons create - Createimmybot-cli persons create-add-tags - Create add tagsimmybot-cli persons create-remove-tags - Create remove tagsimmybot-cli persons delete-by-id - Delete by idimmybot-cli persons get-by-id - Get by idimmybot-cli persons get-dx - Get dximmybot-cli persons get-requesting-access - Get requesting accessimmybot-cli persons list - Listimmybot-cli persons update-by-id - Update by idplugins - Manage plugins
immybot-cli plugins create-api-v1-by-provider-link-id-by-catch-all - Create api v1 by provider link id by catch allimmybot-cli plugins get-api-v1-by-provider-link-id-by-catch-all - Get api v1 by provider link id by catch allimmybot-cli plugins get-api-v1-by-provider-link-id-by-catch-all-v2 - Get api v1 by provider link id by catch all v2preferences - Manage preferences
immybot-cli preferences get-tenants-by-tenant-id - Get tenants by tenant idimmybot-cli preferences list - Listimmybot-cli preferences update-application - Update applicationimmybot-cli preferences update-my - Update myimmybot-cli preferences update-tenants-by-tenant-id - Update tenants by tenant idprovider-agents - Manage provider agents
immybot-cli provider-agents create-bulk-delete-pending - Create bulk delete pendingimmybot-cli provider-agents create-identify - Identify agents that are marked with requiring manual identificationimmybot-cli provider-agents create-resolve-failure-by-failure-id - Create resolve failure by failure idimmybot-cli provider-agents create-resolve-failures - Create resolve failuresimmybot-cli provider-agents get-pending - Get pendingimmybot-cli provider-agents get-pending-counts - Get pending countsprovider-links - Manage provider links
immybot-cli provider-links create - Createimmybot-cli provider-links create-create-with-external-provider-reference - Create create with external provider referenceimmybot-cli provider-links create-verify-with-external-provider-reference - Create verify with external provider referenceimmybot-cli provider-links delete-by-id - Delete by idimmybot-cli provider-links get-by-id - Get by idimmybot-cli provider-links list - Listimmybot-cli provider-links update-by-id - Update by idprovider-types - Manage provider types
immybot-cli provider-types get-client-group-types-by-client-group-type-id-client-groups - Get client group types by client group type id client groupsimmybot-cli provider-types get-device-group-types-by-device-group-type-id-device-groups - Get device group types by device group type id device groupsimmybot-cli provider-types get-form-dropdown-options-by-key - Get form dropdown options by keyimmybot-cli provider-types list - Listrmm-links - Manage rmm links
immybot-cli rmm-links create - Createimmybot-cli rmm-links get-by-id - Get by idimmybot-cli rmm-links list - Listimmybot-cli rmm-links update-by-id - Update by idroles - Manage roles
immybot-cli roles create - Createimmybot-cli roles delete-by-id - Delete by idimmybot-cli roles get-by-id - Get by idimmybot-cli roles get-permissions - Get permissionsimmybot-cli roles list - Listimmybot-cli roles update-by-id - Update by idrun-immy-service - Manage run immy service
immybot-cli run-immy-service - Createrun-immy-service-new - Manage run immy service new
immybot-cli run-immy-service-new - Createschedules - Manage schedules
immybot-cli schedules create - Createimmybot-cli schedules create-bulk-cancel - Create bulk cancelimmybot-cli schedules create-bulk-delete - Create bulk deleteimmybot-cli schedules create-bulk-run-now - Create bulk run nowimmybot-cli schedules delete-by-id - Delete by idimmybot-cli schedules get-by-id - Get by idimmybot-cli schedules get-running-ids - Get running idsimmybot-cli schedules list - Listimmybot-cli schedules update-bulk-update-status - Update bulk update statusimmybot-cli schedules update-by-id - Update by idscripts - Manage scripts
immybot-cli scripts create-debug-cancel-by-cancellation-id - Create debug cancel by cancellation idimmybot-cli scripts create-default-variables - Create default variablesimmybot-cli scripts create-does-have-param-block - Create does have param blockimmybot-cli scripts create-duplicate - Create duplicateimmybot-cli scripts create-functions-syntax - Execute a cloud script that returns the syntax for a specific commandimmybot-cli scripts create-global - Create globalimmybot-cli scripts create-global-by-id - Create global by idimmybot-cli scripts create-language-service-start - Create language service startimmybot-cli scripts create-local - Create localimmybot-cli scripts create-local-by-id - Create local by idimmybot-cli scripts create-local-by-id-authorization - Create local by id authorizationimmybot-cli scripts create-local-by-id-migrate-local-to-global - Create local by id migrate local to globalimmybot-cli scripts create-run - Create runimmybot-cli scripts create-run-adhoc-metascript - Create run adhoc metascriptimmybot-cli scripts create-set-preflight-enablement - Create set preflight enablementimmybot-cli scripts create-syntax-check - Create syntax checkimmybot-cli scripts create-validate-param-block-parameters - Create validate param block parametersimmybot-cli scripts delete-global-by-id - Delete global by idimmybot-cli scripts delete-local-by-id - Delete local by idimmybot-cli scripts get-disabled-preflight - Get disabled preflightimmybot-cli scripts get-dx - Get dximmybot-cli scripts get-functions - Execute a cloud script that returns results of Get-Commandimmybot-cli scripts get-global - Get globalimmybot-cli scripts get-global-by-id - Get global by idimmybot-cli scripts get-global-by-id-audit - Get global by id auditimmybot-cli scripts get-global-by-id-references - Get global by id referencesimmybot-cli scripts get-global-names - Get global namesimmybot-cli scripts get-language-service-by-terminal-id-language - Get language service by terminal id languageimmybot-cli scripts get-local - Get localimmybot-cli scripts get-local-by-id - Get local by idimmybot-cli scripts get-local-by-id-audit - Get local by id auditimmybot-cli scripts get-local-by-id-authorization - Get local by id authorizationimmybot-cli scripts get-local-by-id-migrate-local-to-global-what-if - Get local by id migrate local to global what ifimmybot-cli scripts get-local-by-id-references - Get local by id referencesimmybot-cli scripts get-local-names - Get local namesimmybot-cli scripts get-references-count - Get references countimmybot-cli scripts get-search - Get searchsmtp-configs - Manage smtp configs
immybot-cli smtp-configs create - Createimmybot-cli smtp-configs create-by-tenant-id - Create by tenant idimmybot-cli smtp-configs create-send-test-email - Create send test emailimmybot-cli smtp-configs delete-by-tenant-id - Delete by tenant idimmybot-cli smtp-configs get-by-tenant-id - Get by tenant idimmybot-cli smtp-configs list - Listsoftware - Manage software
immybot-cli software create-global - Create globalimmybot-cli software create-global-analyze - Create global analyzeimmybot-cli software create-global-by-identifier-versions - Create global by identifier versionsimmybot-cli software create-global-fast-create - Create global fast createimmybot-cli software create-global-upload - Create global uploadimmybot-cli software create-local - Create localimmybot-cli software create-local-analyze - Create local analyzeimmybot-cli software create-local-by-identifier-authorization - Create local by identifier authorizationimmybot-cli software create-local-by-identifier-migrate-local-to-global - Create local by identifier migrate local to globalimmybot-cli software create-local-by-identifier-versions - Create local by identifier versionsimmybot-cli software create-local-fast-create - Create local fast createimmybot-cli software create-local-upload - Create local uploadimmybot-cli software delete-global-by-identifier - Delete global by identifierimmybot-cli software delete-global-by-identifier-versions-by-semantic-version - Delete global by identifier versions by semantic versionimmybot-cli software delete-local-by-identifier - Delete local by identifierimmybot-cli software delete-local-by-identifier-versions-by-semantic-version - Delete local by identifier versions by semantic versionimmybot-cli software get-global - Get globalimmybot-cli software get-global-by-identifier - Get global by identifierimmybot-cli software get-global-by-identifier-latest - Get global by identifier latestimmybot-cli software get-global-by-identifier-versions - Get global by identifier versionsimmybot-cli software get-global-by-identifier-versions-by-semantic-version - Get global by identifier versions by semantic versionimmybot-cli software get-global-by-identifier-versions-by-semantic-version-request-download - Get global by identifier versions by semantic version request downloadimmybot-cli software get-local - Get localimmybot-cli software get-local-by-identifier - Get local by identifierimmybot-cli software get-local-by-identifier-authorization - Get local by identifier authorizationimmybot-cli software get-local-by-identifier-latest - Get local by identifier latestimmybot-cli software get-local-by-identifier-migrate-local-to-global-what-if - Get local by identifier migrate local to global what ifimmybot-cli software get-local-by-identifier-versions - Get local by identifier versionsimmybot-cli software get-local-by-identifier-versions-by-semantic-version - Get local by identifier versions by semantic versionimmybot-cli software get-local-by-identifier-versions-by-semantic-version-request-download - Get local by identifier versions by semantic version request downloadimmybot-cli software update-global-by-identifier - Update global by identifierimmybot-cli software update-global-by-identifier-versions-by-semantic-version - Update global by identifier versions by semantic versionimmybot-cli software update-local-by-identifier - Update local by identifierimmybot-cli software update-local-by-identifier-versions-by-semantic-version - Update local by identifier versions by semantic versionsyncs - Manage syncs
immybot-cli syncs create-azure-user - Create azure userimmybot-cli syncs create-expire-pending-sessions - Create expire pending sessionsimmybot-cli syncs create-trigger-user-affinity - Create trigger user affinitysystem - Manage system
immybot-cli system create-disable-immy-support-access - Create disable immy support accessimmybot-cli system create-enable-immy-support-access - Create enable immy support accessimmybot-cli system create-is-immy-support-access-granted - Create is immy support access grantedimmybot-cli system create-pull-update - Create pull updateimmybot-cli system create-request-form-support - Create request form supportimmybot-cli system create-request-session-support - Create request session supportimmybot-cli system create-restart-backend - Create restart backendimmybot-cli system create-update-release-channel - Create update release channelimmybot-cli system get-immy-support-access-grant-details - Get immy support access grant detailsimmybot-cli system get-releases - Get releasesimmybot-cli system get-timezones - Get timezonestags - Manage tags
immybot-cli tags create - Createimmybot-cli tags create-by-id - Create by idimmybot-cli tags delete-by-id - Delete by idimmybot-cli tags get-by-id - Get by idimmybot-cli tags list - Listtarget-assignments - Manage target assignments
immybot-cli target-assignments create - Createimmybot-cli target-assignments create-change-request-by-change-request-id-v2 - Create change request by change request id v2immybot-cli target-assignments create-change-request-v2 - Create change request v2immybot-cli target-assignments create-duplicate - Create duplicateimmybot-cli target-assignments create-duplicates - Create duplicatesimmybot-cli target-assignments create-global-by-id-notes - Create global by id notesimmybot-cli target-assignments create-global-by-id-override - Create global by id overrideimmybot-cli target-assignments create-global-create - Create global createimmybot-cli target-assignments create-migrate-deployments-to-provider-links - Create migrate deployments to provider linksimmybot-cli target-assignments create-migrate-to-superseding-assignment - Create migrate to superseding assignmentimmybot-cli target-assignments create-migrate-to-superseding-assignment-what-if - Create migrate to superseding assignment what ifimmybot-cli target-assignments create-optional-approvals-by-id - Create optional approvals by idimmybot-cli target-assignments create-persons-target-preview - Create persons target previewimmybot-cli target-assignments create-recommended-approvals-update - Create recommended approvals updateimmybot-cli target-assignments create-target-preview - Create target previewimmybot-cli target-assignments create-tenant-target-preview - Create tenant target previewimmybot-cli target-assignments create-update-maintenance-item-order - Create update maintenance item orderimmybot-cli target-assignments create-visibility - Create visibilityimmybot-cli target-assignments delete-by-id - Delete by idimmybot-cli target-assignments delete-global-by-id - Delete global by idimmybot-cli target-assignments get-by-id - Get by idimmybot-cli target-assignments get-change-request-by-change-request-id - Get change request by change request idimmybot-cli target-assignments get-change-request-by-change-request-id-diff - Get change request by change request id diffimmybot-cli target-assignments get-change-requests - Get change requestsimmybot-cli target-assignments get-global - Get globalimmybot-cli target-assignments get-global-by-id - Get global by idimmybot-cli target-assignments get-global-by-id-type - Get global by id typeimmybot-cli target-assignments get-maintenance-item-orders - Get maintenance item ordersimmybot-cli target-assignments get-optional-approvals-computer-by-computer-id - Get optional approvals computer by computer idimmybot-cli target-assignments get-recommended-approvals - Get recommended approvalsimmybot-cli target-assignments list - Listimmybot-cli target-assignments update-batch-update - Update batch updateimmybot-cli target-assignments update-by-id - Update by idimmybot-cli target-assignments update-global-by-id - Update global by idtenants - Manage tenants
immybot-cli tenants create - Createimmybot-cli tenants create-add-tags - Create add tagsimmybot-cli tenants create-bulk-create - Create bulk createimmybot-cli tenants create-bulk-delete - Create bulk deleteimmybot-cli tenants create-bulk-merge - Create bulk mergeimmybot-cli tenants create-remove-parent - Create remove parentimmybot-cli tenants create-remove-tags - Create remove tagsimmybot-cli tenants create-resolve-assignments-for-maintenance-item - Create resolve assignments for maintenance itemimmybot-cli tenants create-set-parent - Create set parentimmybot-cli tenants create-update-azure-link - Create update azure linkimmybot-cli tenants get-by-id - Get by idimmybot-cli tenants get-computer-counts - Get computer countsimmybot-cli tenants get-excluded-from-cross-deployments - Get excluded from cross deploymentsimmybot-cli tenants get-software-from-inventory-by-id - Get software from inventory by idimmybot-cli tenants get-software-from-inventory-dx - Get software from inventory dximmybot-cli tenants get-software-from-inventory-export - Streams the contents of the detected computer software table as a CSV file to the clientimmybot-cli tenants list - Listimmybot-cli tenants update-activate-by-id - Update activate by idimmybot-cli tenants update-by-id - Update by idimmybot-cli tenants update-deactivate-by-id - Update deactivate by iduser-role-assignments - Manage user role assignments
immybot-cli user-role-assignments create-category-resource-create - Create category resource createimmybot-cli user-role-assignments create-msp-create - Create msp createimmybot-cli user-role-assignments create-owner-create - Create owner createimmybot-cli user-role-assignments create-specific-resource-create - Create specific resource createimmybot-cli user-role-assignments create-specific-tenant-create - Create specific tenant createimmybot-cli user-role-assignments create-tag-resource-create - Create tag resource createimmybot-cli user-role-assignments create-tenant-tag-create - Create tenant tag createimmybot-cli user-role-assignments create-user-tenant-create - Create user tenant createimmybot-cli user-role-assignments delete-delete - Delete deleteimmybot-cli user-role-assignments get-users-by-user-id - Get users by user idimmybot-cli user-role-assignments get-users-by-user-id-count - Get users by user id countimmybot-cli user-role-assignments list - Listuser_session - Manage user session
immybot-cli user-session get-login - Get loginimmybot-cli user-session get-logout - Get logoutimmybot-cli user-session get-me - Get meimmybot-cli user-session get-refresh - Get refreshusers - Manage users
immybot-cli users create-bulk-create - Create bulk createimmybot-cli users create-by-id - Create by idimmybot-cli users create-invalidate-cache - Create invalidate cacheimmybot-cli users create-stop-impersonating - Create stop impersonatingimmybot-cli users create-submit-feedback - Create submit feedbackimmybot-cli users create-update-expiration - Create update expirationimmybot-cli users delete-bulk-delete - Delete bulk deleteimmybot-cli users delete-by-id - Delete by idimmybot-cli users get-by-id - Get by idimmybot-cli users get-claims - Get claimsimmybot-cli users list - Listwebhooks - Manage webhooks
immybot-cli webhooks create-by-id - Create by idimmybot-cli webhooks get-by-id - Get by idassignment-explain
immybot-cli assignment-explain - Show every target assignment that resolves onto one computer, which scope matched, and which rules are shadowed.computer-dossier
immybot-cli computer-dossier - Identity, tenant, installed software and recent maintenance history for one computer, assembled from the local mirror in one pass.deployment-health
immybot-cli deployment-health - Historical success rate per deployment, including ones that never worked.drift
immybot-cli drift - Per-tenant compliance posture across every software title, ranked by how far installed versions trail the newest version seen in the fleet.fleet-diff
immybot-cli fleet-diff - What changed between two syncs: computers added or removed, software versions moved, assignments modified. Record a baseline with --snapshot after a sync, then compare with --since.onboarding-stalled
immybot-cli onboarding-stalled - Computers stuck waiting to onboard, bucketed by age and annotated with whether onboarding was ever attempted.provider-link-health
immybot-cli provider-link-health - Every RMM or PSA provider link that is disabled, unhealthy or reporting a sync failure, with the failure messages ImmyBot recorded.psa-reconcile
immybot-cli psa-reconcile - Diff the ImmyBot roster against a linked PSA or RMM asset roster to find unlinked computers and orphaned assets.schedule-orphans
immybot-cli schedule-orphans - Maintenance schedules whose target, tenant or target type no longer exists, plus disabled schedules, from the local mirror.script-blast-radius
immybot-cli script-blast-radius - Every maintenance task, software package and computer that a script reaches before you edit it.session-triage
immybot-cli session-triage - Group the last window's failed maintenance actions by normalized root cause instead of reading the same error on forty machines.version-spread
immybot-cli version-spread - Semver-ordered distribution of one software title across every tenant, flagging everything below a floor.When you know what you want to do but not which command does it, ask the CLI directly:
immybot-cli which "<capability in your own words>"
which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match - fall back to --help or use a narrower query. --json (and other machine formats) keep that exit-2 contract and write {"matches":[]} on stdout so agents can inspect the envelope without treating a miss as success.
immybot-cli session-triage --since 24h --agent --select clusters.reason,clusters.action,clusters.computer_count
Returns only the distinct failure causes and how many machines each hit, which is the whole decision surface for opening tickets.
immybot-cli version-spread "Google Chrome" --min-version 140 --agent
Ranks installed versions with a real semver comparator and lists the tenants and machines still below the floor.
immybot-cli assignment-explain 4821 --agent
Shows every target assignment resolving onto that computer, which scope matched, and which rules were shadowed.
immybot-cli script-blast-radius 312 --agent
Walks the script to its consuming tasks and packages and out to the computers those assignments resolve onto.
immybot-cli onboarding-stalled --older-than 3d --agent
Buckets the onboarding queue by age and shows whether an onboarding session was ever attempted and how it ended.
ImmyBot authenticates through Microsoft Entra ID rather than an ImmyBot-issued key. Register an app in Entra ID, create a client secret, then in ImmyBot go to Show More > People > New and paste the Enterprise Application's object ID into the AD External ID field, promoting that person to an admin user. The CLI then needs four values: IMMYBOT_SUBDOMAIN (your instance name without .immy.bot), IMMYBOT_TENANT_ID, IMMYBOT_CLIENT_ID and IMMYBOT_CLIENT_SECRET. The client-credentials token is minted against login.microsoftonline.com and cached automatically; the API scope is derived from your instance URL, and IMMYBOT_OAUTH_SCOPE overrides it if your tenant exposes a different App ID URI.
Run immybot-cli doctor to verify setup.
Add --agent to any command. Expands to: --json --compact --no-input --no-color.
Global format flags share one contract on promoted, novel, sync, and --deliver paths:
--json - one JSON document on stdout (sync progress events go to stderr)
--compact - keep identity/status/timestamp fields; does not change the document vs stream shape
--csv / --plain - tabular rows (collection envelopes unwrap to the row array). --csv prefixes ' on a cell or header key that starts with =, +, -, @, tab, CR, or LF (fullwidth =+-@ too) so a spreadsheet does not run it as a formula; a plain signed number such as -5 or +2.5e3 is unchanged.
--quiet - one identity value per row, no envelope
Pipeable - JSON on stdout, errors on stderr
Filterable - --select keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
immybot-cli access list --agent --select addons,backendRegAppId,canManageCrossTenantDeployments
Previewable - --dry-run shows the request without sending
Offline-friendly - sync/search commands can use the local SQLite store when available
Non-interactive - never prompts, every input is a flag
Explicit confirmation - --agent does not imply --yes; pass --yes separately only after the target, arguments, and side effects are clear
Explicit retries - use --idempotent only when an already-existing create should count as success, and use --ignore-missing only when a missing delete target should count as success
Commands that read from the local store or the API wrap output in a provenance envelope:
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}
Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set - piped/agent consumers and explicit-format runs get pure JSON on stdout.
Agents should treat the CLI's path resolver as part of the runtime contract:
Use --home <dir> for one invocation, or set IMMYBOT_HOME=<dir> to relocate all four path kinds under one root.
Use per-kind env vars only when a specific kind must diverge: IMMYBOT_CONFIG_DIR, IMMYBOT_DATA_DIR, IMMYBOT_STATE_DIR, IMMYBOT_CACHE_DIR.
Resolution order is per-kind env var, --home, IMMYBOT_HOME, XDG (XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME), then platform defaults.
config contains settings like config.toml and profiles. data contains credentials.toml, data.db, cookies, and auth sidecars. state contains persisted queries, jobs, and teach.log. cache contains regenerable HTTP/cache files.
Stored secrets live in credentials.toml under the data dir. Existing legacy config.toml secrets are read for compatibility and leave config.toml on the first auth write.
Run immybot-cli doctor --fail-on warn to surface path and credential-location warnings. agent-context exposes a schema v4 paths block for agents that need the resolved dirs.
For MCP, pass relocation through the MCP host config. The MCP binary does not inherit CLI flags:
{
"mcpServers": {
"immybot": {
"command": "immybot-mcp",
"env": {
"IMMYBOT_HOME": "/srv/immybot"
}
}
}
}
Fleet precedence: an inherited per-kind env var overrides an explicit --home for that kind. Use IMMYBOT_HOME or per-kind vars as durable fleet levers, and use --home only for a single invocation. Relocation is not reversible by unsetting env vars; move files manually before clearing IMMYBOT_HOME, or doctor will not find credentials left under the former root.
Local data is unencrypted and relies on OS account permissions plus disk encryption. Reads in the default --data-source auto mode are written to the SQLite store; GET responses are cached for five minutes under the cache dir. The exception is the two access auth-details commands, whose responses carry the tenant's app registration secret: they print to the terminal that asked and are never cached or stored. local-data purge previews what it would erase (store files, response cache, learn journal) and deletes only with --yes; it is not exposed over MCP. IMMYBOT_NO_LOCAL_DATA=1 disables the response cache and store writes, turns auto reads into live reads, and blocks sync and workflow archive; --data-source local still reads an existing store, and IMMYBOT_DATA_SOURCE sets the --data-source default.
This CLI ships a self-capturing learning loop. The CLI does its own bookkeeping: every invocation is journaled locally, a failed flag followed by a corrected retry auto-derives a flag_alias candidate, and a teach on a query family without a playbook auto-synthesizes a playbook_candidate from the session's journal. Your job is judgment only: recall first, act on surfaced candidates, teach the final answer, playbook amend when you observe a correction. You never record failures by hand.
recall before any discoveryBefore list/search/drill commands on a new user question, pass the question as an argv or MCP tool argument to recall --agent. Do not interpolate user-controlled text into a shell command line.
Quoted recall "<question>" breaks on an apostrophe, which is ordinary English. A quoted heredoc breaks when a body line equals the delimiter, and that delimiter is published in these docs. Write the question with a non-shell file-writing tool, then read it back as data:
# Write the question verbatim with your file-writing tool (no shell involved).
# Command substitution on a file only ever yields data - the shell never
# parses the file's bytes as syntax.
QUERY=$(cat /path/to/question.txt)
immybot-cli recall "$QUERY" --agent
Prefer MCP: pass the question as the tool's query argument. "$QUERY" after a file read is argv-safe; putting the question itself in the command text is not.
The response envelope:
{
"query": "...",
"normalized": "<normalized form>",
"query_entities": ["..."],
"found": true | false,
"match_score": 0.0,
"results": [
{ "resource_id": "...", "resource_type": "...", "venue": "...",
"confidence": 2, "entity_match": "exact|partial|unknown",
"source": "taught|preseed|pattern", "warnings": ["..."] }
],
"mismatches": [ /* only when --debug-mismatches */ ],
"warnings": [ /* top-level */ ],
"candidates": [
{ "id": 12, "class": "flag_alias | playbook_candidate",
"summary": "...", "sightings": 3, "last_seen": "...",
"rationale": "...",
"next_action": ["<trial command>", "immybot-cli learnings confirm 12"] }
],
"playbook": {
"query_family": "...",
"playbook": {
"steps": [ { "cmd": "<command with {slot} substitution>", "purpose": "..." } ],
"entity_slots": ["$ENTITY"],
"expected_tool_calls": 3
},
"slots_resolved": { "$ENTITY": { "token": "<live token>", "canonical": "<canonical>" } },
"notes": "<workarounds + gotchas for this query family>"
},
"notes": "<duplicate surface for non-playbook callers>"
}
Empty-store short-circuit: if the store has no learnings, playbooks, or candidates yet (recall finds nothing and learnings list and learnings candidates are both empty), skip recall for the rest of this session instead of taxing every query; resume recall-first once something has been taught.
Read candidates, playbook, notes, results[0], and warnings in that order:
if Candidates present (warnings include "candidates_present"):
-> candidates are try-then-confirm, never facts. Follow each candidate's
two-step next_action verbatim: run the trial command first, then run
`learnings confirm <id>` only after the trial verified the behavior.
Reject a wrong candidate with `learnings reject <id>`.
-> NEVER re-teach something recall surfaced as a candidate; confirm or
reject that candidate instead of teaching a duplicate.
-> candidates ride alongside playbooks and resource hits, not instead of
them; continue with the branches below after acting on them.
if Playbook present:
-> READ Playbook.notes verbatim FIRST (workarounds + gotchas the CLI surface doesn't expose)
-> replay Playbook.steps in order, substituting Playbook.slots_resolved entries
for the entity slot tokens. If a step's slot is unresolved, fall back to
discovery for that step only.
-> the Playbook's expected_tool_calls is a budget; if you find yourself running
materially more, record the divergence via `immybot-cli playbook amend`
at end-of-session.
elif Notes present (no Playbook):
-> read Notes verbatim before any discovery step; they carry known gotchas
for this query family even when no structured choreography exists yet.
elif Found AND Results[0].EntityMatch == "exact" AND Results[0].Confidence >= 2:
-> skip discovery; fetch live data for Results[*].ResourceID in parallel
elif Found AND Results[0].EntityMatch == "partial":
-> candidate hint, NOT a hit; read the resource title to validate before trusting
elif (any row in Mismatches[] when --debug-mismatches was passed):
-> treat as cold start; the stored learning is for a different entity
(different canonical resolved from query_entities)
else: // Found == false, no playbook, no notes
-> cold start; run discovery normally; teach the answer afterward (Step 4).
If the family has no playbook yet, that teach auto-synthesizes a
playbook candidate from this session's journal - you do not need to
record one by hand.
Playbook and Notes are orthogonal to the per-resource path. A recall response can carry both a Playbook AND a Results[] hit - use both: the Playbook tells you which choreography to run; the resource hits short-circuit specific steps. Default to skipping mismatches; pass --debug-mismatches only when investigating cold-start surprises.
Candidate judgment details: learnings confirm <id> prints the candidate's full payload before materializing it - check that the printed payload matches the behavior you verified. learnings reject <id> tombstones the derivation signature so the same candidate does not resurface. The envelope carries only the few candidates worth acting on now; immybot-cli learnings candidates lists the full open set.
Graceful degradation: if learnings confirm is an unknown command, you are driving an older binary - ignore the candidates guidance and follow the rest of the protocol.
warningslow_confidence: row exists at confidence<2. Treat as a hint, not a skip-discovery hit.resource_not_in_store: the local store doesn't have the resource the learning points at. The match validator couldn't classify entities - direct-fetch and re-evaluate.cross_alias_match (per-result): the row was taught under a different alias and matched the live query's canonical via entity_lookups (e.g., a "USA" teach satisfying a "United States" recall). Trust the resource_id.similar_shape_different_entity:<canonical> (top-level): a structurally matching row exists but its canonical entity differs from the live query's. Treated as cold start; the warning carries the conflicting canonical as a hint, but the row is NOT promoted into Results.ambiguous_alias (top-level): a single query entity resolved to multiple canonicals (e.g., "Cards" → Arizona Cardinals + St. Louis Cardinals). Surface the ambiguity from context before committing to a resource.candidates_present (top-level): the envelope carries a candidates section. Handle it via the candidates branch in Step 2 before anything else.lookup_refresh_available (top-level): an entity in the query has no lookup row yet, but synced data could provide one. Run immybot-cli sync to refresh entity lookups.no_learnings_for_query_family: the table had no rows above the Jaccard floor. Pure cold start.teach & after finalizing your response - alwaysTeaching is unconditional. After resolving a query the store could not answer, background-teach the final resource mapping - no call-count threshold, no judging whether it was "worth" learning. The teach is the anchor of the loop: it triggers playbook synthesis for a family without a playbook, and same-referent phrasings fold into one family so near-duplicate teaches do not fragment the store. Fire it after assembling your user-facing response but BEFORE emitting it, with a shell & so the call returns immediately. Pass the query the same way as recall - argv/MCP, or file-then-$QUERY. Do not splice the question into the command text:
QUERY=$(cat /path/to/question.txt)
immybot-cli teach --query "$QUERY" --resource-type <type> --resource <id1> --resource <id2>
# (append shell `&` to background it)
Silent on success. Errors only land in teach.log under the resolved state dir. Teach the most specific resource - if the user asked a broad question and you walked through parent records to find the specific answer, teach the leaf id, not the parent. The CLI uses seeded entity_lookups for cross-alias resolution at recall time, so a teach under one alias (e.g., "Niners") satisfies future queries under another alias (e.g., "49ers", "San Francisco") automatically.
PII rule: teach the structural question with identifiers stripped - never include names, emails, phone numbers, account ids, or other personal identifiers in taught queries or notes. The CLI scans teach queries for obvious email/phone shapes and warns, but does not block; strip before teaching rather than relying on the warning.
You do not need to decide whether a session "deserves" a playbook: a teach on a family without one auto-synthesizes a playbook_candidate from the session's journal, and the next session judges it via confirm/reject. Attach explicit playbook flags only when you already hold choreography worth recording verbatim - workarounds the CLI didn't surface (silently-dropped flags, undocumented params, pagination tricks, payload gotchas). Prefer the integrated one-call form - record the resource learning and the playbook in the same teach invocation:
# Common case: record both the resource learning AND the playbook in one call.
QUERY=$(cat /path/to/question.txt)
immybot-cli teach \
--query "$QUERY" \
--resource <id> \
--playbook-file ~/playbooks/<shape>.json \
--playbook-notes-file ~/playbooks/<shape>-notes.md
# (append shell `&` to background it)
# Alternate: playbook-only (no resource to record alongside).
QUERY=$(cat /path/to/question.txt)
immybot-cli teach-playbook \
--query "$QUERY" \
--playbook-file ~/playbooks/<shape>.json \
--notes-file ~/playbooks/<shape>-notes.md
Playbook files are JSON with steps, entity_slots, expected_tool_calls. Notes files are markdown carrying the gotchas verbatim. File-free callers (MCP-only agents) pass the same content inline: --playbook-json and --playbook-notes on the integrated teach form, --playbook-json and --notes on teach-playbook. On the integrated teach form, the playbook flags are optional - omit them entirely for a resource-only teach. On the standalone teach-playbook form, at least one of the playbook and notes flags must be set; both empty is rejected. Playbooks are keyed on the structural query family (entities stripped) so a recipe taught from one entity-shaped query applies to every other query of the same shape, with slots_resolved binding the live query's canonical at recall time.
When you DO find a playbook on a future recall, treat it as ground truth: replay the steps with slots_resolved substitutions, skip the discovery that the choreography already documents, and read notes before any step.
playbook amend & when your debug response identifies a correctionIf your debug-protocol response identifies a concrete correction the notes or playbook should know - a workaround, an undocumented endpoint shape, a stale field name, observed schema drift, an empty-payload fallback - fire playbook amend BEFORE emitting your user-facing response. Same fire-and-forget posture as teach. Pass the query and note as argv/MCP arguments, or write each with a non-shell file tool and read them back (QUERY=$(cat ...), NOTE=$(cat ...)). Do not interpolate either string into the command text:
QUERY=$(cat /path/to/question.txt)
NOTE=$(cat /path/to/note.txt)
immybot-cli playbook amend \
--query "$QUERY" \
--add-note "$NOTE"
# (append shell `&` to background it)
What counts as worth amending: a behavior you OBSERVED this session that future-you would benefit from knowing. Examples worth amending:
{meta, results}, payload nested two levels deeper than the docs claim).What does NOT belong in notes:
The amend command appends to the family's existing notes with a timestamped marker ([amend YYYY-MM-DDTHH:MMZ]: <text>). Multiple amends accumulate; the audit trail is visible. If no playbook exists yet for the family, amend creates a notes-only one (so cold-start corrections still land).
playbook amend notes are designed to potentially flow upstream as shared knowledge in future versions of the Printing Press. Keep them clean of user-identifying content so the upstream-contribution path stays open without retroactive scrubbing:
If a correction is only meaningful with user-specific context, it belongs in a personal note, not in the playbook amend.
immybot-cli learnings stats reports recall hit rate, teach-to-reuse, playbook resolution rate, and candidate confirm/reject counts from the local learn_events table. Rates are null until they have a denominator; everything stays on this machine. Use it to check whether the loop is earning its keep for this CLI.
--no-learn on a single command short-circuits both recall and the teach write path. Use for deterministic agent flows or tests that must not be affected by accumulated learnings.IMMYBOT_NO_LEARN=true in the environment globally disables the pipeline.When you (or the agent) notice something off about this CLI, record it:
immybot-cli feedback "the --since flag is inclusive but docs say exclusive"
immybot-cli feedback --stdin < notes.txt
immybot-cli feedback list --json --limit 10
Entries are stored locally as feedback.jsonl under the resolved data dir. They are never POSTed unless IMMYBOT_FEEDBACK_ENDPOINT is set AND either --send is passed or IMMYBOT_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
| Sink | Effect |
|---|---|
stdout | Default; write to stdout only |
file:<path> | Atomically write output to <path> as a private 0600 file (exclusive randomly named temp in the destination directory, then rename; a planted symlink is not followed). Binary-response commands write decoded payload bytes (not the base64 JSON envelope) and print a small JSON receipt on stdout; --json/--csv do not refuse when this sink is set. |
webhook:<url> | POST the output body to the URL (application/json). Redirects are not followed; a 3xx response fails the delivery and the body is not sent to the Location. |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures, including redirects, return non-zero and log the URL and HTTP status on stderr.
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled or recurring agent reuses the same saved flags while providing different input each run.
immybot-cli profile save briefing --json
immybot-cli --profile briefing access list
immybot-cli profile list --json
immybot-cli profile show briefing
immybot-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.
For endpoints that submit long-running work, the generator detects the submit-then-poll pattern (a job_id/task_id/operation_id field in the response plus a sibling status endpoint) and wires up three extra flags on the submitting command:
| Flag | Purpose |
|---|---|
--wait | Block until the job reaches a terminal status instead of returning the job ID immediately |
--wait-timeout | Maximum wait duration (default 10m, 0 means no timeout) |
--wait-interval | Initial poll interval (default 2s; grows with exponential backoff up to 30s) |
Use async submission without --wait when you want to fire-and-forget; use --wait when you want one command to return the finished artifact.
If --wait times out or polling fails after the job was accepted, the command exits 8 and prints the job ID plus a recovery command that fetches the result. The job may still be running and may already be billed, so run the recovery command instead of resubmitting.
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 6 | Partial failure |
| 7 | Rate limited (wait and retry) |
| 8 | Async job submitted but not finished (run the printed recovery command; do not resubmit) |
| 10 | Config error |
Parse $ARGUMENTS:
help, or --help → show immybot-cli --help outputinstall → ends with mcp → MCP installation; otherwise → see Prerequisites above--agent)claude mcp add immybot-mcp -- immybot-mcp
claude mcp listFor a remote host, immybot-mcp --transport http requires IMMYBOT_MCP_HTTP_TOKEN (callers send Authorization: Bearer <token>), serves http://127.0.0.1:7777/mcp by default, and needs --tls-cert/--tls-key for any non-loopback --addr. IMMYBOT_MCP_READ_ONLY=1 lists only read-only tools: mirrored commands not marked read-only are dropped (the learn-store tools included), the execute and sync tools are removed, and the raw read tool refuses state-changing calls.
which immybot-cli
If not found, offer to install (see Prerequisites at the top of this skill).--agent flag:
immybot-cli <command> [subcommand] [args] --agent
immybot-cli <command> --help.AGENTS.md (opens in a new tab)CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)cli/LICENSE (opens in a new tab)cli/Makefile (opens in a new tab)cli/NOTICE (opens in a new tab)cli/cmd/immybot-cli/main.go (opens in a new tab)cli/cmd/immybot-mcp/credential_e2e_test.go (opens in a new tab)cli/cmd/immybot-mcp/credential_sources_e2e_test.go (opens in a new tab)cli/cmd/immybot-mcp/credkit_seam_test.go (opens in a new tab)cli/cmd/immybot-mcp/http_auth_test.go (opens in a new tab)cli/cmd/immybot-mcp/journal_credential_e2e_test.go (opens in a new tab)cli/cmd/immybot-mcp/main.go (opens in a new tab)cli/cmd/immybot-mcp/store_instance_e2e_test.go (opens in a new tab)cli/cmd/immybot-mcp/synccpu_store_test.go (opens in a new tab)cli/cmd/immybot-mcp/tls_key_hold.go (opens in a new tab)cli/go.mod (opens in a new tab)cli/go.sum (opens in a new tab)cli/internal/cache/cache.go (opens in a new tab)cli/internal/cli/access.go (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub servosity/msp-skills --plugin immybotOther plugins' skills for the same job