Skip to content

chore(harness): AGENT-HUB ハーネス配布(gbrain-recall リコール層) - #1152

Closed
ShintaroKawakami wants to merge 5 commits into
rohitg00:mainfrom
ShintaroKawakami:w-gbrain-recall
Closed

chore(harness): AGENT-HUB ハーネス配布(gbrain-recall リコール層)#1152
ShintaroKawakami wants to merge 5 commits into
rohitg00:mainfrom
ShintaroKawakami:w-gbrain-recall

Conversation

@ShintaroKawakami

@ShintaroKawakami ShintaroKawakami commented Aug 5, 2026

Copy link
Copy Markdown

目的

AGENT-HUB で新設した gbrain-recall(会話中に AI が G-Brain / agentmemory を読みに行くルール)を本 PJ へ配布する。

変更点

  • .claude/rules/general/gbrain-recall.md 追加(アタッチ済みクライアント面 .cursor/rules / GEMINI.md / AGENTS.md / .kimi-code 等へも同時反映)
  • gbrain-recall-preflight hook(各クライアント面)追加
  • その他 sync-agents の生成面差分(sync-state / 既存 hook のバージョン差)

生成方法

python3 scripts/sync-agents.py --project <pj> --project-root <clean-linked-worktree>(AGENT-HUB 公開入口)を、origin/main と一致する detached HUB worktree から実行。本 PJ 側で手編集していない。

影響範囲

AI エージェント設定のみ。アプリコード・DB・CI の変更なし。

🤖 Generated with Claude Code

https://claude.ai/code/session_01WVy3m6uEuqSxwZWQJQHTye

Summary by CodeRabbit

  • New Features
    • Added a project-scoped AgentMemory gateway with authenticated health and MCP endpoints.
    • Added secure memory saving, searching, handoffs, project isolation, and agent-scope controls.
    • Added macOS launchers for the core service and gateway.
    • Added configuration for multiple AI tools and MCP integrations.
  • Bug Fixes
    • Project-filtered searches now exclude memories with unverifiable ownership.
    • Memory observations preserve project information.
  • Documentation
    • Added gateway setup, usage, security, and deployment guidance.
  • Chores
    • Updated API counts, generated runtime guidance, hooks, and synchronization metadata.

ShintaroKawakami and others added 5 commits August 3, 2026 21:45
Co-authored-by: ShintaroKawakami <shintaro@example.com>
Co-authored-by: ShintaroKawakami <shintaro@example.com>
Co-authored-by: ShintaroKawakami <shintaro@example.com>
gbrain-recall 配布時、.gemini/settings.json に GCP の実キーが入ったまま追跡対象となり
GitHub push protection がブロックした(push は拒否され、漏えいは発生していない)。

- .gemini/settings.json / .cursor/mcp.json / .kimi-code/mcp.json を .gitignore へ追加
- 上記 3 ファイルを git rm --cached で追跡から除外(ローカル実体は保持)
- 実値の SSOT は ~/.config/agent-hub/.env、生成は sync が毎回ローカルで行う
  (.claude/rules/general/mcp-key-management.md)

他 PJ(jtt-cms 等)は既に同じ除外を持っており、本 PJ だけ欠けていた。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVy3m6uEuqSxwZWQJQHTye
会話中に AI が G-Brain / agentmemory を読みに行く「リコール層」を全 PJ へ展開する配布差分。
正本は AGENT-HUB(registries/harness-manifest.yaml の global include)。本 PJ 側では手編集しない。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVy3m6uEuqSxwZWQJQHTye
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the rohitg00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ShintaroKawakami

Copy link
Copy Markdown
Author

Opened by mistake against the upstream repository (intended target: my own fork). Closing immediately. Sorry for the noise.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c0423a57-f908-43d2-a984-15d80d285fa4

📥 Commits

Reviewing files that changed from the base of the PR and between d60652a and 6a41d87.

📒 Files selected for processing (206)
  • .agent-hub/harness-generation.json
  • .agent/rules/ai-model-selection.md
  • .agent/rules/branch-rule.md
  • .agent/rules/constructive-dissent.md
  • .agent/rules/gbrain-recall.md
  • .agent/rules/hooks-structure-rule.md
  • .agent/rules/latest-stack-context7.md
  • .agent/rules/mandate-registry.md
  • .agent/rules/mcp-key-management.md
  • .agent/rules/memory-lookups.md
  • .agent/rules/plan-approval-gate.md
  • .agent/rules/plan-commitment-tracking.md
  • .agent/rules/reference-over-hardcode.md
  • .agent/rules/response-style.md
  • .agent/rules/responsive-both-viewports.md
  • .agent/rules/settings-protection-coexistence.md
  • .agent/rules/sub-agent-scope-contract.md
  • .agent/rules/ui-stitch-mandatory.md
  • .agent/rules/visual-progress-map.md
  • .agent/rules/worktree-rule.md
  • .claude/rules/general/.agent-hub-materializations.json
  • .claude/rules/general/ai-model-selection.md
  • .claude/rules/general/branch-rule.md
  • .claude/rules/general/constructive-dissent.md
  • .claude/rules/general/gbrain-recall.md
  • .claude/rules/general/hooks-structure-rule.md
  • .claude/rules/general/latest-stack-context7.md
  • .claude/rules/general/mandate-registry.md
  • .claude/rules/general/mcp-key-management.md
  • .claude/rules/general/memory-lookups.md
  • .claude/rules/general/plan-approval-gate.md
  • .claude/rules/general/plan-commitment-tracking.md
  • .claude/rules/general/reference-over-hardcode.md
  • .claude/rules/general/response-style.md
  • .claude/rules/general/responsive-both-viewports.md
  • .claude/rules/general/settings-protection-coexistence.md
  • .claude/rules/general/sub-agent-scope-contract.md
  • .claude/rules/general/ui-stitch-mandatory.md
  • .claude/rules/general/visual-progress-map.md
  • .claude/rules/general/worktree-rule.md
  • .codex/config.toml
  • .codex/hooks.json
  • .codex/hooks/.hook-library-version
  • .codex/hooks/lib/code-quality-check.md
  • .codex/hooks/lib/hook-io.sh
  • .codex/hooks/lib/quality-check-common.sh
  • .codex/hooks/lib/storage-url-common.py
  • .codex/hooks/scripts/block-destructive-git.sh
  • .codex/hooks/scripts/block-destructive-git.test.sh
  • .codex/hooks/scripts/block-main-commit.sh
  • .codex/hooks/scripts/block-main-commit.test.sh
  • .codex/hooks/scripts/block-unauthorized-docs-file.sh
  • .codex/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .codex/hooks/scripts/freshness-gate.sh
  • .codex/hooks/scripts/gbrain-recall-preflight.sh
  • .codex/hooks/scripts/gbrain-recall-preflight.test.sh
  • .codex/hooks/scripts/handover-preflight.sh
  • .codex/hooks/scripts/handover-preflight.test.sh
  • .codex/hooks/scripts/post-merge-gate.sh
  • .codex/hooks/scripts/post-merge-gate.test.sh
  • .codex/hooks/scripts/pre-implementation-check.sh
  • .codex/hooks/scripts/stop-quality-check.sh
  • .codex/hooks/scripts/storage-url-pr-gate.sh
  • .codex/hooks/scripts/takeover-preflight.sh
  • .codex/hooks/scripts/takeover-preflight.test.sh
  • .codex/hooks/scripts/telemetry-lib.sh
  • .codex/sync-state.json
  • .cursor/hooks.json
  • .cursor/hooks/.hook-library-version
  • .cursor/hooks/lib/code-quality-check.md
  • .cursor/hooks/lib/hook-io.sh
  • .cursor/hooks/lib/quality-check-common.sh
  • .cursor/hooks/lib/storage-url-common.py
  • .cursor/hooks/scripts/block-destructive-git.sh
  • .cursor/hooks/scripts/block-destructive-git.test.sh
  • .cursor/hooks/scripts/block-main-commit.sh
  • .cursor/hooks/scripts/block-main-commit.test.sh
  • .cursor/hooks/scripts/block-skill-reverse-edit.sh
  • .cursor/hooks/scripts/block-skill-reverse-edit.test.sh
  • .cursor/hooks/scripts/block-unauthorized-docs-file.sh
  • .cursor/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .cursor/hooks/scripts/cursor-command-bridge.sh
  • .cursor/hooks/scripts/freshness-gate.sh
  • .cursor/hooks/scripts/gbrain-recall-preflight.sh
  • .cursor/hooks/scripts/gbrain-recall-preflight.test.sh
  • .cursor/hooks/scripts/handover-preflight.sh
  • .cursor/hooks/scripts/handover-preflight.test.sh
  • .cursor/hooks/scripts/post-merge-gate.sh
  • .cursor/hooks/scripts/post-merge-gate.test.sh
  • .cursor/hooks/scripts/pre-implementation-check.sh
  • .cursor/hooks/scripts/stop-quality-check.sh
  • .cursor/hooks/scripts/storage-url-pr-gate.sh
  • .cursor/hooks/scripts/subagent-quality-check.sh
  • .cursor/hooks/scripts/takeover-preflight.sh
  • .cursor/hooks/scripts/takeover-preflight.test.sh
  • .cursor/hooks/scripts/telemetry-lib.sh
  • .cursor/hooks/scripts/telemetry-log.sh
  • .cursor/hooks/scripts/telemetry-log.test.sh
  • .cursor/rules/10-runtime-sync.mdc
  • .cursor/rules/general/ai-model-selection.mdc
  • .cursor/rules/general/branch-rule.mdc
  • .cursor/rules/general/constructive-dissent.mdc
  • .cursor/rules/general/gbrain-recall.mdc
  • .cursor/rules/general/hooks-structure-rule.mdc
  • .cursor/rules/general/latest-stack-context7.mdc
  • .cursor/rules/general/mandate-registry.mdc
  • .cursor/rules/general/mcp-key-management.mdc
  • .cursor/rules/general/memory-lookups.mdc
  • .cursor/rules/general/plan-approval-gate.mdc
  • .cursor/rules/general/plan-commitment-tracking.mdc
  • .cursor/rules/general/reference-over-hardcode.mdc
  • .cursor/rules/general/response-style.mdc
  • .cursor/rules/general/responsive-both-viewports.mdc
  • .cursor/rules/general/settings-protection-coexistence.mdc
  • .cursor/rules/general/sub-agent-scope-contract.mdc
  • .cursor/rules/general/ui-stitch-mandatory.mdc
  • .cursor/rules/general/visual-progress-map.mdc
  • .cursor/rules/general/worktree-rule.mdc
  • .cursor/sync-state.json
  • .env.example
  • .gemini/hooks/.hook-library-version
  • .gemini/hooks/lib/code-quality-check.md
  • .gemini/hooks/lib/hook-io.sh
  • .gemini/hooks/lib/quality-check-common.sh
  • .gemini/hooks/lib/storage-url-common.py
  • .gemini/hooks/scripts/block-destructive-git.sh
  • .gemini/hooks/scripts/block-destructive-git.test.sh
  • .gemini/hooks/scripts/block-main-commit.sh
  • .gemini/hooks/scripts/block-main-commit.test.sh
  • .gemini/hooks/scripts/block-skill-reverse-edit.sh
  • .gemini/hooks/scripts/block-skill-reverse-edit.test.sh
  • .gemini/hooks/scripts/block-unauthorized-docs-file.sh
  • .gemini/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .gemini/hooks/scripts/freshness-gate.sh
  • .gemini/hooks/scripts/gbrain-recall-preflight.sh
  • .gemini/hooks/scripts/gbrain-recall-preflight.test.sh
  • .gemini/hooks/scripts/gemini-hook-bridge.py
  • .gemini/hooks/scripts/handover-preflight.sh
  • .gemini/hooks/scripts/handover-preflight.test.sh
  • .gemini/hooks/scripts/post-merge-gate.sh
  • .gemini/hooks/scripts/post-merge-gate.test.sh
  • .gemini/hooks/scripts/pre-implementation-check.sh
  • .gemini/hooks/scripts/stop-quality-check.sh
  • .gemini/hooks/scripts/storage-url-pr-gate.sh
  • .gemini/hooks/scripts/subagent-quality-check.sh
  • .gemini/hooks/scripts/takeover-preflight.sh
  • .gemini/hooks/scripts/takeover-preflight.test.sh
  • .gemini/hooks/scripts/telemetry-lib.sh
  • .gemini/hooks/scripts/telemetry-log.sh
  • .gemini/hooks/scripts/telemetry-log.test.sh
  • .gemini/sync-state.json
  • .gitignore
  • .kimi-code/AGENTS.md
  • .kimi-code/hooks/.hook-library-version
  • .kimi-code/hooks/kimi-hook-bridge.py
  • .kimi-code/hooks/lib/code-quality-check.md
  • .kimi-code/hooks/lib/hook-io.sh
  • .kimi-code/hooks/lib/quality-check-common.sh
  • .kimi-code/hooks/lib/storage-url-common.py
  • .kimi-code/hooks/managed-hooks.json
  • .kimi-code/hooks/scripts/block-destructive-git.sh
  • .kimi-code/hooks/scripts/block-destructive-git.test.sh
  • .kimi-code/hooks/scripts/block-main-commit.sh
  • .kimi-code/hooks/scripts/block-main-commit.test.sh
  • .kimi-code/hooks/scripts/block-skill-reverse-edit.sh
  • .kimi-code/hooks/scripts/block-skill-reverse-edit.test.sh
  • .kimi-code/hooks/scripts/block-unauthorized-docs-file.sh
  • .kimi-code/hooks/scripts/block-unauthorized-docs-file.test.sh
  • .kimi-code/hooks/scripts/freshness-gate.sh
  • .kimi-code/hooks/scripts/gbrain-recall-preflight.sh
  • .kimi-code/hooks/scripts/gbrain-recall-preflight.test.sh
  • .kimi-code/hooks/scripts/handover-preflight.sh
  • .kimi-code/hooks/scripts/handover-preflight.test.sh
  • .kimi-code/hooks/scripts/post-merge-gate.sh
  • .kimi-code/hooks/scripts/post-merge-gate.test.sh
  • .kimi-code/hooks/scripts/pre-implementation-check.sh
  • .kimi-code/hooks/scripts/stop-quality-check.sh
  • .kimi-code/hooks/scripts/storage-url-pr-gate.sh
  • .kimi-code/hooks/scripts/subagent-quality-check.sh
  • .kimi-code/hooks/scripts/takeover-preflight.sh
  • .kimi-code/hooks/scripts/takeover-preflight.test.sh
  • .kimi-code/hooks/scripts/telemetry-lib.sh
  • .kimi-code/hooks/scripts/telemetry-log.sh
  • .kimi-code/hooks/scripts/telemetry-log.test.sh
  • .kimi-code/sync-state.json
  • .opencode/plugins/runtime-sync.js
  • .opencode/sync-state.json
  • AGENTS.md
  • CLAUDE.md
  • GEMINI.md
  • README.md
  • deploy/macos/run-jtt-core.sh
  • deploy/macos/run-jtt-gateway.sh
  • docs/jtt-scoped-gateway.md
  • opencode.json
  • package.json
  • src/functions/search.ts
  • src/index.ts
  • src/jtt/scoped-gateway.ts
  • src/state/memory-utils.ts
  • src/types.ts
  • test/jtt-scoped-gateway-http.test.ts
  • test/jtt-scoped-gateway.test.ts
  • test/search.test.ts
  • tsdown.config.ts
  • tui.json

📝 Walkthrough

Walkthrough

Changes

AgentMemory gateway

Layer / File(s) Summary
Scoped gateway and project isolation
src/jtt/scoped-gateway.ts, src/functions/search.ts, src/types.ts, test/jtt-scoped-gateway*.ts, test/search.test.ts
Adds authenticated project-scoped HTTP/MCP memory operations and project-aware search filtering.
Runtime and client integration
.codex/*, .cursor/*, .gemini/*, .kimi-code/*, .opencode/*, package.json, tsdown.config.ts
Adds generated client configurations, lifecycle hooks, runtime bridges, MCP settings, build entries, and launcher support.
Policy and generated instructions
.agent/rules/*, .claude/rules/general/*, AGENTS.md, CLAUDE.md, GEMINI.md
Adds model, worktree, planning, memory, MCP-key, UI, hook, and response policies with generated harness metadata.
Documentation and project metadata
.agent-hub/*, README.md, docs/*, .env.example, .gitignore, tui.json
Adds synchronization manifests, gateway documentation, environment examples, endpoint-count updates, and ignore/configuration changes.

Estimated code review effort: 5 (Critical) | ~120 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant Gateway
  participant MemoryService
  participant Backend
  Client->>Gateway: Send authenticated MCP request
  Gateway->>MemoryService: Resolve project and agent scope
  MemoryService->>Backend: Save or search project-scoped memory
  Backend-->>MemoryService: Return scoped result
  MemoryService-->>Gateway: Format MCP response
  Gateway-->>Client: Return response
Loading

Possibly related PRs

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant