RuXt DocsAgent packages · UAM
Documentation / Agent development

RuXt Agent and UAM Development Guide

A complete guide to specialized agent types, package creation, workflows, and Universal AI Memory.

Universal documentation rule: Show every file and folder on its own line, preserve indentation, and give file trees generous line spacing. All documentation uses this shared header, navigation, article, and contents template.
Starting with an idea? Read the RuXt Agent Development Guide for the approved-specification rule, then use Create RuXt AI agents for your short workflow, handoff ZIP, reusable template, and AI coding prompts.

This guide explains how you can create, package, install, test, and maintain RuXt agents. It is intended for you when you are building many specialized agents for local RuXt installations.

Agent types

Build your own RuXt agent by choosing a type and defining its role, tasks, prompts, interface, tools, and memory. The ten types are computer software use, browser use, creation, visual presentation, supervisor, database, RuXt-specific, local filesystem, automation, and external task agents. The detailed guide provides building steps, examples, and a resource checklist for each type, with macOS and Windows as target platforms.

For database agents, the intended design is to keep structured domain tables inside that agent's UAM file through a controlled extension API. The separate domain-database examples elsewhere describe an alternative design, not a requirement for this family. The UAM domain-extension API still needs implementation.

Explore agent types and development methods examples →

1. Architecture

Keep the framework and memory separate:

.ruxt / .🔰 package  = what the agent is and what it can do
.uam file            = what the agent remembers and learns
RuXt SQLite          = shared dashboard chats, tasks, and workspace data

The package is authoritative. UAM may personalize behavior, but it must not grant new capabilities or override safety rules from the package.

RuXt separates marketplace presentation from the installed runtime. A creator submission may include listing.json, guide/, screenshots, videos, README.md, and COPYRIGHT.md. RuXt uses those files to publish /ai-agents/<slug>/. A downloaded runtime package may omit the public guide files.

Explore the architecture walkthrough →

2. Package extensions

Users choose .🔰 or .ruxt when importing an agent. These are equivalent RuXt package extensions. .🔰 is the preferred user-facing extension; .ruxt is the fallback for systems that do not handle emoji extensions reliably. Open-source packages may use a readable ZIP container. Commercial protected-local packages use a versioned RuXt container with a RUXT-PKG header, authenticated encryption, and a signature. The protected file does not expose a ZIP directory to ordinary archive tools.

workflow.rwxb means Ruxt Workflow Bundle. It is an internal compiled and signed workflow payload for a commercial protected-local agent. It lives inside the protected package and is loaded by RuXt. It is not a user-installable package extension. Open-source agents can use readable workflow.json and prompts/ files.

manifest.json, ruxt-package.json, listing.json, and personalization.json are internal metadata files. They describe the package, agent identity, marketplace page, or editable fields. They must not be presented as selectable file types. .uam is private memory created locally after installation and is not a package type.

Packages must be smaller than 25 MB, must not contain symbolic links or unsafe paths, and must include a manifest.

RuXt validates the package mode, signature, slug, size, and paths before installation. Local execution remains offline-capable. Protected-local packaging reduces casual extraction, but locally executed code can still be inspected by the computer owner.

Command-line onboarding can still register package icons. macOS installs a small signed Ruxt.app helper and registers .🔰 and .ruxt through LaunchServices. Windows registers both extensions with a Ruxt icon resource and an open command. The package itself does not need to be executable.

Explore package extensions examples →

3. Minimal package

Use this structure for a simple agent:

RuXt-Dashboard/
├── agents/
│   └── writing-assistant/
│       ├── manifest.json
│       ├── ruxt-package.json
│       ├── agent.md
│       ├── avatar.png
│       └── ui/
│           └── index.html
└── data/
    └── uam/
        └── writing-assistant.uam    # created locally by RuXt

The package contains the files under agents/writing-assistant/. RuXt creates data/uam/writing-assistant.uam during initialization; do not distribute a user's private memory inside the package.

A marketplace submission can additionally contain listing.json, guide/, personalization.json, README.md, and COPYRIGHT.md. personalization.json describes editable fields. It does not contain a user's name. Ruxt stores the user's preferred name and any agent-specific display-name override in local settings and UAM.

manifest.json:

{
  "format": "ruxt-agent-package/v1",
  "slug": "writing-assistant",
  "name": "Writing Assistant",
  "role": "Writing and editing specialist",
  "description": "Improves clarity, structure, and tone of user writing.",
  "capabilities": ["rewrite", "proofread", "summarize"],
  "allowSupervisors": false,
  "ui": { "type": "custom", "entry": "ui/index.html" },
  "agent": {
    "name": "Writing Assistant",
    "role": "Writing and editing specialist",
    "avatar": "avatar.png"
  }
}

ruxt-package.json:

{
  "format": "ruxt-agent-package/v1",
  "slug": "writing-assistant",
  "preferredExtension": ".🔰",
  "fallbackExtension": ".ruxt"
}

agent.md should contain stable, short instructions:

# Writing Assistant

You are a writing and editing specialist.

## Boundaries
- Work only on writing, editing, summarization, and related document tasks.
- Do not claim a document was saved unless RuXt verifies the file.
- Ask one clear question when the request is genuinely ambiguous.

## Communication
- Speak in first person.
- Put the useful result first.
- Keep progress updates brief and natural.

Explore minimal package examples →

4. Advanced package

Use this structure for an agent that runs scripts, controls an application, or manages structured data:

RuXt-Dashboard/
├── agents/
│   └── clinic-operations/
│       ├── manifest.json
│       ├── ruxt-package.json
│       ├── agent.md
│       ├── bridge.js
│       ├── platform.js
│       ├── avatar.png
│       ├── workflow.rwxb        # commercial protected-local workflow bundle
│       ├── config/
│       │   └── permissions.json
│       ├── scripts/
│       │   ├── import_records.py
│       │   ├── generate_report.py
│       │   └── backup_database.py
│       ├── tools/
│       │   └── database-bridge
│       ├── schemas/
│       │   └── patient.schema.json
│       └── ui/
│           ├── index.html
│           ├── studio.css
│           └── studio.js
└── data/
    ├── uam/
    │   └── clinic-operations.uam    # created locally by RuXt
    └── agent-databases/
        └── clinic-operations.sqlite    # optional, created by the agent

This tree shows the installed layout. Only the framework under agents/clinic-operations/ belongs in the distributable package. RuXt creates the private UAM separately. The optional domain database requires initialization and migrations supplied by the agent developer; it is not automatically provided for every agent.

For an open-source package, replace workflow.rwxb with readable workflow.json and prompts/ files. workflow.rwxb is the signed Ruxt Workflow Bundle used by a commercial protected-local package. It is loaded internally by RuXt and is not installed directly by users.

Use bridge.js for RuXt routes and task orchestration. Keep deterministic work in short scripts. Validate all input paths and never let a package write outside approved workspace directories.

Explore advanced package examples →

5. Action workflows

Add optional workflow.json and prompts/ files to define action buttons, forms, and separate task instructions for an open-source package. A commercial protected-local package can compile this workflow into a signed protected bundle such as workflow.rwxb. Each step combines the agent's UAM profile and relevant memories with the action prompt and user input. For a website agent: Create website, then Modify, Host website, Hosting guide, or Add database. Each action keeps the same project and prior artifact. Developers wire the shared /agent-workflow.js component into their UI; it provides forms, task monitoring, cancellation, recovery, and task-linked UAM ratings. No subsequent action runs until the user selects it.

Secret form values are saved in private local dotenv files outside public output directories. They are excluded from prompts and memory, but the files are not encrypted and local execution tools can access them. Deployment helpers should read them locally and exclude them from uploads.

Explore action workflows examples →

6. UAM creation

RuXt creates one UAM file per installed agent:

data/uam/writing-assistant.uam
data/uam/clinic-operations.uam

The file is a SQLite database managed by RuXt’s UAM layer. Agents should use the UAM API rather than opening the file directly.

RuXt keeps the global preferred user name in local settings. An agent may store a display-name override and personalization preferences in its own UAM. The package never contains the user's name.

Typical sections include:

agent_profile
memory_items
tasks
feedback
experiences
learning_evaluations
agent_relationships
performance_metrics
retrieval_metrics
audit_log

Example memory record:

{
  "id": "mem_01JX...",
  "type": "preference",
  "content": "The user prefers concise weekly timetables with weekends shaded.",
  "source": "user_feedback",
  "sourceTaskId": "task_01JX...",
  "confidence": 0.96,
  "importance": 0.78,
  "verificationStatus": "verified",
  "lifecycle": "active",
  "createdAt": "2026-11-25T08:00:00Z",
  "updatedAt": "2026-11-25T08:05:00Z",
  "lastVerifiedAt": "2026-11-25T08:05:00Z"
}

Explore uam creation examples →

7. UAM memory lifecycle

Use explicit lifecycle states:

candidate → active → superseded → archived

Do not promote an AI assumption directly to trusted active memory. Explicit user corrections and verified task evidence may use stronger promotion rules than guesses.

8. Task execution and retrieval

Every request should follow this sequence:

1. Classify task intent locally.
2. Decide whether memory is useful.
3. Reuse a valid cached retrieval result when possible.
4. Search UAM with agent, project, and permission scope.
5. Rank by relevance, importance, confidence, and recency.
6. Enforce the task token budget.
7. Remove duplicate or contradictory context.
8. Send only the compact context needed by the selected local or user-configured AI provider.
9. Execute and verify the result.
10. Save task outcome and feedback to UAM.

Do not load the full UAM file into every prompt. A simple task may need no memory; a focused task may need three relevant memories; a complex project may need a small summarized bundle.

9. Saving experience

After a verified task, record a compact experience:

{
  "id": "exp_01JX...",
  "sourceTaskId": "task_01JX...",
  "method": "Used a weekly grid, shaded Saturday and Sunday, then froze the header row.",
  "result": "success",
  "confidence": 0.9,
  "validatedBy": "user_feedback",
  "reusableWhen": ["weekly timetable", "school schedule"],
  "createdAt": "2026-11-25T08:20:00Z"
}

Record mistakes and corrections separately. A low rating should create a learning evaluation, not silently rewrite the agent’s core instructions.

10. Agent-owned databases

Only advanced agents should create a domain database when structured records are required:

data/agent-databases/clinic-operations.sqlite

The UAM stores the agent’s experience about using that database. The domain database stores the actual business records. Never mix private patient or financial records into general conversational memory.

The agent must define:

11. Installation flow

When a user selects Add Agent:

  1. RuXt validates the package header or open archive, manifest, license mode, and signature when present.
  2. RuXt rejects unsafe paths and oversized packages.
  3. A protected package is authenticated and decrypted into a short-lived sandbox. RuXt loads the signed workflow.rwxb Ruxt Workflow Bundle from the protected payload. An open package is validated as a safe archive and loads its readable workflow.json and prompts/ files. The runtime is then installed into agents/<slug>/.
  4. The avatar is copied to persistent avatar storage.
  5. RuXt creates or opens data/uam/<slug>.uam.
  6. The agent appears in the dashboard.
  7. The user reviews identity and permissions.
  8. The agent can start its first chat.

If an agent already exists, RuXt should back up the old package before replacement and preserve the existing UAM file.

When a user downloads an agent from /ai-agents/<slug>/, the page supplies the package download. The marketplace page may use rich listing.json and guide files, while the runtime download contains only the files needed to run the agent. RuXt does not rebuild a package with the user's name. It reads the local preferred name at runtime.

Explore installation flow examples →

12. Agent APIs

Agents should use the shared RuXt APIs for:

create memory
retrieve relevant memory
record task
record feedback
record experience
search memories
update lifecycle state
record memory usefulness
export/import UAM

Do not write directly to another agent’s UAM. Shared knowledge must be explicitly approved, scoped, and attributed to its source agent.

13. Security and privacy

14. Testing checklist

Before packaging an agent, verify:

Package

Runtime

UAM

Cost and quality

Explore testing checklist examples →

15. Packaging and handoff

From the project root:

node --check agents/<slug>/bridge.js
npm run test:handoff
npm run package-agent -- --agent <agent-slug> --out outputs/packages
./scripts/activate-project.sh
curl -fsS http://localhost:1234/ >/dev/null

The release ZIP contains the runnable agent, approved Definition Pack, handoff guides, release notes, and checksums. It excludes private .uam memory, .env files, credentials, runtime databases, logs, caches, node_modules, generated outputs, and symlinks. The matching public catalog metadata is agents/<agent-slug>/listing.json; upload both files to the RuXt member or team portal only after review.

Give the employee this handoff information:

Agent source: agents/<slug>/
Package command: npm run package-agent -- --agent <agent-slug> --out outputs/packages
Package output: outputs/packages/<slug>-<version>.zip
Catalog listing: agents/<slug>/listing.json
UAM runtime file: data/uam/<slug>.uam
Domain database: data/agent-databases/<slug>.sqlite (if required)
Entry UI: agents/<slug>/ui/index.html
Bridge: agents/<slug>/bridge.js

The developer should test the installed package through the dashboard, not only by inspecting files. A feature is complete only after the running RuXt application proves installation, execution, verification, memory retrieval, persistence, and the marketplace page/download flow.

Keep permanent capability instructions short and stable in the package. Store changing user preferences, verified methods, feedback, and professional experience in UAM. Retrieve only what is relevant to the current task.

Package: “I am an Excel specialist and may create workbooks.”
UAM:     “This user prefers compact weekly timetables with weekend shading.”
Task:    “Create a timetable for next month.”

This separation makes agents portable, safer to update, cheaper to run, and easier to scale to hundreds of specialized agents.