{"id":50630674,"url":"https://github.com/andezdev/agent-detective","last_synced_at":"2026-06-06T21:01:28.369Z","repository":{"id":351049581,"uuid":"1209350642","full_name":"andezdev/agent-detective","owner":"andezdev","description":"AI-powered code analysis agent that responds to events from Jira, Telegram, Slack and more","archived":false,"fork":false,"pushed_at":"2026-05-29T12:39:14.000Z","size":10518,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T23:27:40.458Z","etag":null,"topics":["agent","ai","code-analysis","fastify","jira","linear","monorepo","typescript"],"latest_commit_sha":null,"homepage":"http://agent-detective.chapascript.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andezdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-13T10:41:18.000Z","updated_at":"2026-05-29T12:39:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d128d47-313f-4dc0-ac27-5a08312fec48","html_url":"https://github.com/andezdev/agent-detective","commit_stats":null,"previous_names":["toniop99/agent-detective","andezdev/agent-detective"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andezdev/agent-detective","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andezdev%2Fagent-detective","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andezdev%2Fagent-detective/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andezdev%2Fagent-detective/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andezdev%2Fagent-detective/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andezdev","download_url":"https://codeload.github.com/andezdev/agent-detective/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andezdev%2Fagent-detective/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33999579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","code-analysis","fastify","jira","linear","monorepo","typescript"],"created_at":"2026-06-06T21:00:39.923Z","updated_at":"2026-06-06T21:01:28.364Z","avatar_url":"https://github.com/andezdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agent Detective\n\n![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)\n[![CI](https://github.com/andezdev/agent-detective/actions/workflows/ci.yml/badge.svg)](https://github.com/andezdev/agent-detective/actions/workflows/ci.yml)\n[![Version](https://img.shields.io/github/v/release/andezdev/agent-detective)](https://github.com/andezdev/agent-detective/releases)\n\nAI-powered code analysis agent that responds to events from Jira, Telegram, Slack and more.\n\n## Concept\n\nWhen a new incident is created in Jira, this agent analyzes the relevant repository to identify possible causes and writes a detailed comment to help developers resolve it.\n\n## Architecture\n\nCore agent logic is **source-agnostic** — plugins normalize events from different sources (Jira, Telegram, Slack) into a common format.\n\n## Run it (npm)\n\nInstall on a host where your agent CLI (OpenCode, Cursor, Claude) is already on `PATH` and authenticated:\n\n```bash\nnpm i -g agent-detective\nmkdir -p ~/agent-detective \u0026\u0026 cd ~/agent-detective\nagent-detective init --repo-path /absolute/path/to/your/git/checkout --repo-name symfony\nagent-detective doctor --config-root .\nagent-detective --config-root .\n```\n\nFive-minute walkthrough with a **mock Jira webhook** (no Jira account): [Get started](docs/operator/get-started.md). Full Jira + tunnel: [Golden path](docs/operator/golden-path.md). Production VM: [Deployment](docs/operator/deployment.md).\n\n## Develop it (pnpm)\n\nClone the monorepo when you change core code or plugins:\n\n```bash\ngit clone https://github.com/andezdev/agent-detective.git\ncd agent-detective\npnpm install\npnpm dev\n```\n\nCI runs `pnpm build` (packages) and `pnpm run build:app` (root `dist/`). See [Development Guide](docs/development/development.md#monorepo-layout-pnpm--turborepo).\n\n## Packages\n\n| Package | Description |\n|---------|-------------|\n| Root app | Fastify server (`src/`, not under `packages/`) |\n| `@agent-detective/types` | Host-internal type-only contract package (re-exported through `@agent-detective/sdk`; plugins should not depend on it directly) |\n| `@agent-detective/sdk` | Plugin-author SDK — single dependency for plugins. Bundles `defineRoute`, `registerRoutes`, `definePlugin`, `zodToPluginSchema`, service-name constants (`REPO_MATCHER_SERVICE`, `PR_WORKFLOW_SERVICE`), `StandardEvents`, and re-exports every plugin-facing type from `@agent-detective/types` |\n| `@agent-detective/observability` | Logging, metrics, health |\n| `@agent-detective/process-utils` | Process / shell helpers |\n| `@agent-detective/local-repos-plugin` | Local repositories + `RepoMatcher` |\n| `@agent-detective/jira-adapter` | Jira webhook adapter |\n| `@agent-detective/linear-adapter` | Linear webhooks + OAuth, signature verification, deduplication; posts analysis back on task completion ([E2E](docs/e2e/linear-manual-e2e.md)) |\n\n## Configuration\n\nStart with **[docs/config/configuration-hub.md](docs/config/configuration-hub.md)** (load order and top-level keys), then **[docs/config/configuration.md](docs/config/configuration.md)** for the full env and plugin tables, **[docs/reference/generated/app-config.md](docs/reference/generated/app-config.md)** for the top-level app schema (Zod/JSON), and **[docs/reference/generated/plugin-options.md](docs/reference/generated/plugin-options.md)** for bundled plugin fields.\n\nConfigure via `config/default.json` (and optional `config/local.json`):\n\n```json\n{\n  \"port\": 3001,\n  \"agent\": \"opencode\",\n  \"plugins\": [...]\n}\n```\n\n**Operator docs:** [Get started](docs/operator/get-started.md) · [Installation paths](docs/operator/installation.mdx) · [Upgrading](docs/operator/upgrading.md) · [Threat model](docs/operator/threat-model.md)\n\n## Support matrix\n\n| Dimension | Supported / tested in CI (typical) | Notes |\n|-----------|--------------------------------------|--------|\n| **Runtime** | Node.js **24+**; **npm CLI** `agent-detective` | See [package.json](package.json) `engines` / `packageManager`. |\n| **Host OS** | **Linux** for production guides (systemd + nginx) | macOS/Windows OK for dev; WSL acceptable for local smoke. |\n| **HTTP server** | **Fastify** on configurable `port` (default **3001**) | `/api/health`, `/api/metrics`, Scalar `/docs`. |\n| **Agent CLIs** | **OpenCode** documented; **Claude** / **Cursor** agent ids registered in-repo | Match `config.agent` to an installed CLI; see [cursor-agent.md](docs/development/cursor-agent.md) for Cursor. |\n| **Jira** | **Jira Cloud** webhooks + REST (Basic or OAuth 2.0 3LO) | Webhook + Automation shapes per [jira-manual-e2e.md](docs/e2e/jira-manual-e2e.md). **Data Center** not separately certified—treat as best-effort if APIs align. |\n| **Linear** | **Linear** webhooks + GraphQL comments (OAuth or PAT) | [linear-manual-e2e.md](docs/e2e/linear-manual-e2e.md), [linear-adapter.md](docs/plugins/linear-adapter.md). |\n| **Kubernetes / Helm** | **Not shipped** in-repo | Bring your own container or VM; see [installation.mdx](docs/operator/installation.mdx#kubernetes). |\n\n## Documentation\n\n- **Documentation site (Starlight):** `pnpm run docs:site` from the root builds the static site in [`apps/docs/`](apps/docs/README.md) (source markdown is [`docs/`](docs/README.md); a [sync script](scripts/sync-starlight-content.mjs) runs on build). **Published:** [https://agent-detective.chapascript.dev/docs/](https://agent-detective.chapascript.dev/docs/) (GitHub Pages + [custom domain in repo settings](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site), DNS in Cloudflare). **GitHub Actions** is the Pages source. CI: [.github/workflows/docs-site.yml](.github/workflows/docs-site.yml).\n\n- [Get started](docs/operator/get-started.md) — five-minute npm quickstart with mock webhook\n- [Installation](docs/operator/installation.mdx) — npm CLI, from source, or bare metal\n- [Configuration (overview)](docs/config/configuration-hub.md) — [full reference](docs/config/configuration.md)\n- [Upgrading](docs/operator/upgrading.md) — releases and upgrade runbook\n- [Architecture](docs/architecture/architecture.md)\n- [Extending with custom plugins](docs/plugins/extending-with-plugins.md) — npm, paths, private registry\n- [Plugin development (full guide)](docs/plugins/plugins.md)\n- [Development Guide](docs/development/development.md)\n- [Jira E2E (manual walkthroughs)](docs/e2e/) — webhooks, tunnel, pr-pipeline\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandezdev%2Fagent-detective","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandezdev%2Fagent-detective","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandezdev%2Fagent-detective/lists"}