Context Vibes is a command-line tool designed to streamline common development tasks and generate context for AI assistants. It provides consistent wrappers for Git workflows, Infrastructure as Code (IaC) operations, code quality checks, formatting, testing, and programmatic code modifications, focusing on clear, structured terminal output and detailed background logging.
Why Context Vibes?
Consistency: Provides a unified interface and terminal output style for frequent actions (commit, sync, deploy, etc.).
Automation: Simplifies multi-step processes and provides non-interactive options via the global --yes flag. Designed for use in scripts or by AI agents.
AI Integration:
Generates a contextvibes.md context file (describe, diff) suitable for AI prompts.
The kickoff --strategic command generates a master prompt file to guide an AI-facilitated strategic project kickoff.
Produces structured terminal output suitable for human review or direct AI parsing.
Generates a detailed JSON trace log (default: contextvibes_ai_trace.log, configurable) for deeper AI analysis or debugging.
Clarity & Safety: Uses distinct output formats and requires confirmation for state-changing operations (unless --yes is specified).
Configurability: Supports a .contextvibes.yaml file for customizing default behaviors (Git, validation rules, logging, AI interaction preferences). See the Configuration Reference for details.
Key Features
AI Context Generation:describe, diff.
Enhanced Git Workflow Automation:
kickoff: Dual-mode for AI-assisted strategic project kickoff prompt generation OR daily development branch creation.
commit, sync, wrapup, status (Configurable branch/commit rules).
Infrastructure as Code (IaC) Wrappers:plan, deploy, init (Terraform/Pulumi).
Code Quality & Formatting:quality, format (Go, Python, Terraform).
Project Testing & Versioning:test, version.
Code Modification:codemod (from JSON scripts).
(For detailed information on each command, see the Command Reference.)
Installation
Ensure you have Go (1.24 or later recommended) and Git installed.
Install using go install:
go install github.com/contextvibes/cli/cmd/contextvibes@latest
Installs to $GOPATH/bin (usually $HOME/go/bin).
Ensure Installation Directory is in your PATH:
# Add one of these to your shell profile (.bashrc, .zshrc, etc.)
export PATH=$(go env GOPATH)/bin:$PATH
# Or: export PATH=$HOME/go/bin:$PATH
Restart your shell or source the profile (source ~/.bashrc).
(Alternative) Installation via Releases: Download from GitHub Releases (Adjust URL when releases are available), make executable (chmod +x), move to a directory in your PATH.
Dependencies: Relies on external tools being in your PATH: git, and potentially terraform, pulumi, tflint, isort, black, flake8, python.
Usage
contextvibes [command] --help # General help or help for a specific command
contextvibes [command] [flags] # Run a command
Common Flags:
-y, --yes: Assume 'yes' to all confirmation prompts.
--ai-log-file <path>: Specify a path for the detailed AI JSON log.
--log-level-ai <level>: Set the minimum level for the AI log file (debug, info, warn, error).
# Initiate a strategic project kickoff (generates a master prompt for your AI)
contextvibes kickoff --strategic
# (After AI session and creating summary) Mark strategic kickoff as complete
contextvibes kickoff --mark-strategic-complete
# Start a new daily feature branch (assumes strategic kickoff is complete)
contextvibes kickoff --branch feature/add-user-auth
# Describe the project for an AI (prompts for task description)
contextvibes describe -o my_context.md
# Apply code formatting
contextvibes format
# Check code quality
contextvibes quality
# Run project tests (e.g., for a Go project, passing -v flag)
contextvibes test -v
# Commit work (message required, interactive confirmation)
contextvibes commit -m "feat(auth): Implement OTP login"
# Sync non-interactively
contextvibes sync -y
# Display CLI version
contextvibes version
(Additional Tutorials and How-To Guides may be added to the docs/ directory.)
Important: Ignoring Generated Files
It is strongly recommended to add generated files like contextvibes.md, STRATEGIC_KICKOFF_PROTOCOL_FOR_AI.md, contextvibes_ai_trace.log, *.log, and tfplan.out to your project's .gitignore file.
Terminal Output vs. AI Log File
Context Vibes uses two distinct output mechanisms:
Terminal Output (stdout/stderr): For human readability and high-level status/errors. Uses structured prefixes (SUMMARY:, INFO:, etc.).
AI Log File (JSON): Written to contextvibes_ai_trace.log by default (configurable). Contains a detailed, structured trace for AI analysis or debugging.
Code of Conduct
Act professionally and respectfully. Be kind, considerate, and welcoming. Harassment or exclusionary behavior will not be tolerated.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Package kickoff provides the orchestration logic for the ContextVibes CLI's 'kickoff' command, handling both strategic project kickoffs and daily Git workflow startups.
Package kickoff provides the orchestration logic for the ContextVibes CLI's 'kickoff' command, handling both strategic project kickoffs and daily Git workflow startups.