Say what you want to build; get back a researched, evidence-checked plan: what already exists, how crowded it is, where you can win, a first step, a prototype and v1 plan with a technical spec, and a launch kit. Has its own interface: idea form, clarifying questions, a live research view and an HTML report.
Say what you want to build. Get back a researched, evidence-checked plan for how to build it.
[image: The web app during a run]
BuildPath is an agent. You describe an idea, in one line or a full brief. It plans its research, searches the web, Reddit, Hacker News and GitHub, reads the pages, checks every claim it extracts against the page it came from, studies the main competitors one by one, argues with its own plan, and writes a report you can act on: what already exists, how crowded it is, where you can win, your first step, a prototype plan, a v1 plan with a technical spec, and a launch kit.
It runs on free tiers: Gemini or Groq for the models, Tavily or DuckDuckGo for search, plus keyless Hacker News, GitHub and Jina Reader.
BuildPath keeps its own interface here (ADR 0007). Click it on the Agents page, or use Open its interface on this page. You get the same idea form, clarifying questions, live research view and report as buildpath serve, running on the lab:
agent:buildpath): queued, run on the worker, listed under "Past runs" with a replay (timeline, every LLM call, tokens, cost). Your own runs are listed in the interface under "Your runs". A finished run reopens with its result and files ().{
"$defs": {
"BuildPathSummary": {
"description": "What run lists and the page's result box show (`agent_output.summary`).",
"properties": {
"title": {
"default": "",
"title": "Title",
"type": "string"
},
"verdict": {
"default": "",
"title": "Verdict",
"type": "string"
},
"confidence": {
"default": "",
"title": "Confidence",
"type": "string"
},
"tldr": {
"default": "",
"title": "Tldr",
"type": "string"
},
"score": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Score"
},
"evidence": {
"default": "",
"title": "Evidence",
"type": "string"
},
"depth": {
"default": "",
"title": "Depth",
"type": "string"
},
"seconds": {
"default": 0,
"title": "Seconds",
"type": "integer"
},
"failed": {
"items": {
"type": "string"
},
"title": "Failed",
"type": "array"
},
"files": {
"items": {
"type": "string"
},
"title": "Files",
"type": "array"
},
"demo": {
"default": false,
"title": "Demo",
"type": "boolean"
}
},
"title": "BuildPathSummary",
"type": "object"
}
},
"properties": {
"summary": {
"$ref": "#/$defs/BuildPathSummary"
}
},
"required": [
"summary"
],
"title": "BuildPathOutput",
"type": "object"
}?run=<id>gpt-4o-mini for both thinking and reading pages, chosen for cost (roughly ₹3–6 for a quick run, ₹5–13 standard, ₹8–20 deep; gpt-4o was about 15× more). BuildPath's own Gemini/Groq client is used only standalone.backend/.env: TAVILY_API_KEY, SERPER_API_KEY, BRAVE_API_KEY, optional EXA_API_KEY (similar startups), GITHUB_TOKEN, JINA_API_KEY. DuckDuckGo, Hacker News and GitHub work without keys.quick in the lab. Each depth has a soft time budget and a cap on model calls (quick 12 min / 70 calls, standard 25 / 150, deep 35 / 260), and a failed run isn't retried automatically.report.html opens full-screen; report.md and trace.json download. All three are also on the run's replay page under "Files".POST /api/v1/agents/buildpath/runs with {"user_input": "<idea>", "inputs": {"depth": "quick", "fields": {"region": "India"}, "clarifications": [...]}}. Add "demo": true for a free offline run on canned data.The rest of this README describes BuildPath as a standalone tool (CLI, buildpath serve, Docker), which still works from this folder.
pip install -e .
buildpath serve --mock # then open http://127.0.0.1:8000
Demo mode runs the whole pipeline on canned data, slowed down so you can watch it: the route, the agent's thinking, every search and page, and the finished report. Every idea returns the same sample report, so add a free key (below) for real research.
One self-contained HTML file (works offline, light and dark, prints to PDF), plus Markdown and a full trace. Open examples/sample-report.html to see the format before installing anything (it's a demo-mode report, so the data is canned).
[image: Verdict and scorecard]
[image: Feature matrix]
your idea + inputs
1 Understand 2-4 sharp questions (or stated assumptions) -> research brief + keywords
2 Plan 5-9 research angles, queries routed to web / reddit / hackernews / github / companies
3 Research search -> pick diverse pages -> read them -> notes with verbatim quotes -> quotes checked
4 Find gaps tests its hypotheses, finds gaps and contradictions -> new searches -> back to 3
5 Competitors visits every competitor's site, studies the top ones page by page
6 Think market map -> people and wedges -> matrix, pricing, sizing -> build plan, spec, go-to-market, launch kit
7 Review filler check + critic -> rewrites the weakest sections -> verdict, scores, confidence capped by evidence
8 Report report.html, report.md, trace.json
Two model roles: a thinking model (planning, reflection, analysis) and a fast note-taking model (one call per page). Each role is a fallback chain: when one model's free daily quota runs out, the next request goes to the next model, often on another provider. Rate limits are shared across runs, so a server running several research jobs stays inside a free tier.
trace.json keeps everything the agent saw and decided.In the browser. buildpath serve, then open http://127.0.0.1:8000. Describe the idea, answer the questions or skip them, and watch the run: where it is on the route, what it is thinking, each search and page with how many claims checked out, competitors as they turn up, and the report assembling section by section. Runs keep going if you close the tab; reopen them from "Your runs". You can stop a run, and its research stays cached.
In the terminal. buildpath "I want to build ..." shows a live dashboard, then prints where the report is. --plain gives log lines instead, and --open opens the report when it's ready.
From Python.
import asyncio
from buildpath.config import Settings, load_env
from buildpath.models import IdeaInput
from buildpath.runner import execute
async def main():
load_env()
settings = Settings.from_env(depth="quick", out_dir="reports")
result = await execute(settings, IdeaInput("I want to build ...", {"region": "India"}))
print(result.run_dir / "report.html", result.state.summary.verdict if result.state.summary else "")
asyncio.run(main())
To follow a run as it happens, subscribe to its events: bus = EventBus(); bus.subscribe(print); set_bus(bus) (from buildpath.events) before calling execute.
Python 3.10+.
cd buildpath
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e . # or: pip install -r requirements.txt
cp .env.example .env # then add at least one LLM key
buildpath --check # shows the config and pings every model
| Key | Get it | Free tier (checked Oct 2026) | Needed? |
|---|---|---|---|
GEMINI_API_KEY | aistudio.google.com/apikey | Flash and Flash-Lite models are free; limits shown in AI Studio | one LLM key required |
GROQ_API_KEY | console.groq.com/keys | gpt-oss-120b / 20b: 30 req/min, 8K tokens/min, 200K tokens/day per model | (either works; both is best) |
TAVILY_API_KEY | app.tavily.com | 1,000 searches/month | recommended |
EXA_API_KEY | dashboard.exa.ai | free signup and monthly credits; adds "similar startups" search | optional |
GITHUB_TOKEN | github.com/settings/tokens (no scopes) | raises GitHub search to 30 req/min | optional |
JINA_API_KEY | jina.ai | the reader works keyless at ~20 pages/min | optional |
With both Gemini and Groq keys, the defaults are: thinking gemini-3.8-flash, then groq gpt-oss-120b, then gemini-2.5-flash; notes gemini-3.5-flash-lite, then groq gpt-oss-20b, then gemini-2.5-flash-lite. Override with SMART_MODELS and FAST_MODELS. OpenRouter :free models, Ollama and any OpenAI-compatible URL also work (see .env.example).
buildpath "I want to build a tool that ..."
buildpath -f my_idea.md --region India --users "kirana store owners" --skills "Python, React" --budget "zero"
buildpath -b examples/brief.example.yaml --depth deep --open
buildpath --mock "anything" # offline dry run with fake data
buildpath serve # the web app
Without pip install -e ., use python -m buildpath ... from this folder.
Extra inputs: --users --region --skills --budget --timeline --constraints --competitors --monetization --advantage --notes, or put them in a YAML brief (any extra keys are passed along too). Skills, budget and timeline directly shape the build plan.
| Depth | Research | Typical time on free tiers |
|---|---|---|
quick | about 10 searches and 15 pages, 2 competitors studied | a few minutes |
standard (default) | about 25 searches and 35 pages, a gap-filling round, 4 competitors studied, critic review | 10-15 minutes |
deep | about 50 searches and 60 pages, two gap-filling rounds, 6 competitors studied, two revisions | 20-30 minutes |
Most of the time goes to waiting on free-tier rate limits. Groq-only setups are slowest because of the 8K tokens/minute cap; a Gemini key speeds things up a lot. BUILDPATH_MAX_MINUTES (default 45) is a soft time budget: optional steps are skipped as it runs out. BUILDPATH_MAX_LLM_CALLS caps model calls per run.
The Dockerfile runs the web app on any host that runs containers.
docker build -t buildpath .
docker run -p 7860:7860 -e BUILDPATH_DEMO=1 buildpath # public demo, no keys
docker run -p 7860:7860 --env-file .env -e BUILDPATH_ACCESS_CODE=pick-one buildpath # real research
README.md:
---
title: BuildPath
sdk: docker
app_port: 7860
---
Add your keys and BUILDPATH_ACCESS_CODE as secrets in the Space settings, or set BUILDPATH_DEMO=1 for a keyless demo.$PORT.On a public server (any host other than localhost), the run list is hidden, only reports made through the server can be opened, and each visitor gets a daily allowance:
| Variable | Default | What it does |
|---|---|---|
BUILDPATH_ACCESS_CODE | none | visitors must enter it to start a run. Set it, or strangers can spend your free-tier quota |
BUILDPATH_RUNS_PER_IP | 3 | runs per visitor per day |
BUILDPATH_DAILY_RUNS | 0 (no limit) | runs per day for the whole server |
BUILDPATH_MAX_CONCURRENT | 2 | runs at once; more wait in a queue |
BUILDPATH_MAX_DEPTH | deep | deepest research visitors may ask for |
BUILDPATH_TRUST_PROXY | 1 in Docker | read the visitor's address from X-Forwarded-For behind a hosting proxy |
BUILDPATH_DEMO / BUILDPATH_DEMO_PACE | off / 0.5 | demo mode and how slowly it plays |
Reports are written to /data/reports in the container. Free hosting tiers usually have no persistent disk, so reports disappear when the container restarts unless you mount one at /data. Pages and model output are escaped, and reports are served with a strict Content-Security-Policy.
reports/2026-10-11-whatsapp-first-direct-booking-for-small-homestays/
report.html the report: one file, opens anywhere, works offline, prints to PDF
report.md the same report in Markdown (GitHub, VS Code, Obsidian)
trace.json every query, source, page note, checked quote, reflection and section the agent produced
site:reddit.com). Full threads are read when Reddit allows it, otherwise the snippet is used.If a section fails because a quota ran out, the report says so. Run the same idea again later: searches, pages and finished model answers are cached in .buildpath_cache/, so only the missing work is redone. --fresh ignores the cache.
pip install -e ".[dev]"
pytest
68 offline tests, no network. They run the real LLM client, search hub and page reader against a fake OpenAI-compatible server and a fake web: 429s with Retry-After, daily-quota fallback, JSON-mode rejection, oversized prompts, quota running out mid-run, and cached re-runs that make zero model calls. They also cover the quote checks, the score, the HTML report (every section renders, citations resolve, hostile page text stays escaped), the event stream and dashboard, and the web app over HTTP: the full flow, live events and replay after a reconnect, stopping a run, the queue, access codes, per-visitor limits, and requests a public server must refuse.
buildpath/
cli.py command line: live dashboard, clarifying questions, --check, serve
server.py the web app: FastAPI, server-sent events, limits for public servers
runner.py one run from idea to files, shared by the CLI and the server
agent.py the loop: understand, plan, research, find gaps, study competitors, think, review
events.py the event bus that the dashboard, the logs and the web app all read
dashboard.py the terminal dashboard
verify.py quote checks, evidence strength, filler detector
prompts.py every prompt, plus the free-tier toolbox the build plan draws on
llm.py OpenAI-compatible client: shared rate limits, retries, fallbacks, JSON repair, cache
knowledge.py source-tagged digests that fit each model's prompt budget
search/ Tavily, Exa, Serper, Brave, DuckDuckGo, Hacker News, GitHub, and the routing hub
fetch.py page reading (HN, GitHub, Reddit, trafilatura, Jina Reader) and site checks
domains.py domain availability through RDAP
signals.py GitHub repo counts and Show HN launches per year
charts.py inline SVG charts for the report
report.py report.md and trace.json; report_html.py renders the HTML report
templates/ report.html (the report) and app.html (the web app)
mock.py offline fakes for --mock and demo mode
name and async search(query, k, domain=None) in buildpath/search/web.py, registered in SearchHub.models.py, a prompt in prompts.py, a _section(...) call in agent._analyze, then a block in templates/report.html and a renderer in report.py.Provider(...) line in config.py (anything OpenAI-compatible).GET /api/runs/{id}/events streams every step as server-sent events (event, seq, ts plus the step's fields).| Status | Trace ID | Duration | Tokens | Cost | Started | |
|---|---|---|---|---|---|---|
| completed | 9a706fef… | 90.4 s | 46815 | $0.0390 | Oct 15, 09:45 AM | Replay |