Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

docs: explain agent and repository working directories (#10901)

Danila Katalshov315b06ed8cd5
diff --git a/apps/docs/content/docs/project-resources.fr.mdx b/apps/docs/content/docs/project-resources.fr.mdx
index 795391c0be..c016cdf504 100644
--- a/apps/docs/content/docs/project-resources.fr.mdx
+++ b/apps/docs/content/docs/project-resources.fr.mdx
@@ -38,6 +38,8 @@ Lors de la création d'un projet, vous pouvez aussi choisir des dépôts directe
La `ref` d'une ressource définit la branche, le tag ou le commit que les checkouts suivants utilisent par défaut. `default_branch_hint` donne seulement à l'agent une indication sur la branche par défaut et n'impose pas de changement de branche.
+Pour un dépôt géré, l'agent démarre dans le dossier de travail de la tâche. En général, `multica repo checkout` crée un sous-dossier pour le dépôt et affiche son chemin. Exécutez depuis ce chemin les commandes qui exigent la racine du dépôt. Si le processus de l'agent doit lui-même démarrer à la racine et que vous contrôlez la machine du runtime, ajoutez un checkout existant comme dossier local. Les modes `in_place` et `worktree` démarrent tous deux l'agent à la racine d'un dépôt ; pour les dépôts git, privilégiez `worktree` pour isoler les exécutions et les lancer en parallèle. Voir [Comment les exécutions partagent le répertoire](#comment-les-exécutions-partagent-le-répertoire).
+
## Ajouter un répertoire local
L'interface d'ajout d'un répertoire local n'existe que dans l'application de bureau, car les navigateurs ne peuvent pas sélectionner de dossiers sur votre ordinateur.
diff --git a/apps/docs/content/docs/project-resources.ja.mdx b/apps/docs/content/docs/project-resources.ja.mdx
index 95a7e11ad6..7007885c3e 100644
--- a/apps/docs/content/docs/project-resources.ja.mdx
+++ b/apps/docs/content/docs/project-resources.ja.mdx
@@ -38,6 +38,8 @@ GitHub のブランチ URL(`https://github.com/owner/repo/tree/branch`)を
リソースの `ref` には、以後の checkout がデフォルトで使うブランチ、タグ、またはコミットを指定できます。`default_branch_hint` はエージェントにデフォルトブランチのヒントを与えるだけで、ブランチの切り替えを強制しません。
+管理対象のリポジトリでは、エージェントはタスクの作業ディレクトリで起動します。`multica repo checkout` は通常、リポジトリ用のサブディレクトリを作成してそのパスを出力します。リポジトリのルートが必要なコマンドはそのパスで実行してください。エージェント自体をルートで起動する必要があり、ランタイムのマシンを管理できる場合は、既存のチェックアウトをローカルディレクトリとして追加します。`in_place` と `worktree` のどちらでも、エージェントはリポジトリのルートで起動します。git リポジトリには、実行を隔離して並行処理できる `worktree` モードを推奨します。[実行がディレクトリを共有する方法](#実行がディレクトリを共有する方法)を参照してください。
+
## ローカルディレクトリの追加
ローカルディレクトリを追加する UI は Desktop でのみ提供されます。ブラウザからはコンピュータ上のフォルダを選択できないためです。
diff --git a/apps/docs/content/docs/project-resources.ko.mdx b/apps/docs/content/docs/project-resources.ko.mdx
index 594aea5b81..0d48769ac5 100644
--- a/apps/docs/content/docs/project-resources.ko.mdx
+++ b/apps/docs/content/docs/project-resources.ko.mdx
@@ -38,6 +38,8 @@ GitHub 브랜치 URL(`https://github.com/owner/repo/tree/branch`)을 붙여 넣
리소스의 `ref`에는 이후 checkout에서 기본으로 사용할 브랜치, tag, commit을 지정할 수 있습니다. `default_branch_hint`는 에이전트에게 기본 브랜치 힌트만 제공하며 강제로 브랜치를 전환하지 않습니다.
+관리형 저장소에서는 에이전트가 작업의 작업 디렉터리에서 시작합니다. `multica repo checkout`은 일반적으로 저장소의 하위 디렉터리를 만들고 그 경로를 출력합니다. 저장소 루트가 필요한 명령은 해당 경로에서 실행하세요. 에이전트 프로세스 자체가 루트에서 시작해야 하고 런타임 컴퓨터를 관리할 수 있다면 기존 체크아웃을 로컬 디렉터리로 추가하세요. `in_place`와 `worktree` 모드 모두 저장소 루트에서 에이전트를 시작합니다. git 저장소에는 실행을 격리하고 병렬로 처리할 수 있는 `worktree` 모드를 권장합니다. [실행이 디렉터리를 공유하는 방식](#실행이-디렉터리를-공유하는-방식)을 참고하세요.
+
## 로컬 디렉터리 추가
브라우저는 컴퓨터의 폴더를 선택할 수 없으므로 로컬 디렉터리 추가 화면은 Desktop에서만 제공됩니다.
diff --git a/apps/docs/content/docs/project-resources.mdx b/apps/docs/content/docs/project-resources.mdx
index 340d70ea97..b140341c49 100644
--- a/apps/docs/content/docs/project-resources.mdx
+++ b/apps/docs/content/docs/project-resources.mdx
@@ -38,6 +38,8 @@ When creating a project, you can also pick repositories directly under **Repos**
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.
+For a managed repository, the agent starts in the task working directory. `multica repo checkout` normally creates a subdirectory for the repository and prints its path. Run commands that need the repository root from that path. If the agent process itself must start at the root and you control the runtime computer, attach an existing checkout as a local directory. Both `in_place` and `worktree` start the agent at a repository root; prefer `worktree` for git repositories to keep runs isolated and parallel. See [How runs share the directory](#how-runs-share-the-directory).
+
## Add a local directory
The UI for adding a local directory is Desktop-only, because browsers cannot pick folders on your computer.
diff --git a/apps/docs/content/docs/project-resources.zh-Hant.mdx b/apps/docs/content/docs/project-resources.zh-Hant.mdx
index 7a3bf85f4e..0d020f0383 100644
--- a/apps/docs/content/docs/project-resources.zh-Hant.mdx
+++ b/apps/docs/content/docs/project-resources.zh-Hant.mdx
@@ -38,6 +38,8 @@ import { LocalDirModeDemo } from "@/components/demos/local-dir-mode-demo";
資源中的 `ref` 可以指定後續 checkout 預設使用的分支、tag 或 commit。`default_branch_hint` 只向 AI 代理提供預設分支提示,不會強制切換分支。
+對於受管理的儲存庫,AI 代理會從任務工作目錄啟動。`multica repo checkout` 通常會為儲存庫建立子目錄並輸出其路徑。需要儲存庫根目錄的指令請在該路徑下執行。如果代理程序本身必須從根目錄啟動,且你能管理執行階段所在的電腦,請將現有的 checkout 新增為本機目錄。`in_place` 和 `worktree` 模式都會從儲存庫根目錄啟動 AI 代理;git 儲存庫建議使用 `worktree`,讓各次執行相互隔離並可並行。詳見[執行如何共享這個目錄](#執行如何共享這個目錄)。
+
## 新增本地目錄
新增本地目錄的介面只在 Desktop 中提供,因為瀏覽器不能選擇電腦上的資料夾。
diff --git a/apps/docs/content/docs/project-resources.zh.mdx b/apps/docs/content/docs/project-resources.zh.mdx
index 401a21b3c2..51ff223909 100644
--- a/apps/docs/content/docs/project-resources.zh.mdx
+++ b/apps/docs/content/docs/project-resources.zh.mdx
@@ -38,6 +38,8 @@ import { LocalDirModeDemo } from "@/components/demos/local-dir-mode-demo";
资源中的 `ref` 可以指定后续 checkout 默认使用的分支、tag 或 commit。`default_branch_hint` 只向智能体提供默认分支提示,不会强制切换分支。
+对于托管仓库,智能体从任务工作目录启动。`multica repo checkout` 通常会为仓库创建子目录并输出其路径。需要仓库根目录的命令应在该路径下运行。如果智能体进程本身必须从根目录启动,且你能管理运行时所在的计算机,请将已有的 checkout 添加为本地目录。`in_place` 和 `worktree` 模式都从仓库根目录启动智能体;git 仓库建议使用 `worktree`,让各次运行相互隔离并可并行。详见[运行如何共享这个目录](#运行如何共享这个目录)。
+
## 添加本地目录
添加本地目录的界面只在 Desktop 中提供,因为浏览器不能选择电脑上的文件夹。