WorkflowForgeAI Agent and Workflow Laboratory
WorkflowForgeAgentsbuildpath
Home
WorkflowForge · AI Agent and Workflow Laboratory © 2026Built by Shivang GitHub
Agents
Agent

buildpath

aicreditsgpt-4o-minitemp 0.3max 6000 tokensagents/buildpath

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.

Open its interface

README

agents/buildpath/README.md

BuildPath

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.

In the AI agents lab

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:

  • Runs are normal lab runs (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 ().

Output schema

the final answer must be JSON matching this schema
{
  "$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"
}

Past runs

runs from its own interface · latest 50
Runs listed
1
Landed
1
completed
Signal lost
0
failed
Shields held
0
blocked by guardrails
  • Landedcompleted
?run=<id>
  • Models go through the lab's LLM client: aicredits 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.
  • Search keys come from 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.
  • Depth defaults to 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.
  • Results: report.html opens full-screen; report.md and trace.json download. All three are also on the run's replay page under "Files".
  • No disk cache in the lab: a re-run of the same idea researches again.
  • API callers: 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.

    Try it in a minute, no keys needed

    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.

    What the report contains

    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]

    • Verdict and opportunity score. Build, Build with a sharper wedge, Pivot or Don't build, and a 0-100 score from six ratings (pain, market gap, willingness to pay, founder fit, feasibility, distribution), each with its reason and sources. The score is computed in code from the ratings, never stated by the model.
    • What already exists. Competitors with pricing, strengths and weak spots, and whether their site still loads. The top ones are studied up close: pricing page, plans, features, integrations, and user complaints whose quotes were checked.
    • How crowded it is. Segments rated 1-5, GitHub repo counts, Show HN launches per year, and the table stakes every v1 needs.
    • Feature by feature. Competitors against features with your v1 as a column, and what each one charges.
    • Market size. Bottom-up, with the arithmetic shown at every step so you can redo it with better numbers.
    • Who it's for. Personas grounded in the research. A persona quote is shown only if it was found word for word in a source.
    • Where you can win. Unmet needs, ways in (each with a 48-hour test), the recommended wedge and a positioning line.
    • The path to v1. The next 72 hours, a prototype plan, a v1 plan (features by priority, pages, flows, data model, stack, APIs with their free tiers, open source to reuse, milestones), and launch.
    • Technical spec. Components, the main flow, endpoints, a SQL schema, repository layout, environment variables, security, deployment and running costs.
    • Launch kit. Landing page copy, name ideas with domain availability checked against the registries, a Show HN post, a Product Hunt tagline and a first outreach message.
    • Go-to-market, risks and when to stop. Ideal first customer, channels with evidence, an interview script, experiments with pass thresholds, a price to test, risks and kill criteria.
    • Critic review and research trail. What the critic attacked and which sections were rewritten, the hypotheses tested, the gaps it couldn't close, every search, and every source with the quote that was checked.

    [image: Feature matrix]

    How it thinks

    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.

    Why you can check its work

    • Quotes are checked against the page. The note-taker must give a verbatim quote for every fact and complaint. BuildPath checks the quote is really on the page (exactly, or with most of its wording intact). Unchecked claims are marked as weak wherever the thinking model sees them, and the report shows how many claims passed.
    • Invented products are dropped. A product only counts if its name appears on the page that mentioned it.
    • Dead competitors are flagged. Every competitor's site is visited; ones that don't load are marked.
    • Confidence is capped by the evidence. The evidence is rated thin, moderate or strong from pages read, distinct sites and checked claims. A model that says "high confidence" on thin evidence gets corrected, and the report says so.
    • Filler counts against a section. Generic advice ("leverage social media", "build an MVP") is detected. Sections with enough of it, or with serious critic issues, are rewritten with the specifics demanded.
    • Every claim links to its source. Hover a citation in the HTML report to see the page title and the checked quote. trace.json keeps everything the agent saw and decided.

    Three ways to use it

    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.

    Setup

    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
    
    KeyGet itFree tier (checked Oct 2026)Needed?
    GEMINI_API_KEYaistudio.google.com/apikeyFlash and Flash-Lite models are free; limits shown in AI Studioone LLM key required
    GROQ_API_KEYconsole.groq.com/keysgpt-oss-120b / 20b: 30 req/min, 8K tokens/min, 200K tokens/day per model(either works; both is best)
    TAVILY_API_KEYapp.tavily.com1,000 searches/monthrecommended
    EXA_API_KEYdashboard.exa.aifree signup and monthly credits; adds "similar startups" searchoptional
    GITHUB_TOKENgithub.com/settings/tokens (no scopes)raises GitHub search to 30 req/minoptional
    JINA_API_KEYjina.aithe reader works keyless at ~20 pages/minoptional

    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).

    Command line

    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.

    DepthResearchTypical time on free tiers
    quickabout 10 searches and 15 pages, 2 competitors studieda few minutes
    standard (default)about 25 searches and 35 pages, a gap-filling round, 4 competitors studied, critic review10-15 minutes
    deepabout 50 searches and 60 pages, two gap-filling rounds, 6 competitors studied, two revisions20-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.

    Put it online

    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
    
    • Hugging Face Spaces (free CPU): create a Space with the Docker SDK and push this folder to it. Put this block at the very top of the Space's 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.
    • Render, Railway, Fly.io: deploy from the repo as a Docker service and set the same variables. The app listens on $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:

    VariableDefaultWhat it does
    BUILDPATH_ACCESS_CODEnonevisitors must enter it to start a run. Set it, or strangers can spend your free-tier quota
    BUILDPATH_RUNS_PER_IP3runs per visitor per day
    BUILDPATH_DAILY_RUNS0 (no limit)runs per day for the whole server
    BUILDPATH_MAX_CONCURRENT2runs at once; more wait in a queue
    BUILDPATH_MAX_DEPTHdeepdeepest research visitors may ask for
    BUILDPATH_TRUST_PROXY1 in Dockerread the visitor's address from X-Forwarded-For behind a hosting proxy
    BUILDPATH_DEMO / BUILDPATH_DEMO_PACEoff / 0.5demo 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.

    What you get on disk

    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
    

    Honest limits

    • Free-tier search is shallower than a person with a day to spare. Treat "no competitors found" with suspicion and read the gaps list.
    • Prices and free tiers change. Verify anything before you spend money on it.
    • A checked quote proves the page says it, not that it's true. Forums exaggerate, and marketing pages flatter.
    • Gemini's free tier may use your prompts to improve Google's products. Use Groq or a local Ollama model for confidential ideas, and tell visitors to a public server the same.
    • DuckDuckGo (keyless) rate-limits heavy use. The agent spaces queries and switches providers when one fails; a Tavily key avoids most of this.
    • Reddit is reached through web search (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.

    Tests

    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.

    Layout

    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
    

    Extend it

    • New search provider: a class with name and async search(query, k, domain=None) in buildpath/search/web.py, registered in SearchHub.
    • New report section: a model in 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.
    • New LLM provider: one Provider(...) line in config.py (anything OpenAI-compatible).
    • Your own front end: GET /api/runs/{id}/events streams every step as server-sent events (event, seq, ts plus the step's fields).
    Oct 15, 09:45 AM90.4 s46815 tok$0.0390
    StatusTrace IDDurationTokensCostStarted
    Landedcompleted9a706fef…90.4 s46815$0.0390Oct 15, 09:45 AMReplay