# agnostic-ai v0.101.0: preview a new tool before files change

> Source: <https://agnostic-ai.org/updates/2026-12-02-v0.101.0/>
> Published: 2026-12-02 09:22:14+00:00

**Key takeaway:** Run `agnostic-ai use <tool> --dry-run` to see the `agnostic-ai.yaml` change, import plan, created/changed/removed files and `.bak` copies in a temporary project copy before committing, and split any YAML spec file with a second spec after `---` into separate files since v0.101.0 now fails to load th

## Highlights

- **Breaking:** a YAML spec file holds one spec, so split a file that separates several with`---` before you sync.
- **Breaking:** OpenCode agents without`mode` now sync as subagents, and Gemini project sync stops when none of an agent's tools map.[OpenCode agents](https://agnostic-ai.org/docs/targets/opencode-reference/) ,[Gemini agents](https://agnostic-ai.org/docs/targets/gemini-reference/) .
- `agnostic-ai use <tool> --dry-run` shows what adding a tool would import, write and back up before it changes the project.[use](https://agnostic-ai.org/docs/cli-reference/start/#use) .

## Upgrading from v0.100.0

- **YAML files with several specs:** hook, MCP, settings and environment files that hold a second spec after a`---` line now fail to load. Earlier releases read the first spec and ignored the rest. Move each spec to its own file. A file whose top level is a list or a single value fails too.
- **OpenCode agents without `mode`:** an agent that sets neither` mode` nor`x-opencode.mode` now syncs with`mode: subagent` . This includes agents imported with an older release. To keep OpenCode's own default, set`x-opencode: {mode: null}` on that agent before you sync. See[OpenCode agents](https://agnostic-ai.org/docs/targets/opencode-reference/) .
- **Gemini agents with a `tools` list:** project sync stops when none of the names map to a Gemini tool. Set`x-gemini.tools` to the native tools the agent should use. See[Gemini agents](https://agnostic-ai.org/docs/targets/gemini-reference/) .
- **Scripts that call `validate --fix`:** the flag is deprecated. It runs the checks, changes no files and prints a notice on stderr. Remove it.

Then follow the [upgrade page](https://agnostic-ai.org/docs/cli-reference/upgrades/#upgrade).

## What changed

### Preview before you add or import

`use <tool> --dry-run` runs the same steps in a temporary copy of the project. It prints the change to `agnostic-ai.yaml`, the import plan, the files sync would create, change or remove, and the `.bak` copies it would keep. A `use` that would fail says so and exits 1.

``` bash
$ agnostic-ai use codex --dry-run
```

`import --dry-run` lists the files it would create or change, counts the unchanged ones and names the specs that need `--overwrite`. See [use](https://agnostic-ai.org/docs/cli-reference/start/#use) and [import](https://agnostic-ai.org/docs/cli-reference/import/#import).

### Read validation results in CI

`validate --json` prints errors and warnings in the `lint --json` format, with the exit code of plain `validate`. `validate` now also fails on a spec whose frontmatter opens with `---` and never closes, as lint does with LINT006. Lint also catches more before a sync: misnamed spec folders, wrong value types and a bad rule `scope`. See [validate](https://agnostic-ai.org/docs/cli-reference/check/#validate).

### Keep your files when a step fails

- A single-tool import that fails rolls back its writes. `import all` keeps the results from the tools that succeeded.
- When `sync --backup` cannot save a backup, the original file stays as it was.
- `sync --untrack` updates the Git index only after a complete sync.
- `revert` checks its arguments before it changes files.

See [sync](https://agnostic-ai.org/docs/cli-reference/sync/#sync).

### Stay where you were in the web interface and Companion

After a lost connection, the web interface keeps the last page readable with editing off and shows how to restart `agnostic-ai view`. An Add hook draft survives filters and finding links, and keyboard focus follows change previews. In Agnostic Companion, a dismissed message draft reopens with its text, and a list refresh keeps keyboard focus. See the [web interface](https://agnostic-ai.org/docs/cli-reference/serve/) and the [Companion](https://agnostic-ai.org/docs/cli-reference/companion/).

See the [release notes](https://github.com/Chemaclass/agnostic-ai/releases/tag/v0.101.0) for the remaining fixes.
