Skip to content

Instantly share code, notes, and snippets.

View lukehinds's full-sized avatar
🏃‍♂️
Either running or coding.

Luke Hinds lukehinds

🏃‍♂️
Either running or coding.
View GitHub Profile
# API version for configuration evolution
apiVersion: v1
# Agent Information
name: "Kubernetes SRE Agent"
description: "AI Agent Kubernetes SRE Agent Project."
version: "0.0.1"
url: http://localhost:8000
provider_organization: AgentUp
provider_url: https://agentup.dev
> curl -s http://127.0.0.1:8000/.well-known/agent-card.json | jq
{
"additionalInterfaces": null,
"capabilities": {
"extensions": null,
"pushNotifications": false,
"stateTransitionHistory": false,
"streaming": true
},
"defaultInputModes": [
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"name": "GeoSpatial Route Planner Agent",
"description": "Provides advanced route planning, traffic analysis, and custom map generation services. This agent can calculate optimal routes, estimate travel times considering real-time traffic, and create personalized maps with points of interest.",
"url": "https://georoute-agent.example.com/a2a/v1",
"provider": {
"organization": "Example Geo Services Inc.",
"url": "https://www.examplegeoservices.com"
},
"iconUrl": "https://georoute-agent.example.com/icon.png",
"version": "1.2.0",
BUG_SOW_SYSTEM_PROMPT = """You are an expert software engineer helping a user create a Statement of Work (SoW) for a bug fix.
Your goal is to guide the user through creating a comprehensive SoW by asking relevant questions.
Follow these steps in a conversational, friendly manner:
1. Ask about the bug's symptoms and behavior
2. Ask about reproduction steps
3. Ask about the expected vs actual behavior
4. Ask about any error messages or logs
5. Ask about the environment where the bug occurs
6. Ask about any workarounds or temporary fixes
[2025-04-09T13:16:53Z INFO ragrust::query] Processing query: Add --quiet CLI flag to SQLFluff
Add --quiet/-q flag option to Click command interface
Implement flag in main CLI entry point
Ensure flag is recognized across all relevant commands
Add type hints and docstrings for new parameter
{
"code_snippets": [
{
"entity_id": "361af743-97a1-4961-b906-ddf4f1113239",
================================================
Generated Code from Agent One (OpenAI)
================================================
FILE: src/main.py
```python
# This is a simple Python program that displays the message "Hello, World!"
print("Hello, World!")
```
Change Log:
import nltk
import ast
import difflib
# Make sure you have the required NLTK resource punkt
# cat punkt.py  ✔  3694  19:31:56
# import nltk
# nltk.download('punkt_tab')
# [nltk_data] Downloading package punkt_tab to
# [nltk_data] /Users/lhinds/nltk_data...
odegate@5e82df9af202:/app/src/codegate/ca$ cat codegate_ca.py
import os
import ssl
from dataclasses import dataclass
from datetime import datetime, timedelta, timezone
from typing import Dict, Optional, Tuple
import structlog
from cryptography import x509
from cryptography.exceptions import InvalidSignature
odegate serve --log-level ERROR --vllm-url https://inference.codegate.ai
2024-12-05 13:04:01 [debug ] Initializing DB from path: /Users/lhinds/repos/stacklok/codegate-repos/codegate/codegate.db
{"event": "Started /Users/lhinds/.cache/weaviate-embedded: process ID 63053", "level": "info", "timestamp": "2024-12-05T13:04:02.3dZ", "module": "embedded"}
{"build_git_commit":"ab0312d5d","build_go_version":"go1.23.1","build_image_tag":"localhost","build_wv_version":"1.26.6","error":"cannot find peer","level":"error","msg":"transferring leadership","time":"2024-12-05T13:04:05Z"}
/Users/lhinds/Library/Caches/pypoetry/virtualenvs/codegate-gFzJOOiQ-py3.11/lib/python3.11/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
warnings.warn( # deprecated in 14.0 - 2024-11-09
/Users/lhinds/Library/Caches/pypoetry/virtualenvs/codegate-gFzJOOiQ-py3.11/lib/python3.11/site-packages/uvico