Skip to content
Agentmart
Submit a tool

claude-new

Start a new background Claude Code session in a project under ~/workspace, so it shows up in the agent view.

Skill by bonzofenix

IndexedMIT
Write a review

Chalk Labs

Need help deploying claude-new?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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/bonzofenix-claude-new

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

Start a new background Claude Code session in a project under ~/workspace, so it shows up in the agent view. Use when the user says "claude-new", "new claude session", "start claude in <project>", "spin up a session for <project>", or wants to pick a workspace project and get a session running there.

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/claude-new

What's inside

Skill name
claude-new
Description
Start a new background Claude Code session in a project under ~/workspace, so it shows up in the agent view. Use when the user says "claude-new", "new claude session", "start claude in <project>", "spin up a session for <project>", or wants to pick a workspace project and get a session running there.
License
MIT
Instructions
77 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • allowed-tools: must be a space-separated string

Files (1)

  • SKILL.md

SKILL.md (first lines)

# claude-new — start a background session in a workspace project

Starts a real (non-headless) Claude Code session in a chosen project directory
using `claude --bg`. The session appears in the agent view (`claude agents`)
and can be opened with `claude attach <id>`.

## Steps

### 1. List projects

```bash
ls -1 "${WORKSPACE_DIR:-$HOME/workspace}"
```

Only top-level directories count as projects.

If the directory is missing or empty, say so and stop.

### 2. Let the user pick

If the user already named a project in their request, and it matches a
directory exactly, skip the picker and use it.

Otherwise present the list with **AskUserQuestion**. That is the picker — do
not use `gum`, `fzf`, or any TTY-based selector, because Bash tool calls have
no TTY and those selectors will hang or fail.

AskUserQuestion allows at most 4 options per question. When there are more
projects than that:

- Put the 3 most recently modified projects as the first options.
- Make the 4th option "Show more projects", and ask again with the next batch
  if the user picks it.
- The user can always type a project name into the "Other" field.

### 3. Start the session

```bash
cd "${WORKSPACE_DIR:-$HOME/workspace}/<project>" && claude --bg -n "<project>"
```

`-n` sets the display name so the session is identifiable in the agent view.

If the user asked for a specific model, effort, or permission mode, pass the
matching flag (`--model`, `--effort`, `--permission-mode`).

If the user gave an initial prompt for the new session, append it as the
positional prompt argument so the session starts working immediately:

```bash
cd "${WORKSPACE_DIR:-$HOME/workspace}/<project>" && claude --bg -n "<project>" "<prompt>"
```

Without a prompt the session starts idle and waits for input.

### 4. Report back

Report the short id from the command output, plus:

- `claude attach <id>` — open it in a terminal
- `claude agents` — the agent view listing every session

Do not attach to the session yourself. Attaching is interactive and belongs to
the user.

## Notes

- `--bg` starts a full interactive session that happens to run detached. Do not
  substitute `-p`/`--print`: that is headless and cannot be attached to later.
- Sessions survive this conversation ending. `claude stop <id>` stops one,
  `claude rm <id>` deletes it.
- `bin/claude-new` in this repo does the equivalent from a shell, where a TTY
  exists and `gum` can be used. It starts a *foreground* session in the chosen
  directory, so it does not populate the agent view; this skill starts a
  detached one that does.

From bonzofenix/skills, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 25, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from bonzofenix

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get claude-new running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying claude-new?

CallGet help
Cite this page

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