How undifined/pyagent works
PyAgent is described as an autonomous multi-agent software-development platform, but this checkout’s tree does not contain the README’s src/, web/, or rust_core/ implementations. The visible runtime centers on a FastAPI/WebSocket backend and a separate parallel shard executor; the README documents a ten-stage agent workflow, a NebulaOS UI, and Rust services that cannot be mapped to source nodes here. The graph focuses on present modules and documented entry points; links between backend helpers follow the app’s source index, while unshown internal behavior is omitted.
Main entry points: app.py FastAPI app · orchestrator.py Shard orchestrator · ws_handler.py WebSocket handler · main.py Parallel CLI
Components 24
Backend API
- FastAPI app
backend/app.py - Authentication
backend/auth.py - Refresh sessions
backend/auth_session_store.py - Rate limiting
backend/rate_limiter.py - Memory store
backend/memory_store.py - AutoMem benchmarks
backend/automem_benchmark_store.py - WebSocket handler
backend/ws_handler.py - Live sessions
backend/session_manager.py - Message models
backend/models.py - WebSocket crypto
backend/ws_crypto.py
Parallel execution
- Parallel CLI
parallel_execution/main.py - Shard orchestrator
parallel_execution/orchestrator.py - Shard worker
parallel_execution/worker.py - Distributed queue
parallel_execution/distributed_queue.py - Execution metrics
parallel_execution/metrics_tracker.py - Quality gates
parallel_execution/quality_gates.py - Telegram reports
parallel_execution/telegram_reporter.py
Reasoning
- Advanced reasoning
advanced_reasoning - Beam search
advanced_reasoning/beam_search_reasoner.py - Reasoning cache
advanced_reasoning/cache_manager.py
Execution memory
- Progress tracking
memory_system/progress_tracker.py - Tracked executor
memory_system/mega_executor_with_progress.py
Implementation engine
- Implementation engine
real_implementation_engine.py
Other components
- UI / tooling
Connections 21
- UI / tooling → FastAPI app: calls REST
README.md - UI / tooling → WebSocket handler: streams tasks
README.md - FastAPI app → Authentication: uses authentication
backend/app.py - FastAPI app → Refresh sessions: manages refresh sessions
backend/app.py - FastAPI app → Rate limiting: applies limits
backend/app.py - FastAPI app → Memory store: uses memory store
backend/app.py - FastAPI app → AutoMem benchmarks: uses benchmark store
backend/app.py - FastAPI app → WebSocket handler: routes WebSocket
backend/app.py - FastAPI app → WebSocket crypto: uses WebSocket crypto
backend/app.py - WebSocket handler → Live sessions: looks up peers
backend/ws_handler.py - WebSocket handler → Message models: serializes messages
backend/ws_handler.py - Parallel CLI → Shard orchestrator: creates and runs
parallel_execution/main.py - Shard orchestrator → Shard worker: runs workers
parallel_execution/orchestrator.py - Shard orchestrator → Distributed queue: coordinates shards
parallel_execution/orchestrator.py - Shard orchestrator → Execution metrics: collects metrics
parallel_execution/orchestrator.py - Shard orchestrator → Telegram reports: reports progress
parallel_execution/orchestrator.py - Tracked executor → Progress tracking: records execution
memory_system/mega_executor_with_progress.py - Parallel CLI → Quality gates: may gate output
- Shard worker → Implementation engine: generates implementation
- Advanced reasoning → Beam search: includes search
- Advanced reasoning → Reasoning cache: includes caching