Jack-in-the-Box
476
An agent based merge-request analyzer build on Embabel, Spring-Boot and Spring-AI.
Jack-in-the-Box (JITB) pays special attention on running in fully air-gapped environments with local LLM's served with Ollama or other OpenAI-API compatible environments.
JITB is highly inspired by products like The-PR-Agent (open-source) and CodeRabbit (commercial).
⚠ Please take care for your secrets. It's not recommended to set secrets to
environmentdirectly.
docker-compose.yaml:
services:
ollama:
image: ollama/ollama:0.21.2
container_name: ollama
ports:
- "11434:11434"
volumes:
- "ollama:/root/.ollama"
jitb:
image: sam42r/jitb:0.1.1
container_name: jitb
environment:
JITB_API_KEY: "<JITB_API_KEY>"
GITHUB_API_TOKEN: "<GITHUB_PERSONAL_ACCESS_TOKEN>"
network_mode: host
volumes:
ollama:
Pull ollama model:
docker exec -it ollama ollama pull llama3.2:1b
Run MR analysis:
curl \
-H "X-API-KEY: <JITB_API_KEY>" \
-H "Merge-Request-Url: https://github.com/<OWNER>/<PROJECT>/pulls/<ID>" \
-X POST 'http://localhost:8080/merge-request/description'
Visit Codeberg.org for more details.
Content type
Image
Digest
sha256:1d9be7d64…
Size
220.7 MB
Last updated
23 days ago
docker pull sam42r/jitb:0.4.1