Get started
Get started
Section titled “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
Prerequisites
Section titled “Prerequisites”| Requirement | Why |
|---|---|
| Node.js 24+ | Runs the agent-detective CLI and server |
git on PATH | local-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 disk | Registered in config as repos[].path |
1. Install and scaffold
Section titled “1. Install and scaffold”npm i -g agent-detectivemkdir -p ~/agent-detective && cd ~/agent-detectiveagent-detective initIn 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):
agent-detective init --yes \ --repo-path /absolute/path/to/your/git/checkout \ --repo-name symfonyUse --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.
2. Validate and run
Section titled “2. Validate and run”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).
3. Mock webhook smoke
Section titled “3. Mock webhook smoke”With the server running:
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.
4. What you have now
Section titled “4. What you have now”- Server with OpenAPI docs at
/docs - Mock Jira adapter — safe without posting to Jira
- One local repo wired for label-based matching
Next steps
Section titled “Next steps”| Goal | Document |
|---|---|
| CLI commands and flags | CLI reference |
| Real Jira + tunnel | Golden path · Jira E2E |
| Production VM | Deployment |
| Secrets and plugins | Configuration hub |
| Contribute to core | Development |