DG

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

521 stars Качество 53 Тренд 20

dhanji/g3 — кандидат на навыки агента, импортированный из https://github.com/dhanji/g3.

Обзор

dhanji/g3 — кандидат на навыки агента, импортированный из https://github.com/dhanji/g3.

Обзор (машинный перевод)

G3 — это агент ИИ-кодирования, предназначенный для помощи в выполнении задач путём написания кода и выполнения команд. Встроенный в Rust, он обеспечивает гибкую архитектуру для взаимодействия с различными провайдерами Больших Языковых Моделей (LLM), а также мощными возможностями генерации кода и автоматизации задач.

Обзор архитектуры

g3 использует модульную архитектуру, организованную как рабочее пространство Rust с несколькими ящиками, каждый из которых отвечает за определённую функциональность:

Основные компоненты

g3-core

Сердце агентной системы, включающее:

  • Agent Engine: Основная логика оркестрации для ведения разговоров, выполнения инструментов и управления задачами
  • Управление окном контекста: интеллектуальное отслеживание использования токенов с уменьшением контекста (50-80%) и автоуплотнением при 80% ёмкости
  • Tool System: Встроенные инструменты для файловых операций, команд shell, управления компьютером, управления TODO и структурированного вывода
  • Потоковый парсер ответов: Парсинг ответов LLM в реальном времени с обнаружением и выполнением вызовов инструментов
  • Выполнение задачи: Поддержка одиночного и итеративного выполнения задач с автоматической логикой повторных попыток

g3-провайдеры

Слой абстракции для поставщиков LLM:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

g3 - AI Coding Agent

g3 is a coding AI agent designed to help you complete tasks by writing code and executing commands. Built in Rust, it provides a flexible architecture for interacting with various Large Language Model (LLM) providers while offering powerful code generation and task automation capabilities.

Architecture Overview

g3 follows a modular architecture organized as a Rust workspace with multiple crates, each responsible for specific functionality:

Core Components

g3-core

The heart of the agent system, containing:

  • Agent Engine: Main orchestration logic for handling conversations, tool execution, and task management
  • Context Window Management: Intelligent tracking of token usage with context thinning (50-80%) and auto-compaction at 80% capacity
  • Tool System: Built-in tools for file operations, shell commands, computer control, TODO management, and structured output
  • Streaming Response Parser: Real-time parsing of LLM responses with tool call detection and execution
  • Task Execution: Support for single and iterative task execution with automatic retry logic

g3-providers

Abstraction layer for LLM providers:

  • Provider Interface: Common trait-based API for different LLM backends
  • Multiple Provider Support:
    • Anthropic (Claude models)
    • Databricks (DBRX and other models)
    • Local/embedded models via llama.cpp with Metal acceleration on macOS
  • OAuth Authentication: Built-in OAuth flow support for secure provider authentication
  • Provider Registry: Dynamic provider management and selection

g3-config

Configuration management system:

  • Environment-based configuration
  • Provider credentials and settings
  • Model selection and parameters
  • Runtime configuration options

g3-execution

Task execution framework:

  • Task planning and decomposition
  • Execution strategies (sequential, parallel)
  • Error handling and retry mechanisms
  • Progress tracking and reporting

g3-computer-control

Computer control capabilities:

  • Mouse and keyboard automation
  • UI element inspection and interaction
  • Screenshot capture and window management
  • OCR text extraction via Tesseract

g3-cli

Command-line interface:

  • Interactive terminal interface
  • Task submission and monitoring
  • Configuration management commands
  • Session management

Error Handling & Resilience

g3 includes robust error handling with automatic retry logic:

  • Recoverable Error Detection: Automatically identifies recoverable errors (rate limits, network issues, server errors, timeouts)
  • Exponential Backoff with Jitter: Implements intelligent retry delays to avoid overwhelming services
  • Detailed Error Logging: Captures comprehensive error context including stack traces, request/response data, and session information
  • Error Persistence: Saves detailed error logs to .g3/errors/ for post-mortem analysis
Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add dhanji/g3
Новичок в MCP? Начните с руководства на mcpskill.org →