Decision Simulator - AI-Powered Decision Analysis Engine built with DSPy and LM Studio.
# Install dependencies (including UI)
uv sync --extra uiCopy .env.example to .env and configure:
LM_STUDIO_URL=http://localhost:1234/v1
MODEL_NAME=google/gemma-4-26b-a4b
MAX_ITERATIONS=3
SIGNAL_LOSS_THRESHOLD=3Requirements:
- Python 3.11+
- LM Studio running with local server enabled on port 1234
- A text-only model loaded in LM Studio
Run analysis directly from the command line:
uv run simulate-decision "The concept of 'Justice'"Custom iterations:
uv run simulate-decision "What is consciousness?" --iterations 5Start the backend server (Terminal 1):
uv run simulate-decision-serverStart the UI (Terminal 2):
cd web && npm run devThen open http://localhost:8501 in your browser.
SimulateDecision uses a Policy-Driven RL approach with three cognitive stages:
- Deconstruct - Break concepts into atomic components
- Verify - Filter via axiomatic validation (environment/reward)
- Reconstruct - Build technical blueprint from verified axioms
The FailureAnalyzer acts as a policy optimizer, generating correction vectors when verification fails.