import-humanlayer

A repository command that copies HumanLayer commands and agents from a supplied folder into the current project, then removes their thought-sync instructions. HumanLayer is a toolset whose commands and agents guide coding work.

In plain words
What is it for?
It checks the source folder, copies files from its .claude directories, reports what was copied, and removes references to thoughts sync.
Why use it?
It avoids manually copying and editing many command and agent files when reusing them in another repository.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jeffh/claude-plugins/import-humanlayer
Clone the repo
git clone --depth 1 https://github.com/jeffh/claude-plugins

Made for: Claude Code.

Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00011 $0.00867
Opus 5 $0.00005 $0.00434
Sonnet 5 $0.00002 $0.00173
Haiku 4.5 $0.00001 $0.00087

Measured 2d ago against content hash fa7bd50f5a5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

import-humanlayer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/import-humanlayer.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Import HumanLayer Commands and Agents

You are tasked with importing humanlayer commands and agents from a source repository and adapting them for use in this repository.

Input

The user will provide a path to the humanlayer repository as an argument to this command.

Process

Step 1: Validate Input Path

  1. Check that the provided path exists and is a directory
  2. Verify that the path contains .claude/commands/ and .claude/agents/ directories
  3. If validation fails, report the error and stop

Step 2: Copy Files

  1. Copy all files from <humanlayer_repo>/.claude/commands/ to humanlayer/commands/
  2. Copy all files from <humanlayer_repo>/.claude/agents/ to humanlayer/agents/
  3. Use cp -r to preserve file attributes
  4. Report which files were copied

Step 3: Remove Syncing Functionality

For each copied file (both commands and agents):

  1. Read the file content
  2. Remove all references to syncing functionality:
    • Remove any usage of thoughts sync commands
    • Remove any sync-related instructions or steps
    • Remove any references to syncing thoughts directory
    • Remove any sync verification steps
  3. If a file is modified, write the updated content back
  4. Report which files were modified and what was removed

Step 4: Convert Script References to Skills

For each copied file (both commands and agents):

  1. Search for references to scripts in scripts/* and hack/* directory
  2. For each script reference found:
    • Read the script content from the source repository
    • Create a new skill directory in humanlayer/skills/ with a descriptive name based on the script's purpose
    • Create a SKILL.md file inside the skill directory with proper frontmatter:
      ---
      name: script-name
      description: What this skill does and when Claude should activate it
      allowed-tools: Bash, Read
      ---
      
    • Convert the script's functionality into skill instructions within SKILL.md
    • Replace the script reference in the original file with instructions to use the Skill tool
  3. Report which skills were created and which script references were replaced

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 103 lines · 11 tokens per session scan A fa7bd50f5a5d

Subscribe to this mod's changes

import-humanlayer is a command published in the GitHub repository jeffh/claude-plugins (12 stars, last pushed 18d ago), licensed Apache-2.0. It adds 11 tokens to every session and 867 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.