{"slug": "agnostic-ai-v0-101-0-preview-a-new-tool-before-files-change", "title": "agnostic-ai v0.101.0: preview a new tool before files change", "summary": "Agnostic-ai released v0.101.0, which adds a `--dry-run` flag to `agnostic-ai use <tool>` that previews in a temporary copy of the project what a tool addition would import, write, back up and change in `agnostic-ai.yaml` before any files are touched. The release also ships two breaking changes: YAML spec files that hold a second spec after a `---` line now fail to load and must be split into one spec per file, and OpenCode agents that set neither `mode` nor `x-opencode.mode` now sync with `mode: subagent`. The `validate --fix` flag is deprecated and now runs checks without changing files, while `validate --json` prints errors and warnings in the `lint --json` format for CI use.", "body_md": "## Highlights\n\n- **Breaking:** a YAML spec file holds one spec, so split a file that separates several with`---` before you sync.\n- **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/) .\n- `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) .\n\n## Upgrading from v0.100.0\n\n- **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.\n- **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/) .\n- **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/) .\n- **Scripts that call `validate --fix`:** the flag is deprecated. It runs the checks, changes no files and prints a notice on stderr. Remove it.\n\nThen follow the [upgrade page](https://agnostic-ai.org/docs/cli-reference/upgrades/#upgrade).\n\n## What changed\n\n### Preview before you add or import\n\n`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.\n\n``` bash\n$ agnostic-ai use codex --dry-run\n```\n\n`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).\n\n### Read validation results in CI\n\n`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).\n\n### Keep your files when a step fails\n\n- A single-tool import that fails rolls back its writes. `import all` keeps the results from the tools that succeeded.\n- When `sync --backup` cannot save a backup, the original file stays as it was.\n- `sync --untrack` updates the Git index only after a complete sync.\n- `revert` checks its arguments before it changes files.\n\nSee [sync](https://agnostic-ai.org/docs/cli-reference/sync/#sync).\n\n### Stay where you were in the web interface and Companion\n\nAfter 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/).\n\nSee the [release notes](https://github.com/Chemaclass/agnostic-ai/releases/tag/v0.101.0) for the remaining fixes.", "url": "https://wpnews.pro/news/agnostic-ai-v0-101-0-preview-a-new-tool-before-files-change", "canonical_source": "https://agnostic-ai.org/updates/2026-12-02-v0.101.0/", "published_at": "2026-12-02 09:22:14+00:00", "updated_at": "2026-12-02 10:13:11.609787+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents"], "entities": ["agnostic-ai", "OpenCode", "Gemini", "Agnostic Companion", "Chemaclass"], "also_reported_by": [], "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", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/agnostic-ai-v0-101-0-preview-a-new-tool-before-files-change", "markdown": "https://wpnews.pro/news/agnostic-ai-v0-101-0-preview-a-new-tool-before-files-change.md", "text": "https://wpnews.pro/news/agnostic-ai-v0-101-0-preview-a-new-tool-before-files-change.txt", "jsonld": "https://wpnews.pro/news/agnostic-ai-v0-101-0-preview-a-new-tool-before-files-change.jsonld"}}