create-computeragent
v0.1.1
Published
Scaffold a runnable ComputerAgent project in 60 seconds. `npx create-computeragent my-agent`
Downloads
158
Maintainers
Readme
create-computeragent
Scaffold a runnable ComputerAgent project in 60 seconds.
npx create-computeragent my-agent
cd my-agent
npm install
ANTHROPIC_API_KEY=sk-ant-... npm startThat's it. The output is a single TS file plus a package.json — no build tools, no boilerplate, just runTask({...}) against a local substrate.
What you get
my-agent/
├── package.json # depends on @computeragent/sdk + @computeragent/runtime-local
├── index.ts # one inline GAP agent + runTask call
├── README.md
└── .gitignoreindex.ts is fully runnable. It defines an inline GAP agent (model + system prompt), boots a local subprocess, runs one turn, and prints the agent's reply.
Next steps
- Swap the substrate:
npm install @computeragent/runtime-e2bthen replacenew LocalSubstrate()withnew E2BSubstrate({apiKey}). - Add cross-process memory: pass
sessionStore: { kind: "file", options: { root: "./sessions" } }and re-run with the samesessionId. - Build a real GAP repo: see https://github.com/open-gitagent/gitagent-protocol.
Options
npx create-computeragent <project-name> [--force]--force lets you scaffold into a non-empty directory.
License
MIT
