Skip to content

Instantly share code, notes, and snippets.

View laiso's full-sized avatar
☀️

laiso/Kazuya HIRASAWA laiso

☀️
View GitHub Profile
@laiso
laiso / SKILL.md
Last active December 5, 2026 02:40
agent-teams-rex: reproduce Claude Code Agent teams with the Rex CLI
name agent-teams-rex
description Reproduce Claude Code's Agent teams (a lead plus teammates working through a shared task list and direct messages) with the Rex CLI, using Rex sessions on a machine where Rex Server runs. Use when the user asks to "work as a team", "spawn teammates and split the work", or runs /agent-teams-rex.

Agent teams for Rex

This session is the lead. Teammates are separate Rex sessions started with rex new. The CLI's shared task list, teammate messaging, and plan approval are reproduced with Rex commands and a shared file.

@laiso
laiso / SKILL.md
Created November 20, 2026 08:46
agent-teams-desktop: reproduce Claude Code Agent teams in Claude Code Desktop
name agent-teams-desktop
description Reproduce Claude Code's Agent teams (a lead plus teammates working through a shared task list and direct messages) in the Claude Code Desktop app, using its session tools. Use when the user asks to "work as a team", "spawn teammates and split the work", or runs /agent-teams-desktop.

Agent teams for Claude Code Desktop

This session is the lead. Teammates are separate sessions started with mcp__ccd_session__start_session. The CLI's shared task list, teammate messaging, and plan approval are reproduced with Desktop tools.

Setup

@laiso
laiso / SKILL.md
Last active October 29, 2026 08:30
gemini-write: Delegate drafting, rewriting, or proofreading to Gemini through authenticated Antigravity CLI (agy). Gemini edits a designated file and returns a short completion report, keeping manuscript text out of the caller's context.
@laiso
laiso / red-pen-loop.js
Last active November 18, 2026 07:19
/red-pen-loop: Fix until the red pen runs dry.
// red-pen-loop — one model marks your work, another fixes it, until the marks are gone.
//
// Codex reviews, Claude fixes, repeat. Keeping the grader and the fixer separate is
// the point: a model grading its own homework is the failure mode this avoids.
//
// Save as .claude/workflows/red-pen-loop.js (or ~/.claude/workflows/ for every project).
// It runs as /red-pen-loop — the command name comes from meta.name, not the filename.
//
// Needs the `codex` CLI on PATH and `Bash(codex exec:*)` in your allowlist, or the
// review agent stops to ask for permission on every round.
@laiso
laiso / models.json
Created June 22, 2026 06:45
Preferred Networks (PLaMo) Provider in ~/.pi/agent/models.json
{
"providers": {
"Preferred Networks (PLaMo)": {
"baseUrl": "https://platform.preferredai.jp/api/completion/v1",
"api": "openai-completions",
"apiKey": "$PLAMO_API_KEY",
"models": [
{
"id": "plamo-3.0-prime",
"name": "PLaMo 3.0 Prime",
@laiso
laiso / models.json
Created June 22, 2026 05:51
Sakana AI Console Provider in ~/.pi/agent/models.json
{
"providers": {
"Sakana AI Console": {
"baseUrl": "https://api.sakana.ai/v1",
"api": "openai-responses",
"apiKey": "$SAKANA_API_KEY",
"models": [
{
"id": "fugu",
"name": "Sakana Fugu",
@laiso
laiso / README.md
Last active March 24, 2026 05:05
Claude Code Plans CLI - List and resume Claude Code sessions with plans

Claude Code Plans CLI

A tool to list and resume Claude Code sessions with plans.

Installation

curl -LO https://gist.githubusercontent.com/laiso/c79649fea1bd3534b00faa7dfb24885d/raw/cc-plans.py
chmod +x cc-plans.py
mv cc-plans.py ~/bin/cc-plans
@laiso
laiso / config.json
Last active March 6, 2026 05:01
Grok 4.20 Exp Beta on OpenCode https://console.x.ai/
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"xai": {
"npm": "@ai-sdk/xai",
"name": "xAI Grok",
"options": {
"apiKey": "xai-YOUR_API_KEY",
"baseURL": "https://api.x.ai/v1"
},
@laiso
laiso / README.md
Last active February 15, 2026 04:09
OpenClaw[TIPS]: Connect from the openclaw-cli container to openclaw-gateway
gh repo clone openclaw/openclaw
cd openclaw
./docker-setup.sh

# ...onboarding...

docker compose run openclaw-cli status
docker compose run openclaw-cli dashboard --no-open
@laiso
laiso / settings.local.json
Last active March 29, 2026 02:51
Claude Code Agent teams with OpenRouter models via '...Use Sonnet/Haiku for the teammate.'
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-or-v1-your-openrouter-api-key",
"ANTHROPIC_BASE_URL": "https://openrouter.ai/api",
"ANTHROPIC_MODEL": "openrouter/pony-alpha",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "openrouter/pony-alpha",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "openrouter/pony-alpha",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "openrouter/pony-alpha",
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}