Skip to main content
This guide is for developers installing, updating, removing, and configuring Atomic packages. Atomic packages bundle extensions, skills, subagents, prompt templates, themes, Model Context Protocol (MCP) servers, and storage adapters for distribution over npm, Git, or local directories. To publish your own package, see Create and publish packages. For filter syntax, precedence, and cache paths, see Package reference.

Create and publish packages

Declare package manifests, subagents, MCP servers, storage adapters, convention directories, and dependencies.

Package reference

Look up filter patterns, autoload: false overrides, resource precedence, deduplication, and cache paths.

Package CLI commands

Full reference for install, remove, update, list, and config flags.

SDK extensions

Load local packages and extensions programmatically with DefaultResourceLoader.

Before you begin

Before installing packages, confirm the following:
  • Atomic is installed and available on your PATH.
  • npm (or your configured npmCommand, such as pnpm or bun) is installed for npm packages, and git is installed for Git repositories.
  • To install project-local packages (-l), trust the project first with /trust or pass --approve (-a).

Install, inspect, update, and remove packages

Atomic packages run with your full user permissions: extensions run arbitrary code and skills instruct the model. Review third-party source code before installing. See Security for project trust rules.
Use the following commands to install packages globally (default) or into the current project (-l / --local):
Inspect installed packages or remove a package with the following commands:
atomic uninstall is an alias for atomic remove. Confirm that an install or removal succeeded by running atomic list and checking User packages or Project packages. Update installed packages, the Atomic CLI, or cached model catalogs with atomic update:
The preceding commands behave as follows:
  • atomic update --extensions updates all unpinned npm packages and reconciles Git refs.
  • atomic update --all updates the Atomic CLI, all packages, and Git refs.
  • atomic update <source> (or atomic update --extension <source>) updates one package.
  • atomic update --models refreshes authenticated provider model catalogs (15-second timeout).
Plain atomic update (or atomic update --self / atomic update atomic) updates only the Atomic CLI and reminds you to run atomic update --extensions for packages. Self-update also accepts --force, --version <release>, and --prerelease (for release-archive installs), verifies atomic --version on PATH, and runs atomic intercom upgrade. See Installation for selfUpdateCommand / ATOMIC_SELF_UPDATE_COMMAND overrides and uninstall steps.

Global and project scope

Package installs and removals follow these scope and trust rules:
  • Global compared with project scope: install and remove edit ~/.atomic/agent/settings.json (%USERPROFILE%\.atomic\agent\settings.json on Windows) by default (see Settings). Pass -l (--local) to edit .atomic/settings.json (Atomic also reads legacy .pi/settings.json). Missing project packages install automatically on startup after the project is trusted.
  • Project trust gate: In an untrusted project, atomic install -l and atomic remove -l exit with code 1 (Project is not trusted. Use --approve to modify local package config.) unless you trust the project first (see Security) or pass -a (--approve). Both -a (--approve) and -na (--no-approve) work on install, remove, update, list, and config.

Update packages and work offline

Package updates and offline startups follow these rules:
  • Flag combinations: --all, --models, and --extension are mutually exclusive and can’t be combined with positional sources. Pass --extension at most once.
  • Output and partial failures: Atomic prints each updated npm version or Git commit (for example npm:@acme/review-kit 1.2.0 -> 1.3.0, tagged (project) for project scope) or prints Packages are already up to date. If some packages fail during a batch update, Atomic still prints the packages that succeeded before exiting non-zero.
  • Offline mode: Pass --offline or set ATOMIC_OFFLINE to 1, true, or yes (case-insensitive; Atomic also reads legacy PI_OFFLINE) to skip automatic startup installs and package updates.
  • Startup resilience: If an automatic startup install fails (for example offline), Atomic warns with the matching atomic remove command, skips that package’s resources, and retries on the next start or /reload (atomic install and atomic update --extensions still exit non-zero). Concurrent installs serialize per package, interrupted Git clones re-clone on retry, and atomic remove cleans up orphaned directories.

Preview a package with -e

To try a package for one session without editing settings.json, pass it to -e (--extension):
-e installs remote sources into a private user-owned cache (see Temporary package cache for exact paths). Unpinned npm specs and branch or tag Git refs refresh on start and /reload (falling back to cache offline or on error), while exact @1.2.3 npm pins and matching Git commit hashes skip network checks. Local -e <dir> paths can also load <dir>/.atomic, <dir>/.pi, and <dir>/.agents/skills after resolving trust for that directory.

Package sources

Atomic supports three package source types: npm packages, Git repositories, and local paths.

npm

Specify npm packages with optional exact versions, semver ranges, or dist-tags:
npm package installation follows these rules:
  • Install locations: Global npm packages install under ~/.atomic/agent/npm/ (managed by Atomic rather than your system global npm -g root; Atomic checks system global npm, pnpm, or bun roots only for legacy installs already there). Project installs (-l) install under .atomic/npm/ (legacy .pi/npm/ fallback).
  • Pinning, ranges, and dist-tags: Exact semver versions (npm:pkg@1.2.3) stay pinned, so atomic update --extensions and --all skip them. Semver ranges (^1.2.3, ~1.2.3) and dist-tags (@next) update when you run atomic update --extensions or --all. Dist-tags also check the registry on online startup and reinstall when the tag moves.
  • Custom package manager (npmCommand): To use pnpm, bun, or a version manager such as mise or asdf, set npmCommand in settings.json:
Atomic detects npm, pnpm, and bun even inside wrapper commands (include -- if a wrapper mentions more than one manager name, or Atomic fails with Ambiguous npmCommand package managers) and passes manager-specific flags to avoid installing host peer dependencies:
  • npm: --legacy-peer-deps --no-audit --no-fund (plus --omit=dev for Git package dependencies).
  • pnpm: --config.auto-install-peers=false --config.strict-peer-dependencies=false --config.strict-dep-builds=false (plus --prod for Git dependencies).
  • bun: --omit=peer (plus --omit=dev for Git dependencies).

Git

Specify Git repositories with git: shorthand or full protocol URLs, optionally pinned to a branch, tag, or commit hash:
Git package installation follows these rules:
  • URL syntax: Bare protocol URLs (https://, http://, ssh://, and git://) work directly; shorthand (github.com/acme/review-kit, git@github.com:acme/review-kit) requires the git: prefix. Hosted URLs accept #ref alongside @ref. Repository paths must have at least two segments (owner/repo) and can’t contain traversal (.., .), backslashes, or null bytes. Case-only path collisions on case-insensitive filesystems stop with an error.
  • SSH and CI: SSH uses your keys and ~/.ssh/config. For non-interactive or CI runs, set GIT_TERMINAL_PROMPT=0 and GIT_SSH_COMMAND="ssh -o BatchMode=yes -o ConnectTimeout=5".
  • Clone locations: Repositories clone to ~/.atomic/agent/git/<host>/<path> (global) or .atomic/git/<host>/<path> (project; legacy .pi/git/ fallback).
  • Refs and updates: @ref and #ref accept a branch, tag, or commit hash. Running atomic update --extensions or --all fetches a pinned ref (git fetch origin -- <ref>) and resets hard to FETCH_HEAD, advancing branches and reconciling tags or commits. Unpinned checkouts track @{upstream} (when on origin/) or refresh origin/HEAD, and repair missing dependencies even when HEAD hasn’t changed. Whenever HEAD changes, Atomic runs git clean -fdx and installs production dependencies if package.json exists (on Windows, locked files during cleanup warn and retry on a later update). To switch a pinned repository to another ref, re-run atomic install with the target ref (for example atomic install git:github.com/acme/review-kit@v2).

Local paths

Install a local package file or directory by absolute or relative path:
Replace the following:
  • ABSOLUTE_PACKAGE_PATH: the absolute path to a local package directory or extension file, for example /opt/atomic/review-kit.
  • RELATIVE_PACKAGE_PATH: the path relative to your current directory, for example packages/review-kit.
Local paths load in place without copying. Running atomic install /opt/atomic/review-kit stores the path in settings.json relative to the settings directory (~/.atomic/agent or .atomic). A file loads as a single extension; a directory loads as a package. Running atomic remove <local-path> removes only the settings entry and never deletes local files.

Enable and disable resources

Run atomic config to turn extensions, skills, prompt templates, and themes on or off interactively:
  • Running atomic config opens global settings (~/.atomic/agent/settings.json). Press Tab to switch between global and project scope in trusted projects (Tab is disabled in untrusted projects).
  • Running atomic config -l (--local) opens project overrides (.atomic/settings.json) with inherited global entries dimmed. In an untrusted project, atomic config -l exits with code 1 (Project is not trusted. Use --approve to modify local resource config.) unless you pass --approve.
  • Package subagents, MCP servers, and storage adapters don’t appear in atomic config. Filter agents and mcpServers per package in settings.json (see Package filtering), and select storage adapters with storage.adapter.
  • Turn built-in extensions (llama.cpp, codemode, and tool-search) on or off with builtin:<name> entries (see Built-in extension resources).
  • If an interactive session crashes with an uncaught error whose stack crosses a loaded extension, Atomic names the extension in the exit output and suggests atomic config or atomic -ne to isolate the cause.

Troubleshooting

The following table lists common package management errors and how to fix them:

Next steps

Continue working with packages in these guides: