Skip to main content

AgenticThesis

English | 简体中文 | Documentation

PyPI version LangGraph FastAPI Python 3.11+ AGPL-3.0 license GitHub stars

Let every new company report challenge your investment thesis.

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: main contains the v1.1 implementation. The PyPI badge shows the latest published package. Start v1.1 with a fresh data directory; prerelease data is not supported.

Why it exists

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.

A concrete Apple example

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.

Quick start

Install the latest published package:

python -m pip install agentic-thesis

Configure 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 serve

Open 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

See the 5-minute setup for provider URLs, SEC configuration, and the first evidence cycle.

What v1.1 provides

  • 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.

Architecture

AgenticThesis system architecture

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:

  • AgenticThesisEngine for Python applications;
  • agentic-thesis serve for the local browser UI and FastAPI service.

Documentation

The public API Reference is generated from FastAPI's OpenAPI schema. After starting the local service, http://127.0.0.1:8000/docs remains available as an instance-local API debugger.

Boundary and license

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentic_thesis-1.1.0.tar.gz (296.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_thesis-1.1.0-py3-none-any.whl (285.7 kB view details)

Uploaded Python 3

File details

Details for the file agentic_thesis-1.1.0.tar.gz.

File metadata

  • Download URL: agentic_thesis-1.1.0.tar.gz
  • Upload date:
  • Size: 296.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentic_thesis-1.1.0.tar.gz
Algorithm Hash digest
SHA256 cf30b4588a0aaa216a5ad853cc8cf777aea7057130a3a1bd5a731d6e77ecd409
MD5 2d24c4fe422462850531dbc859fcb4be
BLAKE2b-256 c1873e7b1db627677c31ef216332dfcf8751a2bee47a6c069020f4f896f4daa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_thesis-1.1.0.tar.gz:

Publisher: python-publish.yml on suvimatt/agentic-thesis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentic_thesis-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentic_thesis-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 285.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentic_thesis-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 105e36ec2b5c1ddc552c43c4c89bc05a7c24bc203b1940e88603a90978a290ef
MD5 9920489ac40f37a530b8a06342f23140
BLAKE2b-256 aa824e151b3b27162a49201598babed897962b776cf61dd3cf932f77a551dab9

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_thesis-1.1.0-py3-none-any.whl:

Publisher: python-publish.yml on suvimatt/agentic-thesis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

0.7.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page