# File ownership

URL: https://agentvera.dev/en/features/file-ownership/ · Plan: Free

When you split work between parallel agents, you can split the codebase too. Give an agent the files and folders it owns; as long as it runs, other agents don’t edit them and ask the owner when they need a change there.

**The areas an agent owns.** In the agent dialog, the “Owned paths” field takes one path or glob pattern per line, relative to the repository root.

- src/api/** covers the whole API folder.
- *.sql covers every SQL file.
- Changing ownership doesn’t need a restart.

**Stopped before the edit.** While the owner runs, another agent that tries to edit one of those files is stopped before the change is made.

- Claude Code agents have the edit refused up front by a PreToolUse hook, with a message naming the owner and telling them to ask that agent.
- Codex and other CLIs get the ownership rules in their instructions.
- Every refused attempt shows up on the team timeline.

**Ask the owner.** With agent messaging, the refused agent can write to the owner directly and ask for the change. Each area has one agent responsible for it, and the work keeps moving.

**How to use it:**

1. Find the “Owned paths” field in the agent dialog.
2. Write one path or glob pattern per line, relative to the repo root, such as src/api/** or *.sql.
3. Run the agent; while it works, other agents can’t edit those files.
4. Follow refused attempts in the Timeline tab of the right panel.

- **When does ownership apply?** While the owning agent runs. During that time other agents can’t edit its files.
- **Are Codex agents blocked too?** Codex and other CLIs get the ownership rules in their instructions. The check that stops an edit before it happens works for Claude Code agents.
- **Do I need to restart the agent after changing ownership?** No. Changes apply without a restart.
- **How do I write the paths?** One path or glob pattern per line, relative to the repository root, such as src/api/** or *.sql.

---

**About AgentVera.** AgentVera is a desktop app for macOS, Windows and Linux, built by Solviera Teknoloji. It runs 18 AI coding agents (Claude Code, Codex, Gemini CLI, Copilot, Cursor, Antigravity, opencode, Hermes, Qwen Code, Kimi Code, Kiro, Amp, Droid, Goose, Vibe, Crush, Aider, Cline) side by side, per project, in real terminals with the user's own CLI installs and logins. The free plan runs 2 agents at once. Download: https://agentvera.dev/en/download/ · Pricing: https://agentvera.dev/en/pricing/
