freshcrate
Home > AI Agents > Grinta-Agent

Grinta-Agent

Local-first autonomous coding agent that plans, executes, validates, and finishes software tasks end-to-end.

Description

Local-first autonomous coding agent that plans, executes, validates, and finishes software tasks end-to-end.

README

Grinta

Grinta logo

License: MIT Python 3.12+ mypy: checked code style: black

Autonomous coding that closes the loop: plan, execute, validate, finish.

Grinta is an open-source, local-first autonomous coding agent built for real repository work. It reads code, plans multi-step execution, performs changes and command runs, validates results, and only finishes when completion criteria are satisfied.

Project Description

Grinta focuses on task completion integrity, not just code generation. The runtime combines orchestration safeguards, local execution policy checks, and durable session state so long-running tasks can recover, self-correct, and stay within clear operating boundaries.

Core Topics

  • Autonomous coding workflows and task completion gates
  • Session orchestration, retries, stuck detection, and circuit breakers
  • Local-first execution with policy-driven safety controls
  • Model-agnostic provider routing (cloud and local)
  • Context compaction and durable run-state recovery for long sessions

Why Grinta

  • Task completion, not just file edits.
  • Local-first runtime with strong safety guardrails.
  • Durable long-session behavior with event-oriented state and recovery.
  • Model-agnostic inference with direct provider support and OpenAI-compatible routing.
  • Strong stuck detection and circuit-breaker behavior to avoid silent runaway loops.

Security Boundary

Grinta currently executes actions on the local host.

  • hardened_local adds stricter local execution policy checks.
  • hardened_local is not sandboxing and not process isolation.

Use Grinta for trusted local workflows and repositories.

Architecture (High Level)

graph TB
    User([User]) --> CLI[CLI: backend.cli.entry]
    CLI --> Orch[SessionOrchestrator]
    Orch --> Engine[Engine\nplanning + tool intent]
    Orch --> Pipe[Operation pipeline\nsafety + validation]
    Pipe --> Runtime[RuntimeExecutor\nlocal execution]
    Runtime --> Obs[Observations]
    Obs --> Orch
    Orch --> Ledger[EventStream / durability]
    Orch --> FinishGate[Task validation\nbefore finish]
Loading

See docs/ARCHITECTURE.md for implementation details.

Quick Start

Windows (recommended)

.\START_HERE.ps1

Linux / macOS / manual

  1. Install dependencies:
uv sync
  1. Create local settings:
cp settings.template.json settings.json
  1. Start the CLI:
uv run python -m backend.cli.entry

Optional raw HTTP backend (API/OpenAPI tooling)

Windows:

.\start_backend.ps1

Cross-platform:

uv run python -m backend.execution.action_execution_server 3000 --working-dir .

Main endpoints:

Docker (optional)

./docker_start.sh

Windows:

.\DOCKER_START.ps1

LLM Setup (settings.json)

Minimal config:

{
  "llm_provider": "openai",
  "llm_model": "openai/gpt-4o-mini",
  "llm_api_key": "sk-...",
  "llm_base_url": ""
}

Common model ids:

  • openai/gpt-4o-mini
  • anthropic/claude-sonnet-4-20250514
  • google/gemini-2.5-pro
  • ollama/llama3.2

Core Concepts

Full task loop

Plan -> execute -> observe -> validate -> finish.

Context compaction

Grinta uses compactor strategies to keep long sessions coherent under context limits.

Reliability controls

Stuck detection, retry/recovery flows, and circuit breakers are built into orchestration.

Completion integrity

Task validation can block finish calls when tracked work is incomplete.

Documentation

Contributing

See CONTRIBUTING.md.

License

MIT — see LICENSE.

Release History

VersionChangesUrgencyDate
main@2026-04-20Latest activity on main branchHigh4/20/2026
0.0.0No release found — using repo HEADHigh4/10/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

tsunamiautonomous AI agent that builds full-stack apps. local models. no cloud. no API keys. runs on your hardware.main@2026-04-21
taijiAI-powered self-learning OS with I Ching philosophy | 融合易经哲学的自学型 AI 操作系统v0.1.0
entonBuilds an autonomous AI robot with vision, voice, and decision-making capabilities using Python, PyTorch, and CUDA technology.main@2026-04-21
nano-banana-pro# Manga-Autonoma (powered by nano-banana-2) Autonomous AI 4-panel manga production system using Gemini API. / Gemini APIを活用した、完全自律型AI4コママンガ制作システム。v2.58.0-alpha
GENesis-AGIAutonomous AI agent with persistent memory, self-learning, and earned autonomy. Cognitive partner that remembers, learns, and evolves.v3.0a7