Skip to main content

CLI tool for codebase indexing and natural language retrieval.

Project description

codebase-intelligence

🧩 Tibo – a powerful command-line tool designed to index your codebase, generate call graphs, and chunk code into a vector database. With tibo, you can query your codebase using natural language and retrieve contextually relevant files, functions, and code snippets effortlessly.

Tibo Workflow

Features

  • Codebase Indexing: Scans and organizes your project for easy querying.
  • Call Graph Generation: Maps relationships between functions and files.
  • Vector Database: Embeds code chunks for fast, intelligent retrieval.
  • Natural Language Queries: Ask questions about your code in plain English.
  • Context-Aware Results: Returns relevant files and snippets with added context from the call graph.

Installation

Get started with tibo by installing:

pip install tibo

Find the latest version and additional details on the PyPI project page.

Usage

Follow these steps to integrate tibo into your workflow:

  1. Configure the Tool - Set up tibo with your OpenAI API key:
tibo config
  1. Index Your Project - Navigate to your project directory and index your codebase:
cd /path/to/your/project
tibo index

Note: This creates a .tibo folder in your project root to store indexed data, call graphs, and vector embeddings.

  1. Query Your Codebase - Fetch relevant context by asking questions in natural language:
tibo fetch "my query to the codebase"

Results include the most relevant file names and code chunks. Full output is saved in .tibo/query_output/query_output.json.

How It Works

Configuration: Link Tibo to your OpenAI API for LLM-powered enhancements.

Indexing: Processes codebase, builds call graph, chunks files, enhances with GPT-4o-mini, and stores vector embeddings locally.

Querying: Enhances your query with an LLM, matches it to the top relevant chunks, and supplements results with call graph context.

Requirements

Python 3.7+ An OpenAI API key (required for LLM functionality)

Contributing

We welcome contributions! Feel free to open issues or submit pull requests on our GitHub repository.

License [Insert your license here, e.g., MIT 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

tibo-1.1.0.tar.gz (168.4 kB view details)

Uploaded Source

Built Distribution

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

tibo-1.1.0-py3-none-any.whl (176.4 kB view details)

Uploaded Python 3

File details

Details for the file tibo-1.1.0.tar.gz.

File metadata

  • Download URL: tibo-1.1.0.tar.gz
  • Upload date:
  • Size: 168.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for tibo-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5d4e5deb320786e0bf3abece9596db923669818f1c6ddcf205d3ae6d75f86cec
MD5 9e9dee96ae4c2aa7255a692ab13b3d3e
BLAKE2b-256 f029b17c0d6b64fda06f6c549061b7ff49ded641435b28035e6416be3bd67350

See more details on using hashes here.

File details

Details for the file tibo-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tibo-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 176.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for tibo-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8b93396e6a135b63188eb9bc4094c2ab2b2f8ef354ed29d1d4331c2fec75074
MD5 63fdc913de2dd27703ab228d207f9ca8
BLAKE2b-256 13a52957b5be8b38b6e654daca6c05fe8eec0a9d3316cfb3c50924775de5d319

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