Scope
This guide is for developers who want to:- Design production agent profiles.
- Add new executable tools to the desktop runtime.
- Keep Airlock and policy behavior safe by default.
Build an agent profile
UseAgent Builder in the app for normal profile creation, then validate with test prompts in Agent Chat.
Recommended sequence:
- Define narrow role and expected outputs in
Soul. - Enable only required tool categories in
Skills. - Keep memory scope minimal in early versions.
- Set strict Airlock defaults.
- Validate with representative prompts before deploying.
Add a new local tool (Rust)
Implement tools insrc-tauri/src/services/skill_executor.rs.
- Add the tool argument schema struct.
- Add the tool definition in
get_tool_definitions(). - Add method routing in
execute(). - Implement handler logic (for example
handle_new_skill). - Assign correct Airlock level and policy behavior.
- Add tests in Rust for allowed/blocked behavior.
Expose tool behavior to UI
Update relevant UI defaults and docs so users can understand and safely use the new capability. Common places:src/components/neural/*src/services/tauri.tsrainy-docs/reference/skills-reference.mdx
Security requirements
- Avoid broad filesystem or shell access by default.
- Keep dangerous operations explicitly gated.
- Document any new destructive path in
/reference/airlock-security.
