Skip to content

Getting Started

Install the latest published package for normal use:

Terminal window
python -m pip install agentic-thesis

The published package can trail development on main. To evaluate the current repository implementation:

Terminal window
git clone https://github.com/suvimatt/agentic-thesis.git
cd agentic-thesis
python3 -m venv .venv
.venv/bin/python -m pip install -e '.[test]'

Do not copy an old version number from a tutorial. Use PyPI for the latest published version and the repository history for unreleased behavior.

Create ~/.agentic-thesis/.env or a .env file in the directory where you start the application:

# Reasoning and reranking
OPENAI_API_KEY=your-key
OPENAI_BASE_URL=https://api.openai.com/v1
AGENTIC_THESIS_MODEL=gpt-5-mini
# Embeddings
EMBEDDING_API_KEY=your-key
EMBEDDING_BASE_URL=https://api.openai.com/v1
AGENTIC_THESIS_EMBEDDING_MODEL=text-embedding-3-small
AGENTIC_THESIS_EMBEDDING_BATCH_SIZE=1
AGENTIC_THESIS_EMBEDDING_MAX_TOKENS=256
# Required only for SEC monitoring
AGENTIC_THESIS_SEC_USER_AGENT="AgenticThesis your-email@example.com"

OPENAI_BASE_URL is optional when using the default OpenAI API. The other model and embedding credentials are required by the packaged CLI. The conservative embedding batch and token defaults work with providers that expose smaller OpenAI-compatible limits; raise them only after verifying your provider. SEC automated clients must identify themselves; use a real product/name and contact email.

For the published package:

Terminal window
agentic-thesis serve

Open http://127.0.0.1:8000. The default data directory is ~/.agentic-thesis; the selected directory contains thesis state, run history, checkpoints, artifacts, and the embedded vector index.

v1.1 intentionally starts with a clean schema. Use a new data directory rather than a directory created by an earlier or prerelease version.

  1. Create a company thesis in the browser.
  2. Write one specific claim and at least one fact that would falsify it.
  3. Add a disclosure manually, or configure an SEC/issuer IR monitor.
  4. Open the Radar Inbox after a new event is collected.
  5. Inspect the exact source evidence and approve, edit, or reject the proposed update.
  6. Confirm that only an approved update appears in revision history.
Terminal window
.venv/bin/pytest -q -p no:cacheprovider

The deterministic suite replaces external retrieval and model calls where appropriate. It verifies the engine’s state and evidence contracts; it does not measure live model accuracy.