Skip to content

Get started

Run Agent Detective on your host in about five minutes: npm CLI, mock Jira (no Jira account for the smoke test), and a local git checkout.

Next: golden path (real Jira + tunnel) · CLI reference · configuration hub

RequirementWhy
Node.js 24+Runs the agent-detective CLI and server
git on PATHlocal-repos plugin reads your checkout
Agent CLI on PATH (OpenCode, Cursor, …)Matches config.agent; required for real analysis (Cursor runs headless with workspace trust from the host)
A git clone on diskRegistered in config as repos[].path
Terminal window
npm i -g agent-detective
mkdir -p ~/agent-detective && cd ~/agent-detective
agent-detective init

In a TTY, agent-detective init opens a guided wizard (setup → agent → repo → server → integration → review). Jira mock mode is the default.

Non-interactive (scripts / CI):

Terminal window
agent-detective init --yes \
--repo-path /absolute/path/to/your/git/checkout \
--repo-name symfony

Use --repo-name equal to a label you will attach in Jira; the bundled smoke fixture uses symfony and probando.

Without a global install: npx agent-detective init --yes --repo-path /path/to/repo --repo-name symfony

All init flags: CLI reference — init.

Terminal window
agent-detective doctor --config-root .
agent-detective --config-root .

Doctor checks config, agent CLI, plugins, repo paths, listen port, and tracker credentials when not in mock mode. Use --verbose or --json when automating — CLI reference — doctor.

Leave the server running (default port 3001). Open http://127.0.0.1:3001/docs for the API reference (Scalar).

With the server running:

Terminal window
agent-detective smoke --config-root .

Posts the bundled jira:issue_created fixture (fixtures/jira-issue-created.json in the npm package). Labels probando and symfony must match a repos[].name in your config.

Success: HTTP 200, {"status":"queued","taskId":"..."}; server logs show a queued task and [MOCK] Added comment when mock analysis finishes.

Monorepo contributors (server already on PORT): pnpm run jira:webhook-smoke.

  • Server with OpenAPI docs at /docs
  • Mock Jira adapter — safe without posting to Jira
  • One local repo wired for label-based matching
GoalDocument
CLI commands and flagsCLI reference
Real Jira + tunnelGolden path · Jira E2E
Production VMDeployment
Secrets and pluginsConfiguration hub
Contribute to coreDevelopment