Skip to content
← Back to site
Soleri | Docs

Customizing Your Agent

Your agent ships with a default personality and starter knowledge. But the real power comes from making it yours — tuning its identity, adding domains that match your work, and setting up hooks that enforce your standards automatically.

Your agent has a persona — a name, role, and communication style. This isn’t cosmetic. The persona shapes how the agent frames its responses, what it emphasizes, and how it communicates.

You: “What’s your identity?”

Agent: Name: sentinel. Role: security-focused code review assistant. Voice: direct, technical, no-nonsense.

You set the persona during scaffold, but you can change it anytime:

You: “Update your role to: full-stack development assistant focused on React and Node.js”

Agent: Identity updated. Role changed.

Guidelines are rules the agent follows in every interaction. They shape behavior beyond the persona:

You: “Add this guideline: always suggest TypeScript strict mode when reviewing tsconfig changes”

Agent: Guideline added.

Guidelines stack with vault knowledge. The vault has what to do; guidelines control how the agent approaches work.

Domains are expertise areas. Each domain gets its own search partition and a domain facade with 5 operations (get_patterns, search, get_entry, capture, remove). Start with what you need and add more as your work evolves:

Terminal window
npx @soleri/cli add-domain infrastructure
npx @soleri/cli add-domain testing
npx @soleri/cli add-domain performance

After adding a domain, seed it with knowledge:

Terminal window
npx @soleri/cli install-knowledge ./bundles/infrastructure-patterns

Or capture knowledge interactively:

You: “Capture a critical pattern in the infrastructure domain: always set CPU and memory limits on Kubernetes pods.”

Agent: Captured in infrastructure domain.

Good domains are knowledge areas where you accumulate reusable patterns:

Good domainsWhy
securityClear rules, critical patterns, compliance requirements
frontendComponent conventions, accessibility standards
api-designEndpoint conventions, error formats, versioning rules
testingTest patterns, coverage standards, mocking approaches
infrastructureDeployment, scaling, monitoring patterns

Avoid domains that are too broad (“coding”) or too narrow (“button-styles”). You want enough specificity that searches return relevant results, but enough breadth that the domain accumulates useful knowledge.

Hooks are quality gates that run automatically during development. They catch common mistakes in real time — before they reach your codebase.

Terminal window
npx @soleri/cli hooks add-pack full

This installs all available hooks:

HookWhat it catches
no-console-logLeftover debug statements
no-any-typesTypeScript any usage
no-importantCSS !important declarations
no-inline-stylesInline style= attributes
semantic-htmlNon-semantic HTML elements
focus-ring-requiredMissing keyboard focus indicators
ux-touch-targetsTouch targets smaller than 44px
no-ai-attributionAI attribution in commit messages

Reduce LLM token usage by 60-90% by routing shell commands through RTK:

Terminal window
npx @soleri/cli hooks add-pack rtk

RTK intercepts Bash commands via a PreToolUse hook and compresses verbose output (git status, test runners, build logs, file listings) before it reaches the LLM context. Supports 70+ commands across git, JS/TS, Python, Go, Ruby, Rust, Docker, and more.

Prerequisites: RTK >= 0.23.0 (brew install rtk-ai/tap/rtk) and jq.

Terminal window
npx @soleri/cli hooks add claude-code # Claude Code hooks
npx @soleri/cli hooks add cursor # Cursor
npx @soleri/cli hooks add vscode # VS Code

Hooks run as pre-tool-use checks in your editor. When the agent is about to write code that violates a hook, the hook blocks it and explains why.

Knowledge packs are bundles of pre-built expertise you can install:

Terminal window
npx @soleri/cli install-knowledge <path-or-package>

Packs can be a local directory with JSON knowledge entries or an npm package following the Soleri knowledge pack format.

A knowledge pack contains typed entries — patterns, anti-patterns, principles, workflows — organized by domain:

my-pack/
├── patterns/ # Proven approaches (JSON files)
│ ├── error-handling.json
│ └── retry-strategy.json
├── anti-patterns/ # What to avoid
│ └── silent-catches.json
├── principles/ # Guiding rules
├── workflows/ # Step-by-step procedures
└── manifest.json # Pack metadata

Each entry file contains a single knowledge entry:

{
"title": "Consistent API Error Format",
"description": "All API errors must return { error, code, details }.",
"type": "pattern",
"severity": "critical",
"domain": "backend",
"tags": ["api", "error-handling"]
}

The manifest.json declares the pack:

{
"name": "my-backend-patterns",
"version": "1.0.0",
"description": "Backend patterns for API development",
"domains": ["backend", "security"],
"entryCount": 15
}
TierSourceCost
StarterShips with every agentFree
Communitynpm registryFree

The starter pack gives your agent useful knowledge from day one. Community packs extend it with domain-specific expertise contributed by other developers.

Terminal window
npx @soleri/cli upgrade --check
Terminal window
npx @soleri/cli upgrade

The engine is updated independently of your agent folder:

Terminal window
npm update @soleri/core -g # Update engine globally
soleri dev # Restart with new engine

Engine upgrades are backward-compatible within the same major version. Your agent folder, vault data, and all customizations are preserved.

Control how strictly knowledge enters your vault:

Terminal window
npx @soleri/cli governance --preset strict # All captures require approval
npx @soleri/cli governance --preset moderate # Auto-approve suggestions, review critical
npx @soleri/cli governance --preset permissive # Auto-approve everything
PresetSuggestionsWarningsCriticalQuota
permissiveAuto-approveAuto-approveAuto-approveNo limit
moderateAuto-approvePropose for reviewPropose for review50/domain
strictPropose for reviewPropose for reviewPropose for review30/domain
  • Quotas — maximum entries per domain or type, prevents unbounded vault growth
  • Retention — how long unused entries survive before decay candidates are flagged
  • Auto-capture — which severity levels auto-approve vs. require proposal review
  • Duplicate detection — similar entries are rejected or proposed for merging

Start with moderate — it balances quality with convenience. Move to strict if your team has many contributors and you want to review every new pattern before it becomes active.

Terminal window
npx @soleri/cli governance --show

Link related projects to share knowledge across them:

You: “Link this project to ../api-server as related”

Link types:

TypeMeaningDirection
relatedSame domain or team — both projects can search each otherBidirectional
parentThis project derives from anotherUnidirectional
childAnother project derives from this oneUnidirectional
forkCode forkUnidirectional

Linked projects are included in cross-project searches with weighted relevance. See Cross-Project Knowledge for the full guide.


Next: Operator Learning — how your agent learns about you over time. See also CLI Reference for all command details, Creating Packs for building extensions, and Skills Catalog for available skills.