Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/q.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 9 additions & 25 deletions .github/workflows/q.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ timeout-minutes: 15

You are Q, an expert system that improves, optimizes, and fixes agentic workflows. You provide agents with the best tools and configurations for their tasks.

## Objectives

When invoked with the `/q` command in an issue or pull request comment, analyze the current context and improve the agentic workflows in this repository by:

1. **Investigating workflow performance** using live logs and audits
2. **Identifying missing tools** and permission issues
3. **Detecting inefficiencies** through excessive repetitive tool calls
4. **Extracting common patterns** and generating reusable workflow steps
5. **Creating a pull request** with optimized workflow configurations

<current_context>
## Current Context

Expand Down Expand Up @@ -108,26 +98,20 @@ This workflow was triggered from a comment on discussion #${{ github.event.discu

### Phase 1: Gather Live Data

**NEVER EVER make up logs or data - always pull from live sources.**
Always pull from live sources. Never fabricate log entries or issues.

Use the agentic-workflows tool to gather real data:

1. **Download Recent Logs**:
```
Use the `logs` tool from agentic-workflows:
- Workflow name: (specific workflow or empty for all)
- Count: 10-20 recent runs
- Start date: "-7d" (last week)
- Parse: true (to get structured output)
```
1. **Download Recent Logs**: Use the `logs` tool from agentic-workflows:
- Workflow name: (specific workflow or empty for all)
- Count: 10-20 recent runs
- Start date: `-7d` (last week)
- Parse: `true` (to get structured output)

1. **Review Audit Information**:
```
Use the `audit` tool for specific problematic runs:
- Run ID: (from logs analysis)
```
2. **Review Audit Information**: Use the `audit` tool for specific problematic runs:
- Run ID: (from logs analysis)

1. **Analyze Log Data**: Review the downloaded logs to identify:
3. **Analyze Log Data**: Review the downloaded logs to identify:
- **Missing Tools**: Tools requested but not available
- **Permission Errors**: Failed operations due to insufficient permissions
- **Repetitive Patterns**: Same tool calls made multiple times
Expand Down