Skip to content

Instantly share code, notes, and snippets.

View laiso's full-sized avatar
☀️

laiso laiso

☀️
View GitHub Profile
@laiso
laiso / note.md
Created January 10, 2026 03:37
claude code logs , https://github.com/blacksmithgu/obsidian-dataview , copy from .claude/projects/**.jsonl

const PATH = "logs/sample.jsonl";
const N = 400;

const raw = await dv.io.load(PATH);
if (typeof raw !== "string") {
  dv.paragraph(`load failed: ${PATH}`);
  return;
}
@laiso
laiso / settings.local.json
Last active January 7, 2026 05:01
.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 description forkContext model
fork-context
Fork the context of the conversation and return its full analysis verbatim.
true
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 description tools model
Plan
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.
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
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()]