g3

g3 is an open-source, Rust-based command-line coding agent framework developed by Dhanji Prasanna. It is designed to orchestrate LLM-driven software engineering workflows directly from the terminal, leveraging structured rule evaluation and multi-agent roles. In everyday development, g3 interfaces with multiple LLM backend providers including Anthropic, OpenAI, Google Gemini, Databricks, and local or embedded models. It supports distinct operational topologies, such as coach-player configurations where dedicated planner and reviewer roles oversee execution and code generation while respecting model-specific parameters like Anthropic thinking budgets. A key differentiator in g3 is its deterministic policy enforcement via a Datalog-backed rulespec engine. Developers can define predicate constraints (such as substring, regex match, or presence checks with conditional when clauses) that agents must satisfy during execution, alongside persistent execution memory management that can be toggled via flags like --no-auto-memory. The tool is distributed under an open-source repository on GitHub and is implemented as a modular Rust workspace (comprising crates such as g3-core, g3-providers, and g3-planner).

Tags: ai agent, cli, coding agent, developer tools, experiments, OpenSource

Visit g3