@@ -23,6 +23,8 @@ import { Provider } from "@/provider/provider"
2323import { ProviderID , type ModelID } from "../provider/schema"
2424import { WebSearchTool } from "./websearch"
2525import { CodeSearchTool } from "./codesearch"
26+ import { RepoCloneTool } from "./repo_clone"
27+ import { RepoOverviewTool } from "./repo_overview"
2628import { Flag } from "@opencode-ai/core/flag/flag"
2729import * as Log from "@opencode-ai/core/util/log"
2830import { LspTool } from "./lsp"
@@ -45,6 +47,7 @@ import { Instruction } from "../session/instruction"
4547import { AppFileSystem } from "@opencode-ai/core/filesystem"
4648import { Bus } from "../bus"
4749import { Agent } from "../agent/agent"
50+ import { Git } from "@/git"
4851import { Skill } from "../skill"
4952import { Permission } from "@/permission"
5053
@@ -80,6 +83,7 @@ export const layer: Layer.Layer<
8083 | Skill . Service
8184 | Session . Service
8285 | Provider . Service
86+ | Git . Service
8387 | LSP . Service
8488 | Instruction . Service
8589 | AppFileSystem . Service
@@ -109,6 +113,8 @@ export const layer: Layer.Layer<
109113 const websearch = yield * WebSearchTool
110114 const shell = yield * ShellTool
111115 const codesearch = yield * CodeSearchTool
116+ const repoClone = yield * RepoCloneTool
117+ const repoOverview = yield * RepoOverviewTool
112118 const globtool = yield * GlobTool
113119 const writetool = yield * WriteTool
114120 const edit = yield * EditTool
@@ -199,6 +205,8 @@ export const layer: Layer.Layer<
199205 todo : Tool . init ( todo ) ,
200206 search : Tool . init ( websearch ) ,
201207 code : Tool . init ( codesearch ) ,
208+ repo_clone : Tool . init ( repoClone ) ,
209+ repo_overview : Tool . init ( repoOverview ) ,
202210 skill : Tool . init ( skilltool ) ,
203211 patch : Tool . init ( patchtool ) ,
204212 question : Tool . init ( question ) ,
@@ -222,6 +230,8 @@ export const layer: Layer.Layer<
222230 tool . todo ,
223231 tool . search ,
224232 tool . code ,
233+ tool . repo_clone ,
234+ tool . repo_overview ,
225235 tool . skill ,
226236 tool . patch ,
227237 ...( Flag . OPENCODE_EXPERIMENTAL_LSP_TOOL ? [ tool . lsp ] : [ ] ) ,
@@ -336,6 +346,7 @@ export const defaultLayer = Layer.suspend(() =>
336346 Layer . provide ( Agent . defaultLayer ) ,
337347 Layer . provide ( Session . defaultLayer ) ,
338348 Layer . provide ( Provider . defaultLayer ) ,
349+ Layer . provide ( Git . defaultLayer ) ,
339350 Layer . provide ( LSP . defaultLayer ) ,
340351 Layer . provide ( Instruction . defaultLayer ) ,
341352 Layer . provide ( AppFileSystem . defaultLayer ) ,
0 commit comments