Skip to content

Repository files navigation

git-agent

CILicensePython

The repo IS the agent. Git IS the nervous system.

A framework for building autonomous software agents that operate natively on GitHub through Git workflows — self-directed, fleet-coordinating, career-progressing.


Quick Start

git clone https://github.com/SuperInstance/git-agent.git
cd git-agent
pip install -e ".[all]"
# Configure (interactive wizard)
python onboarding/config_wizard.py
# Run the agent
python -m git_agent

The agent bootstraps, observes fleet state, plans tasks, executes in parallel, pushes status bottles, and reflects on the session.


What It Does

git-agent turns a Git repository into a living agent. Instead of a chatbot with git installed, it's an autonomous lifecycle that uses the repository itself as its persistent state: commits are work, branches are explorations, issues are task boards, and PRs are communication. The agent observes its environment, plans tasks, executes them in parallel, communicates with other agents via Git-native "bottles" (status messages pushed as commits), and reflects on its performance.

The framework supports fleet coordination — multiple agents can collaborate decentralized through standardized TASKS.md boards and I2I (iron-to-iron) commit-based messaging. Agents progress through six career stages from Initiate to Commander, tracking skills and accomplishments along the way. It works with any LLM backend: OpenAI, Anthropic, Ollama (local), or any OpenAI-compatible proxy.


Architecture

┌─────────────────────────────────────────────────────┐
│ FLUX FLEET │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Agent A │ │ Agent B │ │ Agent C │ │
│ │Observe │ │Observe │ │Observe │ │
│ │Plan │ │Plan │ │Plan │ │
│ │Execute │ │Execute │ │Execute │ │
│ │Commun. │ │Commun. │ │Commun. │ │
│ │Reflect │ │Reflect │ │Reflect │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
└───────┼──────────────┼──────────────┼────────────────┘
└──────────────┼──────────────┘
GitHub API (REST + Git)
┌──────────────┼──────────────┐
│ Vessel Repos │ TASKS.md │ Fleet Messages
└──────────────┴──────────────┘

git-agent is the agent framework of the SuperInstance ecosystem. Agents use FLUX bytecode for deterministic computation, communicate via I2I git-native protocol, and coordinate through PLATO knowledge systems.

Key Features

  • Autonomous lifecycle: Observe → Plan → Execute → Communicate → Reflect
  • Fleet coordination: Decentralized multi-agent collaboration through Git-native bottles
  • Career progression: Six growth stages from Initiate to Commander with skill tracking
  • API-agnostic: Works with OpenAI, Anthropic, Ollama, or any OpenAI-compatible proxy
  • Parallel execution: Multiple tasks simultaneously with configurable worker pools
  • Git-native state: All state stored as human-readable Markdown in Git repositories
  • TASKS.md driven: Discover and claim work from standardized task boards

API / Usage

Supported LLM Backends

ProviderConfig KeyNotes
OpenAIllm_provider: "openai"GPT-4, GPT-3.5 Turbo
Anthropicllm_provider: "anthropic"Claude 3 family
Ollamallm_provider: "ollama"Local, private, zero cost
Custom Proxyllm_provider: "proxy"ZeroClaw, Pi Agent, vLLM, any OpenAI-compatible

One-Command Bootstrap

curl -sL https://raw.githubusercontent.com/SuperInstance/git-agent/main/onboarding/setup.sh | bash

Agent Lifecycle

  1. Observe — Read fleet state, TASKS.md boards, recent commits
  2. Plan — Identify available tasks, select based on skills and priority
  3. Execute — Run tasks in parallel with worker pools
  4. Communicate — Push status bottles via Git-native protocol
  5. Reflect — Log accomplishments, update career progression

Testing

pip install -e ".[dev]"
pytest tests/ -v

Contributing

Contributions are welcome! See the SuperInstance Contributing Guide.


Ecosystem

This repo is part of the SuperInstance flagship ecosystem — agent-first computation, constraint theory, and self-improving runtimes.

FLUX Runtime Family

RepoLanguageDescription
flux-runtimePythonFull FLUX runtime: markdown→bytecode, 2037 tests, zero deps
flux-coreRustRegister-based bytecode VM, deterministic agent computation
flux-jsJavaScriptFLUX VM for Node.js and browsers, ~400ns/iter
flux-compilerRust/PythonFormal-methods compiler for safety-critical codegen
flux-vmRustStack-based constraint-checking VM, 50 opcodes, Turing-incomplete

PLATO Engine Family

RepoLanguageDescription
plato-serverPythonKnowledge tiles, fleet sync via Matrix, HTTP API
plato-engine-blockRustOriginal room runtime: no_std + alloc, builder pattern
plato-engine-block-cC99Embedded reference: zero heap alloc, bare-metal portable
plato-engine-block-elixirElixirBEAM supervision trees, fault tolerance, hot reload
plato-runtime-kernelRustSpatial model: tensor grid, batons, assertion traps

Constraint / Theory Family

RepoLanguageDescription
categorical-agentsRustCategory theory for agent composition (functors, naturality)
cuda-constraint-engineCUDA/CGPU constraint checking at 1B+ constraints/sec
grand-pattern-rsRustFibonacci dual-direction cellular graph architecture
lau-hodge-theoryRustHodge decomposition, Betti numbers, spectral sequences
ternary-scienceRustExperimental evidence for ternary intelligence, 5 conservation laws

Agent / Infrastructure Family

RepoLanguageDescription
construct-coreRustLayered trait system: bare-metal → alloc → async agent runtime
crabBashAgent shell for repo entry/leave (MUD-room metaphor)
exocortexRustPersistent cognitive substrate, S3-compatible memory
git-agentPythonThe repo IS the agent — autonomous lifecycle via Git
capitaine-1TypeScriptGit-native repo-agent, Cloudflare Workers heartbeat
codespace-edge-rdResearchCodespace→Edge agent lifecycle and yoke transfer protocols
git-agent-codespaceDevContainerOne-click Codespace template for Git-Agent runtimes

Registries

RegistryPackageInstall
PyPIflux-vmpip install flux-vm
crates.iofluxvmcargo add fluxvm
npmflux-jsnpm install flux-js

Philosophy & Architecture


License

MIT

About

🦀 Repo-native agent that lives in git — the shell IS the agent.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages