English | 简体中文 | Documentation
AgenticThesis is an open-source AI agent that tests your investment thesis—why you own a stock—against new company disclosures. Every proposed change links to exact source evidence and waits for Human Review before becoming authoritative history.
Status:
maincontains the v1.1 alpha implementation. The latest published package may trail the repository. Alpha schema upgrades intentionally require a fresh data directory.
You write down why a business deserves to remain in your portfolio or watchlist—and what observable facts would prove each reason wrong. AgenticThesis monitors selected SEC and issuer IR sources, preserves what they published, finds claim-relevant evidence, and proposes a reviewable update.
It does not predict prices, value securities, size positions, or issue Buy/Sell/Hold instructions. The investor owns the judgment.
An earlier measured run compared three saved beliefs with a new Apple filing:
| Saved belief | New company evidence | Proposed result |
|---|---|---|
| Services improve Apple's business economics | Services gross margin remained materially above Products and Services revenue grew | Supported |
| Greater China demand remains steady | Greater China sales declined, driven mainly by lower iPhone and iPad sales | Possibly invalidated |
| Supplier concentration will not stop production | Concentration remained disclosed, without evidence that production had stopped | Weakened |
Each result retained exact source evidence. None became thesis history until approval. This is an illustrative historical run, not investment advice or a statement about current Apple fundamentals.
Install the latest published package:
python -m pip install agentic-thesisConfigure the reasoning and embedding endpoints in ~/.agentic-thesis/.env:
OPENAI_API_KEY=your-key
AGENTIC_THESIS_MODEL=gpt-5-mini
EMBEDDING_API_KEY=your-key
EMBEDDING_BASE_URL=https://api.openai.com/v1
AGENTIC_THESIS_EMBEDDING_MODEL=text-embedding-3-small
# Required only for SEC monitoring
AGENTIC_THESIS_SEC_USER_AGENT="AgenticThesis your-email@example.com"Start the self-hosted application:
agentic-thesis serveOpen http://127.0.0.1:8000. For development against current main:
git clone https://github.com/suvimatt/agentic-thesis.git
cd agentic-thesis
python3 -m venv .venv
.venv/bin/python -m pip install -e '.[test]'
.venv/bin/pytest -q -p no:cacheprovider
.venv/bin/agentic-thesis serve --data-dir ~/.agentic-thesis-v11-alphaSee the 5-minute setup for provider URLs, SEC configuration, and the first evidence cycle.
- Authoritative collection: SEC submissions and explicitly trusted issuer IR pages, including selected filing artifacts, PDFs, presentations, and official text transcripts.
- Immutable provenance: original bytes, canonical source URLs, SHA-256 fingerprints, parser outcomes, fetch failures, and exact page/character locators.
- Thesis-aware Radar: versioned deterministic routing against claims and falsifiers before spending a model call.
- Bounded evidence: structure-aware BM25/vector retrieval, conditional reranking, whole-span Context packing, and exact citation validation.
- Human-owned history: structured four-state thesis deltas that remain non-authoritative until approval.
- Recoverable execution: checkpoint/resume, durable event replay, immutable revisions, and compare-and-swap conflict protection.
One application-owned LangGraph coordinates the workflow. Deterministic code owns parsing, retrieval fusion, citation validation, Radar routing, and version commits; model work is limited to embeddings, conditional reranking, and structured thesis comparison.
The same Python distribution exposes:
AgenticThesisEnginefor Python applications;agentic-thesis servefor the local browser UI and FastAPI service.
- Getting Started
- Core Workflow
- Python Engine
- HTTP API and CLI
- Operations
- Architecture
- Evaluation and Limits
The runtime FastAPI /docs page remains the exact HTTP endpoint/schema reference for the installed version.
AgenticThesis maintains company-fundamentals theses. Valuation, portfolio actions, and investment decisions remain outside the engine. Secondary sources may create verification leads but cannot independently authorize thesis history.
Licensed under GNU Affero General Public License v3.0. Bugs and focused proposals belong in GitHub Issues.
For the complete evidence, operations, and contribution contracts, use the documentation site.