一键导入
gjc-session
Use GJC's published tmux session helpers for Clawhip-visible worktree sessions, prompt injection, tail checks, and harness owner debugging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use GJC's published tmux session helpers for Clawhip-visible worktree sessions, prompt injection, tail checks, and harness owner debugging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and execute durable repo-native multi-goal plans over GJC goal mode artifacts.
Socratic deep interview with mathematical ambiguity gating before explicit execution approval
Consensus planning entrypoint that auto-gates vague team/ultragoal requests before execution
Multi-worker GJC tmux team orchestration
Adds domain design guidance for ralplan planner phase.
Delegate planning, execution, and team workflows to gajae-code via the coordinator MCP server.
| name | gjc-session |
| description | Use GJC's published tmux session helpers for Clawhip-visible worktree sessions, prompt injection, tail checks, and harness owner debugging. |
Use this skill when a task needs an operator-visible GJC session in tmux: Clawhip/Hermes/OpenClaw can watch the pane, route stale-session alerts, and send follow-up prompts while the work stays in a dedicated git worktree.
Prefer Coordinator MCP for pure machine control. Prefer RPC/ACP when a host owns the tools. Use this visible-session helper flow when humans or chatops need tmux scrollback and a stable session name.
scripts/gjc-session/create.sh starts interactive gjc in a named tmux session, validates the worktree, preserves the pane after exit, prints and writes the session-specific durable state path, writes metadata.json, mirrors pane output to pane.log, records lifecycle events in events.log, writes normal-exit final.json, and optionally registers a Clawhip-style router watch.scripts/gjc-session/prompt.sh sends text or an @file prompt after the pane looks like a ready GJC TUI; if the tmux session vanished, it refuses injection and prints the durable metadata/log/final/events recovery paths plus the last pane-log excerpt.scripts/gjc-session/tail.sh captures bounded pane output for readiness and acceptance checks, with durable metadata, pane-log, event-log, and final-status fallback when tmux vanished.scripts/gjc-session/harness-tmux-owner-start.sh starts the harness RuntimeOwner inside tmux for dogfood/debug cases that need visible owner liveness.docs/gjc-session-clawhip-routing.md documents the full routed-session contract.Prepare a dedicated worktree and branch for the issue or PR. Do not use the canonical checkout for visible routed work.
Pick a stable, unambiguous session name that includes the repository and artifact id, such as gajae-code-issue-1055-gjc-session-skill.
Start the session:
./scripts/gjc-session/create.sh <session-name> <worktree-path> [channel-id] [mention]
Channel ids and mentions are runtime inputs owned by the host/router. Never hard-code private ids, bot mentions, credentials, tokens, or private host paths into public docs or scripts.
Confirm readiness with bounded tail output:
./scripts/gjc-session/tail.sh <session-name> 80
Wait for a ready GJC TUI signal such as Gajae forge, Type your message, > Type your message, or Working.
Send the actual task separately:
./scripts/gjc-session/prompt.sh <session-name> @/path/to/task.md
Verify prompt acceptance from work evidence, not from pasted text alone. Acceptable evidence includes a tool call or file read, a plan/todo update, a diff or test command, a GitHub comment/review/PR URL, or a terminal verdict such as MERGE_READY or REQUEST_CHANGES.
If tmux disappears before terminal verdict, inspect the state path printed by create.sh: metadata.json identifies the worktree/session, pane.log contains the mirrored transcript, events.log records launch/exit milestones, and final.json is present when gjc exited normally. Use tail.sh <session-name> [lines] to surface these artifacts without a live tmux server.
Include repository, worktree, branch, base branch, issue/PR id, scope, non-goals, verification, and whether to commit/push/open a PR. Keep channel and mention values outside the prompt unless the host policy explicitly requires them.
For harness/RPC dogfooding where the RuntimeOwner itself must remain visible, use:
./scripts/gjc-session/harness-tmux-owner-start.sh <session-name> <workspace> [issue-or-pr] [branch-label] [base]
The helper requires the branch label to match the workspace checkout and prints SESSION_ID, STATE_ROOT, TMUX_SESSION, and a bounded monitor-capture command.
gjc -p instead of an interactive tmux session.