Skip to content

Instantly share code, notes, and snippets.

View ncoblentz's full-sized avatar

Nick Coblentz ncoblentz

View GitHub Profile
@ncoblentz
ncoblentz / Agentic Patterns Reference.md
Created April 20, 2026 14:37
Agentic Patterns Reference

Agent Patterns Cheatsheet

A reference guide for multi-agent system design patterns — when to use them, how they work, and how to implement them with Claude Code.

Merges applied (40 → 35 patterns):

  • Pipeline absorbs Staged Pipeline (staged = pipeline + quality gates variant)
  • Reflection absorbs Retry-with-Reflection (retry = failure-triggered reflection variant)
  • Ensemble absorbs Self-Consistency (self-consistency = same-prompt voting variant)
  • Dispatcher-Worker-Merger absorbs Mixture of Experts (MoE = sparse-activation routing variant)
  • Planner-Executor-Verifier removed — it is Plan-then-Execute + per-step Critic-Validator; noted in both parent sections
@ncoblentz
ncoblentz / gist:dd8ea75fba52746a2cb8bfdff405c4b7
Created December 6, 2024 14:56
Sensitive Discoverer Rules.json
[{
"description": "Encapsulation boundary for data such as keys and certificates",
"regex": "-----BEGIN",
"sections": ["res_headers", "res_body"]
}, {
"description": "Generic API Key",
"regex": "(?i)api.{0,5}key[^&|;?,]{0,32}?['\\\"][a-zA-Z0-9_\\-+=\\/\\\\]{10,}['\\\"]",
"sections": ["res_headers", "res_body"]
}, {
"description": "Generic Secret",
Integer mySelection = new Integer(0);
boolean mustBeInScope=true;
ZonedDateTime requestsAfterThisDate = ZonedDateTime.of(LocalDateTime.of(2024, 1, 19, 10, 0,0,0), ZoneId.of("America/Chicago")); // or null
ZonedDateTime requestsBeforeThisDate = ZonedDateTime.of(LocalDateTime.of(2024, 1, 19, 10, 10,0,0), ZoneId.of("America/Chicago")); // or null
//Most of these come from: https://github.com/PortSwigger/bambdas/tree/main/Proxy/HTTP
/*
-1: No Filter
0: Normal filter
1: Large redirect responses

☐ ☒

✅ ✔️

❎ ❌

⁉️ ❗ ❓ ?

💡 ⚠️ ⛔ 🚫

... just the web services part ...
<system.serviceModel>
<services>
<service name="MPRBSL.WebServices.AuthenticationService" behaviorConfiguration="anonymousServiceBehavior">
<endpoint address="" contract="MPRBSL.WebServices.IAuthenticationService" binding="wsHttpBinding" bindingConfiguration="myWsHttpsBinding" />
</service>
<service name="MPRBSL.WebServices.IngredientsService" behaviorConfiguration="authenticatedServiceBehavior">
<endpoint address="" contract="MPRBSL.WebServices.IIngredientsService" binding="wsHttpBinding" bindingConfiguration="myWsHttpsBinding" />
</service>
<service name="MPRBSL.WebServices.ShoppingListService" behaviorConfiguration="authenticatedServiceBehavior">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using MPRBSL.Helpers;
using WebMatrix.WebData;
namespace MPRBSL.WebServices
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Transactions;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using DotNetOpenAuth.AspNet;
using Microsoft.Web.WebPages.OAuth;
using WebMatrix.WebData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Mvc4WithAuthentication.Auth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mvc4WithAuthentication.Controllers
{
[Mvc4WithAuthentication.Auth.CoupleSessionAndFormsAuth()]
public class HomeController : Controller
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebMatrix.WebData;
using System.Web.Routing;
namespace Mvc4WithAuthentication.Auth
{