How qingjiuzys/anycode works
anyCode is a local-first AI coding workbench: the user selects a project and model, starts an agent session, reviews or approves work, and receives changes and session results locally. The main runtime spans the dashboard, its local service, runtime setup, and the agent’s task/tool execution; optional workflow orchestration and memory support longer-running work. The README also documents BYOK and local speech/OCR capabilities, usage reporting, and scheduling. Several connections reflect documented product boundaries and repository structure; sampled excerpts do not establish every internal call, so uncertain wiring is omitted.
Main entry points: agentic_loop.rs Agent execution · runtime.rs Runtime bootstrap · routes.tsx Dashboard UI · server.rs Dashboard API
Components 20
Workbench interface
- Dashboard UI
crates/dashboard-ui/src/routes/routes.tsx - Dashboard API
crates/dashboard/src/server.rs - Desktop host
apps/anycode-desktop/src/main.rs - Usage and reports
crates/dashboard-ui/src/routes/routes.tsx
Agent runtime
- Configuration
crates/config/src/lib.rs - Runtime bootstrap
crates/bootstrap/src/runtime.rs - Agent execution
crates/agent/src/runtime/agentic_loop.rs - Workflow DAG
crates/agent/src/graph_engine.rs - Domain contracts
crates/core/src/lib.rs
Work capabilities
- Tool execution
crates/tools/src/lib.rs - Model integration
crates/llm/src/lib.rs - Browser automation
crates/browser/src/lib.rs - Memory pipeline
crates/memory/src/pipeline.rs - Skills workbench
crates/bootstrap/src/skills_registry.rs - Schedules and channels
crates/channel-bridge/src/lib.rs
Local services
- Session state
crates/dashboard/src/server.rs - Local media
crates/apple-media/src/lib.rs
Account services
- Account service
crates/account-service/src/lib.rs
Other components
- Workbench user
- Model providers
Connections 19
- Workbench user → Dashboard UI: starts work
- Dashboard UI → Dashboard API: requests sessions
- Desktop host → Dashboard API: hosts locally
- Dashboard API → Session state: reads and writes
- Dashboard API → Runtime bootstrap: sets up runtime
- Runtime bootstrap → Configuration: loads settings
- Runtime bootstrap → Agent execution: assembles runtime
- Agent execution → Model integration: requests completions
- Model integration → Model providers: sends model requests
- Agent execution → Tool execution: dispatches tools
- Agent execution → Memory pipeline: ingests and recalls
- Agent execution → Domain contracts: uses domain types
- Workflow DAG → Agent execution: executes tasks
- Runtime bootstrap → Browser automation: configures browser
- Runtime bootstrap → Skills workbench: registers skills
- Schedules and channels → Agent execution: runs scheduled tasks
- Dashboard UI → Usage and reports: views usage
- Dashboard UI → Account service: account requests
- Runtime bootstrap → Local media: enables local media