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.
Add an optional prospect_country to the Precleared settings
Gabe AO79137656f05e
diff --git a/harvey/config.py b/harvey/config.pyindex 36d866f..d94653e 100644--- a/harvey/config.py+++ b/harvey/config.py@@ -126,6 +126,11 @@ class PreclearedConfig(BaseModel):# is "unknown"; use "published" only if yours are copied from the# businesses' own websites.address_source: str = "unknown"+ # Optional: the country your prospects are in (two letters, e.g. "US"),+ # if they are all in one. Precleared uses it only when it can't work out+ # the recipient's country from the address, company records or the+ # company's website. Leave empty if your prospects are spread out.+ prospect_country: str = ""@field_validator("sender_country", mode="before")@classmethod@@ -143,6 +148,18 @@ class PreclearedConfig(BaseModel):)return v+ @field_validator("prospect_country", mode="before")+ @classmethod+ def _valid_prospect_country(cls, v) -> str:+ v = str(v or "").strip().upper()+ v = {"UK": "GB", "USA": "US"}.get(v, v)+ if v and not (len(v) == 2 and v.isascii() and v.isalpha()):+ raise ValueError(+ f"'{v}' is not a valid prospect_country. Use a two-letter "+ "country code such as US or GB, or leave it empty."+ )+ return v+@model_validator(mode="after")def _country_when_enabled(self):if self.enabled and self.sender_country not in ("GB", "US"):