---
outline: deep
---

# DF0016: Agent Resource Already Registered

::: warning Experimental
The agent-native surface is experimental and may change without a major version bump until it stabilizes.
:::

## Message

> Agent resource "`{id}`" is already registered.

## Cause

`ctx.agent.registerResource()` was called with an `id` that already exists on the host.

## Fix

Pick a distinct id or unregister the existing resource first via the handle returned from the previous call.

## Source

- [`packages/devframe/src/node/host-agent.ts`](https://github.com/devframes/devframe/blob/main/packages/devframe/src/node/host-agent.ts) — `ctx.agent.registerResource()` throws `DF0016` when the resource id is already registered on the host.
