WorkPilot-AI
CLAUDE.md4 starsChanged 3 months agoMITView on GitHub
This file provides guidance to Claude Code when working with this repository. WorkPilot AI is an autonomous multi-agent coding framework that plans, builds, and validates software for you. It's a monorepo with a Python backend (CLI + agent logic) and an Electron/React frontend (desktop UI). Deep-dive reference: Architecture deep dives | Configuration reference | Frontend contributing: apps/frontend/CONTRIBUTING.md WorkPilot AI is a desktop application (+ CLI) where users describe a goal and AI agents autonomously handle planning, implementation, and QA validation.…
- Reads credentials
- Installs packages
- Commits and pushes
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- brand-guidelinesSkill
- business-commsSkill
- mcp-builderSkill
- mem-searchSkill
- webapp-testingSkill
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 282
Reading frontmatter: always through skills_registry.frontmatter.parse_frontmatter.
- Very specific: line 491
All frontend UI text uses react-i18next.
- Very specific: line 506
When adding new UI text: add keys to ALL language files, use namespace:section.key format.
- Very specific: line 521
Never hardcode paths. Use findExecutable() and joinPaths().
- Very specific: line 527
Start app: pnpm run dev:debug (debug mode for AI self-validation via Electron MCP)
- Very specific: line 582
Call graph tracing with grepai trace
- Very specific: line 635
Check logs/workflow.log for detailed execution traces
- Very specific: line 636
Run pytest tests/ -v from the backend venv for test failures
- Distinctive: line 637
Check shared_docs/README.md for system design
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code when working with this repository.
WorkPilot AI is an autonomous multi-agent coding framework that plans, builds, and validates software for you. It's a monorepo with a Python backend (CLI + agent logic) and an Electron/React frontend (desktop UI).
Deep-dive reference: Architecture deep dives | Configuration reference | Frontend contributing: apps/frontend/CONTRIBUTING.md
Table of Contents
- Product Overview
- Critical Rules
- Project Structure
- Commands Quick Reference
- Backend Development
- Claude Agent SDK Usage
- Agent Prompts
- Spec Directory Structure
- Memory System (Graphiti)
- Skills System
- Memory Search (mem-search)
- Declarative Workflows
- Workflow Logger
- Frontend Development
- Tech Stack
- Path Aliases
- State Management (Zustand)
- Styling
- IPC Communication
- Agent Management
- Claude Profile System
- Terminal System
- Code Quality
- i18n Guidelines
- Cross-Platform
- E2E Testing (Electron MCP)
- Chrome DevTools MCP
- Integrated Tools
- grepai Integration
- Running the Application
- Troubleshooting
Product Overview
WorkPilot AI is a desktop application (+ CLI) where users describe a goal and AI agents autonomously handle planning, implementation, and QA validation. All work happens in isolated git worktrees so the main branch stays safe.
Core workflow: User creates a task → Spec creation pipeline assesses complexity and writes a specification → Planner agent breaks it into subtasks → Coder agent implements (can spawn parallel subagents) → QA reviewer validates → QA fixer resolves issues → User reviews and merges.
Main features:
- Autonomous Tasks — Multi-agent pipeline (planner, coder, QA) that builds features end-to-end
- Kanban Board — Visual task management from planning through completion with preview/emulator support
- Agent Terminals — Up to 12 parallel AI-powered terminals with task context injection
- Insights — AI chat interface for exploring and understanding your codebase
- Roadmap — AI-assisted feature planning with strategic roadmap generation
- Ideation — Discover improvements, performance issues, and security vulnerabilities
- GitHub/GitLab Integration — Import issues, AI-powered investigation, PR/MR review and creation
- Azure DevOps/Jira Integration — Import work items, sync statuses
- Microsoft Teams Notifications — Webhook-based notifications for task completion and PR creation
- Changelog — Generate release notes from completed tasks
- Memory System — Graphiti-based knowledge graph retains insights across sessions
- Isolated Workspaces — Git worktree isolation for every build; AI-powered semantic merge
- Self-Healing — Incident response system with CI/CD failure analysis, proactive monitoring, and production responder
- Pixel Office — Multi-agent coordination visualization with task queue UI
- Learning Loop — Analytics and learning system for continuous improvement
- App Emulator — Preview running applications directly in the Kanban board (human review, AI review, done columns)
- Chrome DevTools MCP — Browser automation for coding and QA agents via Chrome DevTools Protocol
- Pair Programming — AI-assisted pair programming mode
- Code Migration — AI-guided code migration workflows
- Design-to-Code — Convert designs into code implementations
- Performance Profiler — AI-powered performance analysis and profiling
- Documentation Agent — Automated documentation generation and maintenance
- Smart Estimation — AI-based task complexity and effort estimation
- Test Generation — Automated test creation for existing code
- Conflict Predictor — AI-powered git conflict prediction
- Arena Mode — Compare AI model outputs side-by-side
- MCP Marketplace — Browse and install Model Context Protocol servers
- Flexible Authentication — Use a Claude Code subscription (OAuth) or API profiles with any Anthropic-compatible endpoint (e.g., Anthropic API, z.ai for GLM models)
- Multi-Account Swapping — Register multiple Claude accounts; when one hits a rate limit, WorkPilot AI automatically switches to an available account
- Cross-Platform — Native desktop app for Windows, macOS, and Linux with auto-updates
Critical Rules
Claude Agent SDK only — All AI interactions use claude-agent-sdk. NEVER use anthropic.Anthropic() directly. Always use create_client() from core.client.
i18n required — All frontend user-facing text MUST use react-i18next translation keys. Never hardcode strings in JSX/TSX. Add keys to both en/*.json and fr/*.json.
Platform abstraction — Never use process.platform directly. Import from apps/frontend/src/main/platform/ or apps/backend/core/platform/. CI tests all three platforms.
No time estimates — Never provide duration predictions. Use priority-based ordering instead.
PR target — Always target the develop branch for PRs to krovomi/WorkPilot-AI, NOT main.
Project Structure
WorkPilot-AI/ ├── apps/ │ ├── backend/ # Python backend/CLI — ALL agent logic │ │ ├── core/ # client.py, auth.py, worktree.py, platform/, workflow_logger.py │ │ ├── security/ # Command allowlisting, validators, hooks │ │ ├── agents/ # planner, coder, session management │ │ ├── qa/ # reviewer, fixer, loop, criteria │ │ ├── spec/ # Spec creation pipeline │ │ ├── skills/ # Executable Python skills (angular, migration) │ │ ├── cli/ # CLI commands (spec, build, workspace, QA) │ │ ├── context/ # Task context building, semantic search │ │ ├── runners/ # 66 standalone runners (spec, roadmap, insights, github, self-healing, etc.) │ │ ├── services/ # Background services, recovery orchestration │ │ ├── integrations/ # graphiti/, linear, github, windsurf_proxy │ │ ├── project/ # Project analysis, security profiles │ │ ├── merge/ # Intent-aware semantic merge for parallel agents │ │ └── prompts/ # Agent system prompts (.md) │ └── frontend/ # Electron desktop UI │ └── src/ │ ├── main/ # Electron main process │ │ ├── agent/ # Agent queue, process, state, events │ │ ├── claude-profile/ # Multi-profile credentials, token refresh, usage │ │ ├── terminal/ # PTY daemon, lifecycle, Claude integration │ │ ├── platform/ # Cross-platform abstraction │ │ ├── ipc-handlers/ # 106 handler modules by domain │ │ ├── services/ # SDK session recovery, profile service │ │ └── changelog/ # Changelog generation and formatting │ ├── preload/ # Electron preload scripts (electronAPI bridge) │ ├── renderer/ # React UI │ │ ├── components/ # UI components (onboarding, settings, task, terminal, github, etc.) │ │ ├── stores/ # 96 Zustand state stores │ │ ├── contexts/ # React contexts (ViewStateContext) │ │ ├── hooks/ # Custom hooks (useIpc, useTerminal, etc.) │ │ ├── styles/ # CSS / Tailwind styles │ │ └── App.tsx # Root component │ ├── shared/ # Shared types, i18n, constants, utils │ │ ├── i18n/locales/ # en/.json, fr/.json │ │ ├── constants/ # themes.ts, etc. │ │ ├── types/ # 30+ type definition files │ │ └── utils/ # ANSI sanitizer, shell escape, provider detection │ └── types/ # TypeScript type definitions ├── src/ # Shared connectors and utilities │ └── connectors/ │ └── grepai/ # grepai semantic search integration ├── docs/ # Documentation (this file, CLI usage, release, security) ├── shared_docs/ # Long-form reference (configuration, architecture) ├── tests/ # Backend test suite └── scripts/ # Build and utility scripts
Commands Quick Reference
Setup
Prerequisites:
- Python 3.12+ with
uvpackage manager - Node.js 20+ with
pnpm 8+package manager - Git
# Install all dependencies from root
pnpm run install:all
# Or separately:
cd apps/backend && uv venv && uv pip install -r requirements.txt
cd apps/frontend && pnpm installBackend
cd apps/backend
python runners/spec_runner.py --interactive # Create spec interactively
python runners/spec_runner.py --task "..." # Create from task
python run.py --spec 001 # Run autonomous build
python run.py --spec 001 --qa # Run QA validation
python run.py --spec 001 --merge # Merge completed build
python run.py --list # List all specsFrontend
cd apps/frontend
pnpm run dev # Dev mode (Electron + Vite HMR)
pnpm run build # Production build
pnpm run test # Vitest unit tests
pnpm run test:watch # Vitest watch mode
pnpm run lint # Biome check
pnpm run lint:fix # Biome auto-fix
pnpm run typecheck # TypeScript strict check
pnpm run package # Package for distributionTesting
| Stack | Command | Tool |
| Backend | pytest tests/ -v (venv: .venv/bin on Unix, .venv/Scripts on Windows) | pytest |
| Frontend unit | cd apps/frontend && pnpm test | Vitest |
| Frontend E2E | cd apps/frontend && pnpm run test:e2e | Playwright |
| All backend | pnpm run test:backend (from root) | pytest |
Releases
node scripts/bump-version.js patch|minor|major # Bump version
git push && gh pr create --base main # PR to main triggers releaseSee RELEASE.md for the full release process.
Backend Development
Claude Agent SDK Usage
Client: apps/backend/core/client.py — create_client() returns a configured ClaudeSDKClient with security hooks, tool permissions, and MCP server integration.
Model and thinking level are user-configurable (via the Electron UI settings or CLI override). Use phase_config.py helpers to resolve the correct values:
from core.client import create_client
from phase_config import get_phase_model, get_phase_thinking_budget
# Resolve model/thinking from user settings (Electron UI or CLI override)
phase_model = get_phase_model(spec_dir, "coding", cli_model=None)
phase_thinking = get_phase_thinking_budget(spec_dir, "coding", cli_thinking=None)
client = create_client(
project_dir=project_dir,
spec_dir=spec_dir,
model=phase_model,
agent_type="coder", # planner | coder | qa_reviewer | qa_fixer
max_thinking_tokens=phase_thinking,
)
# Run agent session (uses context manager + run_agent_session helper)
async with client:
status, response = await run_agent_session(client, prompt, spec_dir)Working examples: agents/planner.py, agents/coder.py, qa/reviewer.py, qa/fixer.py, spec/
Agent Prompts (apps/backend/prompts/)
38 root-level prompts + 22 GitHub-specific prompts in prompts/github/.
| Category | Prompts |
| Core Build | planner.md, coder.md, coder_recovery.md |
| QA | qa_reviewer.md, qa_fixer.md, validation_fixer.md |
| Spec Pipeline | spec_gatherer.md, spec_researcher.md, spec_writer.md, spec_critic.md, spec_quick.md, complexity_assessor.md |
| Ideation | ideation_code_improvements.md, ideation_code_quality.md, ideation_documentation.md, ideation_performance.md, ideation_security.md, ideation_ui_ux.md |
| Incidents | incident_cicd_analyzer.md, incident_proactive_analyzer.md, incident_production_responder.md |
| Analysis | architecture_reviewer.md, architecture_visualizer.md, breaking_change_detector.md, performance_profiler.md, insight_extractor.md, learning_analyzer.md |
| Advanced | browser_agent.md, code_migration.md, documentation_agent.md, environment_cloner.md, multi_repo_planner.md, intent_templates.md, followup_planner.md |
| Roadmap | roadmap_discovery.md, roadmap_features.md, competitor_analysis.md |
| GitHub | issue_analyzer.md, issue_triager.md, duplicate_detector.md, pr_reviewer.md, pr_orchestrator.md, pr_parallel_orchestrator.md, pr_fixer.md, pr_finding_validator.md, pr_template_filler.md, pr_ai_triage.md, pr_codebase_fit_agent.md, + 11 more |
Spec Directory Structure
Each spec in .workpilot/specs/XXX-name/ contains: spec.md, requirements.json, context.json, implementation_plan.json, qa_report.md, QA_FIX_REQUEST.md
Memory System (Graphiti)
Graph-based semantic memory in integrations/graphiti/. Configured through the Electron app's onboarding/settings UI (CLI users can alternatively set GRAPHITI_ENABLED=true in .env-files/.env). See shared_docs/CONFIGURATION.md for details.
Skills System
Skills are markdown files with YAML frontmatter, following the Agent Skills open standard so the same file works across Claude Code, Copilot, Codex, Cursor and Gemini.
Where they live:
| Path | Role |
.agents/skills/<name>/SKILL.md | The source read in production. Provider- and IDE-agnostic. |
.claude/skills/, .github/skills/, .cursor/skills/ | Per-harness mirrors |
.gemini/commands/*.toml | Gemini CLI mirror |
Those are generated. skills/ is the source, and scripts/skills_cli.py is the only
thing that writes the outputs — pnpm run skills:check fails CI on drift. Packs are
added, updated and dropped through the same CLI (skills:add, skills:update,
skills:remove), which keeps skills-lock.json, .workpilot/skills.toml and the
.gitignore entries in step. See skills/README.md.
apps/backend/slash_commands/api.py scans .agents/skills/ and serves the result to the
Kanban Quick-Command bar (GET /api/slash-commands), then resolves a command's body
server-side so any provider can execute it.
Reading frontmatter: always through skills_registry.frontmatter.parse_frontmatter.
It parses with PyYAML and degrades to a line parser for hand-edited blocks. Do not write
another one — the repo used to carry four, with divergent semantics, and three of them
truncated any description ending in a quoted phrase.
WorkPilot-specific fields live under metadata.workpilot (pack, version, targets,
requires, min_effort, provenance) — a free-form space the Agent Skills spec reserves for
tooling and that Claude Code ignores.
Python-side skills: apps/backend/skills/ holds two executable skills (angular/,
migration/) loaded by skill_manager.py with progressive disclosure — metadata first,
instructions on trigger, scripts on demand:
from skills.skill_manager import SkillManager
manager = SkillManager("apps/backend/skills")
skill = manager.load_skill("framework-migration")
result = skill.execute_script("analyze_stack.py", {"project-root": "/path/to/project"})Memory Search (mem-search)
Three-layer progressive retrieval over the memories that already exist — task_logger
traces and learning_loop patterns — so an agent can ask "have we hit this before?"
without paying for every candidate to discard most of them.
from mem_search import search_for
memory = search_for(project_dir)
index = memory.index("flaky timeout in the integration suite") # ~100 tokens, always
memory.timeline(index.ids()[:3]) # a couple of lines each
memory.detail("task:042-add-widget") # the full record, by idThe index is held to a token budget by dropping entries and reporting the count, never by truncating what it kept, and building it never reads a record body — a source that loaded everything in order to list it would have moved the cost, not removed it.
The agent-facing side is skills/tooling/mem-search/. claude-mem is declared as an
optional pack (pnpm run skills:bootstrap --pack claude-mem) rather than installed:
its retrieval pattern is what was worth adopting, and taking the tool itself would add a
fourth memory with its own worker and two more stores.
Declarative Workflows
workflows/<name>/workflow.yaml describes a build as phases; workflows/engine.py
resolves it against the effort level the user picked, the provider's capabilities
and the files the task touched. The resolved profile is printed before the build
starts, so the user sees what their effort setting bought.
pnpm run skills:workflow -- --effort high # what would run, and what is pruned
pnpm run skills:workflow -- --effort low --provider mistralOpt-in. The engine is gated on WORKPILOT_WORKFLOW_ENGINE=1 in
.env-files/.env; unset, handle_build_command behaves exactly as it did
before. It is off by default because most phases are still executed by the
hard-coded sequence — see the table below for what the engine actually drives
today.
| Phase | Who runs it |
design-check and any deterministic gate | the engine (workflows/gates.py) |
the tests-pass hard gate | the engine (workflows/hard_gates.py) |
observe | the engine (learning_loop/observe.py) |
qa | the hard-coded loop, which the profile can switch off |
| everything else | the hard-coded sequence in run_autonomous_agent |
Two rules the resolver enforces and that are easy to break:
- A
hard_gateis never pruned by effort, and it is evaluated after the build:verifydeclarestests-pass, andworkflows/hard_gates.pyreports whether it held. A gate that failed is reported as failed; one with no evidence to judge is reported as unknown and does not block, because refusing on an absent signal would make every project without a QA report unbuildable. - A deterministic phase is never pruned either. It costs no API call, so there is no effort level at which skipping it saves anything — and its verdict is an external signal the learning loop may count as corroboration.
A phase asking for subagent-per-task on a provider with no subagents degrades
to sequential execution with a context reset, recorded on the resolved phase
rather than silently pretended.
Workflow Logger
Centralized logging system for tracking all AI agents, skills, hooks and workflows:
Features:
- Structured logging with visual indicators (🤖 agents, ⚡ skills, 🪝 hooks)
- Automatic duration tracking and trace IDs
- Both human-readable and JSON structured output
- Active trace monitoring
Usage:
from core.workflow_logger import workflow_logger
# Log agent execution
trace_id = workflow_logger.log_agent_start("Claude Code", "refactor_task", {"file": "app.py"})
workflow_logger.log_agent_end("Claude Code", "success", {"changes": 5}, trace_id=trace_id)
# Log skill execution
skill_trace = workflow_logger.log_skill_start("framework-migration", "analyze", {"framework": "react"})
workflow_logger.log_skill_end("framework-migration", "success", {"migrations_found": 3}, trace_id=skill_trace)
# Monitor active traces
active = workflow_logger.get_active_traces()Frontend Development
Tech Stack
React 19, TypeScript 5.9 (strict), Electron 41, Zustand 5, Tailwind CSS v4, Radix UI, xterm.js 6, Vite 8, Vitest 4, Biome 2, Motion (Framer Motion)
Path Aliases (tsconfig.json)
| Alias | Maps to | Usable |
@/* | src/renderer/* | yes |
@shared/* | src/shared/* | yes |
@preload/* | src/preload/* | yes |
@lib/* | src/renderer/lib/* | yes |
@features/* | src/renderer/features/* | no — target does not exist |
@components/* | src/renderer/shared/components/* | no — target does not exist |
@hooks/* | src/renderer/shared/hooks/* | no — target does not exist |
The last three are declared in tsconfig.json but point at directories that
were never created, and no file imports through them. Components live in
src/renderer/components/, hooks in src/renderer/hooks/.
State Management (Zustand)
96 stores in src/renderer/stores/. Key stores:
project-store.ts— Active project, project listtask-store.ts— Tasks/specs managementterminal-store.ts— Terminal sessions and statesettings-store.ts— User preferencesgithub/issues-store.ts,github/pr-review-store.ts— GitHub integrationinsights-store.ts,roadmap-store.ts,kanban-settings-store.tsself-healing-store.ts— Incident management and production responsepixel-office-store.ts— Multi-agent Pixel Office visualizationlearning-loop-store.ts— Learning analyticsapp-emulator-store.ts— App preview/emulatorarena-store.ts— Model comparison arenamcp-marketplace-store.ts— MCP server marketplacecode-migration-store.ts,design-to-code-store.ts,visual-to-code-store.ts— Code transformationperformance-profiler-store.ts,conflict-predictor-store.ts— Analysis
Main process also has stores: src/main/project-store.ts, src/main/terminal-session-store.ts
Styling
- Tailwind CSS v4 with
@tailwindcss/postcssplugin - 7 color themes (Default, Dusk, Lime, Ocean, Retro, Neo, Forest) defined in
src/shared/constants/themes.ts - Each theme has light/dark mode variants via CSS custom properties
- Utility:
clsx+tailwind-mergeviacn()helper - Component variants:
class-variance-authority(CVA)
IPC Communication
Main ↔ Renderer communication via Electron IPC:
- Handlers:
src/main/ipc-handlers/— organized by domain (github, gitlab, ideation, context, etc.) - Preload:
src/preload/— exposes safe APIs to renderer - Pattern: renderer calls via
window.electronAPI.*, main handles in IPC handler modules
Agent Management (src/main/agent/)
The frontend manages agent lifecycle end-to-end:
agent-queue.ts— Queue routing, prioritization, spec number lockingagent-process.ts— Spawns and manages agent subprocess communicationagent-state.ts— Tracks running agent state and statusagent-events.ts— Agent lifecycle events and state transitions
Claude Profile System (src/main/claude-profile/)
Multi-profile credential management for switching between Claude accounts:
credential-utils.ts— OS credential storage (Keychain/Windows Credential Manager)token-refresh.ts— OAuth token lifecycle and automatic refreshusage-monitor.ts— API usage tracking and rate limiting per profileprofile-scorer.ts— Scores profiles by usage and availability
Terminal System (src/main/terminal/)
Full PTY-based terminal integration:
pty-daemon.ts/pty-manager.ts— Background PTY process managementterminal-lifecycle.ts— Session creation, cleanup, event handlingclaude-integration-handler.ts— Claude SDK integration within terminals- Renderer: xterm.js 6 with WebGL, fit, web-links, serialize addons. Store:
terminal-store.ts
Code Quality
Frontend
- Linting: Biome (
pnpm run lint/pnpm run lint:fix) - Type checking:
pnpm run typecheck(strict mode) - Pre-commit: Husky + lint-staged runs Biome on staged
.ts/.tsx/.js/.jsx/.json - Testing: Vitest + React Testing Library + jsdom
Backend
- Linting: Ruff
- Testing: pytest (
pytest tests/ -v(venv:.venv/binon Unix,.venv/Scriptson Windows))
i18n Guidelines
All frontend UI text uses react-i18next. Translation files: apps/frontend/src/shared/i18n/locales/{en,fr}/*.json
90 namespace files per language. Core namespaces: common, navigation, settings, dialogs, tasks, errors, onboarding, welcome, analytics, appEmulator, arena, browserAgent, dashboard, github, gitlab, ideation, insights, kanban, learningLoop, llm, multiRepo, pairProgramming, pixelOffice, roadmap, selfHealing, streaming, terminal, testGeneration, voiceControl, and more.
import { useTranslation } from 'react-i18next';
const { t } = useTranslation(['navigation', 'common']);
<span>{t('navigation:items.githubPRs')}</span> // CORRECT
<span>GitHub PRs</span> // WRONG
// With interpolation:
<span>{t('errors:task.parseError', { error })}</span>When adding new UI text: add keys to ALL language files, use namespace:section.key format.
Cross-Platform
Supports Windows, macOS, Linux. CI tests all three.
Platform modules: apps/frontend/src/main/platform/ and apps/backend/core/platform/
| Function | Purpose |
isWindows() / isMacOS() / isLinux() | OS detection |
getPathDelimiter() | ; (Win) or : (Unix) |
findExecutable(name) | Cross-platform executable lookup |
requiresShell(command) | .cmd/.bat shell detection (Win) |
Never hardcode paths. Use findExecutable() and joinPaths(). See docs/windows-development.md for the Windows-specific notes.
E2E Testing (Electron MCP)
QA agents can interact with the running Electron app via Chrome DevTools Protocol:
- Start app:
pnpm run dev:debug(debug mode for AI self-validation via Electron MCP) - Set
ELECTRON_MCP_ENABLED=truein.env-files/.env - Run QA:
python run.py --spec 001 --qa
Tools: take_screenshot, click_by_text, fill_input, get_page_structure, send_keyboard_shortcut, eval.
Chrome DevTools MCP
Browser automation via chrome-devtools-mcp is available for coder and QA agents. It provides 29 tools for navigation, input, screenshots, debugging, emulation, and network inspection.
Enable: Toggle "Chrome DevTools" in project Settings → Agent Tools → MCP Servers, or set CHROME_DEVTOOLS_MCP_ENABLED=true in .env-files/.env.
Optional: Set CHROME_DEVTOOLS_PORT=9222 to connect to a running Chrome instance (e.g., the app emulator). Without it, agents launch a headless Chrome.
Key tools: navigate_page, click, fill, take_screenshot, take_snapshot, evaluate_script, wait_for, emulate, list_network_requests.
Kanban integration: The preview button (Monitor icon) is available on tasks in Human Review and AI Review columns, allowing visual validation before PR approval.
Running the Application
# CLI only
cd apps/backend && python run.py --spec 001
# Desktop app
pnpm start # Production build + run
pnpm run dev # Development mode with HMR
# Project data: .workpilot/specs/ (gitignored)Integrated Tools
grepai Integration
Semantic code search tool integrated for enhanced AI agent code exploration:
Setup:
# Start grepai server (Docker or CLI on http://localhost:9000)
cd src/connectors/grepai
python test_grepai.py # Test integrationUsage in Agents:
from src.connectors.grepai.client import GrepaiClient
client = GrepaiClient("http://localhost:9000")
results = client.search("user authentication flow", top_k=5)Features:
- Natural language code search
- Vector embeddings for semantic matching
- Call graph tracing with
grepai trace - JSON output for AI agent integration
- Fallback to standard grep when unavailable
Files:
src/connectors/grepai/client.py- Python clientsrc/connectors/grepai/grepai/- Embedded grepai toolsrc/connectors/grepai/README.md- Integration guide
Troubleshooting
Common Issues
Claude Authentication Problems:
# Check profile configuration
cat ~/.claude/profiles.json
# Refresh tokens automatically via UI or:
python -c "from main.claude_profile.token_refresh import refresh_all_tokens; refresh_all_tokens()"Build Issues Cross-Platform:
# Use platform abstraction functions
from core.platform import isWindows, findExecutable, joinPaths
# Never hardcode paths
exe_path = findExecutable("node") # Works on Win/Mac/Linux
full_path = joinPaths(["src", "components"]) # OS-agnosticgrepai Connection Issues:
# Check if grepai is running
curl http://localhost:9000/health
# Start grepai if needed
cd src/connectors/grepai && python grepai_launcher.pyMemory System Issues:
# Check Graphiti status
python -c "from integrations.graphiti.client import check_connection; print(check_connection())"
# Enable via environment if needed
export GRAPHITI_ENABLED=truePerformance Issues:
- Monitor workflow logs:
tail -f logs/workflow.log - Reduce concurrent agents in settings
Getting Help
- Check
logs/workflow.logfor detailed execution traces - Run
pytest tests/ -vfrom the backend venv for test failures - Check shared_docs/README.md for system design
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

