Inspiration

Cloud-based AI coding tools send your proprietary source code, prompts, and terminal history to external servers you don't control — and once an agent is loose in your infrastructure, two questions go unanswered: what is it leaking, and what is it costing? For privacy-conscious developers and enterprises, that's an unacceptable risk on both ends. We built LLMai to deliver the full agentic power of modern AI assistants while guaranteeing every byte stays on your machine — and then we closed the operational loop: the agent streams its own telemetry into Splunk, and Splunk reaches back to keep it safe and on-budget, automatically. No leaks. No overspend. No cloud.

What it does

LLMai is a 100% local, open-source AI agent that doesn't just chat — it does the work, and is fully observable while doing it. Real Agentic Loop: plans the next step, calls a tool, observes the result, and iterates up to 20 times until the task is complete. Explicit-Permission Writes: read-only tools run instantly; anything that mutates state (writing files, running commands) pauses for your approval. GitLab Integration: triages issues, fetches merge requests, reads failing pipeline logs, and opens fix MRs. Closed-Loop Splunk Observability (new): every LLM call, router decision, cache hit, DLP violation, and anomaly is streamed to Splunk HEC (index=mcp_agents, 8 event types). Splunk itself is exposed to the agent as an MCP tool — natural language → SPL — alongside a Supabase data tool. Self-Healing (new): a Splunk CDTS anomaly (cost spike, latency, error rate, DLP burst, token overrun) hits a webhook and the agent re-weights its own model router at runtime, auto-restoring after a cooldown — a true bidirectional loop. Security in depth (new): DLP violations are risk-scored (Foundation-sec) and routed to 6 Splunk SOAR playbooks; every sensitive endpoint is guarded by a constant-time X-MCP-Token; credentials live in env, never in source. Control Center (new): a premium dark Streamlit dashboard (Mission Control · AI Agent Lab · Live Threat Feed · ROI Impact · SPL Query Lab) plus a 12-panel Splunk Dashboard Studio view — and a one-click public Demo Mode, still 100% on your infrastructure.

How we built it

Backend: a lightweight, highly readable Python loop — no heavy abstraction frameworks. AI Orchestration: native function-calling for Qwen 2.5 Coder and Llama 3.1/3.2, with an intelligent XML-based fallback for Gemma, Phi, and Mistral. LLM Engine: entirely local Ollama instances, with a provider-agnostic architecture (optional Gemini fallback via key). Frontend: a full-screen dark glassmorphism web UI (HTML/Vanilla JS/CSS over WebSockets) and a rich terminal REPL for CLI lovers. Splunk layer (new): an async, batched HEC telemetry emitter; a Splunk MCP tool with REST fallback; a DLP→SOAR bridge; and a CDTS anomaly → auto-remediation webhook with a runtime router re-weighter and a cooldown-restore daemon — all added with graceful degradation (env-gated, monkey-patched, try/except), so the base agent has zero regressions when Splunk is absent. Shipped under Apache-2.0 with a full PDCA engineering cycle (96–100% design-match).

Challenges we ran into

Model Compatibility: local models handle tool-calling differently; we built dynamic detection that switches between native JSON function calling and an XML fallback. Context Window Management: long agentic sessions overflow local context; we auto-summarize older turns past ~50k tokens. Security & Sandboxing: powerful enough to run shell commands without being dangerous — path-traversal blocks, a destructive-command blocklist, and visual human-in-the-loop approval. Zero-regression integration (new): bolting deep Splunk observability onto a working agent without breaking it — solved with monkey-patching + try/except + env-gating so original behavior is 100% preserved. Making Splunk act back safely (new): an autonomous control loop needs guardrails — constant-time auth on the webhook, runtime router re-weighting, and automatic restore after a cooldown so a transient spike can't permanently degrade the agent. Demo without the cloud (new): the public demo can't reach a local backend, so we built a first-class Demo Mode that runs the entire experience on simulated data.

Accomplishments that we're proud of

A fully functional local AI agent chaining 8+ tools from a single sentence (e.g., find a failing GitLab pipeline, edit the source, test, open a fix MR). A genuinely bidirectional loop: most entries ship logs one way — LLMai lets Splunk reconfigure the agent autonomously, and we can prove it (remediation_triggered = true in a 12-panel Splunk dashboard). A stunning modern dashboard to watch the agent's reasoning and approve/reject state-mutating actions. Security-first: DLP→SOAR, constant-time secret auth, credentials removed from source — all with no API keys, no telemetry, no hidden caps.

What we learned

We learned you don't need massive, opaque frameworks to build powerful AI agents — a permission-gated Python loop with the right local model (like Qwen 2.5 Coder) reaches production-level assistance with zero privacy trade-offs. We also learned that observability is most valuable as a control loop, not a dashboard: the payoff is Splunk acting back on the agent. And that graceful degradation (env-gated, monkey-patched) lets you add deep platform integration to working code with near-zero regression risk.

What's next for Enterprise AI without leaks or overspend

Persistent localStorage chat history for the web UI. Native Git integrations beyond GitLab (GitHub, Bitbucket). Cross-session memory so the agent remembers your codebase quirks across projects. Deploy the backend so the public demo runs against real Splunk; per-user RBAC + rate limiting; CI on the headless test suite; a Splunkbase-style add-on; and broader auto-remediation actions (provider failover, hard budget caps).

Built With

Share this project:

Updates

posted an update —

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers,

First off, thank you to everyone who participated in our very first From Data to Insight: The Splunk Dashboard Contest. We were genuinely impressed by the creativity, technical expertise, and variety of dashboards submitted. From security operations and observability to executive reporting and entirely unique use cases, it was exciting to see how each participant approached solving real-world challenges with Splunk Dashboard Studio.

A special thank you also goes out to our panel of Honorary SplunkTrust judges, who dedicated their time to carefully review every submission. With such a strong field of entries, selecting the winners was no easy task.

Without further ado, let's congratulate this year's winners

First Place AirspaceWatch — Live Radar Winner: @livehybrid

AirspaceWatch — Live Radar impressed the judging panel with its creative concept, polished execution, and effective use of custom visualizations. Judges also praised the thoughtful integration of supporting resources and the dashboard's overall user experience.

Congratulations on taking home a complimentary pass to Splunk .conf26!

Second Place Edge Processing Ops Center Winner: @ArbiterOfData

Edge Processing Ops Center stood out for its ability to present a large amount of operational data in a concise and meaningful way. Its strong technical implementation and comprehensive operational view earned it a well-deserved second-place finish.

Congratulations on winning a complimentary pass to Splunk .conf26!

Third Place AWS Security Topology Winner: @youngsuh

AWS Security Topology showcased a strong security-focused design with an emphasis on modern visualization techniques. Judges appreciated its practical approach to helping users understand complex security relationships and events.

Congratulations on winning a complimentary pass to Splunk .conf26!

Fourth Place Executive Dashboard Winner: @Yoshi-Koizumi

Executive Dashboard earned recognition for its polished visual presentation and approachable user experience. Its creative application demonstrated how dashboards can make complex information accessible to a broader audience.

Congratulations on winning a $400 Cisco Merchandise Store gift card!

Fifth Place Claude Usage Winner: @sispehar

Claude Usage tackled one of today's most relevant topics by visualizing AI usage and trends. Judges highlighted its timely concept and appreciated the innovative approach to presenting AI-related metrics.

Congratulations on winning a $400 Cisco Merchandise Store gift card!

Sixth Place Agentic Ops Control Center Winner: @hkchun18

Agentic Ops Control Center showcased a modern operations-focused use case with strong practical value. Its exploration of emerging AI operations workflows made it one of the contest's more forward-looking submissions.

Congratulations on winning a $400 Cisco Merchandise Store gift card!

Seventh Place Teen Social Media Impact Winner: @blkwomenread

Teen Social Media Impact demonstrated how Splunk dashboards can be applied beyond traditional IT and security use cases. Its unique subject matter and thoughtful visualization approach helped it stand out among this year's entries.

Congratulations on winning a $400 Cisco Merchandise Store gift card!

Thank You Congratulations again to all of our winners, and thank you to everyone who participated in this year's contest. Seeing the creativity, technical skill, and passion our community brings to Dashboard Studio made this contest a huge success, and we hope it inspired others to push the boundaries of what's possible with Splunk dashboards.

We're also exploring the opportunity to feature our top three submissions in future Community blog posts, where the creators can take a deeper dive into the inspiration, design decisions, and technical implementation behind their dashboards.

Thanks again for being part of the Splunk Community, and we look forward to seeing what you build next!

Log in or sign up for Devpost to join the conversation.

Submission history