Central index for all Gas Town public resources. Start here.
┌──────────────────────┐
│ This Index Gist │ ← You are here
└──────────┬───────────┘
│
┌──────────────────────┼──────────────────────┐
▼ ▼ ▼
┌───────────┐ ┌──────────────────┐ ┌───────────────┐
│ Knowledge │ │ Tool Gists (2) │ │ Infra Gists │
│ Base │ │ Claude │ Kimi │ │ (4 gists) │
└───────────┘ └──────────────────┘ └───────────────┘
| Category | Gist | What's Inside |
|---|---|---|
| Reference | Knowledge Base | Complete system docs — architecture, accounts, workflows, debugging |
| Tools | Claude Code Tools | Scripts for Claude Code agents |
| Tools | Kimi Code Tools | Scripts for Kimi Code agents |
| Infra | KimiGas Engine | KimiGas v2.0.0 update instructions |
| Infra | Monitor + OpenClaw Bot | Health checks, handoffs, Discord reporting |
| Infra | OpenClaw Auto-Approve | OpenClaw auto-approve config |
| Infra | Discord Bot Guide | AI agent Discord integration |
| Project | Contributor Guide | Villa Market Backend contributor guide |
Scripts and docs an agent (or human) needs when working with Claude Code accounts.
| File | Type | Description |
|---|---|---|
ais.sh |
script | AI Session Manager — create/inspect/inject/watch/kill tmux agent sessions |
check-credit.sh |
script | Full credit checker — spawns tmux per account, runs /usage, parses output |
check-credits |
script | Quick wrapper that saves output to /tmp/credit-check-latest.txt |
agent-setup.md |
docs | Plugin/skill installation guide for Claude, Kimi, and OpenClaw |
orchestrator-skill.md |
skill | OpenClaw SKILL.md for multi-agent orchestration via ais |
tmux-agent-control.md |
docs | Comprehensive tmux patterns for agents (send-keys, capture-pane, etc.) |
Scripts and docs for working with Kimi Code accounts.
| File | Type | Description |
|---|---|---|
ais.sh |
script | AI Session Manager (same as Claude gist) |
kimi-account.sh |
script | Multi-account manager — add/login/list/check/run Kimi accounts |
check-kimi-credit.sh |
script | Kimi account health/credit checker |
kimi-multi-account-README.md |
docs | Setup guide for KIMI_SHARE_DIR account isolation |
agent-setup.md |
docs | Plugin/skill installation guide (same as Claude gist) |
orchestrator-skill.md |
skill | OpenClaw orchestrator skill (same as Claude gist) |
tmux-agent-control.md |
docs | Tmux patterns guide (same as Claude gist) |
| File | Description |
|---|---|
gastown-knowledge-base.md |
20-section reference covering architecture, accounts, tools, workflows, debugging |
# ais CLI (AI Session Manager)
curl -sL "https://gist.githubusercontent.com/thanakijwanavit/c0877d834e288de104b38f3f8cda233c/raw/ais.sh" \
-o ~/.local/bin/ais && chmod +x ~/.local/bin/ais
# kimi-account (Kimi multi-account wrapper)
curl -sL "https://gist.githubusercontent.com/thanakijwanavit/4d0e343bd8e0fbeefa8c0c7e03d13b91/raw/kimi-account.sh" \
-o ~/.local/bin/kimi-account && chmod +x ~/.local/bin/kimi-account
# check-credits (Claude credit checker)
curl -sL "https://gist.githubusercontent.com/thanakijwanavit/c0877d834e288de104b38f3f8cda233c/raw/check-credit.sh" \
-o ~/.local/bin/check-credit.sh && chmod +x ~/.local/bin/check-credit.sh
curl -sL "https://gist.githubusercontent.com/thanakijwanavit/c0877d834e288de104b38f3f8cda233c/raw/check-credits" \
-o ~/.local/bin/check-credits && chmod +x ~/.local/bin/check-creditsAll gist content is being consolidated into: gastown-publish/ais
See CONTRIBUTING.md below.
# Edit a file in a gist
gh gist edit <gist-id> -f <filename>
# Add a new file to a gist
gh gist edit <gist-id> -a /path/to/new-file
# Example: update ais.sh in the Claude Code gist
gh gist edit c0877d834e288de104b38f3f8cda233c -f ais.sh ~/.local/bin/ais- Create the gist:
gh gist create /path/to/file.md -d "Description" -p - Add it to this index gist (table + file map section)
- Update the knowledge base gist if the new gist covers system knowledge
| Content Type | Where It Goes |
|---|---|
| Executable scripts for Claude agents | Claude Code Tools gist |
| Executable scripts for Kimi agents | Kimi Code Tools gist |
| Scripts used by both | Both gists (keep in sync) |
| System architecture, workflows, patterns | Knowledge Base gist |
| Infrastructure setup/config | Separate infra gist |
| New tool or feature | Create new gist, add to index |
These files appear in both the Claude and Kimi gists and must stay identical:
ais.shagent-setup.mdorchestrator-skill.mdtmux-agent-control.md
When updating a shared file:
# Update in both gists
gh gist edit c0877d834e288de104b38f3f8cda233c -f ais.sh ~/.local/bin/ais
gh gist edit 4d0e343bd8e0fbeefa8c0c7e03d13b91 -f ais.sh ~/.local/bin/ais- Never commit secrets — no API keys, tokens, passwords, AWS credentials, OAuth secrets
- Verify before uploading — grep for secret patterns before any gist update:
grep -iE 'sk_|api.key|token=|password|secret|AKIA|Bearer|BEGIN.*PRIVATE' /path/to/file - Keep shared files identical — if a file exists in both Claude and Kimi gists, update both
- Update the index — after adding/removing gist files, update this index gist
- Update the knowledge base — after significant changes, update the knowledge base gist
INDEX="47a07225e2f81cf7fbd27a1d39bc69f6"
KNOWLEDGE="92088edfdd097397dc2c9ef9e8448f5f"
CLAUDE_TOOLS="c0877d834e288de104b38f3f8cda233c"
KIMI_TOOLS="4d0e343bd8e0fbeefa8c0c7e03d13b91"# 1. Make changes locally
vim ~/.local/bin/ais
# 2. Scan for secrets
grep -iE 'sk_|token=|password|secret|AKIA' ~/.local/bin/ais
# 3. Update gist(s)
gh gist edit "$CLAUDE_TOOLS" -f ais.sh ~/.local/bin/ais
gh gist edit "$KIMI_TOOLS" -f ais.sh ~/.local/bin/ais
# 4. Verify
gh gist view "$CLAUDE_TOOLS" --files
gh gist view "$KIMI_TOOLS" --files# 1. Write the script
# 2. Scan for secrets
# 3. Add to appropriate gist
gh gist edit "$CLAUDE_TOOLS" -a /path/to/new-script.sh
# 4. Update the index gist
gh gist edit "$INDEX" -f gist-index.md /tmp/updated-index.md
# 5. If it adds system knowledge, update knowledge base too
gh gist edit "$KNOWLEDGE" -f gastown-knowledge-base.md /tmp/updated-kb.mdUpdate gastown-knowledge-base.md when:
- A new tool is added or an existing tool's interface changes
- Account configuration changes (new accounts added/removed)
- Workflow changes (patrol intervals, rotation strategy, etc.)
- New debugging insights are discovered
- Infrastructure changes (new tmux sessions, new patrol agents)
Do NOT update for:
- Minor bug fixes in scripts
- Temporary operational notes
- Session-specific context
| Short Name | Full ID | Description |
|---|---|---|
INDEX |
47a07225e2f81cf7fbd27a1d39bc69f6 |
This index |
KNOWLEDGE |
92088edfdd097397dc2c9ef9e8448f5f |
Knowledge base |
CLAUDE_TOOLS |
c0877d834e288de104b38f3f8cda233c |
Claude Code tools |
KIMI_TOOLS |
4d0e343bd8e0fbeefa8c0c7e03d13b91 |
Kimi Code tools |
KIMIGAS |
dd4c9ad413b346b9c7a3a447dee4a407 |
KimiGas Engine |
MONITOR |
20d4d03a48371fb1480567113da695ef |
Monitor + OpenClaw Bot |
AUTOAPPROVE |
18e26b1096c252e2ffcdc57c44a9a1de |
OpenClaw Auto-Approve |
DISCORD |
7c533593808b3949f1bf12e93558f0dc |
Discord Bot Guide |
CONTRIBUTOR |
bf25aaf45e946545fb980f0b2198b8c1 |
Villa Backend Contributor Guide |