How valuecell-ai/valuecell works
ValueCell is a financial multi-agent platform with a web/desktop interface and Python server. Its main user journey is configuring a model, asking an agent for research or market analysis, and viewing streamed conversation results; strategy users can also configure and monitor automated trading. The map includes the agent/task orchestration and trading runtime, plus documented research, news, market-data, and exchange capabilities. Some feature branches are documented but their implementations were not sampled, so their internal links are omitted.
Main entry points: services.py Agent coordinator · base_agent.py Strategy agent · app.py API application · app Web interface
Components 27
Client experience
- Web interface
frontend/src/app - API client
frontend/src/lib/api-client.ts - Stream client
frontend/src/lib/sse-client.ts
API and services
- API application
python/valuecell/server/api/app.py - Agent endpoints
python/valuecell/server/api/routers/agent.py - Streaming endpoints
python/valuecell/server/api/routers/agent_stream.py - Strategy endpoints
python/valuecell/server/api/routers/strategy_api.py
Agent orchestration
- Agent coordinator
python/valuecell/core/coordinate/services.py - Agent connections
python/valuecell/core/agent/connect.py - Task planning
python/valuecell/core/plan/service.py - Event routing
python/valuecell/core/event/service.py - Conversations
python/valuecell/core/conversation/service.py - Task lifecycle
python/valuecell/core/task/service.py - Deep research
python/valuecell/agents/research_agent - News retrieval
python/valuecell/agents/news_agent
Trading runtime
- Strategy agent
python/valuecell/agents/common/trading/base_agent.py - Market features
python/valuecell/agents/common/trading/features/pipeline.py - Trade decisions
python/valuecell/agents/common/trading/decision - Trade execution
python/valuecell/agents/common/trading/execution - Strategy lifecycle
python/valuecell/agents/common/trading/_internal/stream_controller.py
Local data
- SQLite database
python/valuecell/server/db - Strategy repository
python/valuecell/server/db/repositories/strategy_repository.py - Conversation storage
python/valuecell/core/conversation/manager.py - Task storage
python/valuecell/core/task/manager.py
Other components
- User
- Market exchanges
- LLM providers
Connections 32
- User → Web interface: uses
README.md - Web interface → API client: requests
- Web interface → Stream client: streams
- API client → API application: calls API
- Stream client → API application: opens stream
- API application → Agent endpoints: registers
python/valuecell/server/api/app.py - API application → Streaming endpoints: registers
python/valuecell/server/api/app.py - API application → Strategy endpoints: registers
python/valuecell/server/api/app.py - Agent endpoints → Agent coordinator: dispatches
- Streaming endpoints → Agent coordinator: dispatches
- Strategy endpoints → Strategy agent: starts strategies
- Agent coordinator → Agent connections: uses agents
python/valuecell/core/coordinate/services.py - Agent coordinator → Task planning: requests plans
python/valuecell/core/coordinate/services.py - Agent coordinator → Event routing: uses events
python/valuecell/core/coordinate/services.py - Agent coordinator → Conversations: uses conversations
python/valuecell/core/coordinate/services.py - Agent coordinator → Task lifecycle: uses tasks
python/valuecell/core/coordinate/services.py - Event routing → Conversations: uses service
python/valuecell/core/event/service.py - Conversations → Conversation storage: delegates storage
python/valuecell/core/conversation/service.py - Task lifecycle → Task storage: delegates storage
python/valuecell/core/task/service.py - Task planning → Agent connections: plans for agents
python/valuecell/core/plan/service.py - User → Deep research: requests research
README.md - User → News retrieval: requests news
README.md - User → Strategy agent: configures strategy
README.md - Strategy agent → Market features: builds market inputs
- Market features → Trade decisions: supplies features
- Strategy agent → Trade execution: routes trades
- Trade execution → Market exchanges: places orders
- Strategy agent → Strategy lifecycle: manages runtime
- Strategy lifecycle → Strategy repository: persists strategy
python/valuecell/agents/common/trading/_internal/stream_controller.py - Strategy repository → SQLite database: reads and writes
python/valuecell/server/db/repositories/strategy_repository.py - Strategy agent → LLM providers: uses models
- Deep research → LLM providers: uses models