RuXt DocsAgent packages · UAM
Documentation / Agent development / RuXt Agent Development Guide

RuXt Agent Development Guide

← Back to the main guide

The approved-specification rule, your development phases, and a complete Font Creator example for building RuXt agents.

This guide defines how you can turn any concept into a complete RuXt AI agent using Codex, Cursor, or another AI coding tool.

The main rule is:

An agent must be created from an approved specification and workflow, not from one large development prompt.

Use this guide to move from an idea to a tested package. The separate Create RuXt AI agents page is the short, practical checklist for the same process.

1. Start with the concept

You explain the concept in plain language. The AI coding tool should ask questions before writing implementation code:

Start a new AI coding chat for a new agent design. The first instruction should be:

Read START-HERE.md and AGENTS.md before doing anything else.

We are starting a new RuXt agent creation project.
Do not write implementation code and do not modify agents/ yet.

Ask me exactly:
“What is your agent concept?”

After I answer, ask discovery questions one group at a time. Create a
Definition Pack and wait for human approval before implementation.

2. Create the approved specification

The Architect phase converts the conversation into a Definition Pack. It should define the product behavior before a Builder writes code.

agent-developer/exports/<agent-slug>/
├── agent.md
├── workflow.rwxb
├── manifest.json
├── approval.json
└── test-plan.json

agent.md should stay short and stable. It defines identity, scope, voice, boundaries, safety rules, and completion verification.

workflow.rwxb is the developer-owned behavior contract. It defines actions, buttons, forms, prompts, resources, tool windows, transitions, allowed next steps, required inputs, and verification rules. The UI must not invent workflow behavior that is absent from the workflow.

manifest.json identifies the agent and its capabilities. approval.json records the human approval gate. test-plan.json records the scenarios that must pass before packaging.

3. Review and approve

You review the Definition Pack as a product specification, not only as code. Confirm:

The Builder must not modify agents/ until approval.json is explicitly approved.

4. Build only the approved design

After approval, you can ask the Builder to implement the agent:

The Definition Pack is approved. Build the agent now.

Use templates/ruxt-agent/ as the reusable structure. Implement only the
approved specification. Keep agent.md short and put detailed behavior in
workflow.rwxb. Do not create or distribute a user's .uam file.

Run validation after implementation and report every changed file, test
result, remaining limitation, and dashboard URL.

The implementation normally lives at agents/<agent-slug>/. RuXt creates the user's private data/uam/<agent-slug>.uam at runtime. UAM is not a replacement for the package specification and must not grant new capabilities.

5. Test the running RuXt Dashboard

From the RuXt-Dashboard project root:

./scripts/activate-project.sh
npm run validate-agent-template
npm test

Then open http://localhost:1234 and test the actual agent. Verify new chat, existing-project continuity, free text, workflow buttons, tool-window handoff, AI-server/model selection, live task status, cancellation, recovery, output verification, and feedback-linked UAM records.

An agent is not complete because a script ran. The running dashboard must show the result, and the result must be verified.

6. Example: Font Creator agent

Concept

Create a font from a user's handwriting, preview it, install it safely, and make it available to supported document and design applications so the user can type with their own handwriting style.

Definition Pack proposal

welcome
→ collect_samples
→ inspect_coverage
→ request_missing_characters
→ generate_font
→ preview_font
→ approve_installation
→ install_font
→ choose_application
→ apply_to_document
→ export_or_share

User experience

The agent opens with a clear explanation of its duty and asks how the user wants to provide handwriting samples. It can offer buttons such as:

After the user selects Generate font, the selected action appears in the chat composer as a creative request box. The user can type additional instructions before sending. The agent then shows its result in the chat and presents only the next workflow actions that are valid for the generated result.

Tools and resources

The developer defines the handwriting sampler, glyph-coverage checker, font-generation tool, preview renderer, local font installer, supported-application bridge, and export scripts as package resources. Each tool validates its own inputs and returns a structured result.

The agent may use a selected AI server for explanation, classification, and planning, but deterministic file conversion and installation checks should remain in reviewed scripts wherever possible.

Sensitive data and safety

Font Creator acceptance tests

7. Package and hand off

From the project root, run the deterministic handoff checks and create the release archive:

npm run test:handoff
npm run test:image-fit
npm run package-agent -- --agent <agent-slug> --out outputs/packages

The release archive contains the runnable agent, approved Definition Pack, handoff guides, release notes, and checksums. It excludes private UAM memory, credentials, .env files, runtime databases, logs, caches, and user-generated outputs.

The Reviewer records:

Never distribute private UAM files, credentials, deployment secrets, personal files, or local session tokens.

Continue with your workflow

Use Create RuXt AI agents for the downloads, exact Architect/Builder prompts, reusable template, and short step-by-step handoff process.

← View the complete development guide