Skip to content
Agentmart
Submit a tool

new-claude-at

Open a new Konsole window running a fresh Claude Code CLI session at an arbitrary path.

Skill by danielrosehill

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/danielrosehill-new-claude-at

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Open a new Konsole window running a fresh Claude Code CLI session at an arbitrary path. Use when the user asks for "a new claude at <path>", "claude in <other repo>", "spawn claude over in <dir>", or similar. Unlike `new-claude-here`, this takes an explicit target directory. Supports optional seed prompt and self-destruct.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/new-claude-at

What's inside

Skill name
new-claude-at
Description
Open a new Konsole window running a fresh Claude Code CLI session at an arbitrary path. Use when the user asks for "a new claude at <path>", "claude in <other repo>", "spawn claude over in <dir>", or similar. Unlike `new-claude-here`, this takes an explicit target directory. Supports optional seed prompt and self-destruct.
License
MIT
Instructions
61 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# New Claude Session At Path

Spawn a sibling Claude Code session in a new Konsole window at an **arbitrary** directory the user specifies. Companion to `new-claude-here` (which uses `$PWD`) — use this one when the target is somewhere else on disk.

## Inputs

- **Target path** — absolute path, or a path relative to the current repo. Required. If the user hasn't given one, ask. Expand `~` and resolve to an absolute path before launching.
- **Seed prompt** (optional) — an initial prompt or slash command to run in the new session (e.g. `/brainstorm-solutions:deep-research`). Passed as a positional argument to `claude`.
- **Self-destruct** (optional) — if the caller says "close this one", "self-destruct", or "hand off", close the current Konsole after the new one is verified. Default: keep current open.

## Steps

### 1. Resolve and verify target

```bash
target=$(readlink -f "<given-path>")
[ -d "$target" ] || { echo "not a directory: $target"; exit 1; }
```

### 2. Launch new session

IMPORTANT: When passing a seed prompt, wrap `claude` in `bash -c` so that Konsole sets the working directory correctly before Claude starts. Without this wrapper, Claude may open in the wrong directory.

If a seed prompt is provided:
```bash
setsid konsole --workdir "$target" -e bash -c 'claude "<seed-prompt>"' >/dev/null 2>&1 &
```

Otherwise:
```bash
setsid konsole --workdir "$target" -e claude >/dev/null 2>&1 &
```

`setsid` + background detaches so the new window survives the current session exiting.

### 3. Self-destruct (if requested)

If the caller requested self-destruct, follow the same pattern as `new-claude-here`:

1. Snapshot existing Konsole PIDs: `before=$(pgrep -x konsole)`.
2. Verify a new Konsole PID appeared after launch.
3. If verified, warn the user and close the current Konsole:
   ```bash
   (sleep 3 && kill -TERM $(ps -o ppid= -p $PPID | tr -d ' ')) &
   ```
4. If no new PID appeared, ABORT — do not close anything.

### 4. Report

Tell the user:
- The absolute path the new session was launched in
- Whether a seed prompt was passed
- If self-destruct is pending

## Notes

- The new session is standalone — no shared memory with this one.
- For full context transfer without Junction, run `session-transfer:write-handover` first.
- Do not block waiting on the Konsole process.

From danielrosehill/Claude-Hopper, MIT.

More from danielrosehill/Claude-Hopper

Signals

Stars
1
Forks
0
Open issues
1
Last commit (this folder)
Apr 29, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from danielrosehill

Cite this page

new-claude-at skill. Agent Mart. https://agentmart.dev/skills/danielrosehill-new-claude-at (last updated 2026-10-24)