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.

Warmup nits: date-time start_date, a zero cap that grows, Instantly note

Ethan2c57f5909e63
diff --git a/harvey/cli.py b/harvey/cli.py
index 20c9cd2..a881bf5 100644
--- a/harvey/cli.py
+++ b/harvey/cli.py
@@ -732,7 +732,8 @@ def cmd_warmup(args):
d.check_dmarc(domain)]),
("Reputation", [d.check_domain_age(domain), *d.check_domain_blocklists(domain)]
+ (d.check_ip_blocklists(smtp_host) if smtp_host else [])),
- ("Warmup & sending", [d.check_warmup(email.warmup, email.max_daily_sends),
+ ("Warmup & sending", [d.check_warmup(email.warmup, email.max_daily_sends,
+ provider=email.provider),
d.check_send_history(*asyncio.run(_history()))]),
]
icons = {d.OK: "OK ", d.WARN: "WARN", d.FAIL: "FAIL", d.INFO: "info"}
diff --git a/harvey/config.py b/harvey/config.py
index feefec9..59dca85 100644
--- a/harvey/config.py
+++ b/harvey/config.py
@@ -87,10 +87,16 @@ class WarmupConfig(BaseModel):
@field_validator("start_date", "dkim_selector", mode="before")
@classmethod
- def _blank_is_empty(cls, v):
- # YAML reads an unquoted 2026-10-01 as a date.
+ def _blank_is_empty(cls, v, info):
+ if v is None:
+ return ""
+ if info.field_name != "start_date":
+ return v
+ # YAML reads an unquoted 2026-10-01 as a date (with a time, a datetime).
if isinstance(v, _date):
- return v.isoformat()
+ return (v.date() if hasattr(v, "date") and callable(v.date) else v).isoformat()
+ if isinstance(v, str) and len(v.strip()) > 10 and v.strip()[10] in " T":
+ return v.strip()[:10] # "2026-10-01 09:00": the day is what counts
return "" if v is None else v
@field_validator("min_days", "start_sends", "daily_increase", mode="before")
diff --git a/harvey/deliverability.py b/harvey/deliverability.py
index 4f64578..7e50f6f 100644
--- a/harvey/deliverability.py
+++ b/harvey/deliverability.py
@@ -216,7 +216,11 @@ def check_ip_blocklists(smtp_host: str) -> list[Check]:
return _blocklist_checks(reversed_ip, f"IP {ips[0]}", IP_BLOCKLISTS)
-def check_warmup(warmup, ceiling: int, today: date | None = None) -> Check:
+def check_warmup(warmup, ceiling: int, today: date | None = None,
+ provider: str = "") -> Check:
+ if provider == "instantly":
+ return Check("Warmup", INFO, "Harvey's ramp doesn't apply to Instantly: use Instantly's "
+ "own warmup and per-account daily limit.")
days = warmup.days_in(today)
if days is None:
return Check("Warmup", WARN, "No warmup start date set, so sends aren't ramped. Once your warmup "
@@ -227,7 +231,7 @@ def check_warmup(warmup, ceiling: int, today: date | None = None) -> Check:
return Check("Warmup", FAIL, f"Day {days} of {warmup.min_days} - warming only, no cold email "
f"until {warmup.min_days - days} more day(s) pass.")
cap = warmup.daily_cap(ceiling, today)
- if cap <= 0:
+ if cap <= 0 and warmup.daily_increase <= 0:
return Check("Warmup", WARN, "Today's cold cap is 0 and won't grow: raise start_sends "
"or daily_increase.")
if cap >= ceiling:
diff --git a/tests/test_warmup.py b/tests/test_warmup.py
index 0cb45a5..b8266c2 100644
--- a/tests/test_warmup.py
+++ b/tests/test_warmup.py
@@ -214,3 +214,12 @@ def test_a_ramp_that_never_grows_says_so():
@pytest.mark.parametrize("domain", ["xn--mnchen-3ya.de", "shop.xn--p1ai"])
def test_punycode_domains_are_checked(domain):
assert d.DOMAIN_RE.match(domain)
+
+
+def test_timestamp_start_date_and_instantly_note():
+ import yaml
+ email = EmailChannelConfig(**yaml.safe_load("warmup:\n start_date: 2026-10-01 09:00\n"))
+ assert email.warmup.start_date == "2026-10-01"
+ w = WarmupConfig(start_date="2026-10-01", min_days=0, start_sends=0, daily_increase=2)
+ assert d.check_warmup(w, 30, date(2026, 10, 1)).status != d.WARN # 0 today, grows
+ assert d.check_warmup(w, 30, provider="instantly").status == d.INFO