# vivekn5500/autonomous-study-planner architecture

> Architecture diagram of the GitHub repository vivekn5500/autonomous-study-planner, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vivekn5500/autonomous-study-planner
- Repository: https://github.com/vivekn5500/autonomous-study-planner

## Overview

This is an AI study planner with a Streamlit interface and a separate command-line example. The principal workflow takes study goals and constraints, then runs planning, prioritization, schedule generation, and review before presenting an optimized plan. Each agent submits its prompt through a shared HTTP client to a local Ollama endpoint. The repository also contains time-allocation and schedule-formatting helpers, but the sampled files do not show them used by either entry point. Connections reflect calls visible in the excerpts; no storage layer is shown.

Main entry points: [`app.py`](https://github.com/vivekn5500/autonomous-study-planner/blob/main/app.py) (Study Planner UI), [`main.py`](https://github.com/vivekn5500/autonomous-study-planner/blob/main/main.py) (CLI Example), [`agents.py`](https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py) (LLM Request Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_streamlit["Study Planner UI<br/>[app.py]"]
  node_cli["CLI Example<br/>[main.py]"]
end

subgraph group_workflow["Planning Workflow"]
  node_planner["Goal Planner<br/>[agents.py]"]
  node_analyzer["Priority Analyzer<br/>[agents.py]"]
  node_generator["Schedule Generator<br/>[agents.py]"]
  node_reviewer["Plan Reviewer<br/>[agents.py]"]
  node_schedule_helpers["Schedule Helpers<br/>[tools.py]"]
end

subgraph group_integration["LLM Integration"]
  node_llm_client["LLM Request Client<br/>[agents.py]"]
end

node_student(("Student"))
node_ollama["Ollama API"]

node_student -->|"enters goals"| node_streamlit
node_streamlit -->|"calls"| node_planner
node_planner -->|"requests generation"| node_llm_client
node_llm_client -->|"posts prompt"| node_ollama
node_streamlit -->|"calls with plan"| node_analyzer
node_analyzer -->|"requests generation"| node_llm_client
node_streamlit -->|"calls with analysis"| node_generator
node_generator -->|"requests generation"| node_llm_client
node_streamlit -->|"calls with schedule"| node_reviewer
node_reviewer -->|"requests generation"| node_llm_client
node_streamlit -->|"displays result"| node_student
node_cli -->|"calls"| node_planner
node_cli -->|"calls with plan"| node_analyzer
node_cli -->|"calls with analysis"| node_generator
node_cli -->|"calls with schedule"| node_reviewer
node_cli -->|"prints result"| node_student

click node_streamlit "https://github.com/vivekn5500/autonomous-study-planner/blob/main/app.py"
click node_cli "https://github.com/vivekn5500/autonomous-study-planner/blob/main/main.py"
click node_planner "https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py"
click node_analyzer "https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py"
click node_generator "https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py"
click node_reviewer "https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py"
click node_llm_client "https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py"
click node_schedule_helpers "https://github.com/vivekn5500/autonomous-study-planner/blob/main/tools.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_streamlit,node_cli toneBlue
class node_planner,node_analyzer,node_generator,node_reviewer,node_schedule_helpers toneAmber
class node_llm_client,node_ollama toneMint
class node_student toneIndigo
```

## Components

### User Interfaces

- [Study Planner UI](https://github.com/vivekn5500/autonomous-study-planner/blob/main/app.py): `app.py`
- [CLI Example](https://github.com/vivekn5500/autonomous-study-planner/blob/main/main.py): `main.py`

### Planning Workflow

- [Goal Planner](https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py): `agents.py`
- [Priority Analyzer](https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py): `agents.py`
- [Schedule Generator](https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py): `agents.py`
- [Plan Reviewer](https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py): `agents.py`
- [Schedule Helpers](https://github.com/vivekn5500/autonomous-study-planner/blob/main/tools.py): `tools.py`

### LLM Integration

- [LLM Request Client](https://github.com/vivekn5500/autonomous-study-planner/blob/main/agents.py): `agents.py`

### Other components

- **Student**
- **Ollama API**

## Connections

- Student → Study Planner UI: enters goals (evidence: `app.py`)
- Study Planner UI → Goal Planner: calls (evidence: `app.py`)
- Goal Planner → LLM Request Client: requests generation (evidence: `agents.py`)
- LLM Request Client → Ollama API: posts prompt (evidence: `agents.py`)
- Study Planner UI → Priority Analyzer: calls with plan (evidence: `app.py`)
- Priority Analyzer → LLM Request Client: requests generation (evidence: `agents.py`)
- Study Planner UI → Schedule Generator: calls with analysis (evidence: `app.py`)
- Schedule Generator → LLM Request Client: requests generation (evidence: `agents.py`)
- Study Planner UI → Plan Reviewer: calls with schedule (evidence: `app.py`)
- Plan Reviewer → LLM Request Client: requests generation (evidence: `agents.py`)
- Study Planner UI → Student: displays result (evidence: `app.py`)
- CLI Example → Goal Planner: calls (evidence: `main.py`)
- CLI Example → Priority Analyzer: calls with plan (evidence: `main.py`)
- CLI Example → Schedule Generator: calls with analysis (evidence: `main.py`)
- CLI Example → Plan Reviewer: calls with schedule (evidence: `main.py`)
- CLI Example → Student: prints result (evidence: `main.py`)
