Project resources
Link GitHub repositories or local directories to a project so later runs get a stable working context.
Project resources tell agents which code this body of work uses and where to run. Resources stay linked to the project, so there is no need to re-paste repository URLs or local paths into every issue.
Two resource types are supported today:
| Resource | Best for | Where runs happen |
|---|---|---|
| GitHub repository | Code shared by the team, with checkouts managed by the runtime | A runtime-managed working directory |
| Local directory | An existing checkout, a very large repository, or when you want to inspect local changes directly | The original directory on a specific computer |
How resources enter a run
When an agent works an issue inside the project, Booca adds the project name, project description, and resource list to the run's context, and writes .booca/project/resources.json into the working directory.
The workspace's linked repository list is always included in the run context. Repositories linked to the project additionally specify the code and default ref this body of work uses.
A local directory only applies to the daemon it is bound to. When the daemon running a task has a matching local directory, the agent works directly in that directory; other computers keep using the project's GitHub repositories or the workspace repositories, and if neither exists, a regular runtime-managed working directory. A task never claims a local directory just because the same path happens to exist on its machine. Local directories are not synced between machines — when work must continue on another computer, commit and push first; linking a repository does not carry uncommitted local changes over either.
Add a GitHub repository
Open the project and choose "Add resource" under Resources. Pick a repository already linked to the workspace, or paste a Git URL. Workspace repositories are managed in Settings → Repositories; once GitHub is connected, the same page offers Pick from GitHub to import repositories the App is authorized for.
Repositories are not limited to GitHub: any Git URL the runtime can reach works as a repository resource. Self-hosted Booca can also connect self-hosted Forgejo, Gitea, or GitLab under Settings → Integrations → Git hosting; see Self-hosted Git hosting.
When creating a project, you can also pick repositories directly under Repos. One project can link multiple GitHub repositories.
A resource's ref sets the branch, tag, or commit that later checkouts use by default. default_branch_hint only gives the agent a default-branch hint and does not force a branch switch.
Add a local directory
Web and Desktop can both link a local directory — from the project's Resources, or from the Local directory tab of the create-project dialog, before the project exists. The two clients differ in how they supply the two facts every binding needs, which machine and which path:
- Desktop picks the folder with the system dialog and binds it to the local daemon running on this computer.
- Web cannot browse your computer's folders, so you pick the machine from the workspace's runtime list and type the directory's absolute path yourself.
This is an escape hatch, not a more convenient default. local_directory exists for people who have no other option — the canonical case is a game project whose checkout is tens of gigabytes, where re-cloning per task is simply not viable.
If your directory is an ordinary git repo you can clone, use github_repo instead: it runs in worktree mode by default, so tasks on the same repo can use isolated worktrees in parallel, subject to agent and daemon concurrency limits. A local_directory runs one task at a time by default; if the directory is a git repo you can opt into worktree mode to get concurrency back (see "How tasks share the directory"). Read "When to pick" below before you commit to it.
On Desktop:
- Make sure Desktop's local daemon is online.
- Open the project's Resources, or the Local directory tab of the create-project dialog.
- Choose "Add local directory", then pick the folder to use.
- Pick how tasks should use it — Direct or Parallel, described under "How tasks share the directory". Desktop preselects Parallel when the folder is a git repository the runtime on that machine can isolate, and Direct otherwise. Change it right there, or later from Resources with the pencil next to the directory.
On Web:
- Open the project's Resources, or the Local directory tab of the create-project dialog, and choose "Add local directory".
- Pick the machine whose daemon should adopt the directory — every workspace machine with a reporting daemon is listed — and type the directory's absolute path on that machine, such as
/home/ubuntu/gameorC:\work\game. - Pick Direct or Parallel as on Desktop. Web cannot see the target machine's disk, so it does not know whether the path is a git repository and always starts from Direct; switch to Parallel yourself when the requirements under "How tasks share the directory" are met.
Saving on Web only checks that the path is shaped like an absolute path. Whether it exists, is readable and writable, and is a git repository is verified by the bound machine's daemon when a task is claimed — a wrong machine or a mistyped path fails that task with an explicit reason; it never falls back into another directory.
Preselection applies only to a directory you are linking now. A directory linked earlier keeps the mode it was saved with — an existing setup is never switched under you.
The directory must be an absolute path, must already exist, and must be readable and writable by the current daemon. These paths are rejected: system roots and drive roots (/, C:\), home directories themselves and the parents of home directories (such as /Users, /home, /root), and system directories such as /etc, /var, /tmp, /usr, and /opt. If the chosen path is a symlink, it is resolved to its real path first and validated again by the same rules; the serial lock also applies to the real path.
Each project can link at most one local directory per daemon. Different computers on a team can each link their own directory for the same project — three VMs pinned to the same /tmp/workspace path are three bindings, added once per machine. The resource list labels each local directory with its machine, so same-path bindings stay tellable apart; a machine that no longer appears in the runtime list is shown as unavailable or invisible rather than treated as deleted, and the binding keeps working if that machine comes back with the same daemon.
A binding with the wrong machine or path cannot be edited in place: remove it and add the correct one. Renaming the label or switching the execution mode does not change the path.
Resource changes take effect for tasks claimed afterwards; a task that already claimed its directory keeps that context until it finishes. Changing or removing a binding does not cancel, stop, or migrate a running task — to stop work in a directory, cancel the task first. Removing a binding only deletes the project's record of it; the directory, its files, and any results are never touched.
In the default in_place mode a local directory is not an isolated environment: the agent directly sees and modifies your current branch and uncommitted files, and Booca does not automatically switch branches, stash, commit, push, or open PRs. Worktree mode changes this — see "How tasks share the directory" below.
How tasks share the directory
A local directory has two execution modes, set per resource with execution_mode. Desktop labels them Direct and Parallel; the API, the CLI and the rest of this page use the identifiers.
in_place (default) — "Direct"
The agent works directly in your directory, and tasks run one at a time. When two tasks use the same real directory, the later one enters waiting_local_directory and continues after the earlier one releases the directory. Two paths that reach the same directory through different symlinks serialize the same way.
Project-linked chat runs adopt a matching local directory too, but they do not take this lock — a chat run may write to the directory while a queued task is waiting on it. The lock serializes queued tasks against each other; it is not a promise that nothing else touches the directory.
Waiting does not modify the directory. A waiting task can be cancelled; otherwise it waits until the directory becomes available.
worktree — "Parallel"
Each task gets its own git worktree of your repo, created inside the runtime's own workspace directory. Tasks on the same directory run concurrently — none of them wait, and none of them write to your working copy.
Requires the directory to be a git repository with at least one commit. If it is not, tasks fail with an explicit error rather than quietly falling back to serial execution. The runtime on that machine must also implement the mode. It declares that when it connects, and Booca gates on the declaration rather than on a version number — a development build can carry a version string that looks new enough while having none of the implementation. The declaration is checked twice: saving the resource is refused, with a hint to update the app on that machine, while its runtime does not declare the capability; and each task is checked again against the runtime that actually claims it — so a machine downgraded after the resource was saved has its tasks cancelled with a reason instead of silently running them in place. Asking for worktree is asking for isolation; editing your working copy instead is never the fallback.
What the agent sees, and what you get back:
- The agent starts from what you see, not from
HEAD. Your uncommitted edits and your untracked files are replayed into the worktree, so the agent is not reviewing code you no longer have. Your own working copy, index, and stash list are never touched. If that state cannot be reproduced faithfully — including when there is more untracked content than the replay covers (2000 files / 200 MiB) — the task fails instead of starting from a tree you would not recognise. The usual fix is to gitignore or clean up build output that is not already ignored. - The result is a branch in your repo, named
agent/<agent>/<task>. The run's Run details panel shows the branch name (and lets you copy it); you can also find it withgit branch. Review it withgit log/git diff, and merge or cherry-pick it yourself. Booca never merges it for you. A run that failed partway still reports its branch, because it still committed whatever the agent had produced. - Nothing is silently dropped. Anything the agent leaves uncommitted is committed to that branch before the worktree is removed, including when the task fails partway. In the rare case that commit itself cannot be made — for example a repo with
commit.gpgSignand no signing key available to the runtime — the worktree is deliberately kept instead of removed, the task is reported as failed, andgit worktree listin your repo points at the directory holding the work. - A task that changes nothing leaves nothing behind. Its branch is deleted rather than left as an empty entry in
git branch.
Because the worktree lives in the runtime's workspace directory, it is reclaimed on the normal cleanup schedule; only the branch persists in your repo.
Self-hosted operators: isolation for this mode is enforced by the server (at save time and again when a runtime claims each task), so a runtime downgraded at any point is caught. The combination that is not caught is rolling the server back to a build that predates this feature while runtimes that do not implement the mode are still connected — an old server has no gate, and such a runtime ignores execution_mode and would run the task in place. Do not roll the server back past this release while worktree resources exist unless every runtime on those machines is up to date.
Worktree mode covers git repositories. A plain non-git directory still runs serially — that is what in_place is for.
What gets written during a run
Beyond the code changes the agent makes, the runtime may also write into the directory the instruction files the current AI coding tool needs, plus .booca/project/resources.json. Add them to .gitignore if you do not want them under version control.
Booca never deletes a linked local directory when cleaning up run environments. The agent's changes to the directory are the same kind of changes as running an AI coding tool in your terminal yourself, and need the same review.
Manage resources with the CLI
: "${BOOCA_PROJECT_REPOSITORY:?Set your verified https://github.com/OWNER/REPO URL}"
# Link a repository when creating a project
booca project create \
--title "Agent UX" \
--repo "$BOOCA_PROJECT_REPOSITORY"
# List and add resources
booca project resource list <project-id>
booca project resource add <project-id> \
--type github_repo \
--url "$BOOCA_PROJECT_REPOSITORY" \
--ref main
# Link a local directory on a specific daemon
booca project resource add <project-id> \
--type local_directory \
--local-path /absolute/path/to/repo \
--daemon-id <daemon-id>
# Link a local git repo and let tasks run concurrently in their own worktrees
booca project resource add <project-id> \
--type local_directory \
--local-path /absolute/path/to/repo \
--daemon-id <daemon-id> \
--execution-mode worktree
# Switch an existing local directory between modes
booca project resource update <project-id> <resource-id> --execution-mode worktree
booca project resource update <project-id> <resource-id> --execution-mode in_place
# Remove a resource
booca project resource remove <project-id> <resource-id>Resource changes affect tasks created afterwards; they do not rewrite records of runs that already ended.
Next steps
- Projects — learn about project context, progress, and the lead.
- Daemons and runtimes — learn which computer picks up a task.
- Tasks — see run states such as
waiting_local_directory.