Skip to content

Instantly share code, notes, and snippets.

View anjijava16's full-sized avatar
πŸ’­
Awesome

Anjaiah Methuku anjijava16

πŸ’­
Awesome
View GitHub Profile

Agentic Governance: Zero to Hero

A practical, architecture-first guide to governing AI agents from the first prototype to production. The examples focus on Microsoft Agent Governance Toolkit (AGT) / Agent Control Specification (ACS), LangGraph, MCP, and policy engines such as OPA and Cedar.

Version note: Agent frameworks and governance APIs evolve quickly. Treat code in this guide as teaching patterns, not guaranteed drop-in code for every package version. Before deploying, pin versions and check the linked official documentation for the exact API, supported adapters, and lifecycle hooks. In particular, do not assume that AGT/ACS automatically executes arbitrary OPA or Cedar policies unless the version and integration you use explicitly document that support.


Table of contents

FastAPI + HashiCorp Vault + PostgreSQL (Local Demo)

This project demonstrates how a FastAPI application can:

  1. Read non-sensitive database settings from application.yml.
  2. Retrieve only the database password from HashiCorp Vault KV v2.
  3. Use the combined settings to connect to PostgreSQL with SQLAlchemy.

Local-learning demo only: Vault Dev mode is in-memory, uses a fixed development token, and is not secure for production. Do not use

AIOps-Driven Scalable Fraud Detection Framework

An end-to-end guide to the research: what it is, why it exists, how it works, and where you would use it.

Paper: An AIOps-Driven Scalable Fraud Detection Framework for Financial Systems Using Advanced Explainable Machine Learning Models Author: Anjaiah Methuku Venue: IEEE Conference on Generative AI for Secure Systems (GAISS) 2026, University of Texas at Austin, 28–30 October 2026 (Paper ID 7158) Code: github.com/anjijava16/aiops-fraud-detection-framework


Slack Γ— FastAPI Γ— LangGraph β€” an agent that lives in your Slack

This repo is a complete, working example of a tool-using AI agent that people talk to from Slack. You @mention it in a channel, DM it, or use a slash command; a FastAPI service receives that, hands it to a LangGraph agent, the agent searches a knowledge base / opens tickets / does math / checks the time over as many steps as it needs, and the answer comes back into the same Slack thread. The same agent is also exposed as a REST API, so your other systems can call it and optionally post the result into Slack.

It started from two small scripts that already worked β€” a Slack Bolt app in Socket Mode and a chat_postMessage sender β€” and grows them, one layer at a time, into something you could actually run for a team. Everything that's in the README is in the code, and everything in the code is explained in the README.

#it-help
  Anji:      @Ops Buddy my VPN keeps dropping every few minutes since this morning. open a ticket pls
  Ops Buddy: πŸ‘€

Slack Welcome Agent β€” OpenAI + SQLAlchemy + SQLite

A local Slack bot using Slack Bolt Socket Mode and the OpenAI Responses API. It greets users who send hello, answers bot mentions, provides two slash commands, and stores πŸ‘/πŸ‘Ž feedback in a local SQLite database using SQLAlchemy.

1. Project structure

slack_welcome_agent_sqlite/
β”œβ”€β”€ slack_bot.py       # Slack listeners, OpenAI calls, feedback actions
β”œβ”€β”€ feedback_db.py # SQLAlchemy model and SQLite persistence

The keychain erase won't help, because the culprit isn't the keychain β€” it's still the GITHUB_TOKEN environment variable. Here's the mechanism: gh auth setup-git made git use gh as its credential helper, and gh prefers GITHUB_TOKEN over everything else. So as long as that env var is set to the bad PAT, git keeps sending it no matter what you erase.

You must unset it in this exact terminal, and because your earlier gh auth login was blocked by the token (it never stored real web credentials), you then need to log in fresh. Run these one line at a time:

  1. Clear the token from this shell:
unset GITHUB_TOKEN GH_TOKEN
  1. Confirm it's empty β€” this MUST print nothing (blank line):

Northwind Retail Agent: Jev + LLMs + Python + Tools + MCP

A working retail customer-service agent built around one idea: don't pay for reasoning when you only need a decision.

Jev (TypeSafe AI's System One model) makes the bounded decisions: routing, guardrails, tool arguments, model tier, verification, escalation signals. LLMs only write prose, and only when a template can't. Every tool lives behind an MCP server. Plain Python owns the control flow.

It runs end to end with no API keys (mock Jev, mock LLM) so you can read the trace and run the tests on a plane. Add keys and the same code talks to the real models.

retail-jev-agent/

Jev for Retail: a zero-to-hero deep dive

This repo teaches TypeSafe's Jev model from first principles and then puts it to work across a whole (fictional) retailer, Fernhill Market. It covers support triage, returns and refunds, review moderation, catalog categorisation, product search, attribute extraction, product matching, order risk, and a guardrail for an LLM shopping assistant. Everything ships behind a FastAPI service with a small dashboard, an evaluation harness, 23 runnable examples and a test suite.

It started from a Node.js workshop project that raced Jev against a frontier LLM on appliance-store support emails. That project's ideas (a single task config, confidence tiers, calibration, the TypeScript port of TypeSafe's LLM adapter) are carried over here in Python, and section 12 maps one to the other.

No API key? Everything still runs. Without TYPESAFE_API_KEY the client is wired to an offline simulator that speaks the exact Jev wire format. It plugs into the official SD

@anjijava16
anjijava16 / imp.md
Created September 30, 2026 08:16
imp.md

Refundry: MCP + A2A in Production β€” Speaker Notes

These are my notes for the MLCon talk. Read Part A tonight, Part B on the train, and keep Part C open on a phone during Q&A prep. The slide-by-slide section (Part B) has three things for every slide: what the slide is really claiming, the theory underneath it, and a few lines I can actually say out loud.


Part A. Before I walk on

The clock