Skip to content

Commit 756171b

Browse files
committed
docs: update CLAUDE.md
1 parent c2685a9 commit 756171b

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

โ€ŽCLAUDE.mdโ€Ž

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,18 @@ make start # Kill previous instances and start LiteLLM + Balatro
4242

4343
## Architecture
4444

45-
**LLMBot (`src/balatrollm/llm.py`)**: Main bot with Config dataclass, TemplateManager integration, LLM decision-making, response history tracking, and BalatroClient integration.
45+
**LLMBot (`src/balatrollm/bot.py`)**: Main bot class with Config integration, TemplateManager, LLM decision-making, response history tracking, BalatroClient integration, proxy validation, model validation, and project version management.
4646

47-
**CLI Entry Point (`src/balatrollm/__init__.py`)**: Command-line interface with argument parsing, environment variable support, proxy validation, and async game execution.
47+
**CLI Entry Point (`src/balatrollm/__init__.py`)**: Command-line interface with argument parsing, environment variable support, configuration validation, and async game execution.
4848

49-
**Template System (`src/balatrollm/templates/`)**: Strategy-based organization:
49+
**Configuration (`src/balatrollm/config.py`)**: Config dataclass handling model settings, proxy URLs, bot parameters, and environment variable loading.
50+
51+
**Template System (`src/balatrollm/templates.py`)**: TemplateManager class for Jinja2-based strategy templates and tool loading.
52+
53+
**Data Collection (`src/balatrollm/data_collection.py`)**: RunDataCollector for game execution logging, performance tracking, and run data organization.
54+
55+
56+
**Template Strategies (`src/balatrollm/templates/`)**: Strategy-based organization:
5057
- `default/`: Conservative strategy (financial discipline)
5158
- `aggressive/`: High-risk, high-reward strategy
5259

@@ -83,8 +90,11 @@ Uses Ruff (linting/formatting), basedpyright (type checking), pytest (testing),
8390

8491
```
8592
src/balatrollm/
86-
โ”œโ”€โ”€ __init__.py # CLI entry point
87-
โ”œโ”€โ”€ llm.py # Core LLMBot with Config and TemplateManager
93+
โ”œโ”€โ”€ __init__.py # CLI entry point with argument parsing
94+
โ”œโ”€โ”€ bot.py # Main LLMBot class with game logic
95+
โ”œโ”€โ”€ config.py # Configuration dataclass
96+
โ”œโ”€โ”€ templates.py # TemplateManager for Jinja2 templates
97+
โ”œโ”€โ”€ data_collection.py # RunDataCollector for game logging
8898
โ””โ”€โ”€ templates/ # Strategy-based templates
8999
โ”œโ”€โ”€ default/ # Conservative strategy
90100
โ””โ”€โ”€ aggressive/ # High-risk strategy

0 commit comments

Comments
ย (0)
โšก