Skip to content
2noScriptPublic

About

Reusable AI agent provider harness, HTTP/CLI LLM adapters, human-in-the-loop console, humanized input planner, and MCP client registration

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agent-kit

agkit runs chat turns across local agent CLIs. Reuse one session ID when switching providers or models.

---
config:
  flowchart:
    nodeSpacing: 24
    rankSpacing: 32
---
flowchart LR
    accTitle: agkit chat flow
    accDescr: agkit uses one session ID across local agent CLIs and stores chat history in SQLite.

    Client("Terminal or app") <-->|Text / JSONL| CLI

    subgraph Kit["<span style='font-size:24px;font-weight:700;line-height:1.25'>agkit</span>"]
        CLI("CLI interface") <--> Sessions("Session manager<br/>One agkit session ID")
        Sessions <--> Adapters("Provider adapters")
        Sessions <--> Store[("Local SQLite<br/>Chat history")]
    end

    Adapters <-->|One per turn| Agents

    subgraph Agents["Local agent CLIs"]
        direction TB
        Codex("Codex") ~~~ OpenCode("OpenCode") ~~~ Agy("Antigravity (agy)") ~~~ More("… more via Rust library")
    end

    classDef entry fill:#E0F2FE,stroke:#0284C7,color:#0C4A6E
    classDef layer fill:#EFF6FF,stroke:#60A5FA,color:#172554
    classDef session fill:#1E3A8A,stroke:#60A5FA,color:#FFFFFF,stroke-width:2px
    classDef storage fill:#ECFDF5,stroke:#10B981,color:#064E3B
    classDef provider fill:#F5F3FF,stroke:#A78BFA,color:#4C1D95
    classDef more fill:#F8FAFC,stroke:#94A3B8,stroke-dasharray:4 3,color:#334155
    class Client entry
    class CLI,Adapters layer
    class Sessions session
    class Store storage
    class Codex,OpenCode,Agy provider
    class More more
    style Kit fill:none,stroke:#94A3B8,stroke-width:1px
    style Agents fill:none,stroke:#A78BFA,stroke-width:1px
    linkStyle 0,1,2,3,4 stroke:#64748B,stroke-width:1.5px
Loading

Install

macOS via Homebrew

agkit is published in the project's Homebrew tap. Use the fully qualified formula name to install it.

brew install 2noScript/agent-kit/agkit

To find the formula with brew search before installing, add the tap and trust the agkit formula.

brew tap 2noScript/agent-kit
brew trust --formula 2noScript/agent-kit/agkit
brew search 2noScript/agent-kit/agkit

Linux via tarball

Download the Linux x64 or ARM64 .tar.gz and SHA256SUMS from the latest release. Verify the archive with sha256sum --ignore-missing -c SHA256SUMS, then extract it and run the following in the extracted directory.

install -Dm755 agkit "$HOME/.local/bin/agkit"

Add $HOME/.local/bin to your PATH if needed.

Windows

ZIP

Download the Windows x64 .zip and SHA256SUMS from the latest release. Compare the hash from Get-FileHash -Algorithm SHA256 <zip-file> with SHA256SUMS, then extract the archive and open PowerShell in that directory.

.\agkit.exe --version

Add the extracted directory to your PATH to run agkit from any terminal.

WinGet

The WinGet submission is pending. Once the package appears in the winget source, install it with:

winget install --id 2noScript.Agkit --exact --source winget

Development quick start

Install Rust and your provider CLI, then sign in to the provider. Run these commands from the repository root. agkit.sh rebuilds the debug binary when the source changes.

./agkit.sh -v
./agkit.sh chat --help
./agkit.sh chat -p codex -m "<model-id>" "Remember cedar."

Supported Providers

External CLIs (external_cli)

Logo Name ID
Claude Code Claude Code claude-code
Codex Codex codex
Antigravity Antigravity antigravity
OpenCode OpenCode opencode
Gemini CLI Gemini CLI gemini-cli
Grok CLI Grok CLI grok-cli

Direct HTTP APIs (builtin_http)

Logo Name ID
Custom OpenAI-Compatible Custom OpenAI-Compatible custom

MCP Clients (mcp_agents)

Logo Name ID
Claude Desktop Claude Desktop claude-desktop
Claude Code Claude Code claude-code
Cursor Cursor cursor
VS Code VS Code vscode
Zed Zed zed
Cline CLI Cline CLI cline-cli
Cline VSCode Cline VSCode cline
Codex Codex codex
Gemini CLI Gemini CLI gemini-cli
GitHub Copilot CLI GitHub Copilot CLI github-copilot-cli
Goose Goose goose
Antigravity Antigravity antigravity
OpenCode OpenCode opencode
Grok CLI Grok CLI grok-cli
MCPorter MCPorter mcporter

JSON input

Output is readable text by default. Use --json to receive status, code, message, and data. Chat accepts one JSON request on stdin and returns one response per line.

printf '%s\n' '{"providerId":"codex","prompt":"Remember cedar."}' | agkit --json chat

Use data.sessionId from the completed event in later requests. See the CLI API reference for all flags, events, and exit codes.

Build from source

With Rust installed, run the following from the repository root.

cargo build --release --locked --bin agkit
./target/release/agkit --help

Dual-licensed under MIT or Apache-2.0.

About

Reusable AI agent provider harness, HTTP/CLI LLM adapters, human-in-the-loop console, humanized input planner, and MCP client registration

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages