# agnostic-ai v0.102.0: sync never leaves a file half written

> Source: <https://agnostic-ai.org/updates/2026-12-04-v0.102.0/>
> Published: 2026-12-04 08:16:36+00:00

**Key takeaway:** Sync now writes each changed output to a new file and moves it into place, so a failed write keeps the prior file, and spec files linking outside the project or into .git stop sync until replaced with regular files or in-project links.

## Highlights

- **Breaking:**`sync` and every spec load stop on a project or pack spec file that links outside the project or into a`.git` folder.[Path rules](https://agnostic-ai.org/docs/configuration-reference/) .
- **Breaking:**`sync` refuses to change an output that has another hard link or that another user owns, and names the path.[sync](https://agnostic-ai.org/docs/cli-reference/sync/#sync) .
- `sync` ,`sync --scope user` ,`install-hook` and`memory index` replace files whole, so a write that fails partway keeps the file you had.[sync](https://agnostic-ai.org/docs/cli-reference/sync/#sync) .

## Upgrading from v0.101.0

- **Spec files that are links:** a spec file under`.agnostic-ai/` , a source folder or an installed pack that links outside the project, outside its source folder or into`.git` now stops sync, and the message names the link. Replace it with a regular file or a link that stays inside the project. A source folder that is itself a link still loads. The personal`.agnostic-ai/local/` folder is not checked.
- **Packs with outside links:**`packs add` and`packs update` refuse such a pack from Git, and`sync` stops on one an older release installed. Remove the link from the pack, then update it. See[packs](https://agnostic-ai.org/docs/packs/) .
- **Outputs with a second hard link (macOS, Linux):** sync names the path and leaves it. Remove the other link or replace it with a copy. When another user owns the output, the message says how to keep it or have its owner sync.
- **Permission edits on a user-level server:** an edit that lets your tools do more without asking needs a tab opened with`agnostic-ai view --scope user` or the Companion's**Dashboard** . Other local programs get a 403. See[who can change this](https://agnostic-ai.org/docs/approvals/#who-can-change-this) .

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

## What changed

### Files survive a failed write

Sync writes each changed output to a new file beside it and moves that into place. A full disk no longer leaves an output or `.agnostic-ai/outputs.lock` cut short. A `sync --scope user` that fails puts back only the files it changed. `install-hook` keeps your Git hook when its write fails, and a failed `memory index` keeps the previous `MEMORY.md`. Each write now reaches the disk before the move, so a sync that changes hundreds of files takes longer. `sync --dry-run` and `sync --check` report an output sync cannot replace. See [sync](https://agnostic-ai.org/docs/cli-reference/sync/#sync).

### Links cannot pull outside text in or push writes out

- Spec loading stops on a file linked from outside the project, so no generated file receives its text. `import all` skips such files with a note.
- `revert` refuses to restore or remove through a link that leaves the project, and through a Windows folder junction.
- `new` keeps spec creation inside the project or the source folder you select.
- Read-only commands such as `sync --check` no longer start a program the repository names in its own Git config.

### Protected paths and local specs stay put

In `yolo` mode the approvals hook asks before an edit or a shell command touches a path your settings specs protect. See [approvals](https://agnostic-ai.org/docs/approvals/). The [Codex](https://agnostic-ai.org/docs/targets/codex/) and [Gemini CLI](https://agnostic-ai.org/docs/targets/gemini/) protect hooks now follow symbolic links, so an edit through a link into a protected folder is blocked. Specs under `.agnostic-ai/local/` stay out of every file `gitignore.commit` keeps in Git, so a sync with local overrides leaves `git status` clean. See [committed files](https://agnostic-ai.org/docs/sync-settings/#commit-local).

### Packs, MCP and running chats

`packs apply` adds a pack's MCP servers and skills to the tool files already in a project, without an `agnostic-ai.yaml`:

``` bash
$ agnostic-ai packs apply ./vendor/acme/agents-pack --targets claude,codex,cursor --dry-run
```

A stdio MCP spec can list launch commands in order, and sync picks the first that fits the project. The Companion and the web interface show CPU use and how long the current turn has run for working chats. See [packs](https://agnostic-ai.org/docs/packs/).

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