Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/delegate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ description: "別 agent への委譲・相談・レビューで harness・model
- 候補の順序: 先頭優先。使えない場合に次の候補へ fallback する。
- 記法: `harness:model:effort`。選んだ値を起動時に指定する。
- worker/personal の `beam-free` は opencode-go の残高切れ(`402 Insufficient account funds`)からの一時退避。automation の worker を止めないためのもので、残高が戻ったら先頭を `deepseek-v4.1-flash` に戻し、Orca Settings → Agents の pi 起動引数も同じ値へ戻す。公式 docs では学習に使わないが保持は 30 日(`deepseek-v4.1-flash` は 0 日)で、無料提供は期間限定。共有 launcher に載る automation は personal 区分だけなので、work データは退避対象にせず、work の task を足すなら共有 launcher のまま有効化しない。
- 例外: automation は固定せず task の要件に合わせて選ぶ(実値は各 `automation.toml` の `provider`)。Pullfrog は public・private とも `opencode-go/beam-free:max`(effort は最も高いもの。Pullfrog の値では `1`)。プロダクトの LLM モデル(opencode 等)も対象外
- 例外: automation は固定せず task の要件に合わせて選ぶ(実値は各 `automation.toml` の `provider`)。Pullfrog は owner 単位で、wwwyo は `anthropic/claude-opus-5-5:max`(keyless OIDC)、fudoki-hensansitu は `opencode-go/beam-free:max`(effort は最も高いもの。Pullfrog の値では `1`)。プロダクトの LLM モデル(opencode 等)も対象外
- `opencode-go` の free/contributor 枠は upstream が予告なく削除する(`space-bunny-free` 消失で pin 先の pullfrog が全 repo 全滅した実例)。表の候補・自動化側の pin は差し替え前提で選ぶ。Pullfrog の model・effort は org 共通(dotfiles の `.github/pullfrog.org.config.sh`)に置き、各 repo は unset で継承する — 消えたら org script の値を変えて再実行すれば全 repo が追従する。repo 個別の上書きは、その repo の `pullfrog.config.sh` で `pf_set` する
- 無料・格安枠の「非学習」「ZDR」表記は保証の粒度が違う — 月次更新の契約脚注、学習許可と引換の contributor 枠、保持日数のみの表記、provider 非開示でホスト地を検証できないものがある。personal/work の区分で選ぶときは表記ではなく裏付け(契約期間・学習可否・ホスト)を確認する

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/project-setup/references/pullfrog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- `review.re-review`: private → `'false'`(Actions の消費を抑えるため、追加コミットのレビューは必要なときに `@pullfrog` で依頼する)/ public → `'true'`。初回の自動レビュー(`review.mode='agent'`)と手動依頼(`mention.enabled='true'`)は両方で有効にする。個別設定の正本とレビュー方針を生成済みの `AGENTS.md` にも簡潔に記載する
- playground repo → `enabled=false`、かつ `hooks.setup` は `pf_unset` 側に回す
- `pf_unset instructions` はそのまま残す — repo で instructions を set すると org 共通 instructions(日本語返答・P0–P3 ラベル)を置換する。org scope の SSOT は dotfiles の `.github/pullfrog.org.config.sh` で、新規 repo 側で org 設定を触る必要はない
3. **適用**: `.github/pullfrog.config.sh` を実行して backend に反映(gh auth 前提。BYOK の `OPENCODE_API_KEY` は org scope で継承されるので repo 側の secret 作業は不要)
3. **適用**: `.github/pullfrog.config.sh` を実行して backend に反映(gh auth 前提。model と認証は owner 単位で、repo 側の secret 作業は不要。`anthropic/*` は Keyless (OIDC)(Anthropic の workload identity federation)で、新しい owner では Pullfrog console の Providers → Keyless (OIDC) に federation ID を入れ、Anthropic 側の federation rule がその owner の repo を受け付けることを確認する。`opencode-go/*` は BYOK の `OPENCODE_API_KEY` を org scope に入れる。owner ごとのモデルは org script の `model_for` を見る。まだ載っていない owner で導入するときは、モデルを決めて dotfiles の `.github/pullfrog.org.config.sh` の `ORGS` と `model_for` に足し、org script を実行してから repo 側を適用する(未登録だと script は止まり、repo は継承するモデルを持たない))
4. **動作確認**: console の Verify workflow + 何か PR を1本切って `pullfrog` check と review が降りるか見る。private repo で check が一切降りないときは、app・config の前に GitHub Actions の billing を疑う — Actions minutes が使えない private repo では workflow 自体が走らず、Pullfrog は起動しない(run も error も残らない)。`gh api users/<owner>/settings/billing/usage`(org なら `orgs/<org>/settings/billing/usage`)や Actions タブの billing warning で確認する — billing endpoint は token の `user` scope が要るので、`gh` が権不足で 404 を返すときは Actions タブの warning を見る
5. commit & push

Expand Down
3 changes: 2 additions & 1 deletion .github/pullfrog.config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
# Apply: .github/pullfrog.config.sh (uses gh auth)
# Audit: mise exec -- pullfrog config list --repo wwwyo/dotfiles
#
# BYOK keys are org-scoped (OPENCODE_API_KEY inherited) — see `pf secret list`.
# Model and its auth are per owner (anthropic: keyless OIDC / opencode-go: OPENCODE_API_KEY)
# — see model_for in .github/pullfrog.org.config.sh (wwwyo/dotfiles).
#
# model/effort inherit the org default in .github/pullfrog.org.config.sh
# (wwwyo/dotfiles). To override for this repo only, replace the pf_unset lines
Expand Down
33 changes: 24 additions & 9 deletions .github/pullfrog.org.config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,37 @@ set -euo pipefail

PF=(mise exec -- pullfrog)

# Every owner whose repos inherit these defaults. BYOK keys are per owner too:
# a new owner also needs `pullfrog secret set OPENCODE_API_KEY --org <org>`.
# Every owner whose repos inherit these defaults, with that owner's model.
# Auth is per owner too:
# - anthropic/*: keyless (GitHub OIDC → Anthropic workload identity federation).
# The owner needs the federation IDs in the Pullfrog console (Providers →
# Keyless (OIDC): ANTHROPIC_FEDERATION_RULE_ID / ANTHROPIC_ORGANIZATION_ID /
# ANTHROPIC_SERVICE_ACCOUNT_ID / ANTHROPIC_WORKSPACE_ID), and the Anthropic
# federation rule must accept that owner's repositories.
# - opencode-go/*: BYOK — `pullfrog secret set OPENCODE_API_KEY --org <org>`.
# opencode-go free/contributor tiers vanish without notice (space-bunny-free,
# minimax-m3.1-flash-free): recover by changing the model here and re-running.
# (case, not an associative array: macOS /bin/bash is 3.2)
model_for() {
case "$1" in
wwwyo) echo 'anthropic/claude-opus-5-5' ;; # since 2026-11-04 (was opencode-go/beam-free)
fudoki-hensansitu) echo 'opencode-go/beam-free' ;;
*) echo "no model for owner: $1" >&2; return 1 ;;
esac
}
ORGS=(wwwyo fudoki-hensansitu)

pf_set() { "${PF[@]}" config set "$1" "$2" --org "$ORG" --yes; }
pf_unset() { "${PF[@]}" config unset "$1" --org "$ORG" --yes; }

for ORG in "${ORGS[@]}"; do

# Shared model/effort for every repo. Repos inherit these by `pf_unset`-ing
# model/effort in their own pullfrog.config.sh; a repo that needs something
# else overrides with `pf_set model '<id>'` there.
# opencode-go free/contributor tiers vanish without notice (space-bunny-free,
# minimax-m3.1-flash-free): recover by changing the model here and re-running
# this script — inheriting repos follow without per-repo edits.
pf_set model 'opencode-go/beam-free'
# Shared model/effort for every repo of the owner. Repos inherit these by
# `pf_unset`-ing model/effort in their own pullfrog.config.sh; a repo that needs
# something else overrides with `pf_set model '<id>'` there. Changing model_for
# above and re-running this script switches every inheriting repo.
MODEL=$(model_for "$ORG") # assignment so set -e aborts on an unknown owner
pf_set model "$MODEL"
pf_set effort '1'

# explicit unsets — keep the backend converged on this file
Expand Down
Loading