How ecarlsson-r/quoteplot-agent works
QuotePlot Agent combines Lucy’s evidence-gathering crypto investigations with a separate browser wallet workspace for testnet token management. The principal flow is a natural-language question through the Angular Lucy panel and FastAPI agent router, which gathers market, machine-learning, web, and on-chain evidence before returning a narrated or deterministic result. A separate scheduled backend maintains market and alternative-data inputs. The wallet workspace reads factory inventory and events and supports token actions through a connected wallet. Some backend internals and unsampled UI modules are represented only at the directory level; documented relationships are cited to the README.
Main entry points: agent.py Evidence Gathering · app.ts Angular App · seed-token-factory.service.ts Factory Service · token-list.component.ts Token Inventory
Components 33
Angular Client
- Angular App
frontend/src/app/app.ts - Lucy Panel
frontend/src/app/components/lucy-panel/lucy-panel.component.ts - Market Panel
frontend/src/app/components/market-panel/market-panel.component.ts - Lucy Service
frontend/src/app/services/lucy.service.ts - Market Service
frontend/src/app/services/market.service.ts - Backend URL
frontend/src/app/services/backend-url.ts
Lucy Investigation
- Agent API
backend/routers/agent.py - Evidence Gathering
backend/routers/agent.py - Gemini Narration
backend/routers/agent.py - Market API
backend/routers/market.py - Bright Data
backend/brightdata_utils.py - Chain Evidence
backend/blockchain/token_intelligence.py - Ethereum Reader
backend/blockchain/ethereum.py
Data and Analysis
- Background Jobs
backend/tasks.py - Market Analysis
backend/brain.py - Market Database
backend/database.py - Data Models
backend/models.py - ML Methods
dm
Token Workspace
- Token Inventory
frontend/src/app/components/token-list/token-list.component.ts - Factory Service
frontend/src/app/services/seed-token-factory.service.ts - Wallet Provider
frontend/src/app/services/provider.service.ts - Token Creation
frontend/src/app/components/new-token/new-token.component.ts - Factory Events
frontend/src/app/components/event-list/event-list.component.ts
EVM Contracts
- Factory ABI
frontend/src/app/contracts/seed-token-factory.abi.ts - Token ABI
frontend/src/app/contracts/seed-token.abi.ts - Testnet Contracts
contracts
Other components
- Researcher
- Connected Wallet
- Configured Database
- Bright Data Services
- Gemini
- Ethereum JSON-RPC
- Testnet RPC
Connections 38
- Researcher → Angular App: uses
README.md - Angular App → Lucy Panel: displays
frontend/src/app/app.ts - Angular App → Market Panel: displays
frontend/src/app/app.ts - Lucy Panel → Lucy Service: requests
frontend/src/app/components/lucy-panel/lucy-panel.component.ts - Market Panel → Market Service: requests
frontend/src/app/components/market-panel/market-panel.component.ts - Lucy Service → Backend URL: resolves endpoint
frontend/src/app/services/lucy.service.ts - Market Service → Backend URL: resolves endpoint
frontend/src/app/services/market.service.ts - Lucy Service → Agent API: sends requests
README.md - Market Service → Market API: sends requests
README.md - Agent API → Evidence Gathering: orchestrates
README.md - Evidence Gathering → Market Analysis: analyzes market
README.md - Evidence Gathering → Bright Data: collects context
backend/routers/agent.py - Evidence Gathering → Chain Evidence: resolves token
backend/routers/agent.py - Chain Evidence → Ethereum Reader: reads chain data
backend/blockchain/token_intelligence.py - Evidence Gathering → Gemini Narration: narrates evidence
README.md - Evidence Gathering → Configured Database: reads market data
README.md - Evidence Gathering → Bright Data Services: requests web context
README.md - Gemini Narration → Gemini: uses
README.md - Ethereum Reader → Ethereum JSON-RPC: reads
README.md - Market API → Market Database: queries
backend/routers/market.py - Market Database → Data Models: persists
backend/database.py - Background Jobs → Market Database: updates
backend/tasks.py - Background Jobs → Market Analysis: evaluates predictions
backend/tasks.py - Market Analysis → ML Methods: uses analysis methods
- Angular App → Token Inventory: displays
frontend/src/app/app.ts - Angular App → Factory Events: displays
frontend/src/app/app.ts - Angular App → Token Creation: displays
frontend/src/app/app.ts - Token Inventory → Factory Service: loads inventory
frontend/src/app/components/token-list/token-list.component.ts - Factory Events → Factory Service: loads events
frontend/src/app/components/event-list/event-list.component.ts - Token Creation → Factory Service: creates token
frontend/src/app/components/new-token/new-token.component.ts - Wallet Provider → Factory Service: configures provider
frontend/src/app/services/provider.service.ts - Factory Service → Factory ABI: encodes calls
frontend/src/app/services/seed-token-factory.service.ts - Token Inventory → Token ABI: uses token interface
frontend/src/app/components/token-list/token-list.component.ts - Factory Service → Testnet Contracts: connects factory
README.md - Connected Wallet → Wallet Provider: connects
README.md - Wallet Provider → Testnet RPC: reads network
README.md - Token Creation → Testnet Contracts: submits transaction
README.md - Token Inventory → Testnet Contracts: manages tokens
README.md