Skip to content

Add multi-language support (22+ languages) and refocus docs for AI assistants#2

Merged
burtbyproxy merged 4 commits intomainfrom
copilot/enhance-support-for-hip-languages
Jan 23, 2026
Merged

Add multi-language support (22+ languages) and refocus docs for AI assistants#2
burtbyproxy merged 4 commits intomainfrom
copilot/enhance-support-for-hip-languages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 23, 2026

VibeScript was TypeScript/JavaScript-only. Expanded to 22+ languages with language-appropriate comment styles. Refocused documentation from executive pitch to AI assistant operating manual.

Language Support

New module: src/lib/language-config.ts

  • Defines comment syntax, extensions, test patterns per language
  • Supports // (C-style), # (scripting), -- (Lua/Haskell), ; (Clojure)

Languages added: Python, Ruby, Go, Rust, Elixir, Dart, Lua, Shell, Clojure, Haskell, Crystal, R, Julia, Zig, PHP, Java, C#, Swift, Kotlin, Scala

Directive parser: Auto-detects language from file path, applies correct comment prefix

# Python vibe file - uses # comments
# @vibe:goal Implement auth
# @vibe:touch src/auth/**/*.py
# @vibe:inputs Credentials
# @vibe:outputs Session token
# @vibe:constraints Use bcrypt
# @vibe:tests pytest auth_test.py
# @vibe:risk medium
# @vibe:rollback Revert commit

def authenticate(username, password):
    pass

Changes

  • directive-parser.ts: Added language detection, dynamic comment prefix selection
  • vibe-checker.ts: Generalized from .vibe.ts to any vibe extension, language-aware error messages
  • vibe-guard.ts: Centralized test file detection using language config
  • ownership.json: Extended patterns to cover all 22+ languages (ai_owned_globs, human_owned_globs, contract_owned_globs)
  • Templates: Created task templates for all languages with proper syntax

Documentation

Rewrote README targeting Claude as primary reader instead of executives:

  • Opening: "Hey Claude! 👋 This is your governance framework" vs "For Executives: Your engineering team..."
  • Removed ROI/compliance marketing sections
  • Direct guidance on file ownership, directive requirements, enforcement
  • Conversational tone with practical examples

Rationale: Executives delegate to AI. AI reads and follows the docs. Write for the actual user.

Backward Compatibility

Existing TypeScript/JavaScript projects unchanged. Additive only.

Original prompt

Hey how can we expand this to work with even more hip languages like Ruby, Python, etc.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 23, 2026 06:27
Co-authored-by: burtbyproxy <1827866+burtbyproxy@users.noreply.github.com>
Co-authored-by: burtbyproxy <1827866+burtbyproxy@users.noreply.github.com>
Co-authored-by: burtbyproxy <1827866+burtbyproxy@users.noreply.github.com>
Copilot AI changed the title [WIP] Expand support to include Ruby and Python Add multi-language support (22+ languages) and refocus docs for AI assistants Jan 23, 2026
@burtbyproxy burtbyproxy marked this pull request as ready for review January 23, 2026 06:39
Copilot AI requested a review from burtbyproxy January 23, 2026 06:39
@burtbyproxy burtbyproxy merged commit be127b4 into main Jan 23, 2026
1 check passed
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.

2 participants