Skip to content

Instantly share code, notes, and snippets.

View laiso's full-sized avatar
☀️

laiso/Kazuya HIRASAWA laiso

☀️
View GitHub Profile
@laiso
laiso / settings.local.json
Last active April 22, 2026 09:07
.claude/settings.local.json: To automatically open plan files in VS Code whenever they are created or updated by the Write tool. Claude Code
{
"hooks": {
"PreToolUse": [
{
"matcher": "ExitPlanMode",
"hooks": [
{
"type": "command",
"command": "code \"$(ls -t ~/.claude/plans/*.md | head -1)\"",
"timeout": 5
@laiso
laiso / fork-context.md
Created November 10, 2025 09:41
~/.claude/agents/fork-context.md
name fork-context
description Fork the context of the conversation and return its full analysis verbatim.
forkContext true
model inherit

You are an agent that forks the context of the conversation and returns its full analysis verbatim.

Your job:

@laiso
laiso / Plan.md
Last active October 29, 2025 07:02
Custom Plan SubAgent for Claude Code with Serena MCP Tools: cp Plan.md ~/.claude/agents/Plan.md
name Plan
description Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns, search code for keywords, or answer questions about the codebase.
tools mcp__serena__find_file, mcp__serena__search_for_pattern, mcp__serena__find_symbol, mcp__serena__get_symbols_overview, mcp__serena__find_referencing_symbols, mcp__serena__list_dir, Bash
model sonnet

You are a file search specialist for Claude Code. You excel at thoroughly navigating and exploring codebases.

Your strengths:

@laiso
laiso / settings.local.json
Created September 30, 2025 07:00
mcp__chrome-devtools-mcp permissions in .claude/settings.local.json: https://github.com/ChromeDevTools/chrome-devtools-mcp
{
"permissions": {
"allow": [
"mcp__chrome-devtools-mcp__click",
"mcp__chrome-devtools-mcp__drag",
"mcp__chrome-devtools-mcp__fill",
"mcp__chrome-devtools-mcp__fill_form",
"mcp__chrome-devtools-mcp__handle_dialog",
"mcp__chrome-devtools-mcp__hover",
"mcp__chrome-devtools-mcp__upload_file",
@laiso
laiso / config.toml
Last active October 5, 2025 04:31
multi providers for codex-cli: codex -c "model_provider=groq" --model openai/gpt-oss-120b
[model_providers.openrouter]
name = "OpenRouter"
base_url = "https://openrouter.ai/api/v1"
env_key = "OPENROUTER_API_KEY"
[model_providers.anthropic]
name = "Anthropic"
base_url = "https://api.anthropic.com/v1"
env_key = "ANTHROPIC_API_KEY"
@laiso
laiso / deepseek-opencode.json
Created August 28, 2025 09:35
opencode run -m deepseek/deepseek-chat hi
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"deepseek": {
"models": {
"deepseek-chat": {
"limit": {
"context": 128000,
"output": 8192
}
package com.nothinglondon.sdkdemo.demos.sushi
import android.content.Context
import com.nothing.ketchum.GlyphMatrixManager
import com.nothinglondon.sdkdemo.demos.GlyphMatrixService
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
@laiso
laiso / anth_proxy.ts
Last active July 28, 2025 16:56
anth_proxy.ts: OpenAI compatible interface for Anthropic Client.
/**
* OpenAI compatible interface for Anthropic Client.
*
* Usage:
* ANTH_PROXY_API_KEY=XXX bun run anth_proxy.ts.ts https://api.openai.com/v1/chat/completions qwen/qwen3-coder:free
* ANTHROPIC_BASE_URL=http://localhost:3000 claude -p 'write a sample code in main.ts'
*
* LICENSE: MIT
* Inspired by https://github.com/kiyo-e/claude-code-proxy
*/
import csv
import json
import sys
import ast
def find_task_by_id(filename, task_id):
with open(filename, 'r', encoding='utf-8') as file:
reader = csv.DictReader(file)
fieldnames = reader.fieldnames
id_columns = [col for col in fieldnames if 'id' in col.lower()]
@laiso
laiso / REPORT.md
Last active July 24, 2025 06:15
Cursor Background Agentsのコンテナ環境下でGUIアプリケーションの動作能力

目的

Cursor Background Agentsのコンテナ環境下でGUIアプリケーションの動作能力を検証する

実施日

2024年7月24日

検証環境

  • OS: Ubuntu 25.04 (Linux 6.12.8+)
  • 環境: CursorBackground コンテナ環境
  • Node.js: v22.15.0