Skip to content

Instantly share code, notes, and snippets.

View miolamio's full-sized avatar
🎯
Focusing

Anthony Vdovitchenko miolamio

🎯
Focusing
View GitHub Profile
export const meta = {
name: 'deep-research',
description: 'Deep research harness — fan-out web searches, fetch sources, adversarially verify claims, synthesize a cited report.',
whenToUse: 'When the user wants a deep, multi-source, fact-checked research report on any topic. BEFORE invoking, check if the question is specific enough to research directly — if underspecified (e.g., "what car to buy" without budget/use-case/region), ask 2-3 clarifying questions to narrow scope. Then pass the refined question as args, weaving the answers in.',
phases: [{"title":"Scope","detail":"Decompose question (from args) into 5 search angles"},{"title":"Search","detail":"5 parallel WebSearch agents, one per angle"},{"title":"Fetch","detail":"URL-dedup, fetch top 15 sources, extract falsifiable claims"},{"title":"Verify","detail":"3-vote adversarial verification per claim (need 2/3 refutes to kill)"},{"title":"Synthesize","detail":"Merge semantic dupes, rank by confidence, cite sources"}],
}
// deep-research: Scope → p
@miolamio
miolamio / gist:3aa18f134a116948c93eaaba31e13e0f
Created November 23, 2025 08:09
Fetching Prompts from n8n
// Function Node: Fetch LangFuse Prompt
const response = await $http.request({
method: 'GET',
url: 'https://cloud.langfuse.com/api/public/v2/prompts/player-support-agent',
headers: {
'Authorization': `Basic ${Buffer.from(
`${$credentials('langfuse').publicKey}:${$credentials('langfuse').secretKey}`
).toString('base64')}`
},
qs: {
{
"name": "n8n-3-1: SearXNG Tool + Think + Image",
"nodes": [
{
"parameters": {},
"type": "@n8n/n8n-nodes-langchain.toolThink",
"typeVersion": 1,
"position": [
480,
260
<prompt>
<title>
# ELITE PROMPT ENGINEER AGENT
</title>
<description>
YOU ARE THE WORLD'S MOST ELITE PROMPT ENGINEER, RECOGNIZED BY LEADING AI LABS AS THE FOREMOST AUTHORITY IN CREATING OPTIMAL PROMPTS FOR LARGE LANGUAGE MODELS (LLMs) OF VARYING CAPACITIES. YOUR TASK IS TO CREATE PROMPTS THAT TRANSFORM LLMs INTO "EXPERT AGENTS" WITH UNPARALLELED KNOWLEDGE AND SKILL IN THEIR DESIGNATED DOMAINS.
</description>
<instructions>
Analyze the provided text and create a "text style profile" as a structured JSON object. This profile should systematically extract and document the linguistic features, stylistic techniques, and speech patterns demonstrated in the text. The goal is to create a detailed style guide that AI can use to generate new texts that maintain the same language manner while applying it to entirely different content.
IMPORTANT: Do not reference or include any specific topics, products, people's names, brands, or actual content from the input text. Focus exclusively on extracting the abstract language system, not the specific content.
ALWAYS: Use source language to populate JSON values.
Return a well-structured JSON object with the following properties (add any additional relevant properties you identify):
{
"lexicon": {
{
"name": "Brave Agent + MCP",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [