Skip to content

Autonomous AI sales agent powered by Claude Code or Codex. Finds prospects, writes cold emails, sends campaigns, handles replies, books meetings. No API keys needed — runs on your Claude or Codex subscriptions.

Fix: auto-create data directory before initializing SQLite DB

Ethana691b93bbf3e
diff --git a/harvey/state.py b/harvey/state.py
index ea5f8c9..a8014ba 100644
--- a/harvey/state.py
+++ b/harvey/state.py
@@ -24,6 +24,7 @@ class StateManager:
async def init_db(self):
"""Create all tables if they don't exist."""
+ Path(self.db_path).parent.mkdir(parents=True, exist_ok=True)
async with aiosqlite.connect(self.db_path) as db:
await db.executescript("""
CREATE TABLE IF NOT EXISTS prospects (