Skip to content

About

Blog companion: KitOps v1.12.0 native support for AI agents, with a PDF skill and OpenCode config in a ModelKit.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

AI Agents as ModelKits with KitOps: Package a model, an agent skill and an OpenCode config as one ModelKit

AI Agents as ModelKits with KitOps

Package a model, an agent skill and an OpenCode config as one ModelKit

A notebook that packages Qwen3.5-9B with a PDF agent skill and OpenCode config as a ModelKit, pushes it to Jozu Hub and runs the model with a Jozu RIC.


Built by Studio1 Built with Jozu

Jozu docs  ·  Jozu  ·  KitOps  ·  More examples  ·  studio1hq.com


Overview

This repo accompanies the blog post "KitOps v1.12.0: Native Support for AI Agents". It contains a PDF agent skill, an OpenCode config, a sample registration form and the notebook (main.ipynb).

The notebook packages a quantized Qwen3.5-9B model together with the PDF skill (as prompts), opencode.json (as code) and the sample form (as docs) into one KitOps ModelKit. It pushes the ModelKit to Jozu Hub and runs the model with a Jozu Rapid Inference Container (RIC).

Features

  • Agent in one artifact: Model, skill, agent config and test document live in one versioned ModelKit.
  • PDF skill: The pdf/ folder has SKILL.md, forms.md, reference.md and scripts for extracting form fields, filling fillable fields, adding annotations and validating bounding boxes.
  • OpenCode config: opencode.json declares the local model for the OpenCode coding agent.
  • Test input: registration_form.pdf checks the agent's PDF form-filling ability.
  • Python Kitfile: The kitops library builds the Kitfile (prompts, code, docs) and pushes it.
  • Jozu RIC: The ModelKit is served as a llama-cpp-cuda container on port 8000.

Tech stack

Layer Tool
Model Qwen3.5-9B GGUF (Q4_0)
Packaging KitOps CLI and kitops Python library
Registry and runtime Jozu Hub and Jozu Rapid Inference Container
Agent OpenCode
Runtime Python 3.11+, Docker, Jupyter

Getting started

Prerequisites

  • Python 3.11 or later and Jupyter
  • Docker
  • A Jozu Hub account at jozu.ml
  • Homebrew on Linux or macOS (the notebook installs it if missing)
  • A machine with an NVIDIA GPU and the NVIDIA container toolkit for the --gpus all Docker command

Installation

git clone https://github.com/Studio1HQ/agents_with_kitops.git
cd agents_with_kitops
brew tap kitops-ml/kitops
brew install kitops
pip install kitops huggingface_hub

Environment variables

No environment variables. The notebook authenticates with the email and password of your Jozu Hub account and uses placeholders you replace.

Placeholder Description
email-prefix-here The part of your Jozu Hub email before the @ (for jack123@gmail.com use jack123). Keep tags lowercase.
full-email-here, password-here Jozu Hub credentials passed to UserCredentials in the notebook.

Run

Log in to Jozu Hub in a terminal (you are prompted for email and password), then open the notebook:

kit login jozu.ml
jupyter notebook main.ipynb

Install OpenCode with curl -fsSL https://opencode.ai/install | bash, and start it with opencode.

How it works

pdf/                    PDF agent skill (SKILL.md, forms.md, reference.md, scripts/)
opencode.json           Local model declaration for OpenCode
registration_form.pdf   Sample form to fill
main.ipynb              Commands from the article
  1. Download Qwen3.5-9B-Q4_0.gguf from unsloth/Qwen3.5-9B-GGUF into ./Qwen3.5-9B-Q4.
  2. Build the Kitfile: model is the GGUF, prompts points to pdf, code points to opencode.json and docs points to registration_form.pdf.
  3. Push with ModelKitManager to jozu.ml/email-prefix-here/qwen3.5-9b-q4_0-gguf:latest.
  4. Run the model:
    docker run -it --rm -p 8000:8000 --gpus all "jozu.ml/email-prefix-here/qwen3.5-9b-q4_0-gguf/llama-cpp-cuda:latest"
  5. Start OpenCode and ask it to fill out registration_form.pdf using the PDF skill.

Resources



Studio1

Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Jozu.
Browse more open-source examples at github.com/Studio1HQ.

Website Book a call X LinkedIn

studio1hq.com · Technical content, docs, video and DevRel for devtools

About

Blog companion: KitOps v1.12.0 native support for AI agents, with a PDF skill and OpenCode config in a ModelKit.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages