Skip to content

Scaffold an agentlet

This command creates a working demo agentlet named my-agentlet within agentlet-core/../my-agentlet/, pre-packaged with all required external libraries.

Terminal window
# Full template (comprehensive example with all API features)
npm run scaffold:agentlet:defaults
# Minimal template (simple starter, just 74 lines)
npm run scaffold:agentlet -- --minimal
# Interactive scaffolding (choose template and options)
npm run scaffold:agentlet

The minimal template provides a clean 74-line starting point with basic structure and agentlet.Dialog API usage, while the full template includes comprehensive examples of all framework features.

Terminal window
cd ../my-agentlet
npm install
npm run build
npm start

Source: agentlet-core README.md, section “Getting started”.