Skip to content

Instantly share code, notes, and snippets.

View laiso's full-sized avatar
☀️

laiso laiso

☀️
View GitHub Profile
❯ docker run \
  --tmpfs /tmp/claude:rw,nosuid,size=1m \
  -e CREDS=$(security find-generic-password -a $USER -w -s "Claude Code-credentials") \
  -e HOME=/home/node \
  claude-code:latest sh -c '
    echo "$CREDS" > /tmp/claude/.credentials.json
    chmod 600 /tmp/claude/.credentials.json
    ln -s /tmp/claude/.credentials.json ~/.claude/.credentials.json
 claude -p hi
@laiso
laiso / Dockerfile
Last active June 22, 2025 02:15
Benchmarks CLI agents (Claude Code, Codex CLI, Goose CLI and Aider) on Exercism TypeScript programming exercises https://github.com/exercism/typescript/tree/main/exercises/practice
FROM node:22
ARG TZ
ENV TZ="$TZ"
# Install basic development tools and iptables/ipset
RUN apt update && apt install -y less \
git \
procps \
sudo \
@laiso
laiso / README.md
Last active June 7, 2025 10:18
Custom AI editor tool override API with OpenAI Chat Completion compatibility

This project creates a custom code generation tool API for AI editors (VS Code, Cursor). The main purpose is to override Tool Use functionality in AI editors and implement custom code generation logic, while maintaining full compatibility with Chat Completions API and Ollama API so existing editor configurations can be used as-is.

The supported environment includes VS Code and Cursor editors, with deployment capability on Cloudflare Workers. The API must support streaming=true for real-time responses. Tool Call detailed tracking and log output are provided for debugging purposes.

This code was created with reference to the Vercel V0 API design. https://vercel.com/docs/v0/api

npm create cloudflare@latest
@laiso
laiso / claude-pr.yml
Created May 31, 2025 09:39
claude-code-action-example-ios: .github/workflows/claude-pr.yml
name: Run Claude Code
on:
workflow_dispatch:
inputs:
test_prompt:
description: "Test prompt for Claude"
required: false
default: "List the files in the current directory starting with 'package'"
@laiso
laiso / index.ts
Last active May 10, 2025 11:55
tltr MCP Server on Cloudflare Workers
import { McpAgent } from "agents/mcp";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
import { GoogleGenerativeAI } from "@google/generative-ai";
import { Readability } from '@mozilla/readability';
import { parseHTML } from 'linkedom';
type Env = {
MyMCP: DurableObjectNamespace<MyMCP>;
GEMINI_API_KEY: string;
@laiso
laiso / Dockerfile
Created April 11, 2025 11:17
SETUP: docker build -t mcp-server-fetch:latest .
FROM denoland/deno:latest
# Create the application directory
WORKDIR /app
# Copy dependency files first for caching
COPY deno.json deno.lock* ./
# Copy the rest of the application code
COPY . .
@laiso
laiso / unified_server.py
Last active April 8, 2025 05:09
MDS(MPC Documents Server) Server
import os
import sys
import re
import urllib.request
import io
import zipfile
import string
from typing import List, Optional
from mcp.server.fastmcp import FastMCP
@laiso
laiso / goose-coder.Dockerfile
Last active March 17, 2025 15:57
docker build -t goose-coder . && docker run -it goose-coder goose run --with-builtin developer -t 'something'
FROM my-app:latest AS my-app
FROM ubuntu:22.04 AS goose
WORKDIR /root/workspace
COPY --from=my-app:latest /app /root/workspace
ENV GOOSE_VERSION=v1.0.14
@laiso
laiso / OPENHANDS-SKILL-INTERVIEW.md
Last active March 11, 2025 11:42
https://all-hands.dev/ にインタビューした記録です

OpenHands エンジニアリングポートフォリオ

👋 概要

フルスタック開発とシステムアーキテクチャの設計に特化したAIエンジニアです。コスト効率とスケーラビリティを重視しながら、ビジネス要件に最適なソリューションを提供します。

💪 主な強み

  • フルスタック開発(Python/TypeScript)
  • システムアーキテクチャ設計
async function listNotebooks() {
const authParams = await getAuthParams();
const { url: n, headers: r, body: o } = await createBatchExecuteRequest(authParams);
const response = await fetch(n.toString(), {
method: "POST",
headers: r,
body: o
});
const text = await response.text();