agentk

v0.4.1

The command palette
for the agentic web.

A React component: define your capabilities once as JSON Schema tools. People get the palette; AI agents get a WebMCP endpoint — one definition, two ways in.

Watch WebMCP drive a page I built — two minutes
GitHub
Origin trial

WebMCP is a Chrome origin trial, not a shipped standard. agentk feature-detects it and falls back to a plain command palette wherever it’s missing — nothing breaks.

No commands found.
Run TestsTesting
BuildCI/CD
DeployDeployment
RollbackRecovery
Scale ServiceInfrastructure
View LogsMonitoring
// 1. define tools once — JSON Schema in, forms + WebMCP out
const tools = [
  { name: 'run_tests', label: 'Run Tests' },
  { name: 'build', label: 'Build' },
  {
    name: 'deploy',
    inputSchema: {
      type: 'object',
      properties: {
        environment: {
          type: 'string',
          enum: ['staging', 'production'],
        },
        branch: { type: 'string' },
      },
    },
  },
]

// 2. one component, two consumers
<Command tools={tools} onToolExecute={exec}
  agent={{ provider: 'anthropic', requireApproval: true }}>
  <Command.Input />
  <Command.List />
  <Command.Approval />
  <Command.ActivityFeed />
</Command>