{"id":50536991,"url":"https://github.com/stanleygomes/moses-cli","last_synced_at":"2026-06-03T17:01:38.957Z","repository":{"id":348786052,"uuid":"1199884497","full_name":"stanleygomes/moses-cli","owner":"stanleygomes","description":"📖 Thou shalt not break production","archived":false,"fork":false,"pushed_at":"2026-05-20T03:35:17.000Z","size":1511,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-20T06:55:05.541Z","etag":null,"topics":["cli","gitlab","nodejs"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/moses-cli","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stanleygomes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-02T20:10:44.000Z","updated_at":"2026-05-20T03:35:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stanleygomes/moses-cli","commit_stats":null,"previous_names":["stanleygomes/moses"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stanleygomes/moses-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleygomes%2Fmoses-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleygomes%2Fmoses-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleygomes%2Fmoses-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleygomes%2Fmoses-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stanleygomes","download_url":"https://codeload.github.com/stanleygomes/moses-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanleygomes%2Fmoses-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33874679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gitlab","nodejs"],"created_at":"2026-06-03T17:01:38.397Z","updated_at":"2026-06-03T17:01:38.952Z","avatar_url":"https://github.com/stanleygomes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# moses-cli\n\nCLI buddy to help you with code review of GitLab Merge Requests, by using AI tools like GitHub Copilot CLI and Gemini CLI.\n\n[![npm version](https://img.shields.io/npm/v/@moses-cli/core.svg)](https://www.npmjs.com/package/@moses-cli/core)\n[![Node.js Version](https://img.shields.io/badge/node-\u003e=18-brightgreen.svg)](https://nodejs.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\n\u003c/div\u003e\n\n![moses-cli](https://raw.githubusercontent.com/stanleygomes/moses-cli/refs/heads/master/assets/screenshot.png)\n\n## Installation\n\nInstall the npm package\n\n```bash\nnpm install -g moses-cli\n```\n\n## Initial Setup\n\n```bash\nmoses init\n```\n\nThe command:\n\n1. Configures GitLab instance (cloud or self-hosted)\n2. Validates token via `/api/v4/user` API\n3. Selects AI tool\n4. Saves config in `~/.moses-cli/config.json` with mode `600`\n\n## Usage\n\nThe primary way to use Moses is by validating a Merge Request:\n\n```bash\nmoses validate https://gitlab.your-domain.com/group/project/-/merge_requests/123\n```\n\n### Available Commands\n\n| Command                       | Description                                                   |\n| :---------------------------- | :------------------------------------------------------------ |\n| `moses init`                  | Interactive initial setup (GitLab instances, AI tools, etc.)  |\n| `moses validate \u003curl\u003e`        | Fetches and analyzes a Merge Request, providing AI feedback   |\n| `moses gitlab list`           | Lists all your configured GitLab instances                    |\n| `moses gitlab default`        | Switches the active default GitLab instance                   |\n| `moses config feedback-style` | Updates the AI's feedback tone (friendly, pragmatic, etc.)    |\n| `moses config diff-limit`     | Changes the maximum allowed line changes in a single diff     |\n| `moses config skills`         | Opens your global skills folder to manage review instructions |\n| `moses config reset`          | Wipes all local configurations and starts fresh               |\n\nTo see more details and options for any command, run:\n\n```bash\nmoses help\n```\n\nor for a specific command:\n\n```bash\nmoses validate --help\n```\n\nFlow:\n\n1. Parses MR URL\n2. Fetches MR data + diffs + commits from GitLab API\n3. **Smart Repository Lookup**: Detects if your current directory matches the project or offers to **clone/download** the repository for deeper context\n4. **Context Gathering**:\n   - **Skill Selection**: Allows you to choose a custom instruction file from `~/.moses-cli/skills/` to guide the AI analysis\n   - **Internal Repository Context**: Scans the repository for project-specific instructions (e.g., `copilot-instructions.md`, `README.md`)\n5. Concatenates all context + optional prompt + MR diff and sends to configured AI tool\n6. Displays response in real-time\n\n### Why moses?\n\nLike Moses guiding his people to the promised land, moses validates every merge request, ensuring your most precious asset, your code, reaches production safely.\n\n- **Fast analysis**: Fetches diffs directly from GitLab API\n- **Multi-AI**: Focus on support for GitHub Copilot CLI and Gemini CLI\n- **Smart Context**: Combines global rules with your project's internal documentation\n- **Comprehensive**: Generates structured markdown with stats, commits, and diffs\n\n## Features\n\n- Interactive setup with token validation\n- Support for multiple GitLab instances (gitlab.com + self-hosted)\n- Automatic validation of AI tool installation\n- Real-time streaming of AI analysis\n- Configurable feedback style (friendly, pragmatic, offensive)\n- Configurable diff changes limit with safe interruption\n- **Internal repository context**: Automatically scans for `copilot-instructions.md`, `.github/copilot-instructions.md`, `claude.md`, `.clauderc`, and `README.md` to feed the AI with project-specific rules.\n- **Auto-repository cloning**: Detects if you're outside the project and offers to download it to extract internal context.\n- **Interactive Skills**: Prompt-based selection of custom instruction sets.\n- Optional extra prompt context and manual instruction-file selection.\n- Elegant error handling with contextual messages\n\n## For local development\n\n```bash\npnpm install\npnpm build\nnode dist/bin/moses.js\n```\n\n### Quality scripts\n\n```bash\npnpm run check\n```\n\n## Supported AI Tools\n\n| Tool              | CLI       | Installation                        |\n| ----------------- | --------- | ----------------------------------- |\n| GitHub Copilot    | `copilot` | `npm install -g @github/copilot`    |\n| Google Gemini CLI | `gemini`  | `npm install -g @google/gemini-cli` |\n\nThese two CLIs are the ones currently tested in this project.\n\nWant to help? Contributions to support **Claude Code** and **Codex CLI** are very welcome.\n\n## How to Contribute\n\n1. Fork the project\n2. Create a branch for your feature (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanleygomes%2Fmoses-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstanleygomes%2Fmoses-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanleygomes%2Fmoses-cli/lists"}