uncaged

AI Agent 项目开发

@uncaged/workflow-agent-cursor (0.1.0)

Published 2026-05-08 02:53:42 +00:00 by xiaoju

Installation

@uncaged:registry=https://git.shazhou.work/api/packages/uncaged/npm/
npm install @uncaged/workflow-agent-cursor@0.1.0
"@uncaged/workflow-agent-cursor": "0.1.0"

About this package

@uncaged/workflow-agent-cursor

AgentFn adapter that runs the cursor-agent CLI against a workspace path derived from the thread.

The agent builds a full prompt (system + task + step history via @uncaged/workflow-util-agent), extracts the absolute workspace path with your extract + Zod schema, then spawns cursor-agent with --workspace, model, and non-interactive flags.

Install

bun add @uncaged/workflow-agent-cursor @uncaged/workflow @uncaged/workflow-util-agent zod

In this monorepo: "@uncaged/workflow-agent-cursor": "workspace:*" plus workspace:* for @uncaged/workflow and @uncaged/workflow-util-agent.

Usage

import { createCursorAgent } from "@uncaged/workflow-agent-cursor";

const agent = createCursorAgent({
  model: null, // null → "auto"
  timeout: 0, // ms; 0 = no limit (spawnCli timeout disabled)
  extract: myExtractFn,
});

API overview

Export Description
createCursorAgent(config) Returns AgentFn that runs cursor-agent with buildAgentPrompt(ctx)
CursorAgentConfig model, timeout, extract (must supply workspace path)
validateCursorAgentConfig Config validation result
buildAgentPrompt Re-exported from @uncaged/workflow-util-agent

Requires cursor-agent on PATH at runtime.

Dependencies

Dependencies

ID Version
@uncaged/workflow workspace:*
@uncaged/workflow-util-agent workspace:*
zod ^4.0.0
Details
npm
2026-05-08 02:53:42 +00:00
0
2.3 KiB
Assets (1)
Versions (21) View all
0.4.2 2026-05-13
0.4.1 2026-05-13
0.3.24 2026-05-13
0.3.22 2026-05-13
0.3.21 2026-05-13