Package Exports
- snow-flow
- snow-flow/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snow-flow) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Snow-Flow: ServiceNow Hive-Mind Intelligence ๐ง
Snow-Flow revolutionizes ServiceNow development through claude-flow inspired hive-mind architecture. One elegant command spawns intelligent AI agents that collaborate to build, test, and deploy professional ServiceNow solutions automatically.
๐ง The Hive-Mind Revolution
Inspired by claude-flow philosophy: "One Queen, many simple agents, simple memory, learn and adapt"
- ๐ Queen Agent: Master coordinator that analyzes objectives and spawns specialist agents
- ๐ค Worker Agents: ServiceNow specialists (Widget Creator, Flow Builder, Script Writer, Security, Test)
- ๐พ Shared Memory: SQLite-based persistent coordination system
- ๐ฏ Claude Code Integration: All coordination happens through Claude Code interface
- ๐ One Command:
snow-flow swarm "objective"- everything else is automatic
โจ What's New in v1.3.1 - Flow Designer XML Auto-Deployment COMPLETE!
๐ BREAKTHROUGH: Complete XML Update Set Auto-Import!
- โ ZERO MANUAL STEPS: One command imports, previews, and commits XML update sets automatically
- โ FLOW DESIGNER INTEGRATION: Automatic detection of Flow Designer artifacts in swarm commands
- โ XML GENERATION & DEPLOYMENT: Complete workflow from swarm creation to XML deployment
- โ SAFETY CONTROLS: Auto-preview with problem detection, only commits if clean
- โ
NEW CLI COMMAND:
snow-flow deploy-xml <file>for standalone XML deployment - โ MCP INTEGRATION: Extended deployment MCP to support xml_update_set type
๐ Flow Designer XML Workflow
# 1. Create flow with swarm
snow-flow swarm "create approval workflow for equipment requests"
# 2. Export XML automatically generated in flow-update-sets/
# 3. Deploy XML with single command - no manual import!
snow-flow deploy-xml flow-update-sets/flow_approval_workflow.xml
# โ
Complete automation: Import โ Load โ Preview โ Commit (only if clean)๐ Previous Release: v1.1.93 - Revolutionary Parallel Agent Spawning WORKING!
๐ BREAKTHROUGH: 6+ Parallel Agents Working Simultaneously!
- โ PROVEN RESULTS: 6+ specialized agents spawn automatically for widget development
- โ 2.8x SPEEDUP: Demonstrated 2.8x faster development vs single-agent approach
- โ SPECIALIZED TEAMS: widget-creator, css-specialist, backend-specialist, frontend-specialist, integration-specialist, performance-specialist, ui-ux-specialist, tester
- โ 100% DETECTION: Enhanced detection logic - no more missed parallelization opportunities
- โ INTELLIGENT 403 HANDLING: Gap Analysis Engine integration for automatic permission issue resolution
- โ MEMORY TOOLS FIXED: ServiceNow Memory MCP server added to template system
๐ Previous Release: v1.1.90 - Parallel Agent Engine Foundation
- Parallel Engine Architecture: Core foundation for intelligent agent spawning
- Task Analysis System: Detects opportunities for specialized breakdown
- Agent Coordination: Shared memory system for multi-agent collaboration
- Shared Memory Coordination: All parallel agents coordinate seamlessly through shared memory system
โก Execution Strategies
- Wave-based: Sequential waves of parallel agents for structured work
- Concurrent: All agents work simultaneously for maximum speed
- Pipeline: Agent handoffs with overlap for continuous workflow
- Hybrid: Intelligent mix of strategies based on task analysis
๐ง Learning & Optimization
- Performance Tracking: Stores execution results to improve future parallelization decisions
- Workload Balancing: Intelligent distribution across agent teams with utilization monitoring
- Graceful Fallback: Automatically falls back to sequential execution when beneficial
๐ง Previous Major Release: v1.1.88 - Intelligent Gap Analysis Revolution
๐ง REVOLUTIONARY: Intelligent Gap Analysis Engine
- Beyond MCP Tools: Automatically detects ALL ServiceNow configurations needed beyond standard MCP tools
- 60+ Configuration Types: System properties, LDAP/SAML auth, database indexes, navigation, forms, ACLs, and more
- Auto-Resolution Engine: Attempts automatic configuration via ServiceNow APIs for safe operations
- Manual Instructions Generator: Creates detailed step-by-step guides with role requirements and risk assessment
- Queen Agent Integration: Built into every Queen Agent execution - no additional commands needed
๐ฏ Complete ServiceNow Configuration Coverage
- ๐ Authentication: LDAP, SAML, OAuth providers, SSO, MFA configurations
- ๐๏ธ Database: Indexes, views, partitioning, performance analytics, system properties
- ๐งญ Navigation: Application menus, modules, form layouts, UI actions, policies
- ๐ง Integration: Email templates, web services, import sets, transform maps
- ๐ Workflow: Activities, transitions, SLA definitions, escalation rules
๐ค Intelligent Automation
- Requirements Analysis: AI-powered parsing of objectives to identify all needed configurations
- MCP Coverage Analysis: Maps what current tools can handle vs manual setup requirements
- Risk Assessment: Evaluates complexity and safety of each configuration
- Environment Awareness: Provides dev/test/prod specific guidance and warnings
๐ง Agent-Based MCP Integration
- Memory-Aware MCPs: All 11 MCP servers now integrate with agent coordination
- Progress Reporting: Real-time progress updates to Queen Agent
- No Mock Data: All operations use real ServiceNow (removed all placeholders)
- Error Recovery: Comprehensive fallback strategies with Queen intervention
๐ Enhanced CLI Orchestration
- Queen Agent Prompts: Swarm command generates comprehensive orchestration instructions
- Session Management: Unique session IDs with progress tracking
- Status Monitoring:
snow-flow swarm-status <sessionId>for real-time monitoring - Memory Coordination: All agents communicate through shared SQLite memory
๐ค Agent Ecosystem
๐ Queen Agent (Master Coordinator)
- Objective Analysis: Analyzes natural language objectives and determines complexity
- Agent Spawning: Dynamically spawns required specialist agents based on requirements
- Progress Monitoring: Real-time tracking of task completion and agent coordination
- Memory Management: Stores patterns and learns from successful executions
- Error Recovery: Makes strategic decisions when agents encounter problems
๐จ Widget Creator Agent
- HTML Templates: Creates responsive ServiceNow Service Portal widgets
- Server Scripts: Develops optimized server-side data processing logic
- CSS Styling: Implements professional styling with Chart.js integration
- Deployment: Uses
snow_deployMCP tools for direct ServiceNow deployment
๐ Flow Builder Agent
- Flow Design: Creates Flow Designer workflows with intelligent structure
- Trigger Configuration: Sets up optimal triggers (record events, scheduled, manual)
- Approval Processes: Implements complex approval hierarchies with escalation
- Integration: Uses
snow_create_flowMCP tools with comprehensive testing
๐ Script Writer Agent
- Business Rules: Creates optimized business logic with performance considerations
- Script Includes: Develops reusable server-side utilities with proper class structure
- Client Scripts: Implements UI behavior and validation logic
- Performance: Automatic optimization recommendations and best practices
๐ก๏ธ Security Agent
- Vulnerability Scanning: Scans for XSS, SQL injection, hardcoded credentials
- Access Control: Validates permissions and role-based security
- Compliance: Checks SOX, GDPR, HIPAA compliance requirements
- Remediation: Generates actionable security improvement plans
๐งช Test Agent
- Test Scenarios: Creates comprehensive test cases (positive, negative, edge cases)
- Mock Data: Generates realistic test data for validation
- Performance Testing: Validates response times and resource usage
- Integration Testing: Tests cross-component interactions and workflows
๐พ Memory System Architecture
SQLite-Based Coordination
-- Agent coordination and communication
agent_coordination: Track agent status, progress, and assignments
servicenow_artifacts: Store created widgets, flows, scripts with full metadata
agent_messages: Inter-agent communication and handoff coordination
shared_context: Session-wide shared data and configuration
deployment_history: Complete audit trail of all ServiceNow operations
agent_dependencies: Manage complex task dependencies and ordering
performance_metrics: Real-time performance tracking and optimizationMemory Usage Patterns
// Agents store context for coordination
Memory.store("widget_requirements", {
type: "incident_dashboard",
charts: ["pie", "bar", "timeline"],
responsive: true
});
// Other agents read and build upon context
const requirements = Memory.get("widget_requirements");
// Agent creates widget based on shared requirements๐ Quick Start
Prerequisites
- Node.js 18+ and npm
- ServiceNow instance with admin access
- OAuth application configured in ServiceNow
Installation & Setup
# Install Snow-Flow globally
npm install -g snow-flow
# Initialize with complete hive-mind environment
snow-flow init --sparc
# Configure ServiceNow credentials (.env file)
SNOW_INSTANCE=dev123456
SNOW_CLIENT_ID=your_oauth_client_id
SNOW_CLIENT_SECRET=your_oauth_client_secret
SNOW_USERNAME=admin
SNOW_PASSWORD=admin_password
# Authenticate with ServiceNow
snow-flow auth login
# ๐ Experience the hive-mind intelligence with Gap Analysis!
snow-flow swarm "Create incident management dashboard with real-time charts"
# ๐ง NEW: Advanced example showing Gap Analysis Engine
snow-flow queen "create ITSM solution with LDAP authentication and custom approval workflows"
# ๐ NEW: Complete Flow Designer XML deployment workflow
snow-flow swarm "create approval workflow for equipment requests"
snow-flow deploy-xml flow-update-sets/flow_approval_workflow.xml๐ง What You'll See with Gap Analysis Engine
snow-flow queen "create incident management with LDAP authentication"
๐ง Step 4: Running Intelligent Gap Analysis...
๐ Gap Analysis Complete:
โข Total Requirements: 12
โข MCP Coverage: 67%
โข Automated: 6 configurations
โข Manual Work: 4 items
โ
Automatically Configured:
โข System property: glide.ui.incident_management created
โข Navigation module: Incident Management added to Service Desk
โข Email template: incident_notification configured
โข Database index: incident.priority_state for performance
โข Form layout: incident form sections optimized
โข UI action: "Escalate Priority" button added
๐ Manual Configuration Required:
โข LDAP authentication setup (high-risk operation)
โข SSO configuration with Active Directory
โข Custom ACL rules for incident priority restrictions
โข Email server configuration for notifications
๐ Detailed Manual Guides Available:
๐ Configure LDAP Authentication - 25 minutes
Risk: high | Roles: security_admin, admin
๐ Setup SSO with Active Directory - 45 minutes
Risk: high | Roles: security_admin
๐ Create Custom ACL Rules - 15 minutes
Risk: medium | Roles: admin
๐ Configure Email Server - 20 minutes
Risk: low | Roles: email_admin
๐ก Recommendations:
โข Test LDAP configuration in development environment first
โข Coordinate with security team for SSO setup
โข Review ACL rules with business stakeholders๐ฏ Core Commands
๐ง Hive-Mind Orchestration
# Primary command - spawns Queen Agent with specialist workers
snow-flow swarm "objective"
# Monitor swarm progress
snow-flow swarm-status <sessionId>
# System status and health
snow-flow status
# Memory management
snow-flow memory stats
snow-flow memory export <file>๐ NEW: XML Update Set Deployment
# Deploy XML update sets automatically (Import โ Preview โ Commit)
snow-flow deploy-xml <xmlFile>
# Deploy with custom options
snow-flow deploy-xml flow.xml --no-preview # Skip preview step
snow-flow deploy-xml flow.xml --no-commit # Preview only, don't commit
# Example: Deploy generated flow XML
snow-flow deploy-xml flow-update-sets/flow_approval_workflow.xml๐ Intelligent Features (Enabled by Default)
- ๐ง Gap Analysis Engine: Automatically detects ALL ServiceNow configurations beyond MCP tools
- ๐ค Auto-Resolution: Attempts automatic configuration of system properties, navigation, auth
- ๐ Manual Guides: Generates detailed step-by-step instructions for complex setups
- ๐ XML Auto-Deployment: Complete XML update set import workflow with safety controls
- Smart Discovery: Automatically discovers and reuses existing artifacts
- Live Testing: Real-time testing during development on your ServiceNow instance
- Auto Deploy: Automatic deployment when ready (safe with update sets)
- Auto Rollback: Automatic rollback on failures with backup restoration
- Shared Memory: All agents share context and coordination state
- Progress Monitoring: Real-time progress tracking and status updates
๐๏ธ Advanced Options
# Enable automatic permission escalation for enterprise features
snow-flow swarm "create global workflow" --auto-permissions
# Disable specific features when needed
snow-flow swarm "test widget locally" --no-auto-deploy --no-live-testing
# Maximum control
snow-flow swarm "complex integration" \
--max-agents 8 \
--strategy development \
--mode distributed \
--parallel \
--auto-permissions๐ง Configuration
ServiceNow Connection
Create .env file in your project:
SNOW_INSTANCE=dev123456
SNOW_CLIENT_ID=your_oauth_client_id
SNOW_CLIENT_SECRET=your_oauth_client_secret
SNOW_USERNAME=admin
SNOW_PASSWORD=admin_passwordOAuth Setup in ServiceNow
- Navigate to System OAuth > Application Registry
- Create new OAuth application
- Set redirect URI to
http://localhost:3000/oauth/callback - Note the Client ID and Client Secret
- Grant necessary scopes for your development needs
๐ฏ Usage Examples
Widget Development
# Complete widget with intelligent agent coordination
snow-flow swarm "Create incident dashboard widget with pie charts and filter options"
# The Queen Agent will:
# 1. Analyze objective and spawn Widget Creator + Test Agent
# 2. Widget Creator builds responsive HTML/CSS/JS with Chart.js
# 3. Test Agent creates comprehensive test scenarios
# 4. Automatic deployment to ServiceNow with Update Set trackingFlow Creation & XML Deployment
# Complex approval workflow with automatic XML generation
snow-flow swarm "Build approval flow for equipment requests with manager and finance approval"
# The Queen Agent will:
# 1. Spawn Flow Builder + Security Agent
# 2. Flow Builder designs multi-step approval process
# 3. Security Agent validates permissions and compliance
# 4. Automatic XML generation in flow-update-sets/ directory
# 5. Display deploy-xml command for seamless deployment
# ๐ NEW: Complete XML deployment workflow
snow-flow deploy-xml flow-update-sets/flow_equipment_approval.xml
# โ
Automatic process:
# โข Import XML to ServiceNow
# โข Load remote update set
# โข Preview changes & check for conflicts
# โข Commit automatically if clean (or prompt if issues found)Complete Solutions
# End-to-end solution development
snow-flow swarm "Create complete ITSM incident management solution with dashboards, automation, and reporting"
# The Queen Agent will:
# 1. Analyze complexity and spawn all required agents
# 2. Coordinate parallel development of multiple components
# 3. Ensure integration between widgets, flows, and scripts
# 4. Comprehensive testing and phased deployment๐๏ธ Architecture
Hive-Mind Coordination Flow
- CLI Analysis: User runs
snow-flow swarm "objective" - Queen Activation: Queen Agent analyzes objective and determines requirements
- Agent Spawning: Queen spawns specialist agents based on complexity assessment
- Memory Initialization: SQLite memory system activated for coordination
- Parallel Execution: Agents work independently while sharing context through memory
- Progress Monitoring: Real-time status updates via shared memory state
- ServiceNow Integration: Agents use 11 specialized MCP servers for operations
- Completion: Final artifacts delivered with comprehensive audit trail
Memory-Driven Coordination
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Snow-Flow Hive-Mind System โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Claude Code โโโโโบโ Snow-Flow CLI โโโโโบโ ServiceNow โ โ
โ โ Interface โ โ Orchestrator โ โ Instance โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ โ โ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Swarm Memory โโโโโบโ Queen Agent โโโโโบโ MCP Tools โ โ
โ โ (SQLite) โ โ Coordinator โ โ (11 MCPs) โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ โ โ
โ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ ServiceNow Specialist Agents โ
โ โ โ
โ โ Widget Creator โ Flow Builder โ Script Writer โ โ
โ โ Security Agent โ Test Agent โ [Future Agents] โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ง Development
Project Structure
snow-flow/
โโโ src/
โ โโโ agents/ # Queen Agent and specialist agents
โ โโโ memory/ # SQLite-based coordination system
โ โโโ mcp/ # 11 ServiceNow MCP servers
โ โโโ cli/ # Enhanced CLI with Queen orchestration
โ โโโ config/ # Configuration management
โ โโโ health/ # System health monitoring
โ โโโ monitoring/ # Performance tracking
โโโ SNOW_FLOW_ARCHITECTURE.md # Complete system architecture
โโโ MCP_ARCHITECTURE.md # Agent-specific MCP design
โโโ CLAUDE.md # Development configurationBuild and Test
# Build the project
npm run build
# Run tests
npm run test
# Type checking
npm run typecheck
# Memory system test
npm run test:memory
# MCP integration test
npm run test:mcp-integration๐ค Contributing
We welcome contributions to the Snow-Flow hive-mind ecosystem! Please read our contributing guidelines and submit PRs for new agents, MCP enhancements, or architecture improvements.
Priority Areas
- Additional specialist agents (Integration, Reporting, etc.)
- Enhanced memory patterns and learning algorithms
- Advanced Queen Agent decision-making capabilities
- ServiceNow-specific optimizations and best practices
๐ License
MIT License - see LICENSE file for details.
๐ Future Vision
Snow-Flow will become the definitive AI-driven ServiceNow development platform, where developers describe any ServiceNow objective in natural language and watch intelligent agents collaborate to build, test, and deploy professional solutions automatically.
Core Promise: "Describe what you want in ServiceNow, and our AI swarm will build it for you."
Experience the future of ServiceNow development with Snow-Flow's hive-mind intelligence. ๐ง โจ