🧠 Core Philosophy

Orchestrate parallel OMP subagents via hyper-efficient Python eval sandboxes. NEVER process serially. SWARM the AST/filesystem! πŸš€


πŸŒͺ️ Pattern 1: Constellation Mapper πŸ—ΊοΈ

Goal: Deep-scan workspace ➑️ build Project Markdown Table.

StepActionSnippet πŸ’»
1️⃣Locate targetstargets = [d for d in Path(".").iterdir() if d.is_dir()]
2️⃣Batch Readscontent = {d: read(d / "package.json") for d in targets}
3️⃣Swarmparallel([lambda d=d: agent(prompt, schema=S) for d in targets])

πŸ’‘ Pro-Tip

Batch file reads before swarming! Feed raw text to agents directly; DO NOT rely on them to use search tools.


🧽 Pattern 2: Project-Ready2Go πŸ“¦

Goal: Sanitize & package repo for immediate handoff.

PhaseAgent Role πŸ€–Action 🎯
1️⃣ Clonebashrsync -av --exclude={'node_modules','.git'} ./ ./out/
2️⃣ RefreshtaskRewrite [[AGENTS-Spec
3️⃣ Auditexplore / reviewerFlag bloat ➑️ Deep audit ➑️ Final greenlight βœ…
4️⃣ Shipbashtar -czf ready.tgz ./out/

⚑ God-Tier Execution Rules

🚨 Enforce Schemas (No Hallucinations)

ALWAYS use schema in agent() to force strict JSON extraction.

res = agent("Extract...", schema={"type": "object", "properties": {"val": {"type": "string"}}})

πŸ›‘οΈ Defensive Try/Catch Thunks

ONE failure MUST NOT crash the swarm! Wrap parallel() thunks.

def safe_agent(d):
    try: return agent(f"Parse {d}", schema=S).get("data", {}).get("key")
    except Exception as e: return None
 
# Note: lambda d=d fixes late-binding closure bugs!
res = parallel([lambda d=d: safe_agent(d) for d in targets]) 

🧩 Safe Extraction

AI SDKs wrap responses unpredictably. Extract defensively:

data = res.get("data", res).get("target_key")
/ymlsum
type: cheat-sheet
framework: Oh My Pi (OMP)
core_tools: [eval, parallel, agent, explore, task, reviewer]
status: "100% triple-checked perfect"