openagentry

CORE · Error

E_WORKSPACE_EXISTS

agentry init refused to overwrite an existing `.agentry/workspace.json`.

Package
@openagentry/cli
Category
core

— · Resolution

How to recover

Pass `--force` to overwrite, or edit the file directly.

— · The shape

What an instance looks like

throw new AgentryError({
  code: 'E_WORKSPACE_EXISTS',
  phase: 'init',
  message: '…contextual message…',
  context: { /* adapter-specific */ },
  suggestedFix: 'Pass `--force` to overwrite, or edit the file directly.',
  docs: 'https://openagentry.dev/errors/E_WORKSPACE_EXISTS',
});

The context field carries adapter-specific detail (HTTP status, missing env-var names, validation issues). It never contains secret values.


— · See also

Related codes from @openagentry/cli