The following material in this repository is derived from
Zoo Code —
Zoo-Code-Org/Zoo-Code, a Roo Code fork — and is used under the
Apache License, Version 2.0:
- Prompt text — the system prompt builder
(
src/vendor/zoo-code/src/core/prompts/system.ts) and every prompt section undersrc/vendor/zoo-code/src/core/prompts/sections/(TOOL USE, RULES, OBJECTIVE, CAPABILITIES, MODES, SYSTEM INFORMATION, USER'S CUSTOM INSTRUCTIONS, etc.), plus the built-in mode role definitions insrc/vendor/zoo-code/types/mode.ts. - Tool schemas — the OpenAI
ChatCompletionToolJSON schema definitions insrc/vendor/zoo-code/src/core/prompts/tools/native-tools/(21 tools) and the OpenAI ↔ Anthropic converters (converters.ts). - Mode/rules loading logic —
.roomodesparsing/merging (src/vendor/zoo-code/src/core/config/CustomModesManager.ts),.roo/rules-<slug>/,.roo/rules/, andAGENTS.mdsplicing (src/vendor/zoo-code/src/core/prompts/sections/custom-instructions.ts), and the.roodirectory discovery service (src/vendor/zoo-code/src/services/roo-config/). - Types and constants —
ModeConfig/DEFAULT_MODESand the tool/group type definitions undersrc/vendor/zoo-code/types/. - Checkpoints — the shadow-git auto-commit mechanism
(
src/vendor/zoo-code/src/services/checkpoints/ShadowCheckpointService.ts,RepoPerTaskCheckpointService.ts,types.ts,excludes.ts,index.ts), which snapshots the workspace into a hidden git repo (viasimple-git) after every tool-executing turn so edits can be reverted; seedocs/checkpoints.md. - Diff-based editing — the multi-search-replace fuzzy diff engine
(
src/vendor/zoo-code/src/core/diff/strategies/multi-search-replace.ts, a verbatim copy ofzoo-code/src/core/diff/strategies/multi-search-replace.ts), plus its pure helperszoo-code/src/utils/text-normalization.tsand the line-number helpers extracted fromzoo-code/src/integrations/misc/extract-text.ts, and theDEFAULT_DIFF_FUZZY_THRESHOLDconstant fromzoo-code/packages/types/src/global-settings.ts. These back the headless harness'sapply_difftool (the tool schemas forapply_diff/search_replace/edit_filewere already vendored undersrc/vendor/zoo-code/src/core/prompts/tools/native-tools/).
Source: https://github.com/Zoo-Code-Org/Zoo-Code
License: Apache-2.0 · Copyright 2026 Zoo Code.
Inspection commit: ca9b60fbc7b72a27352b0e2084271c28f2419f94.
A verbatim copy of the Apache License 2.0 is provided in
LICENSE. The full inventory of vendored files, local shims, and
excluded files is in
src/vendor/zoo-code/VENDOR-NOTES.md.
This notice is provided in addition to — and does not modify — the terms of the Apache License 2.0.