# `Pixir.Subagents.GC`
[🔗](https://github.com/Ranvier-Technologies/pixir/blob/main/lib/pixir/subagents/gc.ex#L1)

Plans and applies fail-closed reclamation of isolated Subagent workspaces.

Parent Session Logs are the only lifecycle evidence. Reclamation never deletes or
moves an NDJSON file below a `.pixir/sessions` directory, including child Logs
embedded inside an isolated workspace snapshot.

# `apply`

```elixir
@spec apply(keyword()) :: {:ok, map()} | {:error, map()}
```

Build and apply one reclamation plan, continuing after per-directory errors.

# `plan`

```elixir
@spec plan(keyword()) :: {:ok, map()} | {:error, map()}
```

Build an effect-free reclamation plan for the current Workspace.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
