// agent

My Build a Boat Blueprint Co-Pilot

by bash · Oct 17, 2026 Public

Choose how to run this agent

⚡ Local runs on your GPU. For usable speed it needs a WebGPU-capable browser — Chrome or Edge on a machine with a graphics card, or an Apple Silicon Mac. Without a supported GPU, pick OpenAI or Anthropic above instead. Check your machine
Try it now

Requires an API key and an AgentOp account.

38 downloads
0 forks
0.0 rating

Description

Based on the Build a Boat Blueprint Co-Pilot template.

What this agent can do

My Build a Boat Blueprint Co-Pilot is built from the Build a Boat Blueprint Co-Pilot template. Runs fully on your own device: llama.cpp compiled to WebAssembly, GPU-accelerated through WebGPU, with no API key and no server. After the one-time model download it works offline. Can run on OpenAI models with your own API key, encrypted in your browser. Can run on Anthropic Claude models with your own API key, encrypted in your browser.

Source Code

agent.py
import json


async def process_user_query(query: str) -> str:
    """Draft a Build A Boat for Treasure blueprint without changing game saves.

    Args:
        query: JSON with blueprint name, goal, gold budget, inventory, and constraints.
    """
    try:
        data = json.loads(query)
        if not isinstance(data, dict):
            return 'Please enter a boat blueprint request.'
        name = str(data.get('name', '')).strip()[:70]
        goal = str(data.get('goal', '')).strip()[:60]
        inventory = str(data.get('inventory', '')).strip()[:2500]
        constraints = str(data.get('constraints', '')).strip()[:1200]
        budget = data.get('budget')
        if not name or not isinstance(budget, int) or isinstance(budget, bool) or not 0 <= budget <= 1000000:
            return 'Please provide a blueprint name and a whole-number gold budget from 0 to 1,000,000.'
        if goal not in ('treasure run', 'starter boat', 'multiplayer boat', 'themed ship', 'custom'):
            return 'Please choose a valid boat build goal.'
    except (ValueError, TypeError):
        return 'Please check the boat blueprint inputs and try again.'
    prompt = (
        'Draft a practical Build A Boat for Treasure planning blueprint from these inputs:\n'
        + json.dumps({'name': name, 'goal': goal, 'maximum_gold_to_spend': budget,
                      'owned_parts': inventory or 'Not provided',
                      'preferences': constraints or 'None'}, ensure_ascii=False)
        + '\nGive short sections: Build concept; Parts to use (mark unknown inventory as optional); '
        'Assembly steps; Gold plan; Test and save-safety checklist. '
        'Keep purchase suggestions within the stated budget. If current prices or owned parts are '
        'unknown, do not invent exact prices, totals, or availability; say what to check in-game. '
        'A zero budget means suggest no purchases. Advise using a free/unused in-game save slot '
        'and checking its contents before saving; never suggest overwriting an existing build. '
        'You cannot access Roblox, place blocks, load in-game saves, or spend gold yourself. '
        'Do not imply any of these actions happened. Keep the answer under 450 words.'
    )
    return str(await agentop_llm.generate(prompt, globals().get('TEMPLATE_SYSTEM_PROMPT', '')))