Match a job Paths Subjects Questions Quizzes Pricing
Overview Read Practice

Practice — Headless Mode, CI Automation & the Agent SDK (11 questions)

Pro content

Sign up free, then start a 14-day Pro trial — no card needed.

Advanced Open Free

Why a CI Job Needs --bare, Not Just -p Permalink →

Your team runs claude -p "summarize the failing tests" --output-format json inside a GitHub Actions job that checks out a fork's PR branch (an external contributor's fork, not your own repository) to generate a test-failure summary as a comment.

  1. Without --bare, what specifically can happen in this job that wouldn't happen in an ordinary interactive claude session opened in a directory you've never trusted before?
  2. Why doesn't Claude Code show the equivalent of a trust-dialog prompt in this -p invocation the way it would interactively?
  3. Rewrite the invocation to close this gap while still letting Claude read the test output and produce a summary.

Share this question

Advanced Open Pro

Diagnosing Why Turn Caps Alone Weren't Enough

Unlock this question →
Intermediate Open Pro

Interactive vs. Automation Mode in the GitHub Action

Unlock this question →
Advanced Open Pro

Choosing Between the CLI and the Agent SDK

Unlock this question →
Intermediate Open Pro

Why the Nightly Triage Job Opens Draft PRs, Not Merged Ones

Unlock this question →
Advanced Open Pro

Designing a Structured-Output Migration-Risk Extractor

Unlock this question →
Advanced Open Pro

Running a Saved Workflow from a Nightly GitHub Actions Job

Unlock this question →
Advanced Open Pro

Session Strategy for a Multi-User SDK Service on Ephemeral Containers

Unlock this question →
Advanced Open Free

The Default Permission Mode When You Add -p Permalink →

A script runs claude -p "fix the failing test" with no --permission-mode or --allowedTools flags set.

What permission mode does this headless run actually start in?

Share this question

Intermediate Open Free

Piping a Large Log File Into Headless Claude Code Permalink →

You want to analyze a 40MB build log with cat build.log | claude -p "explain the failure".

What actually happens?

Share this question

Advanced Open Free

Why an SDK App With 300 MCP Tools Doesn't Load Them All Upfront Permalink →

An Agent SDK application connects to an enterprise MCP gateway exposing roughly 300 tools.

By default, how does the SDK handle loading those tool definitions into context?

Share this question

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.