Langsung ke konten
Skillpedia
Website & UI (frontend)260k Β· #579

page-agent

Fungsinya

Skill ini membantu pengembang menambahkan page-agent, asisten sumber terbuka yang berjalan di dalam halaman web dan mengikuti perintah seperti klik ini atau isi kolom itu. Skill ini ditujukan untuk tim yang ingin menambahkan kopilot AI ke aplikasi web mereka sendiri.

Kapan dipakai

  • βœ“Saat Anda ingin pengguna aplikasi web Anda memberi perintah dalam bahasa sehari-hari, alih-alih mengklik banyak layar.
  • βœ“Saat Anda ingin memodernisasi aplikasi web lama dengan lapisan bahasa alami tanpa menulis ulang front end.
  • βœ“Saat Anda ingin mendemokan page-agent dengan model bahasa lokal atau yang di-hosting.

Link skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/page-agent/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/page-agent/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTambahkan kopilot page-agent ke dasbor admin kami agar pengguna dapat mengetik perintah seperti buat faktur untuk Acme.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menjelaskan cara menyertakan skrip page-agent di situs Anda dan menghubungkannya ke model bahasa dengan endpoint yang kompatibel dengan OpenAI. Agent membaca halaman sebagai teks dan bertindak pada elemen yang ditemukannya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

page-agent

alibaba/page-agent (https://github.com/alibaba/page-agent, 17k+ stars, MIT) is an in-page GUI agent written in TypeScript. It lives inside a webpage, reads the DOM as text (no screenshots, no multi-modal LLM), and executes natural-language instructions like "click the login button, then fill username as John" against the current page. Pure client-side β€” the host site just includes a script and passes an OpenAI-compatible LLM endpoint.

When to use this skill

Load this skill when a user wants to:

  • Ship an AI copilot inside their own web app (SaaS, admin panel, B2B tool, ERP, CRM) β€” "users on my dashboard should be able to type 'create invoice for Acme Corp and email it' instead of clicking through five screens"
  • Modernize a legacy web app without rewriting the frontend β€” page-agent drops on top of existing DOM
  • Add accessibility via natural language β€” voice / screen-reader users drive the UI by describing what they want
  • Demo or evaluate page-agent against a local (Ollama) or hosted (Qwen, OpenAI, OpenRouter) LLM
  • Build interactive training / product demos β€” let an AI walk a user through "how to submit an expense report" live in the real UI

When NOT to use this skill

  • User wants Hermes itself to drive a browser β†’ use Hermes' built-in browser_exec tool (local Chromium or a cloud browser). page-agent is the opposite direction.
  • User wants cross-tab automation without embedding β†’ use Playwright, browser-use, or the page-agent Chrome extension
  • User needs visual grounding / screenshots β†’ page-agent is text-DOM only; use a multimodal browser agent instead

Prerequisites

  • Node 22.13+ or 24+, npm 10+ (docs claim 11+ but 10.9 works fine)
  • An OpenAI-compatible LLM endpoint: Qwen (DashScope), OpenAI, Ollama, OpenRouter, or anything speaking /v1/chat/completions
  • Browser with devtools (for debugging)

Path 1 β€” 30-second demo via CDN (no install)

Fastest way to see it work. Uses alibaba's free testing LLM proxy β€” for evaluation only, subject to their terms.

Add to any HTML page (or paste into the devtools console as a bookmarklet):

<script src="https://cdn.jsdelivr.net/npm/page-agent@1.8.0/dist/iife/page-agent.demo.js" crossorigin="true"></script>

A panel appears. Type an instruction. Done.

Bookmarklet form (drop into bookmarks bar, click on any page):

javascript:(function(){var s=document.createElement('script');s.src='https://cdn.jsdelivr.net/npm/page-agent@1.8.0/dist/iife/page-agent.demo.js';document.head.appendChild(s);})();

Path 2 β€” npm install into your own web app (production use)

Inside an existing web project (React / Vue / Svelte / plain):

npm install page-agent

Wire it up with your own LLM endpoint β€” never ship the demo CDN to real users:

import { PageAgent } from 'page-agent'

const agent = new PageAgent({
    model: 'qwen3.5-plus',
    baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
    apiKey: process.env.LLM_API_KEY,   // never hardcode
    language: 'en-US',
})

// Show the panel for end users:
agent.panel.show()

// Or drive it programmatically:
await agent.execute('Click submit button, then fill username as John')

Provider examples (any OpenAI-compatible endpoint works):

Provider baseURL model
Qwen / DashScope https://dashscope.aliyuncs.com/compatible-mode/v1 qwen3.5-plus
OpenAI https://api.openai.com/v1 gpt-4o-mini
Ollama (local) http://localhost:11434/v1 qwen3:14b
OpenRouter https://openrouter.ai/api/v1 anthropic/claude-sonnet-4.6

Key config fields (passed to new PageAgent({...})):

  • model, baseURL, apiKey β€” LLM connection
  • language β€” UI language (en-US, zh-CN, etc.)
  • Allowlist and data-masking hooks exist for locking down what the agent can touch β€” see https://alibaba.github.io/page-agent/ for the full option list

Security. Don't put your apiKey in client-side code for a real deployment β€” proxy LLM calls through your backend and point baseURL at your proxy. The demo CDN exists because alibaba runs that proxy for evaluation.

Path 3 β€” clone the source repo (contributing, or hacking on it)

Use this when the user wants to modify page-agent itself, test it against arbitrary sites via a local IIFE bundle, or develop the browser extension.

git clone https://github.com/alibaba/page-agent.git
cd page-agent
Pertanyaan umum

Apakah ia mengambil tangkapan layar halaman?

Tidak. Skill menyatakan page-agent membaca DOM sebagai teks dan tidak memakai tangkapan layar atau model multimodal.

Apakah ini untuk mengendalikan browser saya?

Tidak. Skill menyatakan jika Anda ingin Hermes mengendalikan browser, gunakan alat browser bawaannya.

Apa yang saya perlukan untuk memulai?

Anda memerlukan akses ke endpoint model bahasa yang kompatibel dengan OpenAI, yang bisa lokal atau di-hosting.

Detail

Deskripsi asli dari pembuat

Embed an in-page natural-language GUI copilot in web apps.

repo: NousResearch/hermes-agent

Popularitas

Bintang GitHub
260k
Peringkat
#579
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa