Workspace-isolated Python framework for building tool-using LLM agents.
Project description
AgentKit
AgentKit is a general-purpose framework for tool-using LLM agents. It provides workspace isolation, a unified LLM abstraction, a tool-execution loop, and both CLI and Python SDK entry points.
Current Capabilities
- Strong workspace isolation: all agent-visible file access goes through
WorkspaceFS - Unified LLM abstraction:
ConversationItem/ConversationState/UnifiedLLMRequest/UnifiedLLMResponse - Provider support (sync, non-streaming, text)
- OpenAI (
responses/chat_completions) - Anthropic (
messages) - Gemini (
generateContent) - Qwen (OpenAI-compatible
chat_completions) - vLLM (OpenAI-compatible
chat_completions)
- OpenAI (
- Registry-based tool system with built-in tools under
src/agentkit/tools/library/and custom tool loading from project file/directory entries - Agent loop that coordinates model reasoning and tool execution under step/time budgets
- Run logs written to
workspace/logs/run_<run_id>.jsonl
Status
- The repository includes unit tests for the agent loop, CLI, tool system, runlog, and the OpenAI / Anthropic / Gemini / Qwen / vLLM provider adapters
- There is no smoke-test coverage against live upstream APIs yet, so a final end-to-end validation against the target model is still recommended before production use
Documentation
Full documentation lives under docs/agentkit/.
The published site is GitHub Pages and
deploys automatically from pushes to main.
Install From Source
uv sync
uv run agentkit --help
Install From PyPI
pip install base-agentkit
agentkit --help
The import path and CLI command stay the same after installation:
from agentkit import create_agent
Example Configuration
vLLM
workspace:
root: "./vllm_workspace"
provider:
kind: "vllm"
model: "glm-5"
openai_api_variant: "chat_completions"
conversation_mode: "auto"
base_url: "http://localhost:8000/v1"
api_key: "empty"
temperature: 0.8
timeout_s: 600
retries: 2
enable_thinking: true
agent:
system_prompt: "You are a helpful agent. Use tools when needed."
budget:
max_steps: 200
time_budget_s: 1800
max_input_chars: 180000
tools:
entries:
- "./tools"
allowed:
- "view"
- "create_file"
- "str_replace"
- "word_count"
runlog:
enabled: true
redact: true
max_text_chars: 20000
Run From The CLI
export OPENAI_API_KEY="your-key"
uv run agentkit --config path/to/config.yaml run --task "List the files in the current workspace"
Python SDK
from agentkit import create_agent
agent = create_agent("path/to/config.yaml")
report = agent.run("Create notes/todo.txt in the workspace and write today's plan")
print(report.final_output)
Project Layout
The core implementation lives under src/agentkit/:
config/: configuration schema and loaderworkspace/: strict filesystem isolation and workspace layoutllm/: unified abstractions, provider base/factory, and adapterstools/: tool abstractions, registry, and autoloadingagent/: budgets, reports, runtime, and the agent looprunlog/: structured events, event sinks, and JSONL runlogscli/: command-line entry point
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file base_agentkit-0.1.1.tar.gz.
File metadata
- Download URL: base_agentkit-0.1.1.tar.gz
- Upload date:
- Size: 52.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18bf976054d04ee0de5df2096ab7c89bad8416064e01d6028ed42127e131b8e4
|
|
| MD5 |
fc13f1fe8a14a9167bfaeff242c382be
|
|
| BLAKE2b-256 |
54dfe78975c4b635a439c96da145ca81ddc27bc00509cecfba98450708b89ee8
|
Provenance
The following attestation bundles were made for base_agentkit-0.1.1.tar.gz:
Publisher:
publish.yml on Inkjourney/agentkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
base_agentkit-0.1.1.tar.gz -
Subject digest:
18bf976054d04ee0de5df2096ab7c89bad8416064e01d6028ed42127e131b8e4 - Sigstore transparency entry: 1078375148
- Sigstore integration time:
-
Permalink:
Inkjourney/agentkit@629afacdf39a9bc1123f618ccf8f045643786dcb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Inkjourney
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@629afacdf39a9bc1123f618ccf8f045643786dcb -
Trigger Event:
push
-
Statement type:
File details
Details for the file base_agentkit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: base_agentkit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 76.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c05bf239eea37a65200ae51cf32fc04326faa37efa86fb1a354a79f3abb13007
|
|
| MD5 |
3715fa60999f09bfbab516c93514db2e
|
|
| BLAKE2b-256 |
ad8cd431252d928a3887ef5886e7f19f3931eff64e71b3b31d296da7f1f8b431
|
Provenance
The following attestation bundles were made for base_agentkit-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on Inkjourney/agentkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
base_agentkit-0.1.1-py3-none-any.whl -
Subject digest:
c05bf239eea37a65200ae51cf32fc04326faa37efa86fb1a354a79f3abb13007 - Sigstore transparency entry: 1078375483
- Sigstore integration time:
-
Permalink:
Inkjourney/agentkit@629afacdf39a9bc1123f618ccf8f045643786dcb -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Inkjourney
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@629afacdf39a9bc1123f618ccf8f045643786dcb -
Trigger Event:
push
-
Statement type: