RuXt Agent Development 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:
- Who will use the agent?
- What result should the user receive?
- What should happen in a normal successful session?
- Which actions must be buttons, forms, tool windows, or free-text requests?
- Which files, applications, AI servers, models, scripts, databases, and permissions are required?
- What is sensitive, destructive, reversible, or subject to human approval?
- What feedback or verified experience should be saved in the agent's private
.uamfile?
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.jsonagent.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 user journey and project/chat behavior;
- every predictable next action and button;
- free-text behavior after a workflow action;
- sensitive forms and secret-file handling;
- AI-server and model routing;
- tool permissions and destructive-action confirmation;
- errors, cancellation, recovery, and stopped-agent status;
- output verification and feedback capture;
- selective UAM memory rules.
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 testThen 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_shareUser 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:
- Upload handwriting samples
- Use camera scan
- Draw characters
- Review samples
- Add missing characters
- Generate font
- Type a preview
- Regenerate
- Install font
- Download
.ttf - Download
.otf - Open a supported application
- Apply to the current document
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
- Ask whether handwriting samples may be sent to an external AI service.
- Keep raw handwriting samples out of UAM by default.
- Store sensitive local configuration in a private file outside public output directories.
- Show a preview before installing a font.
- Require confirmation immediately before installing the font.
- Require confirmation before changing a document or opening an external application.
- Explain that font refresh behavior and application support differ by platform.
- Do not claim installation succeeded until the operating system and target application verify it.
Font Creator acceptance tests
- Missing glyphs are detected and explained.
- The user can add missing characters before generation.
- A generated font is previewed before installation.
- The user can regenerate without losing the project.
- Installation requires an explicit user action.
- Installation is verified after the tool runs.
- The font appears in supported applications or the agent explains the platform limitation.
- The current document is not modified without approval.
- The user can download
.ttfor.otfoutput. - Useful feedback is saved as a compact, verified UAM experience without saving raw handwriting by default.
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/packagesThe 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:
- source:
agents/<agent-slug>/; - package output:
outputs/packages/<agent-slug>-<version>.zip; - public catalog listing:
agents/<agent-slug>/listing.json; - UAM runtime file:
data/uam/<agent-slug>.uam; - optional domain database:
data/agent-databases/<agent-slug>.sqlite; - entry UI, bridge, scripts, and tool windows;
- validation commands, test results, and known limitations.
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.