hosted-web-contract

hosted-web-contract is a cursor rule for Cursor from Intrafere/MOTO-Autonomous-ASI. It costs 5,620 tokens per session, scanned A, original, MIT.

A deployment contract for one codebase that runs either as a local desktop application or as a hosted web service, selected by a mode setting.

In plain words
What is it for?
It is for defining local and hosted behavior, hosted API access, proxy authentication, web-team boundaries, feature and health endpoints, build metadata, and updater rules.
Why use it?
It clarifies which providers, authentication methods, runtime services, and teams own each part of the two deployments.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Codex.

Good fit It is for defining local and hosted behavior, hosted API access, proxy authentication, web-team boundaries, feature and health endpoints, build metadata, and updater rules.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/intrafere/moto-autonomous-asi/hosted-web-contract
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Intrafere/MOTO-Autonomous-ASI

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hosted-web-contract

README.md
[![agentmods](https://agentmods.dev/badge/rules/intrafere/moto-autonomous-asi/hosted-web-contract.svg)](https://agentmods.dev/rules/intrafere/moto-autonomous-asi/hosted-web-contract)
Your own site
<a href="https://agentmods.dev/rules/intrafere/moto-autonomous-asi/hosted-web-contract"><img src="https://agentmods.dev/badge/rules/intrafere/moto-autonomous-asi/hosted-web-contract.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,620 This file is loaded in full into every session.
When invoked 5,620 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.05620 $0.05620
Opus 5 $0.02810 $0.02810
Sonnet 5 $0.01124 $0.01124
Haiku 4.5 $0.00562 $0.00562

Measured 4d ago against content hash c488980d8cae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

hosted-web-contract scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/hosted-web-contract.mdc · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hybrid Deployment Contract (intrafere.ai / Hosted Web Product)

MOTO is ONE codebase serving TWO deployment targets. A single generic_mode boolean switches between them. All features, fixes, and improvements ship to both targets simultaneously.

Two Deployment Targets

  • Default mode (generic_mode=False): GitHub open-source release. Desktop app with .bat / PowerShell launchers. LM Studio + OpenRouter + desktop provider add-ons such as OpenAI Codex OAuth, xAI Grok OAuth, and Sakana Fugu API key. User runs locally.
  • Generic mode (generic_mode=True): Hosted web backend. API-only sandbox on Blaxel, fronted by the Intrafere website/control plane on AWS. FastEmbed embeddings and OpenRouter-only LLM inference; hosted clients should not use LM Studio diagnostics even if legacy endpoints still exist for the shared route surface.

Two-Team Boundary (Strict)

Team Repo Owns
Upgrade Team MOTO repo generic_mode conditional branches, FastEmbed provider, hosted runtime contract, proxy auth plumbing, /api/features, /api/health, build metadata, desktop launchers + updater contract
Web Team Separate repo Website frontend, Clerk auth, Stripe billing, AWS control plane, Blaxel sandbox lifecycle, same-domain proxy, dashboard update UX, CI/CD image pipeline

The Web Team consumes MOTO as a pre-built image. They never commit into the MOTO repo. Their website wraps private MOTO sandboxes — handles auth, billing, proxying, and instance lifecycle while MOTO handles all research orchestration.

Hosted Container Artifacts

  • The MOTO repo provides the canonical hosted container files: Dockerfile, .dockerignore, and docker/entrypoint.sh.
  • Those files define the API-only python:3.12-slim generic-mode runtime contract. Image publish, rollout, and redeploy automation still belong to the separate Web Team repo.

The generic_mode Flag

SystemConfig field in backend/shared/config.py:

generic_mode: bool = False

Read the full file on GitHub · 209 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · -18 lines · -1,672 tokens per session c488980d8cae
  2. 8d ago First seen · 227 lines · 7,292 tokens per session scan A 6fc208c292cd

Subscribe to this mod's changes

hosted-web-contract is a cursor rule published in the GitHub repository Intrafere/MOTO-Autonomous-ASI (83 stars, last pushed 4d ago), licensed MIT. It adds 5,620 tokens to every session, about $0.0281 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.