Skip to main content

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.

  1. NEW Interact with Tibo Agent - chat with the ai agent to understnad the codebase better and get help with implementing new features:
tibo agent

NOTE: requires running tibo config and adding ANTHROPIC_API_KEY when prompted. The agent can use the tibo fetching tools if you have run 'tibo index' before. In the shell:

  • type 'exit' or 'quit' to quit the agent shell
  • type '#' followed by a command to execute a command directly in your terminal
  • type 'reset' to reset the conversation history

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

MIT License

Metadata

Release files for tibo 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tibo 1.1.3
File Size Uploaded Provenance Actions
tibo-1.1.3.tar.gz 175.8 kB Without provenance Details for tibo-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tibo 1.1.3
File Interpreter ABI Platform Actions
tibo-1.1.3-py3-none-any.whl Python 3 none any Details for tibo-1.1.3-py3-none-any.whl

Total release size: 361.0 kB

Release files / tibo-1.1.3.tar.gz

Download URL tibo-1.1.3.tar.gz
Size 175.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a0675ebc8dfa158ca8acc39ee94ab032a39801401e71f009711759833cdcd86e
BLAKE2b-256 checksum
How to use checksums
f3ada8b7f2c1960d71192ae44490d66327b35b6319201ad0e9c1aedbbc9ff7cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / tibo-1.1.3-py3-none-any.whl

Download URL tibo-1.1.3-py3-none-any.whl
Size 185.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06f807b51f32b07a1bf1732d9d2319f920ff71688fc4de6615ff521909724915
BLAKE2b-256 checksum
How to use checksums
6d20b6661c50c62121b6b5bb33e46b66b33493b8596e9f4408c55a9102c7d0e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Security for tibo 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page