New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gortex-cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gortex-cli

Interactive CLI with tabbed interface and AI integration: complete Git workflow with intelligent conventional commit generation

latest
Source
npmnpm
Version
2.0.9
Version published
Weekly downloads
10
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

GORTEX CLI

npm version npm downloads License: MIT

CLI for building reliable, assisted, and auditable conventional commits.

InstallationUsageArchitecture

Gortex CLI Banner

Project goal

Gortex CLI makes the commit phase as rigorous as the implementation phase.

  • Guidance – a multi-step flow that surfaces the right checks (branch, files, message, push)
  • Consistency – a builder aligned with the Conventional Commits spec, with real-time validation
  • Contextual help – AI-assisted generation (local or remote) and visual previews of staged files

The outcome is short, precise, review-friendly commits without leaving the terminal.

Value proposition

  • Traceability – every commit documents the need and scope
  • Standardization – conventions are enforced while the developer acts, not via a late lint
  • Controlled AI – Gortex auto-detects Ollama, Mistral, or OpenAI and stays local whenever possible
  • End-to-end workflow – branch selection, targeted staging, message generation, optional push

Key capabilities

  • Interactive 8-step workflow (branch ➜ files ➜ staging ➜ generation ➜ message ➜ confirmation ➜ push ➜ recap)
  • Diff previews for staged files
  • Commit generation via Ollama, Mistral AI, or OpenAI with automatic fallback to manual editing
  • Keyboard-first navigation (Tab, arrows, Vim j/k/h/l, quick actions a, i)
  • Real-time validation of conventional commits, including breaking-change handling
  • .gortexrc configuration (Cosmiconfig) to tune AI providers, conventions, and git preferences

Architecture

LayerRoleKey tech
DomainEntities, value objects, contractsTypeScript
ApplicationUse cases and orchestrationServices, DTOs, validation
InfrastructureGit, AI providers, DIsimple-git, Ollama/OpenAI/Mistral adapters
PresentationCLI interfaceInk, Commander, React components

Reference points:

  • 918 tests across 67 files (91.63 % coverage)
  • ~177.62 KB ESM bundle, ~1203 ms build
  • Node ≥ 18, distributed via npm/pnpm/yarn/bun
  • Full design notes in docs/ARCHITECTURE.md

Installation

# npm
npm install -g gortex-cli

# pnpm (recommended)
pnpm add -g gortex-cli

# yarn
yarn global add gortex-cli

# bun
bun add -g gortex-cli

# try without installing
npx gortex-cli

Usage

Run inside a Git repository:

gortex

The guided flow covers:

  • Selecting or creating the branch
  • Picking files to commit with inline diff previews
  • Staging the selected items
  • Choosing AI or manual message creation
  • Validating the message (including breaking changes)
  • Confirming, optionally pushing, then reviewing the recap

Helpful commands:

gortex --help
gortex help-format

AI integration

  • Ollama (recommended):
    curl -fsSL https://ollama.com/install.sh | sh
    ollama pull mistral-small:24b-instruct-2501-q4_K_M
    ollama serve   # http://localhost:11434
    
  • Mistral / OpenAI: automatically used when API keys are detected in the environment or config.
  • Fallback sequence:
    • Ollama when available (local & private)
    • Mistral / OpenAI depending on available keys
    • Manual editing if no provider responds

NEW in v2.1+: GORTEX CLI now defaults to Mistral Small for optimal performance:

  • ⚡ 150 tokens/s – 2x faster than Magistral for commit generation
  • 🎯 98% accuracy with Q4_K_M quantization (vs 99.5% Q8)
  • 💾 50% smaller memory footprint than full precision models
  • ⏱️ 15-30s average generation time (vs 90-120s with previous settings)

Alternative models:

  • magistral:24b-small-2506-q4_K_M – Reasoning-focused (slower, better for complex logic)
  • mistral-nemo:12b-instruct-2407-q4_K_M – Balanced for mid-range hardware
  • mistral:7b-instruct-q4_K_M – Lightweight for resource-constrained laptops

Performance optimization

For best results, configure Ollama to keep models in memory:

# Keep model loaded indefinitely (recommended)
export OLLAMA_KEEP_ALIVE=-1

# Or set in your shell profile (~/.bashrc, ~/.zshrc)
echo 'export OLLAMA_KEEP_ALIVE=-1' >> ~/.bashrc

Why? By default, Ollama unloads models after 5 minutes. Keeping them in memory:

  • ✅ Eliminates 5-10s reload delay on each request
  • ✅ Provides consistent sub-30s generation times
  • ✅ Reduces CPU/GPU thrashing from repeated loads

Tips:

  • Keep ollama serve running for instant availability
  • Optimized defaults: temperature: 0.3, max_tokens: 300, num_ctx: 4096
  • Use Q4_K_M quantization for 2x speed with minimal quality loss
  • Keep commits focused (< 10 files) for most accurate AI suggestions

Conventional commits reference

TypePurpose
featnew feature
fixbug fix
docsdocumentation
styleformatting / non-functional
refactorinternal restructuring
perfperformance
testtests
buildbuild/package
cicontinuous integration
choremaintenance

Examples:

feat(auth): add OAuth2 authentication
fix(api): resolve timeout on large requests
docs(readme): update installation instructions
refactor(core): simplify error handling

Breaking change:

feat(api)!: change authentication method

BREAKING CHANGE: Previous auth tokens are now invalid

Contributing

  • Fork + feature branch
  • pnpm install, pnpm dev
  • Run pnpm test, pnpm typecheck, pnpm lint before submitting
  • Use Gortex CLI to format your own commits

Additional docs:

  • CONTRIBUTING.md
  • docs/ARCHITECTURE.md
  • docs/USE_CASES.md
  • docs/MIGRATION_GUIDE.md

Repository overview:

gortex-cli/
├── src/
│   ├── domain/
│   ├── application/
│   ├── infrastructure/
│   ├── components/
│   └── commands/
├── docs/
└── __tests__/

License

MIT © Arthur Jean

Keywords

git

FAQs

Package last updated on 26 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts