project-session-manager
Skill40k starsChanged 2 months agoMITView on GitHub
Worktree-first dev environment manager for issues, PRs, and features with optional tmux sessions
- Installs packages
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about Yeachan-Heo/oh-my-claudecode
- @camilleroux.com“oh-my-claudecode : orchestration multi-agents pour Claude Code, pensée pour des équipes de workers (Codex, …”Bluesky · Apr 6, 2026 · 8 likes
- TechNickAI/ai-coding-config“Upgrade skill frontmatter for declarative composition (pipelines, handoffs, model hints)”GitHub · May 4, 2026 · 2 reactions
- TechNickAI/ai-coding-config“Add verify-deliverables SubagentStop hook to harden subagent completion claims”GitHub · May 4, 2026 · 2 reactions
- @github-trending-js.bsky.social“💎 Hidden Gem! 💎 (1000+ new stars) 📦 Yeachan-Heo / oh-my-claudecode ⭐ 17,120 (+1,785) 🗒 TypeScript …”Bluesky · Mar 31, 2026 · 2 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 Yeachan-Heo / oh-my-claudecode ⭐ 11,966 (+576) 🗒 TypeScript …”Bluesky · Mar 27, 2026 · 2 likes
The biggest 5 of 60 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 60
Talked about on GitHub and Bluesky (60 times).
On GitHub · 50
- May 4, 2026Upgrade skill frontmatter for declarative composition (pipelines, handoffs, model hints) — TechNickAI/ai-coding-config2 reactions · 2 comments
- May 4, 2026Add verify-deliverables SubagentStop hook to harden subagent completion claims — TechNickAI/ai-coding-config2 reactions · 2 comments
- May 5, 2026[redesign-research] oh-my-claudecode first-pass survey (cycle 75 dispatch — companion to oh-my-codex per #2774) — EvaLok/schema-org-json-ld1 reaction · 3 comments
- Mar 8, 2026feat: Add OMC (oh-my-claudecode) and OMX (oh-my-codex) agent runners — junhoyeo/contrabass1 reaction · 1 comment
- Feb 6, 2026fix(ai-dev): use Claude Code plugin system for oh-my-claudecode — danstis/coder-templates1 reaction
45 more on GitHub
- Nov 23, 2026🤖 [auto] 죽은 링크 3개 제거 (2026-11-23) — J-nowcow/awesome-korean-agent-skills0 reactions
- Nov 20, 2026Find quick wins from other multi-agent setups that cut friction — roykollensvendsen/claude-voice0 reactions
- Nov 20, 2026Start workers on demand and let them exit when their task is done — roykollensvendsen/claude-voice0 reactions
- Nov 19, 2026🤖 [auto] 죽은 링크 2개 제거 (2026-11-19) — J-nowcow/awesome-korean-agent-skills0 reactions
- Nov 11, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.8.5 → 5.8.6 — sudosubin/agents.nix0 reactions
- Nov 11, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.8.4 → 5.8.6 — sudosubin/agents.nix0 reactions
- Nov 11, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.8.4 → 5.8.6 — sudosubin/agents.nix0 reactions
- Nov 11, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.8.4 → 5.8.5 — sudosubin/agents.nix0 reactions
- Nov 10, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.8.3 → 5.8.4 — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.8.3 → 5.8.4 — sudosubin/agents.nix0 reactions
- Nov 10, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.8.3 → 5.8.4 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.8.2 → 5.8.3 — sudosubin/agents.nix0 reactions
- Nov 9, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.8.1 → 5.8.3 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.8.1 → 5.8.3 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.8.1 → 5.8.2 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.8.0 → 5.8.1 — sudosubin/agents.nix0 reactions
- Nov 9, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.8.0 → 5.8.1 — sudosubin/agents.nix0 reactions
- Nov 9, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.8.0 → 5.8.1 — sudosubin/agents.nix0 reactions
- Nov 8, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.7.31 → 5.8.0 — sudosubin/agents.nix0 reactions
- Nov 8, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.31 → 5.8.0 — sudosubin/agents.nix0 reactions
- Nov 8, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.7.31 → 5.8.0 — sudosubin/agents.nix0 reactions
- Nov 4, 2026Review and adopt oh-my-claudecode patterns — cbartens/bkit0 reactions · 1 comment
- Nov 3, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.30 → 5.7.31 — sudosubin/agents.nix0 reactions
- Nov 3, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.7.30 → 5.7.31 — sudosubin/agents.nix0 reactions
- Nov 3, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.7.30 → 5.7.31 — sudosubin/agents.nix0 reactions
- Nov 2, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.7.29 → 5.7.30 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.29 → 5.7.30 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.7.29 → 5.7.30 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.7.26 → 5.7.29 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.27 → 5.7.29 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.26 → 5.7.27 — sudosubin/agents.nix0 reactions
- Nov 1, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.7.25 → 5.7.29 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.25 → 5.7.26 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.7.25 → 5.7.26 — sudosubin/agents.nix0 reactions
- Nov 1, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.7.24 → 5.7.25 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.24 → 5.7.25 — sudosubin/agents.nix0 reactions
- Nov 1, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.7.24 → 5.7.25 — sudosubin/agents.nix0 reactions
- Nov 1, 2026agent-skills.github.yeachan-heo.oh-my-claudecode: 5.7.23 → 5.7.24 — sudosubin/agents.nix0 reactions
- Oct 31, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.23 → 5.7.24 — sudosubin/agents.nix0 reactions
- Oct 31, 2026claude-code-plugins.github.yeachan-heo.oh-my-claudecode: 5.7.23 → 5.7.24 — sudosubin/agents.nix0 reactions
- Oct 31, 2026claude-code-marketplaces.github.yeachan-heo.oh-my-claudecode: 5.7.22 → 5.7.23 — sudosubin/agents.nix0 reactions
- Oct 16, 2026Telemetry for Claude Code marketplace plugin installs via plugin hooks — aws-solutions/konductor0 reactions
- Oct 4, 2026copycat: deletion-first cleanup stage in /etp — lucasmccomb/ccgm0 reactions
- Oct 4, 2026copycat: off/shadow/active rollout for autoheal and dreaming decisions — lucasmccomb/ccgm0 reactions
- Oct 4, 2026copycat: read-budget hook - deny unranged Read of large files — lucasmccomb/ccgm0 reactions
On Bluesky · 10
- Apr 6, 2026oh-my-claudecode : orchestration multi-agents pour Claude Code, pensée pour des équipes de workers (Codex, Gemini, Claude) qui tournent en… — @camilleroux.com8 likes and reposts · 1 reply
- Mar 31, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 Yeachan-Heo / oh-my-claudecode ⭐ 17,120 (+1,785) 🗒 TypeScript Teams-first Multi-agent orchestration… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Mar 27, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Yeachan-Heo / oh-my-claudecode ⭐ 11,966 (+576) 🗒 TypeScript Teams-first Multi-agent orchestration… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Oct 10, 2026📦 Yeachan-Heo / oh-my-claudecode ⭐ 39,757 (+44) 🗒 TypeScript Teams-first Multi-agent orchestration for Claude Code — @github-trending-js.bsky.social1 likes and repost
- Apr 1, 2026Claude Code使いなら「oh-my-claudecode」は絶対に入れるべき。 複数エージェントをスタックしてタスク実行できる仕組みが神すぎる。特に`/team`コマンドで「プラン→実行→検証→修正」のパイプラインを自動化できるのは、手動作業の次元が違う。… — @woody-ai-tools.bsky.social1 likes and repost
5 more on Bluesky
- Mar 29, 2026今日のGitHubトレンド Yeachan-Heo/oh-my-claudecode Claude Code向けのマルチエージェントオーケストレーションツールです。 Claude Code自体の学習は不要で、簡単に利用できます。… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 28, 2026github.com/Yeachan-Heo/oh-... GitHub - Yeachan-Heo/oh-my-claudecode: Teams-first Multi-agent orchestration for Claude Code — @technews4869.bsky.social1 likes and repost
- Mar 27, 2026oh-my-claudecodeはClaude Code向けのチーム重視型マルチエージェントオーケストレーションツールらしい 複雑なコーディング作業を自動化したい開発者には便利そうかな yug1224 starred Yeachan-Heo/oh-my-claudecode… — @yug1224.com1 likes and repost
- Mar 30, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 Yeachan-Heo / oh-my-claudecode ⭐ 16,968 (+1,785) 🗒 TypeScript Teams-first Multi-agent orchestration… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Mar 26, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Yeachan-Heo / oh-my-claudecode ⭐ 11,966 (+576) 🗒 TypeScript Teams-first Multi-agent orchestration… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- commandsSkill
- agent-doc-disciplineSkill
- ai-slop-cleanerSkill
- architecture-surveySkill
- ask-navigatorSkill
- askSkill
- autopilotSkill
- autoresearchSkill
- cancelSkill
- configure-notificationsSkill
- debugSkill
- deepinitSkill
- deep-interviewSkill
- diagramSkill
- drydockSkill
- executeSkill
- external-contextSkill
- graphSkill
- harborSkill
- hudSkill
- intentSkill
- launchSkill
- loftSkill
- mapSkill
- minimal-code-disciplineSkill
- minimal-prose-disciplineSkill
- omc-doctorSkill
- omc-setupSkill
- omc-planSkill
- prSkill
- ralphSkill
- ralplanSkill
- refitSkill
- releaseSkill
- rememberSkill
- researchSkill
- omc-reviewSkill
- self-improveSkill
- skillifySkill
- skillSkill
- tddSkill
- teamSkill
- traceSkill
- ultragoalSkill
- verifySkill
- visual-verdictSkill
- wikiSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 174
When the user invokes a PSM command, follow this protocol:
- Distinctive: line 185
Purpose: Create PR review session
- Distinctive: line 284
Purpose: Create issue fix session
- Distinctive: line 322
Purpose: Start feature development
- Distinctive: line 546
Use PSM for full managed sessions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Session Manager (PSM) Skill
psm is the compatibility alias for this canonical skill entrypoint.
Quick Start (worktree-first): Start with
omc teleportwhen you want an isolated issue/PR/feature worktree before adding any tmux/session orchestration:omc teleport #123 # Create worktree for issue/PR omc teleport my-feature # Create worktree for feature omc teleport list # List worktreesSee Teleport Command below for details.
Automate isolated development environments using git worktrees and tmux sessions with Claude Code. Enables parallel work across multiple tasks, projects, and repositories.
Canonical slash command: /oh-my-claudecode:project-session-manager (alias: /oh-my-claudecode:psm).
Commands
| Command | Description | Example |
review <ref> | PR review session | /psm review omc#123 |
fix <ref> | Issue fix session | /psm fix omc#42 |
feature <proj> <name> | Feature development | /psm feature omc add-webhooks |
list [project] | List active sessions | /psm list |
attach <session> | Attach to session | /psm attach omc:pr-123 |
kill <session> | Kill session | /psm kill omc:pr-123 |
cleanup | Clean merged/closed | /psm cleanup |
status | Current session info | /psm status |
Project References
Supported formats:
- Alias:
omc#123(requires~/.psm/projects.json) - Full:
owner/repo#123 - URL:
https://github.com/owner/repo/pull/123 - Current:
#123(uses current directory's repo)
Configuration
Project Aliases (~/.psm/projects.json)
{
"aliases": {
"omc": {
"repo": "Yeachan-Heo/oh-my-claudecode",
"local": "~/Workspace/oh-my-claudecode",
"default_base": "main"
}
},
"defaults": {
"worktree_root": "~/.psm/worktrees",
"cleanup_after_days": 14
}
}Providers
PSM supports multiple issue tracking providers:
| Provider | CLI Required | Reference Formats | Commands |
| GitHub (default) | gh | owner/repo#123, alias#123, GitHub URLs | review, fix, feature |
| Jira | jira | PROJ-123 (if PROJ configured), alias#123 | fix, feature |
Jira Configuration
To use Jira, add an alias with jira_project and provider: "jira":
{
"aliases": {
"mywork": {
"jira_project": "MYPROJ",
"repo": "mycompany/my-project",
"local": "~/Workspace/my-project",
"default_base": "develop",
"provider": "jira"
}
}
}Important: The repo field is still required for cloning the git repository. Jira tracks issues, but you work in a git repo.
For non-GitHub repos, use clone_url instead:
{
"aliases": {
"private": {
"jira_project": "PRIV",
"clone_url": "git@gitlab.internal:team/repo.git",
"local": "~/Workspace/repo",
"provider": "jira"
}
}
}Jira Reference Detection
PSM only recognizes PROJ-123 format as Jira when PROJ is explicitly configured as a jira_project in your aliases. This prevents false positives from branch names like FIX-123.
Jira Examples
# Fix a Jira issue (MYPROJ must be configured)
psm fix MYPROJ-123
# Fix using alias (recommended)
psm fix mywork#123
# Feature development (works same as GitHub)
psm feature mywork add-webhooks
# Note: 'psm review' is not supported for Jira (no PR concept)
# Use 'psm fix' for Jira issuesJira CLI Setup
Install the Jira CLI:
# macOS
brew install ankitpokhrel/jira-cli/jira-cli
# Linux
# See: https://github.com/ankitpokhrel/jira-cli#installation
# Configure (interactive)
jira initThe Jira CLI handles authentication separately from PSM.
Directory Structure
~/.psm/
├── projects.json # Project aliases
├── sessions.json # Active session registry
└── worktrees/ # Worktree storage
└── <project>/
└── <type>-<id>/Session Naming
The public session ID (colon form, e.g. omc:pr-123) is the human-facing
identifier stored in sessions.json and used with psm attach/psm kill. tmux
reserves : and . for its session:window.pane target syntax and silently
rewrites them, so the actual tmux session name uses a tmux-safe form where
those characters become _ (issue #3528). PSM translates the public ID to the
tmux-safe name at every tmux boundary; attach directly with the tmux-safe name.
| Type | Public ID (psm attach/kill) | Tmux Session (tmux attach -t) | Worktree Dir |
| PR Review | omc:pr-123 | psm_omc_pr-123 | ~/.psm/worktrees/omc/pr-123 |
| Issue Fix | omc:issue-42 | psm_omc_issue-42 | ~/.psm/worktrees/omc/issue-42 |
| Feature | omc:feat-auth | psm_omc_feat-auth | ~/.psm/worktrees/omc/feat-auth |
Implementation Protocol
When the user invokes a PSM command, follow this protocol:
Parse Arguments
Parse {{ARGUMENTS}} to determine:
- Subcommand: review, fix, feature, list, attach, kill, cleanup, status
- Reference: project#number, URL, or session ID
- Options: --branch, --base, --no-claude, --no-tmux, etc.
Subcommand: review <ref>
Purpose: Create PR review session
Steps:
- Resolve reference:
# Read project aliases cat ~/.psm/projects.json 2>/dev/null || echo '{"aliases":{}}' # Parse ref format: alias#num, owner/repo#num, or URL # Extract: project_alias, repo (owner/repo), pr_number, local_path - Fetch PR info:
gh pr view <pr_number> --repo <repo> --json number,title,author,headRefName,baseRefName,body,files,url - Ensure local repo exists:
# If local path doesn't exist, clone if [[ ! -d "$local_path" ]]; then git clone "https://github.com/$repo.git" "$local_path" fi - Create worktree:
worktree_path="$HOME/.psm/worktrees/$project_alias/pr-$pr_number" # Fetch PR branch cd "$local_path" git fetch origin "pull/$pr_number/head:pr-$pr_number-review" # Create worktree git worktree add "$worktree_path" "pr-$pr_number-review" - Create session metadata:
cat > "$worktree_path/.psm-session.json" << EOF { "id": "$project_alias:pr-$pr_number", "type": "review", "project": "$project_alias", "ref": "pr-$pr_number", "branch": "<head_branch>", "base": "<base_branch>", "created_at": "$(date -Iseconds)", "tmux_session": "psm_${project_alias}_pr-$pr_number", "worktree_path": "$worktree_path", "source_repo": "$local_path", "github": { "pr_number": $pr_number, "pr_title": "<title>", "pr_author": "<author>", "pr_url": "<url>" }, "state": "active" } EOF - Update sessions registry:
# Add to ~/.psm/sessions.json - Create tmux session (tmux-safe name;
:/.are translated to_):tmux new-session -d -s "psm_${project_alias}_pr-$pr_number" -c "$worktree_path" - Launch Claude Code (unless --no-claude):
# --dangerously-skip-permissions prevents the "Do you trust this directory?" prompt # and repeated tool-approval prompts from stalling the session (issue #2508). tmux send-keys -t "psm_${project_alias}_pr-$pr_number" "claude --dangerously-skip-permissions" Enter # After claude boots (PSM_CLAUDE_STARTUP_DELAY, default 5s), deliver the task. # Use -l (literal) so special characters are not misinterpreted by tmux. sleep "${PSM_CLAUDE_STARTUP_DELAY:-5}" tmux send-keys -t "psm_${project_alias}_pr-$pr_number" -l \ "Review PR #$pr_number: \"$pr_title\" by @$pr_author ($head_branch → $base_branch). URL: $pr_url." Enter - Output session info:
Session ready! ID: omc:pr-123 Worktree: ~/.psm/worktrees/omc/pr-123 Tmux: psm_omc_pr-123 To attach: tmux attach -t psm_omc_pr-123 (or: psm attach omc:pr-123)
Subcommand: fix <ref>
Purpose: Create issue fix session
Steps:
- Resolve reference (same as review)
- Fetch issue info:
gh issue view <issue_number> --repo <repo> --json number,title,body,labels,url - Create feature branch:
cd "$local_path" git fetch origin main branch_name="fix/$issue_number-$(echo "$title" | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | head -c 30)" git checkout -b "$branch_name" origin/main - Create worktree:
worktree_path="$HOME/.psm/worktrees/$project_alias/issue-$issue_number" git worktree add "$worktree_path" "$branch_name" - Create session metadata (similar to review, type="fix")
- Update registry, create tmux, launch claude:
Same as review, but pass issue context as the initial task prompt:
tmux send-keys -t "psm_${project_alias}_issue-$issue_number" "claude --dangerously-skip-permissions" Enter # After claude boots, deliver the task (see PSM_CLAUDE_STARTUP_DELAY): tmux send-keys -t "psm_${project_alias}_issue-$issue_number" -l \ "Fix issue #$issue_number: \"$issue_title\". URL: $issue_url. Branch: $branch_name." Enter
Subcommand: feature <project> <name>
Purpose: Start feature development
Steps:
- Resolve project (from alias or path)
- Create feature branch:
cd "$local_path" git fetch origin main branch_name="feature/$feature_name" git checkout -b "$branch_name" origin/main - Create worktree:
worktree_path="$HOME/.psm/worktrees/$project_alias/feat-$feature_name" git worktree add "$worktree_path" "$branch_name" - Create session, tmux, launch claude with feature context as initial prompt:
tmux send-keys -t "psm_${project_alias}_feat-$feature_name" "claude --dangerously-skip-permissions" Enter tmux send-keys -t "psm_${project_alias}_feat-$feature_name" -l \ "Implement feature \"$feature_name\" for project $project. Branch: $branch_name." Enter
Subcommand: list [project]
Purpose: List active sessions
Steps:
- Read sessions registry:
cat ~/.psm/sessions.json 2>/dev/null || echo '{"sessions":{}}' - Check tmux sessions:
tmux list-sessions -F "#{session_name}" 2>/dev/null | grep "^psm_" - Check worktrees:
ls -la ~/.psm/worktrees/*/ 2>/dev/null - Format output:
Active PSM Sessions: ID | Type | Status | Worktree -------------------|---------|----------|--------------------------- omc:pr-123 | review | active | ~/.psm/worktrees/omc/pr-123 omc:issue-42 | fix | detached | ~/.psm/worktrees/omc/issue-42
Subcommand: attach <session>
Purpose: Attach to existing session
Steps:
- Parse session ID:
project:type-number - Verify session exists:
tmux has-session -t "psm_${session_id//[.:]/_}" 2>/dev/null # translate public id to tmux-safe name - Attach:
tmux attach -t "psm_${session_id//[.:]/_}"
Subcommand: kill <session>
Purpose: Kill session and cleanup
Steps:
- Kill tmux session:
tmux kill-session -t "psm_${session_id//[.:]/_}" 2>/dev/null - Remove worktree:
worktree_path=$(jq -r ".sessions[\"$session_id\"].worktree" ~/.psm/sessions.json) source_repo=$(jq -r ".sessions[\"$session_id\"].source_repo" ~/.psm/sessions.json) cd "$source_repo" git worktree remove "$worktree_path" --force - Update registry:
# Remove from sessions.json
Subcommand: cleanup
Purpose: Clean up merged PRs and closed issues
Steps:
- Read all sessions
- For each PR session, check if merged:
gh pr view <pr_number> --repo <repo> --json merged,state - For each issue session, check if closed:
gh issue view <issue_number> --repo <repo> --json closed,state - Clean up merged/closed sessions:
- Kill tmux session
- Remove worktree
- Update registry
- Report:
Cleanup complete: Removed: omc:pr-123 (merged) Removed: omc:issue-42 (closed) Kept: omc:feat-auth (active)
Subcommand: status
Purpose: Show current session info
Steps:
- Detect current session from tmux or cwd:
tmux display-message -p "#{session_name}" 2>/dev/null # or check if cwd is inside a worktree - Read session metadata:
cat .psm-session.json 2>/dev/null - Show status:
Current Session: omc:pr-123 Type: review PR: #123 - Add webhook support Branch: feature/webhooks Created: 2 hours ago
Error Handling
| Error | Resolution |
| Worktree exists | Offer: attach, recreate, or abort |
| PR not found | Verify URL/number, check permissions |
| No tmux | Warn and skip session creation |
| No gh CLI | Error with install instructions |
Teleport Command
The omc teleport command provides a lightweight alternative to full PSM sessions. It creates git worktrees without tmux session management — ideal for quick, isolated development.
Usage
# Create worktree for an issue or PR
omc teleport #123
omc teleport owner/repo#123
omc teleport https://github.com/owner/repo/issues/42
# Create worktree for a feature
omc teleport my-feature
# List existing worktrees
omc teleport list
# Remove a worktree
omc teleport remove issue/my-repo-123
omc teleport remove --force feat/my-repo-my-featureOptions
| Flag | Description | Default |
--worktree | Create worktree (default, kept for compatibility) | true |
--path <path> | Custom worktree root directory | ~/Workspace/omc-worktrees/ |
--base <branch> | Base branch to create from | main |
--json | Output as JSON | false |
Worktree Layout
~/Workspace/omc-worktrees/
├── issue/
│ └── my-repo-123/ # Issue worktrees
├── pr/
│ └── my-repo-456/ # PR review worktrees
└── feat/
└── my-repo-my-feature/ # Feature worktreesPSM vs Teleport
| Feature | PSM | Teleport |
| Git worktree | Yes | Yes |
| Tmux session | Yes | No |
| Claude Code launch | Yes | No |
| Session registry | Yes | No |
| Auto-cleanup | Yes | No |
| Project aliases | Yes | No (uses current repo) |
Use PSM for full managed sessions. Use teleport for quick worktree creation.
Requirements
Required:
git- Version control (with worktree support v2.5+)jq- JSON parsingtmux- Session management (optional, but recommended)
Optional (per provider):
gh- GitHub CLI (for GitHub workflows)jira- Jira CLI (for Jira workflows)
Initialization
On first run, create default config:
mkdir -p ~/.psm/worktrees ~/.psm/logs
# Create default projects.json if not exists
if [[ ! -f ~/.psm/projects.json ]]; then
cat > ~/.psm/projects.json << 'EOF'
{
"aliases": {
"omc": {
"repo": "Yeachan-Heo/oh-my-claudecode",
"local": "~/Workspace/oh-my-claudecode",
"default_base": "main"
}
},
"defaults": {
"worktree_root": "~/.psm/worktrees",
"cleanup_after_days": 14,
"auto_cleanup_merged": true
}
}
EOF
fi
# Create sessions.json if not exists
if [[ ! -f ~/.psm/sessions.json ]]; then
echo '{"version":1,"sessions":{},"stats":{"total_created":0,"total_cleaned":0}}' > ~/.psm/sessions.json
fiDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

