User (Discord)
│
▼
Product Manager (Main Agent)
│
├── Backend Agent
├── Frontend Agent
├── QA Agent
└── DevOps Agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * SOL PnL Ultra Solver (single-file submission) | |
| * RPC-only, no indexing, optimized for low latency on getTransactionsForAddress. | |
| * | |
| * Run: | |
| * RPC_ENDPOINTS="https://rpc1,https://rpc2" \ | |
| * TARGET_ADDRESS="wallet_pubkey" \ | |
| * START_SLOT=0 \ | |
| * END_SLOT=350000000 \ | |
| * PROBE_CONCURRENCY=24 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { execSync } = require('child_process'); | |
| // CONFIGURATION | |
| const CHAIN = 'solana'; | |
| const TRADE_AMOUNT = '100000'; // 0.1 USDC (Adjust as needed) | |
| const MIN_SM_INFLOW = 100; // Lowered to $100 for testing/hackathon purposes | |
| async function runCommand(cmd) { | |
| try { | |
| const output = execSync(cmd, { encoding: 'utf-8' }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createOpenAICompatible } from '@ai-sdk/openai-compatible'; | |
| import { generateText } from "ai"; | |
| import "dotenv/config"; | |
| function gaiaFetch(input, init) { | |
| const headers = new Headers(init?.headers ?? {}); | |
| // Set headers only if they are not already present | |
| if (!headers.has("accept")) { | |
| headers.set("accept", "application/json"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "address": "", | |
| "chat": "https://huggingface.co/gaianet/Qwen3-0.6B-GGUF/resolve/main/Qwen3-0.6B-Q5_K_M.gguf", | |
| "chat_batch_size": "128", | |
| "chat_ctx_size": "2048", | |
| "chat_name": "Qwen3-0.6B-Q5_K_M", | |
| "chat_ubatch_size": "128", | |
| "context_window": "1", | |
| "description": "Gaia node config with Qwen3-0.6B-Q5_K_M model", | |
| "domain": "gaia.domains", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "address": "", | |
| "chat": "https://huggingface.co/gaianet/gemma-3-4b-it-GGUF/resolve/main/gemma-3-4b-it-Q5_K_M.gguf", | |
| "chat_batch_size": "64", | |
| "chat_ctx_size": "8192", | |
| "chat_name": "gemma-3-4b-it-Q5_K_M", | |
| "context_window": "1", | |
| "description": "A custom gaia node running gemma-3-4b-it model.", | |
| "domain": "gaia.domains", | |
| "embedding": "https://huggingface.co/gaianet/gte-Qwen2-1.5B-instruct-GGUF/resolve/main/gte-Qwen2-1.5B-instruct-f16.gguf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import pandas as pd | |
| from sentence_transformers import SentenceTransformer | |
| from qdrant_client import QdrantClient | |
| from qdrant_client.models import PointStruct, Distance, VectorParams | |
| # Configuration | |
| CSV_FILE = "snippets.csv" # Update with your csv path | |
| QDRANT_HOST = "localhost" # Change if using a remote Qdrant instance | |
| QDRANT_PORT = 6333 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| # GitIngest Code Extractor | |
| ## Description | |
| This script parses text files containing code snippets extracted from gitingest.com | |
| and converts them into a CSV format for easier analysis and manipulation. | |
| ## Purpose | |
| When downloading code from gitingest.com, files are often consolidated into a single | |
| text file with delimiters separating each code file. This script identifies these |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from langchain_openai import ChatOpenAI | |
| from langchain_core.prompts import ChatPromptTemplate | |
| from langchain_core.output_parsers import StrOutputParser | |
| from langchain_core.runnables import RunnablePassthrough | |
| import json | |
| # Initialize the chat model with Gaia's endpoint | |
| llm = ChatOpenAI( | |
| model="llama3b", | |
| openai_api_key="gaia", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Easily add roles from Discord users when they add a specific reactions using discord.js v14.14.1. (discord.js 14+) | |
| */ | |
| const { Client, Events, GatewayIntentBits, Partials } = require('discord.js'); | |
| const client = new Client({ | |
| intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions], | |
| partials: [Partials.Message, Partials.Channel, Partials.Reaction], | |
| }); |
NewerOlder