All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Missing Skill Templates in Package - Added skill templates to npm package that were missing from v7.2.0:
using-clavix.mdmeta-skill templateimplement-templates/directory with subagent prompt templates- Updated
implement.md,verify.md,plan.md,prd.mdskill templates with verification patterns
-
Verification Loop Patterns - Robust verification and fix loops across Clavix skills:
- Iron Laws: "No completion without verification evidence" and "Issues found = issues fixed + re-verified"
- Verification Gate Pattern: IDENTIFY → RUN → READ → VERIFY before any completion claims
- Mandatory Fix Loops: Cannot proceed until issues are fixed AND re-verified
- 3-Strike Rule: If 3+ fix attempts fail, stop and ask for help
-
using-clavixMeta-Skill - New orchestration skill establishing workflow rules:- Skill invocation requirements (check for skills BEFORE any action)
- Complete workflow map showing skill chains
- Required skill chains (prd → plan → implement → verify)
- Red flags table for catching rationalization patterns
- Skill priority order (exploration → planning → implementation → verification)
-
Subagent Templates - New templates for delegating implementation work:
clavix-implement/implementer-prompt.md- Dispatch implementer subagentclavix-implement/spec-reviewer-prompt.md- Dispatch spec compliance reviewerclavix-implement/quality-reviewer-prompt.md- Dispatch code quality reviewer- Two-stage review pattern: spec compliance first, then code quality
-
Required Sub-Skill References - Explicit skill chain enforcement:
clavix-prd→ REQUIRED:clavix-planclavix-plan→ REQUIRED:clavix-implementclavix-implement→ REQUIRED:clavix-verify(after all tasks)
-
clavix-implementSkill - Major verification enhancements:- Added Iron Law section at top of skill
- Replaced optional verification with mandatory Verification Gate
- Added Fix Loop pattern with re-verification requirement
- Added subagent template references
- Removed "skip verification" options from troubleshooting
-
clavix-verifySkill - Mandatory fix loops:- Added Iron Law: "Issues found = issues fixed + re-verified"
- Changed "Fixing Workflow (Optional Loop)" to "Fixing Workflow (MANDATORY Loop)"
- Added evidence requirement for claiming fixes
- Added Red Flags table for catching skip temptations
- Enhanced After Verification section with mandatory fix loop diagram
-
clavix-planSkill - Skill chain enforcement:- Added REQUIRED SUB-SKILL header template for generated plans
- Added skill chain diagram in Next Steps section
-
clavix-prdSkill - Skill chain enforcement:- Added REQUIRED SUB-SKILL reference to clavix-plan
- Added complete skill chain diagram
- Updated recommendations table to emphasize verification
This is a minor version bump because:
- Introduces new meta-skill (
using-clavix) that orchestrates other skills - Adds new subagent template files to
clavix-implement - Significantly enhances verification rigor across multiple skills
- Establishes mandatory skill chains (breaking previous optional patterns)
- TOML Parsing Error - Fixed escape character in prompt ID format (
{std\\|comp}→{std\|comp}) that caused gemini-cli to fail parsing improve.toml (#16)
- Custom Agent Skills Path - New "Agent Skills - Custom Path" option in
clavix init:- Users can specify any directory for skills installation (e.g.,
.aider-desk/skills) - Supports both relative paths (from project root) and absolute paths (including
~/) - Interactive prompt guides path type selection with clear explanations
- Path stored in
config.experimental.integrationPaths['agent-skills-custom']
- Users can specify any directory for skills installation (e.g.,
Clavix v7 introduces Agent Skills as the recommended way to use Clavix. Agent Skills follow the agentskills.io specification and work with any compatible AI tool.
- Universal compatibility - Works with any AI tool that supports the Agent Skills spec
- Two installation scopes - Global (
~/.config/agents/skills/) or Project (.skills/) - Efficient context - Skills optimized for < 500 lines each
- Future-proof - As more tools adopt Agent Skills, your workflows work everywhere
-
Agent Skills Integration - Full support for agentskills.io specification:
- New
AgentSkillsAdaptergenerates skills following the Agent Skills standard - Two installation scopes: Global (
~/.config/agents/skills/) and Project (.skills/) - All 10 Clavix workflows available as curated skills
- Skills are directory-based with SKILL.md files per agentskills.io spec
- New "Agent Skills" section appears FIRST in integration selector during
clavix init - Skills have optimized descriptions for agent discovery
- New
-
Curated Skill Templates - New
src/templates/skills/directory:- 10 condensed, optimized skill templates based on canonical commands
- Skills follow < 500 line recommendation for efficient context usage
- Each skill includes proper YAML frontmatter (name, description, license)
- Skills include: State Assertions, Self-Correction Protocols, Mode Boundaries, File-Saving Protocols, and Workflow Navigation
- Preserve existing command files during init -
clavix initno longer overwrites user's existing command files in shared directories. Only files matching theclavix-*prefix pattern are updated.
- README revamp - Skills-first documentation with cleaner, leaner structure
- Integration selector priority - Agent Skills now appears first for better discoverability
- GitHub Copilot Custom Slash Commands - Full integration with VS Code GitHub Copilot:
- Replaced global
.github/copilot-instructions.mdwith proper slash commands - New adapter generates
.github/prompts/*.prompt.mdfiles - Commands appear as
/clavix-improve,/clavix-prd, etc. in Copilot Chat - YAML frontmatter with
name,description,agent, andtools - Smart agent mapping:
askfor planning commands,agentfor implementation - Moved from "Universal Adapters" to "IDE & IDE Extensions" category
- Replaced global
- CopilotPromptsAdapter replaces
CopilotInstructionsGenerator - Integration name:
copilot-instructions→copilot - File location:
.github/copilot-instructions.md→.github/prompts/clavix-*.prompt.md - Schema updates: Added
.prompt.mdextension andprompt-filesspecialAdapter type
CopilotInstructionsGeneratorclasssrc/templates/agents/copilot-instructions.mdtemplate
-
New
/clavix:reviewCommand - Criteria-driven PR review for team collaboration (Inspired by @fmflurry):- Review teammate's PRs without requiring them to use Clavix
- Conversational intake: asks which branch/PR, which criteria, and team conventions
- 5 Review Presets: Security, Architecture, Standards, Performance, All-Around
- Custom criteria support: describe specific concerns in natural language
- Structured output: Executive Summary + Detailed Findings with severity levels
- Severity categories: 🔴 Critical, 🟠 Major, 🟡 Minor, ⚪ Suggestion
- Saves reports to
.clavix/outputs/reviews/with frontmatter metadata - Differentiates from
/clavix:verify(which checks YOUR code against YOUR PRD)
-
New Template Components:
references/review-criteria.md- Comprehensive review dimension definitionssections/review-presets.md- Predefined criteria preset configurationssections/review-examples.md- Example review report outputs
-
Comprehensive Test Suite - 32 new tests for review command:
- Template structure validation
- Component existence and content checks
- MANIFEST and documentation verification
- Build artifact verification
- Slash Commands: Now 10 total (was 9) with addition of
/clavix:review - MANIFEST.md: Updated with review command and its components
- cli-reference.md: Added reviews directory to file structure
- docs/commands.md: Full documentation for review command with examples
This is a major version bump because:
- Introduces a significant new workflow (PR review) that expands Clavix beyond personal use to team collaboration
- Changes the command count from 9 to 10
- Adds new output directory structure (
.clavix/outputs/reviews/)
- Cursor Integration Path - Commands now correctly write to
.cursor/commands/instead of.cursor/rules/
- Vibe CLI Integration - New first-class integration for Mistral Vibe CLI:
- VibeAdapter generates SKILL.md files in
./.vibe/skills/ - All 9 Clavix slash commands available as Vibe skills
- Skill files named:
clavix-{command}-skill.md(e.g.,clavix-improve-skill.md) - Local project skills priority (
.vibe/skills/over~/.vibe/skills/) - Comprehensive test coverage for all adapter methods
- VibeAdapter generates SKILL.md files in
- AgentManager - Registered VibeAdapter for Vibe CLI support
- integrations.json - Added Vibe CLI configuration entry
- AgentType - Added 'vibe' to type union for type safety
- Also added missing 'warp-md' to AgentType union
- Task Selection for Implement Command - New task selection mode:
all- Execute all tasks sequentiallytask N- Execute specific task by number- Interactive list - Select task from numbered list
- Confirmation prompt before starting implementation
- Better control over which tasks to execute
- Codex Prompts Subdirectory - Codex prompts now correctly use
/promptssubdirectory with$CODEX_HOMEenvironment variable
- RooCode Integration Path - Commands now correctly write to
.roo/commands/instead of.roo/rules/(aligns with official RooCode documentation) - Updated integration selector UI to display correct path
- $CODEX_HOME Environment Variable Support - Custom Codex prompts directory:
- New
src/utils/path-resolver.tsfor centralized path resolution with priority system - Environment variable priority:
$CODEX_HOME→ user config → default path - Interactive prompting during
clavix initwhen$CODEX_HOMEis detected - Custom paths stored in
.clavix/config.jsonunderexperimental.integrationPaths - Extensible pattern for future integrations (e.g.,
CURSOR_HOME,GEMINI_HOME) - 13 new comprehensive tests (all passing)
- New
- UniversalAdapter - Updated to use new path resolver instead of direct tilde expansion
- AgentManager - Now accepts and passes
userConfigto all adapters - All Adapters - Updated constructors to accept optional
userConfigparameter:ClaudeCodeAdapterGeminiAdapter,QwenAdapter,LlxprtAdapter(viaTomlFormattingAdapter)UniversalAdapter
- Added
IntegrationPathsConfiginterface tosrc/types/config.ts - Added schema validation for
integrationPathsinsrc/utils/schemas.ts - Updated
clavix initto detect and prompt about$CODEX_HOME - Updated
clavix updateto pass config toAgentManager - Backward compatible - existing installations work without changes
- Architecture & Design Support - Integrated architectural decision-making into core workflows:
/clavix:start: Added explicit probing for architectural patterns and design choices during conversation/clavix:summarize: Added "Architecture & Design" section to requirements extraction and Mini-PRD template/clavix:prd: Added dedicated Question 3.5 to structured Q&A for capturing design patterns (Monolith vs Microservices, Clean Architecture, etc.)/clavix:plan: Added "Architecture First" principle to task generation, prioritizing structural setup tasks
- Agentic Template Improvements:
- Simplified optional questions in
/clavix:prdby removing "Press Enter to skip" instructions (agents handle optionality natively) - Updated Plan template to enforce architectural setup before implementation tasks
- Simplified optional questions in
-
Clarifying Questions Protocol - New systematic protocol for gathering critical information:
- Added
clarifying-questions.mdcomponent inagent-protocols/ - Integrated into AGENT_MANUAL for universal access
- Applied to planning/improvement commands: improve, prd, plan, start, summarize
- 95% confidence threshold for when to ask questions
- Structured format for multiple choice and custom input questions
- Best practices and examples for effective questioning
- Added
-
Template Customization Documentation - Comprehensive guide for customizing Clavix templates:
- New
docs/template-customization.mdwith full integration paths - Complete reference table showing where each integration generates templates
- Step-by-step workflows for customizing canonical templates, integration-specific overrides, and components
- Common customization examples (project context, security checklists, team standards)
- Troubleshooting guide for template customization issues
- New
- MANIFEST.md - Updated component usage matrix:
- Added clarifying-questions.md to agent protocols section
- Updated usage matrix to show which commands include the new protocol
- Clarified that clarifying-questions is included via AGENT_MANUAL
-
Test Coverage Improvements - 21 new tests for CLI commands:
- 10 command behavior verification tests for
update.ts - 11 reconfiguration flow tests for
init.ts - Total test count: 1306 tests passing
- 10 command behavior verification tests for
-
Template Enhancements:
- Task dependency guidance in
plan.mdwith explicit dependency markers - Scope creep detection and handling in
start.md - Archive size management guidance in
archive.md - Multi-topic handling in
refine.mdtroubleshooting
- Task dependency guidance in
-
Quality Dimension Documentation:
- Workflow-specific dimension usage table in
quality-dimensions.md - Documented why
/clavix:summarizeexcludes Specificity dimension - Added quality dimensions reference to
refine.md
- Workflow-specific dimension usage table in
-
Documentation Consistency:
- Updated package.json description to list all 9 slash commands
- Fixed "19+" to "20" AI tools count in README.md and docs
- Standardized quality dimension terminology in
refine.md(was using "Context/Constraints" instead of standard 6 dimensions)
-
MANIFEST.md - Added
/clavix:refineto usage matrix and updated quality-dimensions description
- UserConfigSchema Missing Fields - Fixed Zod schema to match
ClavixConfiginterface
- UserConfigSchema Missing Fields - Fixed Zod schema to match
ClavixConfiginterface:- Added
version,templates,outputs,preferences,experimentalfields - Eliminates false "Unknown fields" warnings during
clavix update
- Added
-
Zod Schema Validation - Runtime validation for configuration files:
- Added
zoddependency for robust schema validation - Created
src/utils/schemas.tswith validation schemas forintegrations.jsonand userconfig.json - Integrated validation at adapter registry load time and in CLI commands
- Contextual error messages for configuration issues
- Added
-
Universal Adapters in integrations.json - 4 new documentation-only integrations:
agents-md- AGENTS.md universal agent guidancecopilot-instructions- GitHub Copilot instructionsocto-md- OCTO.md octopus formatwarp-md- WARP.md format- Added
typefield ("standard" or "universal") to all integration entries
-
Template Documentation - New
docs/templates.mdauthoring guide:- Component include system (
{{INCLUDE:}}markers) - Template anatomy and structure
- Quality checklist for contributors
- Component include system (
-
Schema Validation Tests - 23 new tests covering:
IntegrationEntrySchema,IntegrationsConfigSchema,UserConfigSchema- Validation functions and error formatting
-
Summarize→Plan Workflow - Improved template coordination:
- Added "Suggest + Confirm" pattern for project name in summarize template
- Added fallback detection for
summarize/directory in plan template - Added confirmation message with task count in implement template
-
Error Output Standardization - Replaced
console.log/console.errorwith Oclif methods:- All CLI commands now use
this.log()andthis.error()for consistent output - Contextual error hints for common configuration issues
- All CLI commands now use
-
Template Header Standardization - All 9 slash command templates now use consistent format:
- "## State Assertion (REQUIRED)" section header
- Consistent structure across improve, prd, plan, implement, start, summarize, refine, verify, archive
-
README.md Reorganization - Workflow-oriented documentation:
- Added Mermaid workflow diagram showing command relationships
- Organized commands by workflow: Quick Path, Full Planning, Exploratory, Refinement
- All 9 slash commands prominently listed
-
CONTRIBUTING.md Updates - Enhanced contributor guide:
- Added "Quick Start for First-Time Contributors" decision table
- Emphasized template-first architecture rules
-
JSON Parsing Crashes - Wrapped all
JSON.parsecalls with try-catch:update.ts,init.ts,version.tsnow handle malformed JSON gracefully- User-friendly error messages instead of stack traces
-
Test Suite Updates - Fixed tests for adapter count changes (16 → 20):
agent-manager.test.ts- Updated expected adapter countadapter-interface.test.ts- Added special case for root directory adaptersmulti-integration-workflow.test.ts- Added detection markers for universal adaptersinit.test.ts- Fixed error output assertion
-
/clavix:refineCommand - New slash command for refining existing PRDs and prompts:- Auto-detects available refinement targets (PRDs and saved prompts)
- Change tracking with
[ADDED],[MODIFIED],[REMOVED],[UNCHANGED]markers - Before/after quality comparison for prompts
- Refinement history tracking in PRD files
- Integration guidance for next steps (plan regeneration, implementation)
-
Mandatory AGENTS.md Integration - Universal agent guidance is now always enabled:
- AGENTS.md automatically included in all installations
- Removed from user selection (handled internally)
- Added
ensureMandatoryIntegrations()helper function - Users informed during init: "AGENTS.md is always enabled to provide universal agent guidance"
-
New AgentErrorMessages Methods - Extended error messaging for better diagnostics:
templateNotFound()- When template files are missingadapterNotFound()- When adapter lookup failsconfigLoadFailed()- When configuration parsing failsupdateFailed()- When update command encounters issuesdiagnosticFailed()- When diagnose command finds problems
-
Error Handling Consistency - Replaced generic
Errorthrows with typedDataError:agents-md-generator.ts,octo-md-generator.ts,warp-md-generator.tscopilot-instructions-generator.ts,instructions-generator.tstoml-templates.ts
-
Constants Consolidation - Cleaned up
src/constants.ts:- Removed 11 unused constants
- Kept only
CLAVIX_BLOCK_STARTandCLAVIX_BLOCK_END - Updated all imports to use constants instead of hardcoded values
-
CONTRIBUTING.md Updates - Added explicit architecture boundaries:
- "Explicitly Forbidden Features" section with 4 rejected proposals
- Clear explanations for WHY certain features don't fit the architecture
- Guidance on what TO do instead of forbidden patterns
- Documentation Accuracy - Fixed coverage claims and output paths:
- Updated TESTING.md: Changed 100% to 70%+ (actual thresholds)
- Updated getting-started.md: Added summarize outputs documentation
- Updated docs/commands.md with full refine command documentation
-
CONTRIBUTING.md - Comprehensive contributor guide with architecture principles:
- Documents agentic-first architecture and why it must remain so
- Explains what CAN and CANNOT be changed (TypeScript won't help slash commands)
- Full development setup, testing instructions, and PR process
-
Command Format Visibility - Users now see their command format prominently:
clavix initoutput shows format at the TOP (e.g., "Your command format: /clavix:improve")- Generated
INSTRUCTIONS.mdincludes command format table - All docs include format reference tables
-
Documentation Consolidation - Reduced 18+ scattered files to 5 focused documents:
docs/README.md- Single entry point with navigationdocs/architecture.md- Consolidated from how-it-works.md + philosophy.mddocs/commands.md- All 12 command docs in one filedocs/getting-started.md- Consolidated from 4 guide filesdocs/integrations.md- Added Format column to integration tables
-
README.md - Slimmed down with prominent command format section and links to consolidated docs
- Deleted
docs/commands/directory (12 individual command files) - Deleted
docs/guides/directory (4 guide files) - Deleted
docs/how-it-works.md,docs/philosophy.md,docs/why-clavix.md(merged into architecture.md)
-
Adapter Architecture Refactor - Unified adapter system using config-driven factory pattern:
- Migrated 12 simple adapters to
UniversalAdapterclass withADAPTER_CONFIGSregistry - Kept dedicated classes for special adapters:
ClaudeCodeAdapter(doc injection),GeminiAdapter,QwenAdapter,LlxprtAdapter(TOML format) - Reduced code duplication significantly while maintaining all functionality
- Migrated 12 simple adapters to
-
Error Handling Improvements:
- Template assembly failures now throw
DataErrorinstead of silent warnings - Standardized all
console.warncalls to uselogger.warnutility - Fixed deprecated
escapeRegexwrapper inbase-adapter.ts
- Template assembly failures now throw
-
Code Consolidation:
- Deleted 12 redundant adapter source files (cursor, windsurf, kilocode, roocode, cline, droid, opencode, crush, codebuddy, amp, augment, codex)
- Deleted corresponding 12 adapter test files
- Removed deprecated archive documentation files
-
Documentation Cleanup:
- Removed v4-era configuration references from
docs/guides/configuration.md - Removed outdated session references from command documentation
- Deleted
docs/archive/directory with obsolete files
- Removed v4-era configuration references from
- Updated test files to use dynamic adapter paths instead of hardcoded directories
- Fixed adapter contract tests to work with new factory pattern
- Fixed multi-integration workflow tests for correct adapter detection
-
Documentation cleanup - Comprehensive review and update of all documentation:
- Removed outdated
/docs/clavix-intelligence.md(referenced removed pattern system) - Updated
/docs/guides/workflows.mdfor v5 architecture (no moreclavix fast/clavix deep) - Updated
/docs/how-it-works.mdto explain agentic-first architecture - Fixed
/src/templates/instructions/README.mdcomponent references
- Removed outdated
-
Consistent terminology - Standardized naming across all files:
- "Optimize" → "Improve" in template naming and documentation
- "provider" → "integration" in code comments and variables
- "execute" → "implement" in agent templates
-
Template improvements - Enhanced agent instruction quality:
- Added Self-Correction Protocol to
implement.md,verify.md,archive.md - Added State Assertion blocks for mode enforcement
- Softened defensive tone in
improve.mdwhile maintaining mode boundaries
- Added Self-Correction Protocol to
-
Dead code cleanup:
- Removed
preserveSessionsfromPreferencesConfig(sessions removed in v5.3.0) - Removed
sessionNotFound()fromAgentErrorMessages - Removed session directory references from error messages
- Removed
-
Outdated documentation:
- Deleted
/docs/clavix-intelligence.md - Removed broken links from
/docs/README.md
- Deleted
- Test factory alignment - Updated
config-factory.tsto match currentClavixConfigshape - Instructions README - Fixed references to non-existent component files
- Cline integration cleanup bug - When deselecting Cline during
clavix initreconfiguration and choosing "Clean up", the.clinerules/workflows/clavix/subdirectory is now properly removed. Previously,removeAllCommands()only removed files, ignoring subdirectories.
- Session persistence removed - The
.clavix/sessions/directory is no longer created or used. Session-based workflows are now handled entirely by AI agent context.
-
Adapter registry infrastructure - New config-driven adapter system (
adapter-registry.ts,universal-adapter.ts) enables consistent adapter behavior through configuration rather than code duplication. -
Init reconfiguration menu - When running
clavix initin an already-initialized project, a menu offers three options:- "Reconfigure integrations" - Change selected integrations
- "Update existing" - Regenerate commands for current integrations
- "Cancel" - Exit without changes
-
Removed commands consistency test - New test suite (
removed-commands.test.ts) verifies deprecated commands are properly removed from CLI, manifest, and documentation. -
Template component manifest - New
MANIFEST.mddocuments all reusable components in the template system.
-
Config command eliminated -
clavix configfunctionality has been merged intoclavix init:- Use
clavix init→ "Reconfigure integrations" to change integrations - Use
clavix init→ "Update existing" to regenerate commands
- Use
-
Legacy cleanup utility deprecated -
legacy-command-cleanup.tsis now marked for removal in v6.0.0 as the transition period for old naming patterns completes.
-
clavix configcommand - Useclavix initinstead (see Changed section) -
Orphaned template components - Removed unused
decision-rules.mdanderror-handling.mdfrom_components/ -
Session references in templates - Removed session-related content from
agents.md,copilot-instructions.md,warp.md,plan.md, andfile-operations.md
- Test suite improvements - Added comprehensive tests for:
- Update command flag behavior (docs-only, commands-only, force)
- Init reconfiguration menu flows
- v5.3 removed features (sessions directory, config command)
- Diagnose command false warnings - Fixed 3 bugs where
clavix diagnoseshowed incorrect warnings after successfulclavix init:- No longer expects
.clavix/commands/directory (commands go to adapter-specific directories) - Recognizes doc generator integrations (agents-md, octo-md, warp-md, copilot-instructions) as valid
- Removed misleading "No slash commands installed" check
- No longer expects
-
New
clavix diagnosecommand - Full diagnostic report for troubleshooting installations- Version check
- Directory structure validation
- Config integrity verification
- Integration status with command counts
- Template integrity check
- Summary with recommendations
-
Slash commands in
--help- Help output now shows available slash commands alongside CLI commands -
Feature matrix in README - Clear comparison of capabilities across integrations (Claude Code, Cursor, Gemini, etc.)
-
DRY adapter architecture - Created
TomlFormattingAdapterbase class eliminating ~140 lines of duplication across Gemini, Qwen, and LLXPRT adapters -
DRY documentation generators - Refactored
AgentsMdGenerator,OctoMdGenerator,WarpMdGenerator, andCopilotInstructionsGeneratorto useDocInjectorutility -
Verify/Archive reorganized - Now clearly documented as "Agentic Utilities" separate from core workflow commands
-
Global config flag - Removed unimplemented
-g/--globalflag fromclavix configcommand -
Vestigial v4 config types - Removed ~90 lines of unused
IntelligenceConfig,EscalationThresholdsConfig,QualityWeightsConfig, andPatternSettingsConfiginterfaces
- Consistent documentation - All agent templates (CLAUDE.md, AGENTS.md, OCTO.md, WARP.md, copilot-instructions.md) now have consistent verify/archive categorization
- Consolidated
executeintoimplementcommand - Removed standalone
promptscommand (now part of implement workflow)
Clavix v5 is a complete architectural rewrite. The TypeScript intelligence layer has been removed in favor of a lean, agentic-first design where markdown templates are the product.
Analysis revealed that 99% of Clavix usage was through slash commands in AI IDEs (Claude Code, Cursor, etc.), where AI agents read markdown templates and execute them using their native tools. The TypeScript intelligence layer (~18,500 lines) only executed via rarely-used CLI commands.
v5 embraces reality: templates instruct agents directly, no TypeScript code runs during workflow execution.
| Component | Lines Removed |
|---|---|
| CLI commands (15) | ~5,800 |
| Intelligence layer | ~7,790 |
| Core managers (14) | ~5,200 |
| Tests for removed code | ~31,300 |
| Total | ~50,000 lines |
clavix improve,clavix prd,clavix plan,clavix implementclavix start,clavix summarize,clavix execute,clavix verifyclavix archive,clavix analyze,clavix task-completeclavix list,clavix show,clavix prompts list/clear
universal-optimizer.ts,quality-assessor.ts,pattern-library.tsintent-detector.ts,confidence-calculator.ts- 20 pattern files in
intelligence/patterns/ prompt-manager.ts,session-manager.ts,task-manager.tsarchive-manager.ts,git-manager.ts,prd-generator.tsverification-manager.ts,question-engine.ts
4 CLI Commands (for setup only):
| Command | Purpose |
|---|---|
clavix init |
Initialize Clavix in a project |
clavix update |
Update templates after package update |
clavix config |
Manage configuration |
clavix version |
Show version |
8 Slash Commands (executed by AI agents):
/clavix:improve- Prompt optimization/clavix:prd- PRD generation/clavix:plan- Task breakdown/clavix:implement- Task/prompt execution (auto-detects source)/clavix:start- Conversational exploration/clavix:summarize- Extract requirements from conversation/clavix:verify- Verify implementation/clavix:archive- Archive completed projects
22 Integration Adapters - All adapters remain for multi-tool support.
- User runs
/clavix:improve "prompt"in their AI IDE - AI agent reads the markdown template at
.clavix/commands/improve.md - Agent follows instructions using native tools (Write, Read, Edit, etc.)
- Output saved to
.clavix/outputs/
No TypeScript code executes. Templates are self-contained instructions.
Templates updated for v5 agentic-first approach:
- Removed CLI command references (agents use native tools)
- Removed
.index.json- prompts use frontmatter metadata - Added explicit "How I Do It" sections for agent operations
- Updated file format documentation
If you have v4 projects:
- Run
npm install -g clavix@latest - Run
clavix updatein your project - Old outputs in
.clavix/outputs/are preserved - v4 CLI commands no longer exist - use slash commands instead
See docs/archive/v4-architecture.md for the previous architecture.