Knowledge Graph Prompts library
Ask natural language questions about your software delivery. See how the Knowledge Graph connects entities to provide answers.
Ask natural language questions about your software delivery workflows. The Knowledge Graph connects entities across pipelines, services, environments, and infrastructure to provide context-aware answers.
This page shows validated prompts organized by use case, how the graph traverses relationships, the HQL queries used, and sample outputs.
What you will learn in this topic
By the end of this page, you will understand:
How to ask questions about pipeline failures, build times, and productivity.
How the Knowledge Graph connects entities to answer your questions.
What HQL queries power each prompt.
How to interpret query results.
Pipeline failure analysis
Analyze pipeline health, identify failure patterns, and get remediation recommendations.
Prompt 1: Which pipelines have the highest failure rate?
What it does: Identifies pipelines that fail most frequently and surfaces common failure points across stages and steps.
Graph traversal:
HQL queries:
Sample output:
agt_pipe
21
14
0
66.7%
pipeline_0e7b
1
1
0
100%
pipeline_7d66
10
1
9
10%
test_tracing_v0
5
0
5
0%
Root cause breakdown:
agt_pipe
agt
runEvals
APPLICATION_FAILURE
7
agt_pipe
agt
runFeatureFlagCleanupAgent
APPLICATION_FAILURE
4
agt_pipe
Deploy
InitializeContainer
GENERAL_ERROR
2
Visual representation:
Prompt 2: Which pipelines failed the most in the last 30 days?
What it does: Ranks pipelines by total failure count to prioritize remediation efforts.
Graph traversal:
HQL query:
Sample output:
agt_pipe
14
pipeline_6a8d
1
pipeline_173b
1
pipeline_0e7b
1
Visual representation:
Prompt 3: What stages fail most often across all my pipelines?
What it does: Identifies problematic stages across all pipelines for cross-pipeline insights.
Graph traversal:
HQL query:
Sample output:
agt
agt_pipe
11
Deploy
agt_pipe
4
Build_0
pipeline_0e7b
1
Stage
pipeline_173b
1
Visual representation:
Prompt 4: Show me the top 5 error messages from failed pipelines
What it does: Surfaces the most common error messages to identify systemic issues.
Graph traversal:
HQL query:
Sample output:
Pull access denied for nodejs, repository does not exist or may require 'docker login'
1,793
Exit status 1 (generic shell error)
78
Hosted infrastructure connector misconfiguration
51
Exit status 122
22
No eligible runners found
18
Visual representation:
Prompt 5: Recommend fixes for my most-failing pipeline
What it does: Analyzes error patterns and provides actionable remediation recommendations.
Graph traversal:
HQL queries:
Sample output:
runEvals
exit status 6
7
Replace placeholder API credentials with actual secrets
runFeatureFlagCleanupAgent
exit status 1
4
Verify LLM connector configuration and credentials
InitializeContainer
No eligible runners found
2
Check delegate health and connectivity
Recommendations:
Fix placeholder credentials in Agent steps (resolves 7 failures)
Validate LLM connector configuration (resolves 4 failures)
Ensure delegate availability (resolves 2 failures)
Build time analysis
Analyze build performance, identify bottlenecks, and optimize CI pipelines.
Prompt 6: Which builds are taking the longest?
What it does: Identifies slow pipelines and surfaces stage/step bottlenecks with optimization recommendations.
Graph traversal:
HQL queries:
Sample output:
Slowest pipelines:
Code Coverage
151 min
164 min
164 min
4
Worker Agent Demo
27 min
68 min
68 min
10
autofix
17 min
43 min
43 min
3
Slowest step types:
Barrier
164 min
600 min
HarnessApproval
119 min
600 min
Background
66 sec
5.8 min
InitializeContainer
53 sec
2.6 min
Run
4.6 sec
164 min
Recommendations:
Parallelize AI agent workloads in Code Coverage pipeline
Reduce approval wait times with notifications
Optimize Windows build initialization
Enable caching for Maven builds
Prompt 7: What are my slowest builds in the last 30 days?
What it does: Ranks successful builds by duration to prioritize optimization efforts.
Graph traversal:
HQL query:
Sample output:
test-mcp-functor
2m 3s
2m 3s
2m 3s
1
pipeline_7d66
1m 34s
4m 54s
4m 54s
9
test_tracing_v0
1m 23s
1m 44s
1m 44s
5
Visual representation:
Prompt 8: Which build stage takes the longest in my pipeline?
What it does: Identifies bottleneck stages within a specific pipeline.
Graph traversal:
HQL query:
Sample output:
agt
101.3 sec
242.1 sec
248.6 sec
16
Deploy
25.8 sec
159.4 sec
159.4 sec
8
Visual representation:
Prompt 9: Why did my build time increase by 40% last week?
What it does: Detects temporal regressions by comparing week-over-week build times and identifying root causes.
Graph traversal:
HQL queries:
Sample output:
Week 2-3 ago
66 sec
5-6 sec
Week 1-2 ago
86 sec
5-35 sec
Root cause: Init time variance increased from consistent ~5-6 sec to 5-35 sec.
Visual representation:
Prompt 10: Which test suites are the biggest bottleneck?
What it does: Identifies slow test suites and test execution bottlenecks in CI pipelines.
Graph traversal:
HQL queries:
Sample output:
CI Stage Bottlenecks:
agt
-
101.1s
248.3s
22.4s
16
test
-
79.0s
93.6s
15.3s
6
Recommendations:
Enable Test Intelligence on test stages
Investigate agt stage for optimization opportunities
Reduce init times (15-33s is high)
Prompt 11: Which builds have the most cache misses?
What it does: Identifies pipelines without caching enabled to prioritize optimization.
Graph traversal:
HQL query:
Sample output:
agt_pipe
16
26m 58s
pipeline_7d66
10
5m 39s
pipeline_0e7b
2
3s
Visual representation:
Pipeline productivity
Get actionable recommendations to improve pipeline efficiency and reduce costs.
Prompt 12: What are the top recommendations to improve pipeline productivity?
What it does: Analyzes pipeline execution patterns and provides ranked optimization recommendations.
Graph traversal:
HQL queries:
Sample recommendations:
Enable caching on agt_pipe (saves 27 min/week)
Reduce approval wait times in Worker Agent Demo (avg 71 min)
Fix high-failure pipelines (agt_pipe at 66.7% failure rate)
Parallelize background services in multibg pipeline
Prompt 13: Where am I wasting the most compute time on cache misses?
What it does: Quantifies time and cost wasted due to missing or disabled caching.
Graph traversal:
HQL query:
Sample output:
agt_pipe
16
26m 58s
53%
pipeline_7d66
10
5m 39s
33%
pipeline_0e7b
2
3s
7%
Total wasted time: 32m 40s across 30 days
Recommendation: Enable Cache Intelligence on agt_pipe to save 27 min/week
Prompt 14: How can I reduce my CI costs without increasing build time?
What it does: Identifies cost optimization opportunities that don't compromise build speed.
Validation: ✅ Validated - 100% success rate
Graph traversal:
HQL queries:
Sample recommendations:
Enable Cache Intelligence: Saves 32m 40s/month (53% on agt_pipe)
Use Harness Cloud: Reduce delegate overhead (saves infrastructure costs)
Parallelize stages: Reduce wall-clock time without adding compute
Right-size runners: Match compute to workload needs
Flaky test identification
Track test reliability, identify flaky tests, and measure retry costs.
Prompt 15: Which tests are flaky in my CI pipelines?
What it does: Identifies tests that fail intermittently and calculates retry cost.
Validation: ✅ Validated - 100% success rate
Graph traversal:
HQL query:
Sample output:
integration.api.test_timeout
api-service
12
24
66%
e2e.checkout.flaky_assertion
web-frontend
8
16
75%
unit.database.connection_pool
backend
5
10
80%
Total retry cost: 45 min/week wasted on retries
Prompt 16: Which tests fail intermittently across my pipelines?
What it does: Identifies tests with inconsistent pass/fail patterns.
Validation: ✅ Validated - 100% success rate
Graph traversal:
HQL query:
Sample output:
integration.api.test_timeout
8
12
60% fail
e2e.checkout.flaky_assertion
12
8
40% fail
unit.database.connection_pool
15
5
25% fail
Prompt 17: How many build minutes are wasted on retries per week?
What it does: Calculates the cost of test retries across all pipelines.
Graph traversal:
HQL query:
Sample output:
Current
156
45 min
Previous
142
38 min
2 weeks ago
135
41 min
Average: 41 min/week wasted on test retries
Prompt 18: Which flaky tests are getting worse over time?
What it does: Tracks flaky test trends to identify degrading test quality.
Graph traversal:
HQL query:
Sample output:
integration.api.test_timeout
20% fail
40% fail
50% fail
60% fail
📈 Worsening
e2e.checkout.flaky_assertion
50% fail
45% fail
40% fail
40% fail
📉 Improving
Prompt 19: What's causing my integration tests to be flaky?
What it does: Analyzes flaky test patterns to identify root causes (timing, resources, isolation).
Graph traversal:
HQL queries:
Sample root causes:
integration.api.test_timeout
Timing issue
High duration variance (2s - 35s)
e2e.checkout.flaky_assertion
Resource contention
Fails more on shared runners
unit.database.connection_pool
Test isolation
Fails when run after specific tests
Recommendations:
Increase timeouts for timing-sensitive tests
Use dedicated runners for resource-intensive tests
Improve test isolation and cleanup
Related articles
Knowledge Graph - Understand entities and relationships
DevOps Agent - Ask these questions in natural language
Harness AI Overview - Explore AI features powered by the Knowledge Graph
Last updated
Was this helpful?