Skip to main content

A terminal coding agent for Python.

Project description

Katalyst Agent

A modular, node-based terminal coding agent for Python, designed for robust, extensible, and production-ready workflows.

Katalyst Coding Agent Architecture Figure: Architecture diagram of the Katalyst Coding Agent (DAG/graph structure)

Quick Setup

To install Katalyst from PyPI, simply run:

pip install katalyst

Important: You must set your OpenAI API key as the environment variable OPENAI_API_KEY or add it to a .env file in your project directory. The first time you run katalyst, you will be prompted to enter your API key if it is missing. You can get an API key from https://platform.openai.com/account/api-keys.

Searching Files (ripgrep required)

The search_files tool requires ripgrep (rg) to be installed on your system:

  • macOS: brew install ripgrep
  • Ubuntu: sudo apt-get install ripgrep
  • Windows: choco install ripgrep

Features

  • Automatic project state persistence: Katalyst saves your project state (such as chat history) to .katalyst_state.json in your project directory after every command.

  • Modular Node-Based Architecture: Built on a robust DAG (Directed Acyclic Graph) structure that enables flexible and extensible workflows. The system uses a two-level agent structure with an outer planning loop and inner ReAct (Reason-Act) cycles.

  • Intelligent Task Planning: Automatically breaks down complex tasks into manageable sub-tasks and executes them sequentially with built-in error recovery and replanning capabilities.

  • Rich Tool Integration: Comprehensive set of built-in tools for:

    • File operations (reading, writing, searching)
    • Code analysis and syntax checking
    • Terminal command execution
    • And more, with easy extensibility for custom tools
  • Robust Error Handling: Sophisticated error recovery system that can:

    • Classify and format errors for better LLM understanding
    • Automatically trigger replanning when needed
    • Maintain detailed error traces for debugging
  • Multi-Language Support: Built-in support for multiple programming languages including:

    • Python
    • JavaScript/TypeScript
    • JSX/TSX
    • (More languages will be added soon...)
  • Interactive CLI: User-friendly command-line interface with:

    • Helpful welcome screens and onboarding
    • Real-time feedback and progress updates
    • Detailed logging for debugging
  • Configurable LLM Integration: Flexible LLM provider support with:

    • Default OpenAI integration
    • Configurable model selection
    • Easy extension for other LLM providers

Testing

Katalyst includes both unit and functional tests. For detailed information about running tests, writing new tests, and test coverage, see TESTS.md.

TODO

See TODO.md for the latest development tasks and roadmap.

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

katalyst-0.3.1.tar.gz (44.7 kB view details)

Uploaded Source

Built Distribution

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

katalyst-0.3.1-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

Details for the file katalyst-0.3.1.tar.gz.

File metadata

  • Download URL: katalyst-0.3.1.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for katalyst-0.3.1.tar.gz
Algorithm Hash digest
SHA256 bde6c4435d8f26a390df6dc5f4109e6be63549aee6cdae6dfe51f17f2c6279eb
MD5 70b9493396949c5967e1d87aad608b69
BLAKE2b-256 c3db0f63cf905e8eb3f8170c360d384d5c428d2acdadbf5e73a3f345ba55694f

See more details on using hashes here.

File details

Details for the file katalyst-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: katalyst-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 64.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for katalyst-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f349c1fe4a30b975f12c3ad7fcb3072f3d91f9eba5b5125ad6cb1b85b17e0154
MD5 23dc63dc22c704813af3c2f613ca2a88
BLAKE2b-256 58cc6cf2bd1b9e0f9d4a0108a30a2210b01264b338aa720551f94443d28331af

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