This repository is the AG-Claw research workspace. It combines a clean-room backend seed, a temporary web shell, planning documents, and a non-authoritative reference runtime tree used for behavior study and migration analysis.
backend/is the clean-room implementation surface.web/is the temporary AG-Claw operator shell.- root
src/is a reference artifact for study and parity analysis, not the product foundation. mcp-server/is a research utility for browsing the reference source tree safely.
Read these first before extending the system:
docs/agclaw-clean-room-boundary.mddocs/agclaw-subsystem-migration-matrix.mddocs/agclaw-replacement-backlog.mddocs/agclaw-naming-inventory.mddocs/agclaw-vision-runbook.md
backend/: clean-room HTTP services for chat, orchestration, provider health, and MES research flowsweb/: Next.js UI for local testing and operator workflowsmcp-server/: MCP explorer for the referencesrc/treepromptfoo/: prompt and evaluation harness
Use two terminals if you want the real clean-room backend behind the temporary web shell.
Terminal A:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code"
$env:PYTHONPATH = (Resolve-Path .\backend)
python -m agclaw_backend.server --host 127.0.0.1 --port 8008Terminal B:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\web"
npm install
$env:AGCLAW_BACKEND_URL = "http://127.0.0.1:8008"
$env:AGCLAW_WEB_ROOT = ".."
npm run devThen open http://127.0.0.1:3000.
If you only want a fast mock-backed browser demo, skip the backend terminal and run:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\web"
npm install
npm run build
node .\scripts\start-e2e-server.mjsThat serves the UI at http://127.0.0.1:3100.
PowerShell:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code"
$env:PYTHONPATH = (Resolve-Path .\backend)
python -m agclaw_backend.server --host 127.0.0.1 --port 8008Health check:
Invoke-WebRequest http://127.0.0.1:8008/health | Select-Object -Expand ContentKey endpoints:
GET /healthGET /api/provider-healthPOST /api/chatPOST /api/orchestrateGET /api/orchestration/historyPOST /api/mes/retrievePOST /api/mes/log-slimPOST /api/mes/interpret-screen
PowerShell:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\web"
npm install
$env:AGCLAW_BACKEND_URL = "http://127.0.0.1:8008"
$env:AGCLAW_WEB_ROOT = ".."
npm run devOpen http://127.0.0.1:3000.
If you want a quick mock-backed stack for browser testing, the Playwright launcher will start the backend in mock mode automatically:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\web"
npm install
npm run build
node .\scripts\start-e2e-server.mjsThat serves the UI at http://127.0.0.1:3100.
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\web"
npm install
npm run e2eThe Playwright configuration builds the web app and launches the local mock backend automatically.
The MCP explorer is for research against the reference src/ tree. It is not part of the clean-room runtime.
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\mcp-server"
npm install
npm run build
$env:AGCLAW_REFERENCE_SRC_ROOT = (Resolve-Path ..\src)
node .\dist\src\index.jsThe explorer also accepts legacy CLAUDE_CODE_SRC_ROOT for compatibility, but new setups should use AGCLAW_REFERENCE_SRC_ROOT.
Backend:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code"
$env:PYTHONPATH = (Resolve-Path .\backend)
python -m unittest discover -s backend/testsWeb:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\web"
npm run buildMCP explorer:
Set-Location "d:\OneDrive - AG SOLUTION\claude-code\mcp-server"
npm run buildbackend/README.mdfor backend endpoint and benchmark detailsmcp-server/README.mdfor MCP explorer usagedocs/agclaw-vision-runbook.mdfor screen interpretation validationdocs/repo-status.mdfor current migration status
No new AG-Claw operator-facing surface should introduce Claude-branded product naming. Upstream provider identifiers such as anthropic or model ids such as claude-sonnet-* remain acceptable only where they describe compatibility with external APIs.