- Employer work
- Live
Internal AI agent platform and enablement
A self-hosted production agent platform that enables engineering teams to build their own AI workflows.
- historical support tickets indexed
- 100,000+
Write-up only. Employer work, so there is no public code or demo.
I designed, built and recently launched a shared AI agent platform in production at Patron Points. It runs on company-managed infrastructure and gives developers and infrastructure engineers a common way to build agents without maintaining their own inference, orchestration or observability stack. I have delivered initial training and now lead AI enablement across both teams, which together make up the IT organization.
The problem
I wanted AI to become a capability the engineering organization could build on, not a collection of one-off scripts or chatbots. Each new use case should not require a developer to solve model serving, execution, tool discovery, authentication and monitoring all over again.
I took the platform from architecture through implementation and production deployment. Infrastructure incident diagnosis was the initial use case, but I deliberately kept the execution platform independent of that workflow so the same foundation could support other kinds of work.
Architecture: deterministic control, agentic execution
The central design decision was to separate the control plane from the agent. Ordinary software decides which agent runs and when. The language model is used for reasoning and tool use inside the job, rather than being responsible for scheduling or managing infrastructure.
- FastAPI dispatcher and queue: A request specifies an agent and its input. The dispatcher manages task submission and execution, using agent definitions rather than asking an LLM to decide what to schedule.
- Kubernetes job workers: Each execution attempt runs as its own short-lived Kubernetes Job. A supervisor coordinates execution, while the worker runs the agent loop. This separates job lifecycle management from the model's reasoning.
- Self-hosted inference: Ollama serves LLMs on company-managed hardware. The platform can use local inference without sending every task to an external model provider.
- Developer interfaces: Engineers can submit tasks through a CLI or an API, and scheduled agent jobs run through Apache Airflow.
- Shared Python library: Common database models, structured logs, execution events, metrics and tracing keep the components consistent.
Tool discovery and knowledge retrieval
A general-purpose agent platform has a different retrieval problem from a chatbot: as the tool inventory grows, providing every available tool to the model consumes context and makes choosing the right capability harder.
I use MCP tool servers to expose capabilities and PostgreSQL with pgvector to retrieve relevant tool definitions and context. This lets the platform narrow the tool inventory for a task instead of treating every capability as equally relevant.
For the initial infrastructure diagnosis use case, I imported more than 100,000 historical support tickets into OpenSearch, respecting the source API's rate limits. Those records provide searchable operational knowledge that can support an agent's investigation.
Security, reliability and observability
An agent platform needs the same production engineering discipline as any other internal service. I designed it so the model is not the authority for job orchestration.
- Company single sign-on through Keycloak, role-based permissions, hashed API keys and audit records for authenticated actions.
- Output review checks designed to prevent downstream steps from blindly relying on model responses.
- PostgreSQL for persistent platform state and audit records; OpenSearch for searchable execution events, work reports and logs.
- Buffered and retried event writes, dropped-event counters and scheduled data expiration.
- OpenTelemetry instrumentation, Prometheus metrics and Grafana for operational visibility.
- CI checks for secrets, database migrations and pytest integration tests.
These features make agent executions easier to inspect, troubleshoot and improve. They do not eliminate the need to validate model behavior or review the permissions of individual tools.
AI enablement: getting the rest of IT building
The production launch is only the first milestone. My focus now is onboarding developers and infrastructure engineers, the two teams that make up our IT organization, so they can build on the platform themselves.
I train engineers to design agents, integrate MCP tools, identify useful automation opportunities and decide which parts of a workflow actually benefit from an LLM. An important part of that training is knowing when not to use AI: predictable operations are often better implemented in regular code.
My goal is to make the infrastructure reusable enough that engineers can concentrate on solving their own problems instead of becoming experts in model hosting and agent orchestration. That combines my background in infrastructure, software development and business process improvement with technical leadership.
Current outcome
The platform recently launched and is running in production. I have delivered initial training, and onboarding is underway across both IT teams. The support ticket corpus is indexed, and the shared execution infrastructure is available for new agent use cases.
The next measure of success is adoption: engineers building their own agents, repeatable workflows moving into production, and less time spent on routine operational work.