Lugus is a financial research application that combines agent-assisted chat, company research, historical price charts, and reported financial data. A native macOS desktop app sits on top of a Rust backend, with conversations and retrieved evidence stored locally in SQLite.
Alpha — not ready for production use. Lugus is under active development. Expect updates and breaking changes to features, APIs, configuration, and stored-data formats. Backward compatibility is not guaranteed during the alpha.
The research harness roadmap records the completed comparison foundation and the next work on tracked thesis claims, evidence-backed reviews, and runtime reanalysis, including code locations and acceptance criteria for contributors and agents.
- Tracks USD stock, ETF and cash portfolios from transactions or opening lots, with FIFO P&L, allocation charts and historical performance against the S&P 500 total-return index.
- Accepts research requests in chat, with an optional company or ticker hint.
- Resolves company identities and retrieves evidence through configured data providers.
- Displays saved historical price charts and reported financial metrics alongside conversations.
- Preserves source identifiers, reporting periods, units, retrieval history, and missing or conflicting observations.
- Reopens saved conversations and research offline without automatically refreshing financial data.
- Supports Codex and Claude Code through separate agent runtime adapters.
Agent configuration and financial data providers are separate: an authenticated agent alone does not supply company data. The bundled provider plugins cover SEC EDGAR filings and fundamentals, and daily market data through yfinance.
| Component | Responsibility |
|---|---|
| lugus-desktop | Tauri desktop shell and TypeScript research interface. |
| lugus-app | Framework-independent application host, research preparation, durable conversations, evidence, and views. |
| lugus-portfolio | Exact decimal accounting, FIFO lots, daily valuation and cash-flow-adjusted performance. |
| lugus-agent | Agent runtime adapters, tool execution boundaries, and investment review workflows. |
| lugus-financial | Financial domain types, provider capabilities, ingestion, provenance, and SQLite persistence. |
The backend separates pure domain validation and selection functions from process execution, storage, and application coordination. Agent runtimes use provider-neutral interfaces; financial plugins run as external processes over a versioned JSON-RPC protocol. Vendor SDKs stay outside the financial core. Adding a provider still requires implementing the relevant capabilities and any necessary identifier or binding adapters.
In desktop research, application code validates the interpreted request and retrieves evidence before analysis. The analysis agent reads the saved evidence through scoped tools. Local storage does not imply local model inference: the configured agent CLI may send prompts, context, and tool results to its model provider.
Prerequisites:
- macOS 13 or newer and Xcode Command Line Tools.
- Rust with Cargo and support for the Rust 2024 edition.
- Node.js 22.12 or newer and npm.
From the repository root:
cd lugus-desktop
npm ci
npm run tauri -- build --bundles app
open src-tauri/target/release/bundle/macos/Lugus.appThe bundle path assumes the default Cargo target directory. The desktop is a separate Cargo workspace and is not built by root workspace commands.
On first launch, Lugus creates configuration and local storage under its macOS application-data directory, normally ~/Library/Application Support/dev.lugus.desktop/. The initial configuration has no financial data providers.
Follow the desktop configuration guide to configure an authenticated agent CLI and a dedicated runtime directory outside any Git repository. Select the agent in Settings. The supported CLI versions and runtime options are documented in that guide.
Install and configure the providers needed for your research:
- SEC EDGAR: company resolution, filings, and fundamentals. Requires its Python environment and your own application/contact identity.
- yfinance: historical daily market data. Requires its separate Python environment and pinned dependencies.
See provider configuration for manifest entries and installation commands. Agent selection is available in Settings; executable paths, models, and provider configuration currently use local JSON files.
To open existing research without agent or provider execution, follow the offline instructions.
From the repository root, check the Rust backend:
cargo test --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all -- --checkRust integration tests require python3 on PATH for subprocess fixtures. Component guides describe additional plugin tests and optional live checks.
Check the desktop separately:
cd lugus-desktop
npm ci
npm test
npm run build
cargo test --manifest-path src-tauri/Cargo.toml --testsThe application guide includes a synthetic CLI workflow for exercising the backend without model credentials or live financial sources. The desktop test guide describes native QA fixtures.
Lugus is an evolving alpha research surface. Retrieval depends on explicitly configured provider capabilities and source coverage. Charts show historical observations, not live quotes. Reported metrics preserve source periods and units; they do not constitute reconciled financial statements or derived quarterly values.
There is no automatic background data refresh, full filing-document renderer, or complete provider/model configuration UI. See the desktop guide for further limitations and the component documentation for detailed contracts.
The desktop company workbench includes Compare companies, a financial-data workflow that runs without an agent or model. It resolves two companies, captures annual US-GAAP/USD observations, and saves revenue, net income, revenue growth, and net margin with inspectable sources and exact calculations. Creating or refreshing explicitly retrieves evidence; opening saved versions reads local databases. Refresh creates a new immutable version.
Choose either contract revenue excluding assessed tax (RevenueFromContractWithCustomerExcludingAssessedTax) or reported revenues (Revenues); the harness never substitutes between them. Comparisons cover one to five actual fiscal periods (three by default), 350–380 days each, from FY 10-K/10-K/A disclosures within the existing ten-year retrieval window. This is current disclosures for historical periods, not a reconstruction of what investors knew at a past date. Missing/conflicting data and unavailable ratios remain explicit. Structured investment-thesis reviews and model-based package assessments are planned separately.