Skip to content

About

Local-first scout for Peruvian government AI/data procurement — aggregates open tenders from SEACE/OECE, scores them against your CV-extracted profile, and drafts proposals with Claude

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

gov-ai-scout

Finds the Peruvian government contracts worth bidding on — it pulls every open tender from SEACE/OECE daily, ranks them against your CV, and drafts the proposal.

Encuentra las licitaciones del Estado peruano que valen la pena — descarga a diario los procesos abiertos de SEACE/OECE, los puntúa según tu CV y te redacta la propuesta.


Local-first web app for discovering, scoring, and tracking Peruvian government procurement opportunities in AI, analytics, BI, data science, and digital transformation — with Claude-powered tender analysis and Spanish proposal drafting.

Built for independent consultants (persona natural) and small firms (MYPE) who want to bid on government work without manually trawling SEACE every day.

Dashboard — radar counters, filters, and scored tender cards

On first launch, a one-time onboarding extracts your consultant profile from your CV so every AI analysis and generated proposal is written around your real background:

First-run CV onboarding screen

The floating AI Chat button opens a procurement assistant with quick queries for RNP, procedure types, and bidding eligibility:

Procurement assistant chat panel

What it does

  • Aggregates three public data sources into one database:

    Source What it carries Why it matters
    OECE monthly OCDS CSV bundles All procedure methods (Licitación/Concurso Público, Subasta Inversa, Contratación Directa, …) The main open-tender pipeline
    SEACE ≤8 UIT public JSON API Menor cuantía / contrataciones menores Directly quotable by persona natural; short 3–5 day windows
    convocatoriasdetrabajo.com CI / CAS tech openings Persona-natural-friendly individual contracts

    The first two are official government open-data endpoints. The third is a privately-run aggregator of public CAS/CI convocatorias, fetched respectfully: homepage only (permitted by its robots.txt), at most ~2 requests/day, stored locally and never republished.

  • Stores the full open pool, flags the tech subset — dashboard shows "all open" vs "tech-relevant" radar counters

  • Scores every tender against a configurable consultant profile (skills, domains, legal status)

  • Classifies bidability: persona natural / MYPE / empresa

  • AI features via the Claude API: go/no-go analysis, procurement chat, propuesta técnica outlines and submission checklists in Spanish

  • Tracker for saved tenders with lifecycle status, go/no-go decisions, and notes

  • Auto-sync on dashboard load when data is older than 12 hours, with live per-source progress

Stack

Next.js 14 (App Router, TypeScript) · Tailwind CSS · Supabase Postgres (local, via CLI + Docker) · Anthropic SDK

Everything runs on your machine. There is no hosted deployment, no auth, no telemetry — your tracked tenders and API key never leave your computer (except calls to the Anthropic API and the public data sources).

Quick start

Prerequisites: Node 18+, Docker Desktop, Supabase CLI, an Anthropic API key.

git clone <this-repo> && cd gov-ai-scout
npm install

# 1. Start the local database (Docker must be running)
supabase start

# 2. Configure environment
cp .env.example .env.local
# fill in the Supabase keys printed by `supabase start` and your Anthropic key

# 3. Run
npm run dev

Open http://localhost:3000. On first launch you'll be asked to upload your CV (PDF or pasted text) so the AI features are grounded in your background — skippable, and re-runnable from Settings. The app then syncs all three sources automatically (~1 minute off-peak, longer when the government servers are busy — the banner shows per-source progress). Supabase Studio is at http://localhost:54323.

Open the app every 2–3 days at minimum: menor cuantía quote windows last only ~3–5 days, and the sync only captures what is open at the moment it runs.

Make it yours

  • Consultant profile — on first launch the dashboard asks for your CV (PDF or pasted text), extracts a structured profile via Claude, and saves it locally. Every AI prompt (analysis, chat, generated proposals) is built from it. Re-run anytime from Settings → "Clear profile & re-upload CV". lib/profile.ts holds only the pre-onboarding fallback.
  • Scoring — the ranking keywords are generated from your CV too (scoringKeywords on the extracted profile), so uploading a CV retunes both the AI prose and the match scores; all stored tenders re-score instantly. Structural rules (bid-type bonus, value sweet spot, deadline penalties) live in lib/ai/scoring.ts.
  • Sync window — OCDS_START_DATE in .env.local controls how far back the OECE monthly bundles are fetched.

Documentation

  • CLAUDE.md — full architecture reference: data flow, database schema, API routes, constraints. Read this before contributing.
  • PRD.md — product requirements and scope.

Known limitations

  • For OECE rows, deadline is the end of the question period (the submission cutoff is not in the public CSV export); SEACE ≤8 UIT rows carry the real quote cutoff.
  • OECE redacts the referential value on many rows (value = 0); the real amount is in the tender documents on SEACE.
  • Tenders are never flipped to closed when deadlines pass; queries filter by deadline instead.
  • PDF export and a recurring cron scheduler are not implemented.

Contributing

Issues and PRs welcome — see CONTRIBUTING.md for setup, ground rules, and a list of good first contributions. In short: keep the local-first model, be respectful to the data sources, and update CLAUDE.md alongside any ingestion or schema change.

License

MIT — see LICENSE.

About

Local-first scout for Peruvian government AI/data procurement — aggregates open tenders from SEACE/OECE, scores them against your CV-extracted profile, and drafts proposals with Claude

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages