From 75469af514fb2a309910bfe8a8239735faaf3108 Mon Sep 17 00:00:00 2001 From: teernisse Date: Thu, 12 Mar 2026 11:26:44 -0400 Subject: [PATCH] chore(build): share target directory across agent worktrees Add .cargo/config.toml to force all builds (including worktrees created by Claude Code agents) to share a single target/ directory. Without this, each worktree creates its own ~3GB target/ directory which fills the disk when multiple agents are working in parallel. Co-Authored-By: Claude Opus 4.6 --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..77d82b7 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +# Force all builds (including worktrees) to share one target directory. +# This prevents each Claude Code agent worktree from creating its own +# ~3GB target/ directory, which was filling the disk. +[build] +target-dir = "/Users/tayloreernisse/projects/gitlore/target"