Getting Started
Prerequisites
Section titled “Prerequisites”- Node.js 18+ — check with
node -v - An MCP-compatible AI editor — Claude Code, OpenCode, and Codex are supported today.
- npm — ships with Node.js
Create Your Agent
Section titled “Create Your Agent”One command to scaffold a file-tree agent in your current directory:
npm create soleri my-agentThis creates ./my-agent/ in whatever directory you run it from.
The interactive wizard asks for:
| Prompt | What it means |
|---|---|
| Agent name | Your agent’s identity (e.g., “sentinel”, “architect”) |
| Role | One-line description of what it does |
| Domains | Knowledge areas — frontend, backend, security, or custom |
| Tone | How the agent communicates — precise, mentor, pragmatic |
This generates a folder — no TypeScript, no build step:
my-agent/├── agent.yaml # Identity + engine config├── .mcp.json # Connects to Knowledge Engine (Claude Code)├── opencode.json # Connects to Knowledge Engine (OpenCode)├── .gitignore # Excludes auto-generated files├── CLAUDE.md # Auto-generated (never edit)├── instructions/ # Behavioral rules│ ├── _engine.md # Engine rules (auto-generated)│ └── domain.md # Your domain-specific rules├── workflows/ # Step-by-step playbooks│ ├── feature-dev/│ ├── bug-fix/│ ├── code-review/│ └── context-handoff/├── knowledge/ # Domain intelligence bundles├── skills/ # SKILL.md files├── hooks/ # Your AI editor hooks├── data/ # Agent runtime data└── workspaces/ # Workspace contextsYour agent is ready to use immediately. No npm install, no npm run build.
Register and Start
Section titled “Register and Start”From inside the agent folder, register the MCP server and start:
cd my-agentsoleri install --target claude # Claude Code (default)soleri install --target opencode # OpenCodesoleri install --target codex # Codexsoleri install --target all # All editorssoleri dev # Start engine + watch for changessoleri install registers the Soleri Knowledge Engine in your editor’s MCP config. soleri dev starts the engine and watches your agent folder — CLAUDE.md is regenerated automatically when you edit agent.yaml or instructions/.
Connect to your AI editor
Section titled “Connect to your AI editor”After running soleri install, restart your AI editor. Your agent is available as a tool. The .mcp.json in your agent folder looks like:
{ "mcpServers": { "soleri-engine": { "command": "npx", "args": ["@soleri/engine", "--agent", "./agent.yaml"] } }}First Conversation
Section titled “First Conversation”Once connected, try these in your AI editor:
# Activate the persona"Hello, My Agent!"
# Search your agent's knowledge"Search for patterns about error handling"
# Capture something you learned"Capture this pattern: always use error boundaries at route level"
# Check agent health"Run a health check"Your agent starts with starter knowledge and learns from every session.
Updating Soleri
Section titled “Updating Soleri”# Check for updatessoleri agent status
# Update engine to latest versionnpx @soleri/cli@latest upgrade
# Regenerate CLAUDE.md with latest engine rulessoleri agent refreshTo re-scaffold from scratch (e.g., after a major version bump):
rm -rf ~/.npm/_npx # clear stale npx cachenpm create soleri@latest my-agentCustomize Your Agent
Section titled “Customize Your Agent”Edit files directly — no rebuild needed:
- Add rules: Create a new
.mdfile ininstructions/ - Add workflows: Create a new folder in
workflows/withprompt.md+gates.yaml - Add knowledge: Drop a JSON bundle in
knowledge/ - Change identity: Edit
agent.yaml
Run soleri dev and CLAUDE.md regenerates automatically on save.
Health Check
Section titled “Health Check”If something isn’t working:
npx @soleri/cli doctorReports Node version, npm status, agent context, vault health, and engine connectivity.
What’s Next
Section titled “What’s Next”- Your First 10 Minutes — a hands-on tutorial to see your agent in action
- The Development Workflow — learn the five-step rhythm: Search, Plan, Work, Capture, Complete
- CLI Reference — every CLI command with options and examples
- Extending Your Agent — add instructions, workflows, knowledge, and packs
Need help?
Section titled “Need help?”If you run into issues, check Troubleshooting or reach out at [email protected].