feat: AgentsView integration for fullsend runs#9
Merged
Conversation
Downloads fullsend agent transcripts from GitHub Actions (rhdh-agentic, rhdh-plugins) and serves them in AgentsView for browsing, searching, and cost tracking. Sessions are grouped by repo and agent type (e.g. rhdh-plugins_review, rhdh-agentic_code) with issue numbers and run metadata searchable via FTS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR adds an “AgentsView integration” workflow for fullsend runs by introducing a fetch script that downloads GitHub Actions artifacts, restructures transcripts into an AgentsView-ingestible layout, and provides a compose-based launcher to run AgentsView locally (Podman preferred, Docker fallback).
Changes:
- Add
fetch-fullsend-runs.shto downloadfullsend-*artifacts and rewrite transcripts intoagentsview/runs/<repo>_<agent>/...jsonlwith prepended metadata. - Add an
agentsview/Makefilewithfetch,up, anddowntargets to automate fetching and starting the viewer. - Add
docker-compose.fullsend.yamlto run AgentsView against the localruns/directory, and ignoreagentsview/runs/in git.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| agentsview/scripts/fetch-fullsend-runs.sh | Downloads fullsend artifacts and transforms transcripts into AgentsView session format with metadata. |
| agentsview/Makefile | Adds fetch/up/down targets to fetch runs and start/stop AgentsView via Podman/Docker compose. |
| agentsview/docker-compose.fullsend.yaml | Defines AgentsView container setup and mounts ./runs read-only for ingestion. |
| agentsview/.gitignore | Ignores generated runs/ output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+83
to
+87
| # Extract issue number from artifact directory name: agent-<type>-<issue>-<hash> | ||
| issue_num=$(find "$tmpdir" -mindepth 1 -maxdepth 1 -type d -name 'agent-*' \ | ||
| | head -1 | xargs basename 2>/dev/null \ | ||
| | grep -oE 'agent-[a-z]+-([0-9]+)' | grep -oE '[0-9]+$' || true) | ||
| [ -z "$issue_num" ] && issue_num="unknown" |
|
|
||
| echo "Done: ${total_fetched} fetched, ${total_skipped} skipped" | ||
| if [ "$total_fetched" -gt 0 ] || [ "$total_skipped" -gt 0 ]; then | ||
| echo "Start viewer: make fullsend-up (or: podman compose -f docker-compose.fullsend.yaml up -d)" |
| # Fetch runs + start AgentsView container (Podman preferred, Docker fallback) | ||
| up: fetch | ||
| $(COMPOSE) -f docker-compose.fullsend.yaml up -d | ||
| @echo "AgentsView: http://$$(hostname).local:$${AGENTSVIEW_PORT:-8081}" |
Comment on lines
+5
to
+6
| ports: | ||
| - "0.0.0.0:${AGENTSVIEW_PORT:-8081}:8080" |
| @@ -0,0 +1,20 @@ | |||
| services: | |||
| agentsview: | |||
| image: ghcr.io/kenn-io/agentsview:latest | |||
Comment on lines
+67
to
+71
| run_meta=$(gh api "repos/${repo}/actions/runs/${run_id}" \ | ||
| --jq '{title:.display_title, conclusion:.conclusion, url:.html_url}' 2>/dev/null) || continue | ||
| title=$(echo "$run_meta" | jq -r '.title') | ||
| conclusion=$(echo "$run_meta" | jq -r '.conclusion') | ||
| run_url=$(echo "$run_meta" | jq -r '.url') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rhdh-plugins_review,rhdh-agentic_code) with issue numbers in filenames and FTS-searchable metadataUsage
Test plan
make fetchand verify transcripts download intoruns/make upand verify AgentsView shows sessions grouped by repo+agentAGENTSVIEW_HOSTset🤖 Generated with Claude Code