Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
cc3d172
Initial fork and setup
gashawbekele06 Feb 18, 2026
119f664
Phase 0: Completed archaeological dig with ARCHITECTURE_NOTES.md
gashawbekele06 Feb 18, 2026
7abd1af
git commit -m "Initial fork and setup
gashawbekele06 Feb 18, 2026
5b8877c
Interim: Added clean src/hooks/ directory with Phase 1/2 stubs
gashawbekele06 Feb 18, 2026
4415ba0
feat(hooks): add middleware interfaces and HookEngine pipeline
gashawbekele06 Feb 18, 2026
72232d6
feat(utils): add yaml loader and sha256 content hash utility
gashawbekele06 Feb 18, 2026
a341928
feat(pre-hook): add intent handshake and <intent_context> loader from…
gashawbekele06 Feb 18, 2026
9fbb3d0
feat(pre-hook): enforce owned_scope via glob matching; block out-of-s…
gashawbekele06 Feb 18, 2026
13c4e14
feat(post-hook): append agent_trace.jsonl entries with sha256 content…
gashawbekele06 Feb 18, 2026
3c62668
chore(orchestration): add active_intents.yaml, AGENT.md, intent_map.m…
gashawbekele06 Feb 18, 2026
a899622
feat(agent): integrate HookEngine pre/post hooks in tool executor
gashawbekele06 Feb 18, 2026
6231463
feat(agent): add select_active_intent and governed write_file requiri…
gashawbekele06 Feb 18, 2026
337966d
docs(prompt): enforce two-stage reasoning handshake requiring select_…
gashawbekele06 Feb 18, 2026
8d8fb43
merge: bring interim governance hooks and artifacts to main
gashawbekele06 Feb 18, 2026
b14718c
chore: force merge initial setup
gashawbekele06 Feb 19, 2026
1290a83
Merge remote-tracking branch 'upstream/main'
gashawbekele06 Feb 19, 2026
dc03ba2
Update ARCHITECTURE_NOTES.md with Phase 0 details and diagrams
gashawbekele06 Feb 19, 2026
c7bb1f8
Populate active_intents.yaml with example structure
gashawbekele06 Feb 19, 2026
61fb129
Populate intent_map.md with example mappings
gashawbekele06 Feb 19, 2026
11eff27
Add agent_trace.jsonl with example schema entry
gashawbekele06 Feb 19, 2026
9369f00
Populate AGENTS.md as shared brain with lessons and rules
gashawbekele06 Feb 19, 2026
74bf1f7
Delete agent
gashawbekele06 Feb 19, 2026
0c83fd1
Add hookEngine.ts for pre/post hooks
gashawbekele06 Feb 19, 2026
7afc1eb
Add hooks index
gashawbekele06 Feb 19, 2026
db9857f
Integrate hooks into tool loop, add select_active_intent, modify prompt
gashawbekele06 Feb 19, 2026
dab8b6f
Initial commit correction for phase 0 and 1
gashawbekele06 Feb 19, 2026
b221c76
Initial Commit delete old commit
gashawbekele06 Feb 19, 2026
b6c70f7
refactor: update module import/export paths by removing `.js` extensi…
gashawbekele06 Feb 19, 2026
ec53ef4
refactor: standardize module imports with .js extensions and update n…
gashawbekele06 Feb 19, 2026
1fa37de
feat: implement intent-aware tools and orchestration state management
gashawbekele06 Feb 19, 2026
52a25fb
feat: add micromatch dependency and refactor error handling in WriteT…
gashawbekele06 Feb 19, 2026
a9de058
commit
gashawbekele06 Feb 19, 2026
6f57869
feat: implement SHA-256 hashing utility and enhance WriteToFileTool w…
gashawbekele06 Feb 19, 2026
b6a3278
feat: implement optimistic locking in WriteToFileTool to prevent over…
gashawbekele06 Feb 19, 2026
b2097b9
refactor: streamline file existence check and edit type assignment in…
gashawbekele06 Feb 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .orchestration/active_intents.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
active_intents:
- id: "INT-001"
name: "Build Weather API"
status: "IN_PROGRESS"
owned_scope:
- "src/api/weather/**"
- "src/middleware/weather.ts"
constraints:
- "Use only open APIs, no paid services"
- "Maintain RESTful structure"
acceptance_criteria:
- "Unit tests in tests/api/weather/ pass"
- "Endpoint responds in < 500ms"
Empty file.
5 changes: 5 additions & 0 deletions .orchestration/intent_map.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Intent Map

| Intent ID | Name | Scope | Files/Nodes |
| --------- | ---------------------------- | ------------------------------------ | ----------------------- |
| INT-001 | JWT Authentication Migration | src/auth/\*\*, src/middleware/jwt.ts | (to be filled by hooks) |
13 changes: 13 additions & 0 deletions AGENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AGENT.md

## Lessons Learned

- Always enforce intent selection before code actions.
- Maintain spatial independence via content hashing in agent_trace.jsonl.
- Use .orchestration/ as the single source of truth for orchestration state.

## Stylistic Rules

- All code changes must be linked to an intent.
- Never bypass the Reasoning Loop handshake.
- Document architectural decisions here as they arise.
29 changes: 29 additions & 0 deletions ARCHITECTURE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# ARCHITECTURE_NOTES.md

## Phase 0: The Archaeological Dig

1. Fork & Run: Roo Code is present and runs in VS Code via CLI or extension host. Entry point: `src/extension.ts` (VSCode), `apps/cli/src/agent/extension-host.ts` (CLI).

2. Trace the Tool Loop:

- Tool execution (e.g., `write_to_file`, `edit_file`) is implemented in `src/core/tools/WriteToFileTool.ts`, `EditFileTool.ts`, etc.
- All tools inherit from `BaseTool`.
- Tool calls are managed by the agent loop in the extension host (`apps/cli/src/agent/extension-host.ts`).

3. Locate the Prompt Builder:

- System prompt is constructed in `src/core/prompts/system.ts` (see `SYSTEM_PROMPT`).
- Prompt sections are composed from `src/core/prompts/sections/`.

4. Architectural Decisions:
- Middleware pattern for hooks: Pre-Hook (context injection, intent validation), Post-Hook (trace update).
- Reasoning Loop: User Prompt -> Reasoning Intercept (select_active_intent) -> Pre-Hook (Context Injection) -> Tool Call -> Post-Hook (Trace Update)

## Phase 0 Complete

All required locations for tool execution, prompt building, and agent loop are mapped. Ready for Phase 1 implementation.

## Hook System Schema

- Pre-Hook: Intercepts select_active_intent, injects from active_intents.yaml.
- Post-Hook: Updates agent_trace.jsonl with content hash.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,5 @@ We love community contributions! Get started by reading our [CONTRIBUTING.md](CO
---

**Enjoy Roo Code!** Whether you keep it on a short leash or let it roam autonomously, we can’t wait to see what you build. If you have questions or feature ideas, drop by our [Reddit community](https://www.reddit.com/r/RooCode/) or [Discord](https://discord.gg/roocode). Happy coding!

# Test to add content
2 changes: 1 addition & 1 deletion apps/web-evals/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts"
import "./.next/types/routes.d.ts"

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "roo-code",
"packageManager": "pnpm@10.8.1",
"engines": {
"node": "20.19.2"
"node": ">=20.19.2"
},
"scripts": {
"preinstall": "node scripts/bootstrap.mjs",
Expand Down Expand Up @@ -32,6 +32,7 @@
"@dotenvx/dotenvx": "^1.34.0",
"@roo-code/config-typescript": "workspace:^",
"@types/glob": "^9.0.0",
"@types/micromatch": "^4.0.10",
"@types/node": "^24.1.0",
"@vscode/vsce": "3.3.2",
"esbuild": "^0.25.0",
Expand All @@ -56,7 +57,16 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"@vscode/ripgrep"
"@tailwindcss/oxide",
"@vscode/ripgrep",
"@vscode/vsce-sign",
"better-sqlite3",
"core-js",
"esbuild",
"keytar",
"protobufjs",
"puppeteer-chromium-resolver",
"sharp"
],
"overrides": {
"tar-fs": ">=3.1.1",
Expand All @@ -70,5 +80,8 @@
"@types/react-dom": "^18.3.5",
"zod": "3.25.76"
}
},
"dependencies": {
"micromatch": "^4.0.8"
}
}
7 changes: 7 additions & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ export * from "./vscode.js"
export * from "./worktree.js"

export * from "./providers/index.js"

// Settings, schemas, and keys for web-evals
export { EVALS_SETTINGS, GLOBAL_SETTINGS_KEYS, rooCodeSettingsSchema, globalSettingsSchema } from "./global-settings.js"
export { PROVIDER_SETTINGS_KEYS, providerSettingsSchema, getModelId } from "./provider-settings.js"
export { RooCodeEventName, taskEventSchema } from "./events.js"

export * from "./providers/index.js"
4 changes: 3 additions & 1 deletion packages/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "@roo-code/config-typescript/base.json",
"compilerOptions": {
"types": ["vitest/globals"],
"outDir": "dist"
"outDir": "dist",
"moduleResolution": "node",
"module": "ESNext"
},
"include": ["src", "scripts", "*.config.ts"],
"exclude": ["node_modules"]
Expand Down
Loading
Loading