Skip to main content

Rokovo CLI

Project description

Rokovo CLI

Rokovo CLI Logo

The Rokovo CLI brings a simple AI agent on your command line to help you with documenting pure source codes for both developers and end users.

Quick Start

You can install the CLI using PIP:

pip install rokovo

Usage

Config files and initializing

Each time you call the Rokoco CLI, you need to provide some basic information context file path and model configs using proper flags defined in rokovo --help. Other way is to define a rokovo.toml for configs, rokovo_context.md for agent context and a .rokovoignore for ignored files (default fallback is .gitignore). You can use init command to get the basic template:

rokovo init --root-dir .

Context file

Context file is a markdown file that contains a high level description of your project. This will help the AI agent to understand the project better and generate more accurate documentation. A basic model of writing a context file is as follows:

  1. Project name and a brief description.
  2. Project structure and important files.
  3. Important keywords and terminologies.
  4. Usage specific context, for example if you want to to auto extract FAQs: set of questions as example to help agent with finding questions and answers.

An example context file can be found on examples_context.md.

FAQ extraction

To extract FAQs from your codebase, run the following command:

rokovo --context-dir ./context.md --root-dir ./path/to/project --api-key <your-openrouter-api-key> --re-index true # if you have changed your code base use --re-index

[!NOTE] If you already have a rokovo.toml in --root-dir, you don't need to provide those flags. For API key you can use ROKOVO_API_KEY environment variable.

Interactive mode

You can use:

rokovo interactive <flags (if config file is not exist)>

To run a REPL that let you to chat with the agent and get answers over your codebase in simple user language.

LLM

We use the OpenRouter API as default and you can use --api-key flag to pass your API key. If you are using another provider feel free to pass ``--base-urland--model` flags to configure your provider.

Any provider compatible with OpenAI API is accepted and you can use local models too.

License

MIT License - see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rokovo-0.2.3.tar.gz (89.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rokovo-0.2.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file rokovo-0.2.3.tar.gz.

File metadata

  • Download URL: rokovo-0.2.3.tar.gz
  • Upload date:
  • Size: 89.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rokovo-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ce9f80d37b16d3d4b14fbe4cd506b95851f0c3faaee1a637a9d4b4ed9bbde54c
MD5 9c74ec781fe5c6f75c67eb08916bdcaa
BLAKE2b-256 c2e51add99e5540972996f1265793c702d04e4e1daaf29f7043fc0a9e63c6326

See more details on using hashes here.

File details

Details for the file rokovo-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: rokovo-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rokovo-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1954108b8c078c016822f1f9d613141a36c4c49f3c862b7167f75757d4056ffc
MD5 e5b9700dff8a134be33f04d723fc5a8f
BLAKE2b-256 19a68500a37b05178c7919f53940bdd6fb8216bce0c61a0caba4763f6085c04f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page