ShtukbaseStandard

Harness: Claude Code

harness-claude · version 0.1.1
Harnesses1 check

Agents on Claude Code: running claude -p without a person, with only file tools inside the folder, no command line and no network; a sensor that the CLI exists.

About the package

Claude Code is Anthropic's agent CLI (claude). Without a person it works through claude -p: a prompt in, an answer out.

How to install. curl -fsSL https://claude.ai/install.sh | bash, then claude and sign in. It works on a Claude subscription (Pro, Max) or with an Anthropic API key. The package does not read keys: signing in is the owner's job.

Models. haiku (cheap, the default in the package), sonnet, opus or a full model name. The agent's effort (effort) goes to --effort.

Command.

claude -p --model <model> --restricted --tools Read,Glob,Grep,Edit,Write --permission-mode acceptEdits
       --permission-prompts none --no-session-persistence --strict-mcp-config --output-format text < prompt

Rights.

  • --restricted: no Bash and no other tools that run code; file tools work only in the working folder; user and project settings are not read.
  • access: read gives only Read, Glob, Grep; write adds Edit and Write.
  • There is no network: WebFetch and WebSearch are given only with network: true.
  • There is nobody to ask for permission: whatever needs a question is refused.
  • The session is not saved. A run from inside another Claude Code session is a new session.

Sensor version: claude --version. If there is no CLI, a warning; the check does not fail.

Actions 2

NameWhat it doesFileWhen
askRun an agent on the Claude Code harness (without a person, logged to the run log)actions/ask.ts
shtuk run
versionSensor: the CLI is found and answers --version (looks only)checks/version.ts
check

shtuk check runs the checks; shtuk run harness-claude <name> runs any action. "After install" actions run by themselves only if the package comes from a trusted source.

Package files 4

They go into .shtukbase/packages/harness-claude/; actions run from there.