RJ.Raja Jeevan
Product & commerce
AI Generalist
← All portfolioExperiments · Applied AI

The Audit Loop: how I keep hardening my local AI agent setup

A single audit tells you where your setup was. A loop tells you where it is. This is the audit loop I run on my own local agent setup: frame each audit in ChatGPT, carry it over Telegram, let Hermes audit and patch, and re-check before counting anything as fixed.

Running a local AI agent means the system drifts: skills get added, files change, yesterday’s clean setup quietly picks up new gaps. A single audit tells you where you were. A loop tells you where you are. The loop here is the one I run on my own setup: frame an audit, have the agent run it, review the findings, patch, and re-check. I wrote it up as a short guide and a one-page visual so anyone running a similar setup can borrow the pattern.

The Audit Loop: a six-step workflow across ChatGPT, Telegram and Hermes, with five audit lenses and recommended safeguards for reuse

The full write-up is available as a six-page guide (PDF), and the visual above is the shareable one-page version. Both are free to pass along.

The setup: three tools, one bridge

ChatGPT is the prompt workshop. Each audit starts as a prompt: what is in scope, the bar to meet, and the evidence the report should return. Drafting this well is most of the work.

Telegram is the transport, and I am the bridge. There is no direct ChatGPT integration. I copy the prompt by hand into my Telegram chat with Hermes, and I carry the findings back the same way. This looks low-tech and it is deliberate: a person reads what crosses the boundary, so context and judgment travel with it.

Hermes is the system under test. My local agent runs the audit against the harness setup, reports findings, and, once I confirm a finding, patches the relevant Python skill files. Swap in your own tools freely: the pattern that matters is a good prompt-drafting surface, a transport a person controls, and an agent that can inspect and edit its own files.

The loop, step by step

One: frame the audit in ChatGPT, with the scope, what to check, and the evidence findings should carry. Two: carry it over, copying the prompt into Telegram to Hermes; the human hop keeps judgment in the middle. Three: Hermes runs the checks across the harness setup and reports findings back on Telegram. Four: review together. Challenge findings, ask for evidence, and decide what is real before anything changes. Five: patch the skills, one finding, one patch, in the relevant Python skill files. Six: re-check. Re-run the audit before counting the fix as done. Then repeat: each pass can expose gaps or validate a scoped fix.

Five lenses worth checking

The areas I test: functionality (does each skill do what it claims), nonfunctional attributes (reliability, error handling, resilience under bad input), security (secrets handling, permissions, unsafe code paths), performance (latency, token use, resource cost), and knowledge-work quality (accuracy and usefulness of what the system produces). Treat them as a starting checklist for your own audits, not a claim that every audit of mine covers all five.

Safeguards I recommend for reuse

These go beyond a description of what I do every time; they are recommendations. Propose, then apply: have the agent show the patch as a diff and apply it only after review. Back up first, and know the rollback path before you need it. Re-run for regressions after every patch, because a patch can break what it did not touch. Redact what crosses the boundary: no secrets or client material into cloud tools, and redact outputs before carrying them back. And scope your conclusions: a clean re-check validates the tested scope, not the whole setup.

Honest notes

Enterprise-grade is the goal, not a certificate. This loop is how I work toward that bar on my own setup; it is not an independent audit or a verified result. The human steps are the point: findings and diffs get read by a person before they count. And evidence comes before done: a finding is real when it comes with raw evidence, and a fix is real when a re-run confirms it.