Rokovo CLI
Project description
Rokovo CLI
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:
- Project name and a brief description.
- Project structure and important files.
- Important keywords and terminologies.
- 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.tomlin--root-dir, you don't need to provide those flags. For API key you can useROKOVO_API_KEYenvironment 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rokovo-0.2.1.tar.gz.
File metadata
- Download URL: rokovo-0.2.1.tar.gz
- Upload date:
- Size: 87.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c7492232c41bd94818a849f8c2ef2d520d7f927e6aea248bb8176edbd125fdb
|
|
| MD5 |
25a3b98b0587d09cb635e20eec506ddd
|
|
| BLAKE2b-256 |
049df9578b5b533fdca5f4988f079d3bdc86d9ec7c5af7a04125f3c3bfe34d37
|
File details
Details for the file rokovo-0.2.1-py3-none-any.whl.
File metadata
- Download URL: rokovo-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ded0ffadc9a7f89a45fd11b6c30446ee0dd7f9ef60ccedc2aa18b1754b77b28
|
|
| MD5 |
c08e1413c078f0f6170898945fd61179
|
|
| BLAKE2b-256 |
2e658f483a853fcaaebac7540914adc2ca7de969ecda346c1d15c092eea4d121
|