PitchHut logo
CodeGraph CLI
AI-powered code analysis and generation from the terminal.
Pitch

CodeGraph CLI transforms codebases into semantic graphs, enabling users to execute semantic searches, perform impact analysis, and interact through a conversational interface. With support for multiple LLM providers and a multi-agent system for automated coding tasks, it streamlines software development and documentation generation.

Description

CodeGraph CLI provides advanced code intelligence directly from the terminal, enabling developers to harness the power of AI to analyze and manage their codebases effectively. This command-line interface (CLI) integrates features such as semantic search, impact analysis, multi-agent code generation, and conversational coding, all supported by a selection of large language models (LLMs).

Key Features

  • Semantic Search: Find code based on meaning rather than simple string matching. Use intuitive queries to locate relevant code snippets quickly.

  • Impact Analysis: Understand multi-hop dependencies to assess the ramifications of code changes. This feature aids in making informed modifications to the codebase.

  • Graph Visualization: Generate interactive representations of your code's structure. Export to HTML or Graphviz DOT format for enhanced insights into project architecture.

  • Browser-Based Explorer: Navigate through your code visually, with the aid of AI-generated explanations and Mermaid diagrams that simplify code understanding.

  • Conversational Chat: Engage in natural language coding sessions powered by Retrieval-Augmented Generation (RAG) context, facilitating interactive programming assistance.

  • Multi-Agent System: Utilize CrewAI, a system that leverages autonomous agents for tasks such as code generation, refactoring, and analysis, enhancing productivity.

  • DOCX Export: Produce professional-grade project documentation, complete with architecture diagrams and detailed explanations.

  • Auto Onboarding: Automatically generate project README files from the code graph, streamlining documentation processes.

  • File Rollback: Protect against unintended modifications with automatic backups, allowing for easy file recovery.

Getting Started

To begin using CodeGraph CLI, configure your preferred LLM provider using:

cg config setup

Index your project with:

cg project index /path/to/project --name myproject

Perform an analysis with commands like:

cg analyze search "authentication logic"
cg chat start

Flexibly switch among supported LLM providers such as Ollama and OpenAI, configure embedding models for optimized performance, and utilize various commands organized into logical groups for streamlined interactions.


CodeGraph CLI is an essential tool for developers seeking to leverage AI capabilities in their coding workflows, enhancing code productivity and insight.

0 comments

No comments yet.

Sign in to be the first to comment.