Skip to content

Commit ad003c2

Browse files
authored
Merge pull request #3480 from AtCoder-NoviSteps/#3479
feat(devcontainer): introduce RTK and gh (#3479)
2 parents c9dc3b5 + 9b614fd commit ad003c2

5 files changed

Lines changed: 39 additions & 4 deletions

File tree

.claude/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
"Bash(curl *)",
1313
"Bash(wget *)",
1414
"Bash(git push *)",
15+
"Bash(gh pr merge *)",
16+
"Bash(gh pr close *)",
17+
"Bash(gh issue close *)",
18+
"Bash(gh issue delete *)",
19+
"Bash(gh release create *)",
20+
"Bash(gh release delete *)",
21+
"Bash(gh repo delete *)",
1522
"Bash(chmod 777 *)",
1623
"Read(**/.env)",
1724
"Read(**/.env.*)",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"features": {
3+
"ghcr.io/devcontainers/features/github-cli:1": {
4+
"version": "1.1.0",
5+
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
6+
"integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
7+
}
8+
}
9+
}

.devcontainer/devcontainer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
"dockerComposeFile": ["../compose.yaml"],
99
"mounts": [
1010
"source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,type=bind,consistency=cached",
11-
"source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind,consistency=cached"
11+
"source=${localEnv:HOME}/.claude,target=/home/node/.claude,type=bind,consistency=cached",
12+
"source=${localEnv:HOME}/.gitconfig,target=/home/node/.gitconfig,type=bind,consistency=cached"
1213
],
1314
// Features to add to the dev container. More info: https://containers.dev/features.
14-
// "features": {},
15+
"features": {
16+
"ghcr.io/devcontainers/features/github-cli:1": {}
17+
},
1518
//
1619
// Use 'forwardPorts' to make a list of ports inside the container available locally.
1720
"forwardPorts": [
@@ -22,10 +25,10 @@
2225
// "shutdownAction": "none",
2326
//
2427
// Use 'initializeCommand' to run commands before the container is created.
25-
"initializeCommand": "mkdir -p ~/.claude",
28+
"initializeCommand": "mkdir -p ~/.claude && touch ~/.gitconfig",
2629
//
2730
// Use 'postCreateCommand' to run commands after the container is created.
28-
"postCreateCommand": "npm install -g @anthropic-ai/claude-code && (curl -fsSL https://cli.coderabbit.ai/install.sh | sh || echo 'CodeRabbit CLI installation failed, continuing...') && pnpm install",
31+
"postCreateCommand": "bash .devcontainer/setup-devcontainer.sh",
2932
//
3033
// Configure tool-specific properties.
3134
"customizations": {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# Install Claude Code CLI
5+
npm install -g @anthropic-ai/claude-code
6+
7+
# Install CodeRabbit CLI (continue if fails)
8+
curl -fsSL https://cli.coderabbit.ai/install.sh | sh || echo 'CodeRabbit CLI installation failed, continuing...'
9+
10+
# Install RTK — token optimization proxy for AI coding assistants (60-90% reduction)
11+
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/master/install.sh | sh || echo 'RTK installation failed, continuing...'
12+
rtk init -g --auto-patch || echo 'RTK init failed, continuing...'
13+
14+
# Install project dependencies
15+
pnpm install

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) - AI コーディングアシスタント(VS Code 拡張: `anthropic.claude-code`
7272
- [superpowers plugin](https://github.com/obra/superpowers) - `/writing-plans` スキルによる実装前の詳細計画生成
73+
- [RTK](https://github.com/rtk-ai/rtk) - AI コーディングアシスタント向けトークン最適化プロキシ(60–90% 削減)
7374
- [CodeRabbit](https://coderabbit.ai/) - AI コードレビュー
7475
- CodeRabbit CLI (`coderabbit review --plain`) — milestone 区切りでのローカルレビュー
7576
- CodeRabbit CI — PR 作成後の自動レビュー(最終品質ゲート)

0 commit comments

Comments
 (0)