Argus is a B2B prospecting platform that combines Linkup's web intelligence with GFS (Git For database Systems) to build a versioned, auditable pipeline of prospect discovery. Every search is committed to GFS — giving you time-travel, schema diff, and comparison across your entire prospecting history, directly in the database.
Compare view: schema diff shows 5 new columns Linkup returned (open_roles, engineering_team_size, ci_cd_tools, containerization, deployment_targets). Data diff shows net-new companies ready to migrate into the contacts DB.
1. SEARCH Type an intent in natural language
→ Linkup runs a deep agentic search (~60s)
→ Returns structured company records with confirmed signals
→ Results committed to GFS as an immutable snapshot
2. COMPARE Select any two searches
→ Schema diff: which new columns appeared?
→ Data diff: which companies were added, removed, or changed?
→ All reads from static DB cache — no GFS checkout needed
3. SELECT Pick rows and new columns from the diff
→ LLM generates a SQL migration script for review (informational)
4. MIGRATE Click "run migration →"
→ Reads rows from results_json cache (no GFS dependency)
→ Known fields upserted into Contact model columns
→ Extra signals merged into contact.extra_fields JSON
→ Contacts DB updated, sidebar count increments
Linkup is not a keyword search engine. It runs a multi-step agentic workflow that reads job postings, engineering blogs, company pages, and LinkedIn to extract confirmed, evidence-backed company data. You write a prospecting hypothesis in natural language and Linkup returns structured company records.
Argus uses Linkup's structured output type with a typed Pydantic schema — so results arrive as a clean list of company objects. Any signal Linkup finds beyond the core fields is captured in extra_signals and flattened into its own column in GFS:
class _CompanyExtract(BaseModel):
name: str
domain: Optional[str]
employee_count: Optional[int]
country: Optional[str]
technologies: list[str] # ["postgresql", "github-actions", "kubernetes"]
funding_stage: Optional[str]
description: Optional[str]
sources: list[str] # evidence URLs
extra_signals: dict[str, Any] # open_roles, ci_cd_tools, containerization, ...extra_signals is flattened into the top-level company dict before storage, so each key becomes its own GFS column. Different searches return different signals — GFS handles schema evolution automatically.
Every search commits the entire results table state to GFS. This gives you:
- Time travel: click any past search in the log and inspect the exact database state at that point
- Schema diff: see which new columns Linkup returned in a later search vs an earlier one
- Data diff: see which companies were added, removed, or had fields change across searches
- Immutability: each commit is a permanent, hash-addressed record — no row can be retroactively edited
| Layer | Technology |
|---|---|
| Backend | Python 3.12, FastAPI, SQLAlchemy (async), asyncpg, NullPool |
| Frontend | Next.js 14 (App Router), React Query, Tailwind CSS |
| Static DB | PostgreSQL 17 via Docker Compose — contacts + search metadata |
| GFS DB | PostgreSQL 17 via GFS-managed container — versioned results |
| LLM | Anthropic Claude or any Ollama Cloud model |
| Search | Linkup SDK — structured output, always deep |
| Versioning | GFS (Git For database Systems) — Docker-managed snapshots |
- Docker (required for GFS and the static DB)
- Python 3.12+
- Node.js 18+
- A Linkup API key → linkup.so
- An Anthropic API key or an Ollama Cloud API key
cp .env.example .envEdit .env and fill in your keys (see Environment Variables below).
docker-compose up -dThis starts the PostgreSQL instance on port 5432 that holds contacts and searches.
GFS must be initialized once per database. Install the gfs binary first, then:
# Initialize GFS with PostgreSQL 17
gfs init --database-provider postgres --database-version 17
# Create the baseline empty-schema commit
gfs commit -m "initial: empty schema"
# Verify — you should see the first commit
gfs logThe app auto-reads the database URL from
gfs status --output jsonat runtime. You never need to hardcode a port — GFS manages the container and dynamic port allocation.
cd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000The backend auto-creates all tables on first startup. No manual migration needed.
cd frontend
npm install
npm run dev- App: http://localhost:3000
- API docs: http://localhost:8000/docs
cp .env.example .env| Variable | Required | Description |
|---|---|---|
LINKUP_API_KEY |
✅ | Linkup API key for prospect discovery |
STATIC_DATABASE_URL |
✅ | Postgres URL for contacts + search metadata (asyncpg driver) |
GFS_DATABASE_URL |
fallback | GFS DB URL — resolved at runtime via gfs status, this is fallback |
NEXT_PUBLIC_API_URL |
✅ | Backend URL visible to the browser (e.g. http://localhost:8000) |
LLM_PROVIDER |
✅ | claude or ollama_cloud |
ANTHROPIC_API_KEY |
if claude | Anthropic API key (Claude Sonnet) |
OLLAMA_API_KEY |
if ollama | Ollama Cloud API key |
OLLAMA_BASE_URL |
if ollama | Ollama Cloud endpoint — must be https://api.ollama.com |
OLLAMA_MODEL |
if ollama | Single model for all tasks, e.g. glm-5.1:cloud |
Getting
GFS_DATABASE_URL: GFS assigns a random host port every time it starts a container. Run:gfs status --output json \ | python3 -c "import sys, json; u = json.load(sys.stdin)['compute']['connection_string']; print(u.replace('postgresql://', 'postgresql+asyncpg://'))"The app reads this automatically at runtime via
gfs status. Only paste the result into.envas a static fallback.
Argus always calls Linkup with depth="deep" — multi-step agentic retrieval that cross-references job postings, engineering blogs, and company pages before returning results. Standard depth returns fewer confirmed signals; for a B2B prospecting tool where signal quality is the product, the latency cost (30–90s vs 5–15s) is acceptable.
Argus uses structured output with a Pydantic schema so Linkup's own LLM does the extraction — no secondary LLM parse step. The extra_signals dict captures any signals Linkup finds beyond the core fields:
class _CompanyExtract(BaseModel):
name: str
domain: Optional[str]
employee_count: Optional[int]
country: Optional[str]
technologies: list[str]
funding_stage: Optional[str]
description: Optional[str]
sources: list[str]
extra_signals: dict[str, Any] # open_roles, ci_cd_tools, containerization, ...After extraction, extra_signals is flattened into the top-level company dict. Each key becomes its own column in GFS — different searches produce different columns, and schema_sync.py handles schema evolution automatically via ALTER TABLE ADD COLUMN.
Four pre-built query templates in query_builder.py target specific ICP angles:
| Angle | What Linkup searches for |
|---|---|
migration_tool_user |
Companies using Liquibase or Flyway in CI/CD (confirmed in job postings or engineering blogs) |
regulated_byoc |
Fintech/Healthcare with data residency signals (SOC2, HIPAA, BYOC, AWS/GCP infra) |
dual_ci_complex_pipeline |
Companies simultaneously running 2+ CI tools + PostgreSQL/MySQL |
preview_env_architecture |
Docker/Kubernetes + GitHub Actions + ephemeral per-PR preview environments |
Each preset is a structured Role → Goal → Scope → Method → Extract prompt following Linkup's official prompting guide, and each instructs Linkup to populate extra_signals with any additional evidence found.
All LLM calls go through backend/app/services/llm.py which abstracts over Claude and Ollama Cloud. Two tasks use the LLM:
After a search or diff, the LLM receives the full result rows (all fields, including any extra_signals columns) and returns a structured analysis:
## SIGNALS 2-4 bullet observations — specific companies, tech stacks, funding stages
## TOP PICKS 3-5 companies to prioritize with one-line reasoning each
## WATCH LIST 1-3 companies with partial signals worth monitoring
## MIGRATE NOW Exact domains to migrate, prefixed ✓
The LLM receives the selected rows and new columns and streams a PostgreSQL migration script for review. The script shows what will happen but is not executed directly — clicking "run migration →" calls POST /migrate which reads from results_json and upserts via the SQLAlchemy ORM. This avoids SQL parsing fragility entirely.
-- Example of what the review script looks like:
ALTER TABLE contacts ADD COLUMN IF NOT EXISTS ci_cd_tools TEXT;
INSERT INTO contacts (name, domain, country, ..., migrated_at, created_at)
VALUES ('Finhub', 'finhub.io', 'USA', ..., NOW(), NOW())
ON CONFLICT (domain) DO UPDATE SET ...;Search uses no LLM — Linkup's
structuredoutput type handles extraction directly.
User types intent
↓
POST /research/search
↓
query_builder.build_linkup_query(intent)
→ 300-word deep research prompt with extra_signals instruction
↓
linkup_svc.discover_prospects(linkup_query)
→ Linkup: multi-step agentic search (~60s)
→ Returns _CompaniesExtract (structured JSON)
→ extra_signals flattened into each company dict
→ Deduplicated by domain
↓
static_db: INSERT INTO searches (intent, linkup_query, result_count, ...)
↓
schema_sync.sync_and_insert(companies, search_id, gfs_db)
→ CREATE TABLE IF NOT EXISTS results (id, search_id, name, domain, ...)
→ ALTER TABLE ADD COLUMN for any new columns
→ INSERT all rows
↓
gfs_service.commit("Search #N: <intent> — M results")
→ Returns hash e.g. "a3f7b2e"
↓
static_db: UPDATE searches SET
schema_snapshot = {"columns": [...], "count": M},
results_json = [{...}], ← full cache for fast reads
gfs_commit_hash = "a3f7b2e"
From the home page you can:
- View any search's results → served from
results_jsoncache, no GFS checkout needed - Compare → schema diff (missing columns in red, new in green) + data diff, ~5ms, pure SQL
- Migrate → LLM generates SQL for review →
POST /migratereadsresults_json, upserts via ORM - Time-travel →
POST /gfs/checkoutrestores GFS DB to that exact commit state
