Skip to content

Instantly share code, notes, and snippets.

@bgauryy
bgauryy / octocode_security.md
Created November 20, 2025 17:58
Octocode output doc for a security review doing on dzhng/claude-agent-server repo using review prompt

Security Audit Report: claude-agent-server

Repository: https://github.com/dzhng/claude-agent-server
Audit Date: November 20, 2025
Auditor: Security Review via Octocode
Severity Scale: Critical > High > Medium > Low


Executive Summary

@bgauryy
bgauryy / data-format-token-test.js
Created November 15, 2025 08:46
Measures token count using the cl100k_base tokenizer (used by GPT-4/Claude) for CSV, TOON, JSON
import { encode as toonEncoder } from '@byjohann/toon'
import { createByEncoderName } from '@microsoft/tiktokenizer'
import { stringify } from 'csv-stringify/sync'
import { writeFileSync, mkdirSync } from 'fs'
import { join } from 'path'
// Helper function to convert data to CSV format
function dataToCSV(data) {
// Handle arrays of objects (most common CSV case)
if (Array.isArray(data)) {
@bgauryy
bgauryy / AGENTIC_AI_LEARNING_PATH.md
Created November 9, 2025 08:27
Octocode AI Research Summary On - github. com/panaversity/learn-agentic-ai
@bgauryy
bgauryy / React_Advanced_Concepts_Research.md
Created November 9, 2025 06:15
React Advanced Concepts Used WIth Octocode MCP
@bgauryy
bgauryy / octocode_plan.ms
Created October 30, 2025 17:29
Octocode Plan For Agentic Application
# AI Agent Chat Application - Implementation Plan
## Research Summary
### Repositories Analyzed
- **langchain-ai/langgraphjs-gen-ui-examples** (347⭐) - LangGraph.js agent examples
- **assistant-ui/assistant-ui** (6,896⭐) - TypeScript/React AI chat UI library
- **FlowiseAI/Flowise** (46,168⭐) - Visual AI agent builder with LangChain
- **CopilotKit/CopilotKit** (24,685⭐) - React UI + infrastructure for AI agents
@bgauryy
bgauryy / script.js
Created October 27, 2025 14:56
TOON vs MINIFIED JSON TOKENIZATION - regular object
import { encode as toonEncoder } from '@byjohann/toon'
import { createByEncoderName } from '@microsoft/tiktokenizer'
import { writeFileSync, mkdirSync } from 'fs'
import { join } from 'path'
async function main() {
const data = {};
// Generate large dataset programmatically
const emails = ['john.doe', 'jane.smith', 'bob.wilson', 'alice.johnson', 'charlie.brown', 'david.miller', 'emma.davis', 'frank.garcia', 'grace.martinez', 'henry.rodriguez'];
@bgauryy
bgauryy / claude_code_tools_cli.md
Created October 17, 2025 13:49
Internal claude code tools implementaion

Claude Code Internal Tools - Technical Reference

Complete technical documentation of Claude Code's internal tools

This document provides comprehensive technical details about Claude Code's internal tools, including parameter schemas, implementation behaviors, and usage patterns.

Claude Sonnet 4.5

Technical Details:

@bgauryy
bgauryy / nextjs-server-components-architecture.md
Last active October 15, 2025 11:35
This gist created using Octocode MCP using this prompt: "analyze how Next.js implements server components. Trace the architecture from routing to rendering and provide a deep explanation with flows" Using Sonnet 4.5

Next.js Server Components Architecture

Deep Dive Analysis: Complete flow from routing to rendering

Source: Next.js repository (vercel/next.js)
Analysis Date: October 15, 2025


Table of Contents

Deep Agents Planning Document

Building Next-Generation Multi-Agent AI Systems


🎯 Executive Summary

This document outlines the comprehensive planning approach for building Deep Agents - sophisticated multi-agent AI systems that combine planning, specialized sub-agents, persistent memory, and coordinated intelligence to solve complex, real-world problems.

Key Innovation: Moving from simple tool-using chatbots to autonomous, collaborative agent ecosystems that can handle enterprise-level tasks with human-like planning and execution capabilities.

Deep Agents Context Document

Technical Architecture and Implementation Guide


🔍 Concrete Example: Company Research Agent

Based on the research conducted using Octocode MCP, here's a real-world example of Deep Agents in action:

Guy Hartstein's Company Research Agent