CE (Community Edition): AI integration, Clean Architecture, Real functionality
HelmStack CE implementation following strict Clean Architecture with Contract-first development and AI integration with offline fallback.
HelmStack follows 4 focused repositories with Clean Architecture:
helmstack/
โโโ helmstack-schemas # ๐ Contracts & Validation (Zod + JSON Schema)
โโโ helmstack-core # ๐๏ธ Business Logic & Ports (Services + Interfaces)
โโโ helmstack-addons # ๐ Real World Adapters (Git, FS, AI Providers)
โโโ helmstack-cli # ๐ป Command Interface (OCLIF + Commands)
- Contract-First: All data types defined with Zod schemas, exported as JSON Schema
- Ports & Adapters: Clean separation between interfaces (core) and implementations (addons)
- Thin CLI: Commands only handle parsing and validation, delegate to services
- CE = AI var, ML yox: Multiple providers (OpenAI, Anthropic, Gemini) with heuristic fallback
- Deterministic & Atomic: File operations with tempโfsyncโrename pattern
- Transparency: Complete audit trail in Envelope format
- Security: Policy guards, secret redaction, file access control
- Performance: Sub-300ms CLI start, enforced budgets per operation
heck init- Initialize workspace (idempotent)heck focus- Manage current focusheck plan- Generate development plans (AI)heck review- Code review with auto-fix (AI)heck wrap- Complete work session
heck test- Run test suites with reportsheck fix- Auto-fix issues from test reports (AI)
heck edit <file>- AI-assisted editingheck refactor <pattern>- Code refactoring (AI/AST)
heck index- Build code index (.heck/cache)
heck patch create- Create atomic patchesheck patch apply- Apply with HITL previewheck patch rollback- Rollback changes
heck commit- Conventional commits (AI assist)
heck adapter- Configure AI providers
heck status- Project statusheck metrics- Performance metricsheck snapshot- State snapshotsheck memory- Knowledge management
heck sync- GitHub/Jira/Trello syncheck team- Team managementheck audit- Audit reportsheck share/heck join- Session sharing
heck orchestrate- AI pipelinesheck suggest- Smart suggestionsheck pair- AI pair programming
heck repo- Repository creationheck publish- Package publishingheck pr- Pull request automationheck config- Configuration management
heck brand sync- Brand asset management
heck health- System diagnostics
curl -fsSL https://raw.githubusercontent.com/helmstack/helmstack/main/install-helmstack.sh | bashnpm install -g helmstack# Initialize workspace
heck init
# Check status
heck status
# Add focus items
heck focus add "Build authentication system" --priority high
# Generate AI project plan
heck plan "Build a modern web application"
# Configure AI (optional)
heck adapter set openai --model gpt-4curl -fsSL https://raw.githubusercontent.com/helmstack/helmstack/main/uninstall.sh | bash# Build in dependency order
npm run build:schemas
npm run build:core
npm run build:addons
npm run build:cli
# Run tests
npm run test:all
# Test specific components
cd helmstack-core && npm test
cd helmstack-cli && npm run test:commandsHelmStack supports multiple AI providers with automatic fallback:
# Configure providers
heck adapter set --provider openai --model gpt-4 --key $OPENAI_API_KEY
heck adapter set --provider anthropic --model claude-3 --key $ANTHROPIC_API_KEY
# Test providers
heck adapter test
# Use AI features
heck plan --ai # AI-generated development plan
heck review --auto-fix # AI code review with fixes
heck suggest --scope tasks # AI task suggestions
heck pair # AI pair programmingWhen no AI providers are configured, HelmStack uses built-in heuristics.
Protect sensitive files automatically:
{
"rules": [
{ "glob": ".env", "action": "block" },
{ "glob": "deploy/**/*.yaml", "action": "confirm" },
{ "glob": "db/migrations/**", "action": "confirm" }
],
"on_confirm_note": "Two-man rule for production changes."
}All runlogs automatically redact sensitive information.
HelmStack enforces strict performance budgets:
- CLI Start: <300ms
- Plan Generation: <60s
- Test Smoke: <30s
- Patch Apply: <1s
HelmStack creates a .heck/ directory for workspace management:
.heck/
โโโ config.json # Configuration
โโโ focus.md # Current focus
โโโ next-steps.md # Task list
โโโ policy/
โ โโโ rules.json # Security rules
โโโ patches/ # Atomic patches
โโโ runlogs/ # Operation history
โโโ cache/ # Performance cache
โโโ migrations/ # Schema migrations
- Follow CE Principles: Contract-first, Ports & Adapters
- Add Tests: Unit tests for services, integration tests for adapters
- Update Schemas: Add/modify Zod schemas for new data types
- Document Commands: Full help text and examples
- Performance: Ensure operations meet budget requirements
MIT License - see LICENSE file for details.
๐ฏ HelmStack: Where AI meets Clean Architecture for developer productivity
Built following CE (Community Edition) principles with real functionality