Skip to content

Eject and uninstall

Use eject to remove an initialized Agents Pack scope from a project or global home directory. Uninstalling the CLI is a separate step.

Always preview first:

Terminal window
agents-pack eject --dry-run

Then apply:

Terminal window
agents-pack eject --yes
  • official generated provider files and managed blocks;
  • user-generated provider copies;
  • the official installation configuration and lock; and
  • the user-generated output lock.

Canonical user-owned source under .agents-pack/user/ or ~/.agents-pack/user/. You can inspect, archive, or reuse it later.

Eject refuses to delete modified, missing, or malformed managed content. This is intentional: Agents Pack will not guess whether an unexpected edit is safe to discard. Resolve drift first — see Troubleshooting.

The current release supports one active scope at a time. If both global and the current repository are initialized, Agents Pack reports a scope conflict. Choose which installation should remain, move any user-owned canonical source you want to keep, and eject the other scope. See Repository vs global.

Removing the standalone executable does not eject managed project or global content. Run eject first if you also want to remove an initialized scope.

Default install location:

Terminal window
rm "$HOME/.local/bin/agents-pack"

If you installed with AGENTS_PACK_INSTALL_DIR, remove the executable from that directory instead. See Install the CLI.

Should repository-generated files be committed?

Section titled “Should repository-generated files be committed?”

Usually, yes — until you eject. Review and commit .agents-pack state, canonical user-owned source, and provider files so teammates and coding agents share the same setup. The user-level cache under ~/.agents-pack/cache/ should not be committed.