How ozyrionhaha/agentscope works
AgentScope is a local-first agent workspace that connects user-selected models to project tools, skills, and workflows. The primary flow is a user prompt through the workspace UI and local API into the agent runtime, which gathers project context, calls a provider, and may dispatch permission-controlled tools; events and results return to the UI. The graph also preserves provider and vault management, indexing, memory, terminal, browser, MCP, and persistent state. Some feature links are documented in the README; unsampled implementation details are not inferred beyond those references.
Main entry points: tools.ts Tool Registry · runtime.ts Agent Runtime · storage.ts SQLite Store · app.ts Local API Server
Components 19
Workspace UI
- Workspace UI
src/WorkspacePage.tsx - App Navigation
src/App.tsx - API Client
src/api.ts - Usage Tracking
src/UsagePage.tsx
Agent Runtime
- Local API Server
server/app.ts - Agent Runtime
server/runtime.ts - Tool Registry
server/tools.ts - Permissions
server/permissions.ts
Project Capabilities
- Project Context
server/context.ts - Workspace Files
server/workspace.ts - Terminal Sessions
server/terminal.ts - Skills & Plugins
server/skills.ts - Workflows
server/app.ts
Models & Integrations
- Model Providers
server/providers.ts - Browser Automation
server/browser.ts - MCP Servers
server/mcp.ts
Local State
- Credential Vault
server/vault.ts - SQLite Store
server/storage.ts
Other components
- User
Connections 27
- User → Workspace UI: prompts
- App Navigation → API Client: requests
src/App.tsx - Workspace UI → API Client: requests
src/WorkspacePage.tsx - API Client → Local API Server: calls API
src/api.ts - Local API Server → Agent Runtime: dispatches tasks
server/app.ts - Agent Runtime → Model Providers: calls model
server/runtime.ts - Agent Runtime → Project Context: builds context
server/runtime.ts - Agent Runtime → Tool Registry: dispatches tools
server/runtime.ts - Tool Registry → Permissions: checks access
server/tools.ts - Tool Registry → Workspace Files: edits files
server/tools.ts - Tool Registry → Terminal Sessions: runs commands
server/tools.ts - Tool Registry → Skills & Plugins: loads skills
server/tools.ts - Tool Registry → Browser Automation: automates pages
server/tools.ts - Tool Registry → MCP Servers: calls MCP
server/tools.ts - Project Context → Workspace Files: indexes files
server/context.ts - Project Context → SQLite Store: persists index
server/context.ts - Workspace Files → SQLite Store: saves checkpoints
server/workspace.ts - Terminal Sessions → SQLite Store: saves sessions
server/terminal.ts - Agent Runtime → SQLite Store: records events
server/runtime.ts - Model Providers → Credential Vault: reads credentials
server/providers.ts - Credential Vault → SQLite Store: stores encrypted data
server/vault.ts - Local API Server → SQLite Store: initializes state
server/app.ts - Workspace UI → Local API Server: streams task events
src/WorkspacePage.tsx - Usage Tracking → API Client: loads usage
src/UsagePage.tsx - User → Workflows: selects workflow
- Agent Runtime → Workflows: executes workflows
server/app.ts - User → Browser Automation: enables browser