How sukirman1901/pulse-cli works
Pulse is an AI-assisted Indonesian stock-analysis terminal app. Users submit natural-language requests or slash commands; the TUI dispatches commands or the SmartAgent interprets intent, gathers market data, runs analysis, and returns a response. Major branches include technical and fundamental analysis, screening, forecasting and charting, trading plans, broker-flow analysis, and SAPTA pre-markup detection. The map follows documented capabilities; some command wiring and module interactions are omitted where the sampled source does not establish them.
Main entry points: registry.py Command Registry · smart_agent.py Smart Agent · app.py Pulse TUI · engine.py SAPTA Engine
Components 21
Terminal Interface
- Pulse TUI
pulse/cli/app.py - Command Registry
pulse/cli/commands/registry.py
Request Orchestration
- Smart Agent
pulse/core/smart_agent.py
Market Analysis
- Technical Analysis
pulse/core/analysis/technical.py - Fundamental Analysis
pulse/core/analysis/fundamental.py - Stock Screener
pulse/core/screener.py - Price Forecast
pulse/core/forecasting.py - Chart Generation
pulse/core/chart_generator.py - Trading Plan
pulse/core/trading_plan.py - Broker Flow Analysis
pulse/core/analysis/broker_flow.py - Bandarmology Engine
pulse/core/analysis/bandarmology/engine.py
SAPTA Detection
- SAPTA Engine
pulse/core/sapta/engine.py - SAPTA Modules
pulse/core/sapta/modules - SAPTA ML
pulse/core/sapta/ml
Data And AI
- AI Client
pulse/ai/client.py - Yahoo Finance Fetcher
pulse/core/data/yfinance.py - Stockbit Client
pulse/core/data/stockbit.py
Other components
- Analyst
- LLM Service
- Yahoo Finance
- Stockbit Service
Connections 22
- Analyst → Pulse TUI: submits request
- Pulse TUI → Command Registry: dispatches commands
- Pulse TUI → Smart Agent: routes messages
- Pulse TUI → AI Client: selects model
- Smart Agent → Yahoo Finance Fetcher: fetches quotes
- Yahoo Finance Fetcher → Yahoo Finance: requests market data
- Smart Agent → Technical Analysis: runs analysis
- Smart Agent → SAPTA Engine: runs detection
- Smart Agent → AI Client: requests insight
- AI Client → LLM Service: sends prompts
- Command Registry → Fundamental Analysis: runs analysis
- Command Registry → Stock Screener: screens stocks
- Command Registry → Price Forecast: generates forecast
- Command Registry → Trading Plan: generates plan
- Command Registry → Broker Flow Analysis: runs analysis
- Command Registry → Bandarmology Engine: runs analysis
- Broker Flow Analysis → Stockbit Client: fetches broker data
- Bandarmology Engine → Stockbit Client: uses broker data
- Stockbit Client → Stockbit Service: requests broker data
- Command Registry → Chart Generation: generates charts
- SAPTA Engine → SAPTA Modules: runs modules
- SAPTA Engine → SAPTA ML: applies predictions