Skip to content

Conversation

@ront85
Copy link

@ront85 ront85 commented Nov 3, 2025

Summary

Adds Factory AI support to agent-os. When enabled via factory_ai_droids: true, automatically generates Factory AI droids (.factory/droids/) and slash commands (.factory/commands/) from existing agent definitions. Enables agent-os workflows to be used directly in Factory AI via commands like /plan-product, /implement-tasks, etc.

Linked item

  • Implements: Factory AI integration feature request

Checklist

  • Linked to related Issue/Discussion
  • Documented steps to test (below)
  • Backwards compatibility considered (disabled by default, no impact on existing features)

Documented steps to test

  1. Enable: Set factory_ai_droids: true in ~/agent-os/config.yml
  2. Install: Run ~/agent-os/scripts/project-install.sh in test project
  3. Verify files: Check .factory/droids/ (8 files) and .factory/commands/ (6 files) exist
  4. Enable in Factory AI: Run /settings, toggle Custom Droids ON, restart droid
  5. Test: Run /droids to see list, try /plan-product to test delegation

Notes for reviewers

  • config.yml - Added factory_ai_droids config option (default: false)
  • scripts/common-functions.sh - Added droid/command generation (+272 lines)
  • scripts/project-install.sh & project-update.sh - Added flag parsing and installation flow
  • profiles/default/factory-ai-droid-template.md - New template file

Key features:

  • Generates 8 droids from agents/*.md and 6 commands from commands/*/multi-agent/*.md
  • Tool mapping: Write→Read/LS/Grep/Glob/Create/Edit/MultiEdit/Execute, Bash→Execute
  • Slash commands delegate to droids via Task tool

…ated config.yml to include factory_ai_droids option, modified common functions and installation scripts to handle droid creation and installation based on this new setting.
ruizrica pushed a commit to ruizrica/agent-os that referenced this pull request Nov 5, 2025
This PR adds Factory AI integration to enable automatic generation of
droids and slash commands from existing agent definitions.

Key changes:
- Added factory_ai_droids configuration option (default: true)
- Created factory-ai-droid-template.md for droid generation
- Implemented tool mapping from agent-os to Factory AI equivalents
- Added functions: map_tools_to_factory(), create_factory_droid(),
  create_factory_command(), install_factory_droids()
- Integrated Factory AI installation into project-install.sh and
  project-update.sh scripts
- Changed use_claude_code_subagents default to false (Factory AI
  uses its own delegation model)

When enabled, automatically generates:
- 8 droids from agent definitions in .factory/droids/
- 6 commands from multi-agent configurations in .factory/commands/

Code review: ✅ PASSED
- Well-structured and follows existing conventions
- Proper error handling and cleanup
- Backward compatible
- Reuses existing compilation infrastructure
ruizrica added a commit to ruizrica/agent-os that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant