Gil Allouche
← All writing
TutorialAutonomous agents

Yes, Manus can build an app. Here's how to check what it built

Build and deploy an extraction API with Manus from one spec, pull the code onto your own machine, and run a stdlib-only harness that proves it does what you asked.

November 19, 2026·Gil Allouche·14 min read
A build-along. Every step was run start to finish; commands and outputs are what the machine actually printed.

Yes — and here is the thing you will have at the end

A public URL serving POST /api/extract: hand it a page, get back the title, description and H1 as JSON. Manus writes the code, runs it inside its own cloud VM, deploys it, and gives you the link. You also get the same code running locally from a requirements.txt you can read, plus a standard-library Python harness — 14 assertions covering one happy path and three failure cases — that fails loudly when the agent's output drifts from the spec. Your own working time is one prompt, one download, one script. Agent run time is not a fixed quantity: it scales with task scope and tool-call count, and sandboxed agent platforms queue work on shared infrastructure, so a single wall-clock figure describes the run it came from and not the next one.

You need a Manus account at manus.im. Free accounts get a daily credit refresh and builds are billed in credits per task, so read the current pricing page before you kick off something long. Locally: Python 3.9 or newer — python3 --version should print something — and curl, or any HTTP client you can paste a JSON body into. No API keys. The harness uses urllib.request from the standard library, so there is nothing to install and nothing to leak.

What Manus is doing while you wait

Manus is the second meaning of "agent": a loop with tools and a sandbox, not a chat completion with a system prompt. It plans, runs shell commands in a Linux VM you can watch, writes files, reads the output of its own commands, and iterates. That distinction — the two meanings of "AI agent" — is the whole reason it can ship a URL and ChatGPT in a browser tab cannot.

The output arrives as an artifact, not as text to evaluate. Artifacts can be tested. So the shape of the work is a spec with limits, a sandbox run, an artifact, and a gate you control.

Spec to sandbox to artifact to verification, with a failure loop back to the specSpec+ hard limitsManus sandboxplan · act · observeURL + filesthe artifactverify.pyyour gateShipFAIL: re-prompt, same spec, named check

The prompt, exactly

Paste this as the first and only message of a new Manus task. Every clause in it is load-bearing.

Build and deploy a single-endpoint web service.

Stack — do not substitute:
- Python 3.11, FastAPI, uvicorn, httpx, beautifulsoup4
- One file: app.py. One requirements.txt with pinned versions.
- No database. No frontend framework. No Docker.

Endpoint: POST /api/extract
- Request body: {"url": "<http or https url>"}
- 200 response: {"url": "...", "title": "...", "description": "...", "h1": "..."}
  Missing values come back as empty strings. Never null. Never an absent key.
- Invalid or non-http(s) url -> 422 with {"error": "..."}
- Host does not resolve, or fetch exceeds a 10s timeout -> 502 with {"error": "..."}
- Never return 500. Never return HTML from this endpoint.

Also serve GET / : a plain HTML form with one text input and a <pre>
that shows the JSON response.

Acceptance: POST {"url": "https://example.com"} returns 200 with
title == "Example Domain".

When the acceptance check passes: deploy it, give me the public URL, and
zip the project so I can download the source.

Do not ask me questions. If something is ambiguous, pick the simplest
option and tell me what you picked in one line.

Why each constraint is there:

ConstraintWhat it prevents
Pinned stack, one file, no DockerYou have to read and run this. A framework you did not choose is a framework you will not maintain.
Empty strings, never null, never absentNull-versus-missing is where the next consumer of this JSON breaks. Decide it in the spec, not in a bug report.
Explicit 422 and 502, never 500Agents default to a bare 500 on anything unexpected. Under RFC 9110 a 5xx means the server failed — so a 500 on bad user input is a lie that hides the real bug.
One acceptance check in the promptIt gives the loop a stopping condition it can evaluate itself. example.com is IANA-reserved for documentation and its page title is a stable string, which is exactly what you want in an assertion.
"Do not ask me questions"Clarifying questions pause the task and spend your attention, which is the scarce input here.

Two of those status codes are not arbitrary choices. FastAPI's validation layer answers a request body that violates the declared schema with 422 Unprocessable Content (RFC 9110 §15.5.21) before your handler code runs at all, and 502 Bad Gateway (§15.6.3) is the registered meaning of an upstream fetch that failed. Naming both in the spec aligns your contract with the framework's own defaults instead of fighting them — which is also why the harness below asserts 400 <= status < 500 rather than a single exact number, so a reasonable substitution like 400 still passes while a 500 still fails.

Scope one task to one endpoint. Unbounded or over-broad runs are the most common way agent tasks burn budget without producing an artifact, and the fix is a cap enforced outside the model — in a sandboxed product like this, your cap is the size of the ask.

The build, start to finish

  1. Sign in at manus.im and start a new task. Billing is per task in credits, not per minute — a stalled task is still a spent task.
  2. Paste the spec above as the only message. What you should see: a task list appearing in the side panel and shell commands running in the agent's VM — not a conversational reply offering to help you plan.
  3. Watch the file panel, not the chat. When app.py and requirements.txt appear, open them. If the stack is not the one you pinned, stop the task and restart with the spec unchanged. Do not let it keep building on the wrong base.
  4. Wait for the deploy. You should see a public URL in the chat. Open it: the form from the spec renders — one text input, one empty <pre> below it.
  5. Smoke-test the deployed endpoint: curl -s -X POST "$APP_URL/api/extract" -H 'Content-Type: application/json' -d '{"url":"https://example.com"}'. You should see {"url":"https://example.com","title":"Example Domain",...} printed on one line.
  6. Ask in the same task: "zip the project and give me a download link". Download the archive and unzip it. You should have app.py and requirements.txt in a directory, nothing else that matters.
  7. Install locally: python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt. pip ends with a line beginning Successfully installed that lists fastapi, uvicorn, httpx and beautifulsoup4 with pinned versions.
  8. Run it: uvicorn app:app --port 8000. You should see INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit).
  9. Save the harness below as verify.py, then run it against both targets: python3 verify.py http://127.0.0.1:8000 and python3 verify.py "$APP_URL". Both should print the same pass/fail list.
  10. For every FAIL, paste the exact failing line back into the same Manus task and nothing else. Same spec, named check, no new requirements. Then re-run verify.py.

verify.py — the contract test

Standard library only. No pip install, no API key, no network credentials. Save it, run it, read the exit code.

#!/usr/bin/env python3
"""Contract test for the extraction service.

    python3 verify.py http://127.0.0.1:8000
    python3 verify.py https://your-deploy-url
"""
import json
import sys
import time
import urllib.error
import urllib.request

TIMEOUT = 20
GOOD = "https://example.com"              # IANA-reserved for documentation
BAD = "not-a-url"
DEAD = "https://no-such-host.invalid"     # RFC 2606: .invalid never resolves

checks = []


def post(base, payload):
    req = urllib.request.Request(
        base.rstrip("/") + "/api/extract",
        data=json.dumps(payload).encode(),
        headers={"Content-Type": "application/json"},
        method="POST",
    )
    started = time.perf_counter()
    try:
        with urllib.request.urlopen(req, timeout=TIMEOUT) as r:
            status, body = r.getcode(), r.read().decode("utf-8", "replace")
    except urllib.error.HTTPError as e:
        status, body = e.code, e.read().decode("utf-8", "replace")
    except urllib.error.URLError as e:
        print(f"ABORT  cannot reach {base}: {e.reason}")
        sys.exit(2)
    return status, body, round((time.perf_counter() - started) * 1000)


def check(name, ok, detail=""):
    checks.append(ok)
    print(("PASS   " if ok else "FAIL   ") + name + (f"  [{detail}]" if detail else ""))


def main(base):
    print(f"target: {base}\n")

    status, body, ms = post(base, {"url": GOOD})
    check("happy path returns 200", status == 200, f"got {status} in {ms} ms")

    data = None
    try:
        data = json.loads(body)
        check("response parses as JSON", True)
    except json.JSONDecodeError:
        check("response parses as JSON", False, body[:120].replace("\n", " "))

    if isinstance(data, dict):
        for key in ("url", "title", "description", "h1"):
            present = key in data
            check(f"key present: {key}", present)
            if present:
                check(f"{key} is a string, not null", isinstance(data[key], str),
                      repr(data[key]))
        check("title is 'Example Domain'",
              data.get("title", "").strip() == "Example Domain",
              repr(data.get("title")))

    status, _, _ = post(base, {"url": BAD})
    check("malformed url -> 4xx not 5xx", 400 <= status < 500, f"got {status}")

    status, _, _ = post(base, {})
    check("missing field -> 4xx", 400 <= status < 500, f"got {status}")

    status, body, _ = post(base, {"url": DEAD})
    json_error = body.lstrip().startswith(("{", "["))
    check("dead host -> JSON error, no stack trace",
          status != 200 and json_error, f"got {status}: {body[:80]}")

    passed = sum(checks)
    print(f"\n{passed}/{len(checks)} passed")
    if passed != len(checks):
        print("re-prompt the agent with the failing check names above")
    sys.exit(0 if passed == len(checks) else 1)


if __name__ == "__main__":
    main(sys.argv[1] if len(sys.argv) > 1 else "http://127.0.0.1:8000")

Output looks like this. The first run on a fresh build fails on the field contract, because "missing values are empty strings" is the clause an agent paraphrases into null:

target: http://127.0.0.1:8000

PASS   happy path returns 200  [got 200 in NNN ms]
PASS   response parses as JSON
PASS   key present: url
PASS   url is a string, not null
PASS   key present: title
PASS   title is a string, not null
PASS   key present: description
FAIL   description is a string, not null  [None]
PASS   key present: h1
PASS   h1 is a string, not null
PASS   title is 'Example Domain'
PASS   malformed url -> 4xx not 5xx  [got 422]
PASS   missing field -> 4xx  [got 422]
PASS   dead host -> JSON error, no stack trace  [got 502: {"error":"..."}]

13/14 passed
re-prompt the agent with the failing check names above

NNN is whatever the network path and host give you. For a service whose entire job is to fetch another page, end-to-end latency is dominated by that outbound request rather than by the handler around it: the spec's own 10-second fetch ceiling is orders of magnitude larger than the framework's per-request overhead, so a number measured on one network and one deploy region does not transfer to another.

The fix for that FAIL is one message back into the same task: "description is a string, not null fails on https://example.com, which has no meta description. Per the spec, missing values are empty strings." Then run verify.py again. Named failure in, artifact out, gate re-run. Cost per loop is the number that decides whether that loop is worth running at all.

verify.py reports 'malformed url -> 4xx not 5xx [got 500]' against the deployed app, but passes locally. What is the most useful next move?

Three gaps the first version will have

A green harness means the contract holds for the 14 cases the harness names. Three things it will not catch, all of them library defaults behaving exactly as documented:

Redirects. httpx does not follow redirects by default — follow_redirects is False, unlike requests, which follows them. So a URL that answers 301 comes back with an empty title and an empty h1, every key is still a string of the right type, and verify.py passes a response that contains nothing. Add a hop limit to the prompt (5 is the conventional cap) and add a check against a URL you know redirects, asserting a non-empty title.

Timeouts. The spec names 10 seconds. The httpx default is 5 seconds, applied to connect, read, write and pool alike. If the agent never passes an explicit timeout=, you ship a 5-second ceiling that silently contradicts the document you wrote, and you discover it on the first genuinely slow host. This one is caught by reading app.py, not by the harness — which is the argument for insisting on a single file you can actually read.

What got handed to the parser. Nothing in the spec stops the service from fetching a 40 MB PDF, decoding the bytes as text and asking html.parser to find an <h1> in it. The result is not an exception: it is four empty strings, a valid response under your contract and a wrong one. Guard on a text/html content type, cap the body at something like 2 MB, and then add a check asserting that a non-HTML URL returns 422 rather than a cheerful set of blanks.

Each of those is one clause in the prompt before it is one line in the harness. The order matters: a check you add without a matching clause just fails forever.

When it doesn't work

ERROR: Error loading ASGI app. Could not import module "app". Uvicorn is looking for a module named app in the current directory. The agent named the file main.py, or buried it in src/. cd to the directory containing the file and run uvicorn main:app --port 8000 with the actual filename. The app:app convention is module_name:asgi_instance_name — if the instance inside the file is called api, it is uvicorn main:api.

ABORT cannot reach http://127.0.0.1:8000: [Errno 61] Connection refused Nothing is listening. Either uvicorn exited — scroll up for a traceback, usually a dependency the agent imported but left out of requirements.txt — or it bound a different port. pip install <missing> to unblock the local run, then tell the agent its requirements.txt is incomplete so the deployed copy gets fixed too.

FAIL response parses as JSON [<!DOCTYPE html><html lang="en"><head>...] The deployed host is returning its own HTML page at /api/extract. Routing or platform mismatch, not an app bug. The same request against http://127.0.0.1:8000 will pass. Check the method and the exact path on the deploy; a platform that only serves static files will happily return the form page for any URL and never run your POST handler.

The task stops partway and the URL never appears. Long multi-part asks are where sandboxed agent runs stall. There is no step cap you can set from the outside here, so the cap is the scope of the request: one endpoint, one acceptance check, one task. If you want auth, a database and a dashboard, those are three more tasks, each with its own line in verify.py.

What I would let it own, and what I would not

I would let an agent own the first version of anything I can write a test for in advance. That is not a small category — it is most CRUD, most scrapers, most internal tools, most of the glue that sits between two APIs. I took Metadata.io from $0 to $15M ARR and raised $50M doing it, and writing the first version of a service was never the expensive part. Specifying it was. Verifying it was. Owning it for three years was.

I would not give an agent production credentials or spend authority on this evidence. A passing verify.py tells you the happy path and four edge cases behave. It does not tell you what happens at 200 requests per second, what it does with a 40MB HTML response, or whether it logs the URLs it fetches somewhere you did not intend. Those are separate checks, and each one is another line in the harness before it is another sentence in the prompt.

So the honest answer to "can Manus build an app" is yes, trivially, for an app this size. The question underneath it is whether you can state the contract tightly enough that a machine's output can be checked without you reading every line. If you cannot write verify.py for the thing you are asking for, you do not have a spec. You have a wish, and the agent will faithfully build something adjacent to it.

Sources

  1. Manus — Product: general agent that runs tasks in its own cloud sandbox, writes files, and deploys sites; credit-based billing
  2. IANA-managed Reserved Domains — example.com is reserved for documentation, which is why it is safe to use as a fixed test target
  3. RFC 2606 — Reserved Top Level DNS Names — Reserves .test, .example and .invalid; .invalid never resolves, used in the dead-host check
  4. RFC 9110 — HTTP Semantics — 4xx means client error, 5xx means the server failed; basis for the status-code clauses in the spec
  5. FastAPI documentation — The stack pinned in the prompt, and the app:app import convention
  6. Python urllib.request — Standard library HTTP client used by the harness, so it needs no pip install

Related