Agents
Define one inspectable server actor, choose how it runs, and attach only the context and abilities it needs.
Build your first Agentserver/agents/review.ts
import { defineAgent } from "@vite-hub/agent"
export default defineAgent({
description: "Reviews one repository change.",
driver: {
run({ prompt }) {
return { text: "Reviewing " + String(prompt ?? "the repository") + "." }
},
},
})