Skip to content
Esc
↑↓navigate↵open⌘Jpreview
Start
On this page

Repository Discovery

Scan a repository or a folder of repositories to find useful engineering workflows, save them as editable drafts, and upload the ones you want to Build my agent.

Overview

autohand discovery looks at a repository, or a folder containing several, and suggests engineering workflows worth automating. It combines:

  • manifests, CI, and distribution configuration;
  • installed skills;
  • your past requests made in that project;
  • recent Git activity.

The CLI shows each collection stage, then a ranked list of suggestions with the reasons behind them. Discovery runs in an isolated subprocess. It does not load project extensions or run project scripts, and the default scan works offline.

Quick start

# Scan the current repository
autohand discovery

# List the drafts saved locally
autohand discovery list

# Preview an upload, then upload two drafts
autohand discovery push --dry-run
autohand discovery push --select repository-onboarding,ci-diagnosis

Actions

Action What it does
autohand discovery Scans the workspace and writes suggestions. This is the default action.
autohand discovery list Lists the local workflow drafts. Use --select to show specific ones.
autohand discovery push Validates local drafts and uploads them to Build my agent.
autohand discovery map Shows the local Work Map of coding-agent activity. See Agent Traces.

Options

Option Behavior
--workspace <path> Repository, or folder of repositories, to scan. Defaults to --path or the current folder.
--depth <n> How many directory levels below the workspace to search for projects: 0, 1, or 2. 0 scans only the root. Default 2.
--skill-query <text> Only considers skills whose name or description matches.
--no-behavior Skips your local message history.
--github Also reads up to 100 merged pull requests through the authenticated gh CLI.
--analyze Refines the ranking with a model, using the built-in workflow-discovery skill. Requires sign-in.
--select <id,id> Limits list or push to specific workflow IDs.
--with-report With push, also uploads the derived findings and asks the server to match them against the catalog and your saved workflows.
--push Scans, saves drafts, and uploads them with their findings in one step. Implies --with-report.
--dry-run Previews without writing files or uploading anything.
--json Emits structured results.

Examples:

autohand discovery --workspace /path/to/projects --depth 2
autohand discovery --skill-query "release" --no-behavior
autohand discovery --github --analyze
autohand discovery push --with-report --dry-run
autohand discovery --push

Files written

Path Contents
.autohand/discovery.json The evidence report for the latest scan.
.autohand/workflows/ Editable workflow drafts, one JSON file per workflow.
.autohand/discovery-candidates.json The fresh candidates from the latest scan.

Repeat scans keep your existing drafts, including manual edits. The summary tells you which drafts differ from the latest candidates. A scan with --dry-run writes nothing.

What discovery reads

  • Projects at the workspace root and up to two levels below it, capped at 40 repositories. Symlinked project directories are not followed.
  • Skills in agent and plugin skill folders, including hidden and ignored ones. Identical skills are deduplicated.
  • History from Autohand sessions, Claude project logs, and Codex sessions recorded in that working directory. Only your own messages are read. --no-behavior skips history entirely.
  • Git activity: up to 200 commits from the last 30 days. Merged pull requests are included only with --github.

Generated folders, symlinks, and oversized inputs are skipped, and the report records anything left out. Binaries are inspected by header and size only, never run.

Upload to Build my agent

push validates the selected local drafts and uploads them to Build my agent. It sends the workflow documents and their evidence paths, not your repository’s file contents.

# Inspect the exact payload first
autohand discovery push --dry-run

# Upload specific workflows
autohand discovery push --select repository-onboarding,ci-diagnosis

# Upload with derived findings
autohand discovery push --with-report

With --with-report, the server stores the report under your account. Raw conversations and skill bodies are never uploaded.

Each push is limited to 20 workflows and 512 KB. Narrow the workspace, the skill query, or the selection if you hit a limit.

Uploads and --analyze use AUTOHAND_API_KEY when set. Otherwise they use the credential saved by autohand login. Credentials are passed through the subprocess environment, never through command arguments or reports.

Refine workflows in the browser

Open the editor link that push returns while signed into the same account. Adjust the steps, instructions, and settings, then save. Pushing an unchanged draft again keeps your browser edits. A changed local draft creates another saved workflow.

Workflows that reference local skills carry a content hash. When the workflow runs, the connected runtime checks that the SKILL.md still matches and stops with an error if it is missing or changed. Imported triggers start paused, and a proposed cadence needs a runtime and a schedule before it runs.

Press Ctrl+C to cancel a scan or an upload in progress.

  • Agent Traces covers the Work Map and trace consent.
  • Skills explains how skills are installed and discovered.

Last updated on

Was this helpful?

Send Feedback

Help us improve this documentation page. Your feedback is valuable.

We'll only contact you if we need clarification