About remove-demo-limits
A development skill for removing managed-template trial restrictions from Open Harness. It guides repository maintainers to inspect relevant code and tests, make focused changes, and run CI.
Key features
- 01Inspect restriction logic and tests
- 02Remove session and message caps
- 03Remove hosted-only restrictions
- 04Clean up dead code and update tests
- 05Run Bun CI verification
Use cases
- 01Adapt a template fork for regular self-hosting
- 02Remove trial limits on sessions or messages
- 03Verify behavior after removing restrictions
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ vercel-labs/ open-agents --skill remove-demo-limitsAfter installing, type/remove-demo-limitsin Claude Code to confirm it loaded.
Details
From the project READMERemove the managed-template trial restrictions with the smallest coherent change.
Goal
Make the fork behave like a normal self-hosted deployment:
- no trial session cap
- no trial message cap
- no hosted-only restriction errors
- no hosted-demo delete restrictions
- no dead helper code or stale tests
Inspect first
Read these files before editing:
apps/web/lib/managed-template-trial.tsapps/web/app/api/sessions/route.tsapps/web/app/api/chat/route.tsapps/web/app/api/sessions/[sessionId]/chats/[chatId]/messages/[messageId]/route.tsapps/web/app/api/sessions/route.test.tsapps/web/app/api/chat/route.test.tsapps/web/app/api/sessions/[sessionId]/chats/[chatId]/messages/[messageId]/route.test.ts
Then search for these identifiers and strings to catch older or newer variants:
isManagedTemplateTrialUserMANAGED_TEMPLATE_TRIAL_deploy-your-ownopen-agents.devvercel.comThis hosted deployment includesdoes not allow message deletion
Required changes
- Remove the guards that block session creation, chat messages, or message deletion for managed-template users.
- If the auth callback still blocks non-Vercel emails on hosted deployments, remove that restriction too.
- Delete
apps/web/lib/managed-template-trial.tsif it becomes unused; otherwise simplify it so no dead exports remain. - Remove or update tests that assert the hosted caps, delete restrictions, or hosted-only auth gating.
- Do not add feature flags, env toggles, or new dependencies. Prefer deleting the restriction code outright.
- Keep unrelated auth, session ownership, and sandbox behavior unchanged.
Verification
This repo uses Bun. After the edits:
- run
bun run ci - if a failure is pre-existing, say that clearly and separate it from your changes
Output
Report:
- which restrictions were removed
- which files changed
- verification result
Comments
Markdown supported