Agent Skillsvercel-labs/open-agents › remove-demo-limits

remove-demo-limits

GitHub

移除托管演示版的试用限制,使 Fork 具备自托管部署能力。通过删除会话、消息及认证相关的守卫代码和测试,实现无限制的正常使用。

.agents/skills/remove-demo-limits/SKILL.md vercel-labs/open-agents

Trigger Scenarios

remove demo limits remove trial limits remove hosted restrictions open this up for my fork remove managed template restrictions

Install

npx skills add vercel-labs/open-agents --skill remove-demo-limits -g -y
More Options

Non-standard path

npx skills add https://github.com/vercel-labs/open-agents/tree/main/.agents/skills/remove-demo-limits -g -y

Use without installing

npx skills use vercel-labs/open-agents@remove-demo-limits

指定 Agent (Claude Code)

npx skills add vercel-labs/open-agents --skill remove-demo-limits -a claude-code -g -y

安装 repo 全部 skill

npx skills add vercel-labs/open-agents --all -g -y

预览 repo 内 skill

npx skills add vercel-labs/open-agents --list

SKILL.md

Frontmatter
{
    "name": "remove-demo-limits",
    "description": "Removes Open Harness hosted demo restrictions from a fork. Use when a maintainer wants to remove managed-template trial caps, hosted deployment gating, or \"deploy your own\" limits. Triggers on \"remove demo limits\", \"remove trial limits\", \"remove hosted restrictions\", \"open this up for my fork\", \"remove managed template restrictions\"."
}

Remove 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.ts
  • apps/web/app/api/sessions/route.ts
  • apps/web/app/api/chat/route.ts
  • apps/web/app/api/sessions/[sessionId]/chats/[chatId]/messages/[messageId]/route.ts
  • apps/web/app/api/sessions/route.test.ts
  • apps/web/app/api/chat/route.test.ts
  • apps/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:

  • isManagedTemplateTrialUser
  • MANAGED_TEMPLATE_TRIAL_
  • deploy-your-own
  • open-agents.dev
  • vercel.com
  • This hosted deployment includes
  • does not allow message deletion

Required changes

  1. Remove the guards that block session creation, chat messages, or message deletion for managed-template users.
  2. If the auth callback still blocks non-Vercel emails on hosted deployments, remove that restriction too.
  3. Delete apps/web/lib/managed-template-trial.ts if it becomes unused; otherwise simplify it so no dead exports remain.
  4. Remove or update tests that assert the hosted caps, delete restrictions, or hosted-only auth gating.
  5. Do not add feature flags, env toggles, or new dependencies. Prefer deleting the restriction code outright.
  6. 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

Version History

  • cf865e9 Current 2026-07-24 22:32

Same Skill Collection

.agents/skills/agent-browser/SKILL.md
.agents/skills/baseline-ui/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/deploy-open-harness/SKILL.md
.agents/skills/emil-design-eng/SKILL.md
.agents/skills/frontend-design/SKILL.md
.agents/skills/plan-mode/SKILL.md
.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/workflow/SKILL.md
.agents/skills/ai-sdk/SKILL.md
.agents/skills/chat-sdk/SKILL.md
.agents/skills/web-animation-design/SKILL.md

Metadata

Files
0
Version
cf865e9
Hash
6126746a
Indexed
2026-07-24 22:32

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 23:53
浙ICP备14020137号-1 $Гость$