0.1.5 • Published 8 months ago

@stylebit/trag v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

What is trag cli?

Local pull request review with AI.

Getting started

Trag CLI is designed to assist you with code reviews locally before opening an actual pull request on GitHub. Here are the options you will have:

  • Based on the llama3-8b model, which will run on your local machine.
  • Based on the OpenAI gpt-4o model, where you will be asked to provide your API token.

Usage

  1. cd into the root directory of your repository (where .git folder is located).
  2. run $ trag command for reviewing staged code files (output will be in the console).

Prerequisites

  • minimum recommended node.js version is v20.14.0

Extra You can specify special (custom) instruction in the trag.config.json file in following format: NOTE! You should have trag.config.json config file committed in advance in the root level of your repository.

scheme:

{
  "type": "object",
  "properties": {
    "patterns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": ["patterns"]
}

example:

{
  "patterns": [
    "Global variables are not allowed.",
    "Use dynamic programming methods in recursions to increase productivity."
  ]
}
0.1.5

8 months ago

0.1.4

11 months ago

0.1.3

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago