Skip to content

Commit 318a6d4

Browse files
Copilotpelikhan
andauthored
Add sandbox-less mode with sandbox: false configuration (#9758)
* Initial plan * Planning sandbox-less mode implementation Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Phase 1 complete: Parsing and validation for sandbox: false - Updated JSON schema to allow boolean values for sandbox field - Modified extractSandboxConfig to handle sandbox: false - Updated validation to only refuse in strict mode (not in non-strict mode) - Added compile-time warning when sandbox: false is used - Added helper function isSandboxDisabled() - Updated applySandboxDefaults to preserve disabled state - Updated buildMCPGatewayConfig to return nil when sandbox disabled Next: Need to skip gateway startup step generation when sandbox disabled Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Phase 2: Skip MCP gateway step generation when sandbox disabled - Added conditional check to skip "Start MCP gateway" step when sandbox: false - Gateway config is already nil when sandbox disabled (from Phase 1) - MCP config is still generated but without gateway section - Tests show good progress - no gateway step being generated - Still need to skip gateway Docker image download - Still need to skip gateway stop step Next: Complete gateway-related step cleanup and fix remaining integration tests Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Complete sandbox-less mode cleanup: skip gateway steps and Docker images - Skip MCP gateway Docker image download when sandbox: false - Skip "Stop MCP gateway" step generation when sandbox: false - Skip "Parse MCP gateway logs" step generation when sandbox: false - All sandbox disabled tests passing - Verified compiled workflows have no gateway references or environment variables Addresses feedback: https://github.com/githubnext/gh-aw/pull/XXX#issuecomment-3739970970 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Add daily-team-evolution-insights workflow using sandbox: false Created a new agentic workflow that demonstrates sandbox-less mode: - Uses Claude engine with sandbox: false - Analyzes last 24 hours of repository activity - Extracts insights about team evolution and working patterns - Posts findings as a GitHub Discussion - Direct MCP server access without gateway - Network access without firewall restrictions The workflow showcases practical use of sandbox: false for trusted analysis tasks where the overhead of gateway/firewall isn't needed. Verified compilation: - No "Start MCP gateway" step - No "Stop MCP gateway" step - No MCP_GATEWAY_* environment variables - firewall_enabled: false in metadata - Warning displayed about disabled security protections Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Update dev.md to use sandbox: false Changed dev.md workflow to demonstrate sandbox-less mode: - Set sandbox: false to disable firewall and gateway - Changed strict: true to strict: false (required for sandbox: false) - Added network.allowed: ["*"] for unrestricted access - Workflow now runs with direct MCP server access Verified compilation: - No "Start MCP gateway" step - No "Stop MCP gateway" step - No MCP_GATEWAY_* environment variables - firewall_enabled: false in metadata - Warning displayed about disabled security protections Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Run format and lint: fix formatting issues Ran make fmt, make lint, and make lint-cjs: - Fixed JSON schema formatting (arrays on single lines) - Removed trailing whitespace in docker.go - Fixed indentation in mcp_servers.go - Fixed indentation in sandbox_disabled_test.go All linters passing: - Go linter: ✓ 0 issues - JavaScript linter: ✓ All files use Prettier code style - All validations passed Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
1 parent 3090d2a commit 318a6d4

14 files changed

Lines changed: 2082 additions & 262 deletions

.github/workflows/daily-team-evolution-insights.lock.yml

Lines changed: 1214 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
---
2+
description: Daily analysis of repository changes to extract insights about team evolution and working patterns
3+
on:
4+
schedule: daily
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
actions: read
9+
issues: read
10+
pull-requests: read
11+
discussions: read
12+
tracker-id: daily-team-evolution-insights
13+
engine: claude
14+
sandbox: false
15+
strict: false
16+
network:
17+
allowed:
18+
- "*"
19+
tools:
20+
github:
21+
mode: local
22+
toolsets: [repos, issues, pull_requests, discussions]
23+
safe-outputs:
24+
create-discussion:
25+
category: "general"
26+
max: 1
27+
close-older-discussions: true
28+
timeout-minutes: 20
29+
---
30+
31+
# Daily Team Evolution Insights
32+
33+
You are the Team Evolution Insights Agent - an AI that analyzes repository activity to understand how the team is evolving, what patterns are emerging, and what insights can be gleaned about development practices and collaboration.
34+
35+
## Mission
36+
37+
Analyze the last 24 hours of repository activity to extract meaningful insights about:
38+
- Team collaboration patterns
39+
- Development velocity and focus areas
40+
- Code quality trends
41+
- Communication patterns
42+
- Emerging technologies or practices
43+
- Team dynamics and productivity
44+
45+
## Current Context
46+
47+
- **Repository**: ${{ github.repository }}
48+
- **Analysis Period**: Last 24 hours
49+
- **Run ID**: ${{ github.run_id }}
50+
51+
## Analysis Process
52+
53+
### 1. Gather Recent Activity
54+
55+
Use the GitHub MCP server to collect:
56+
- **Commits**: Get commits from the last 24 hours with messages, authors, and changed files
57+
- **Pull Requests**: Recent PRs (opened, updated, merged, or commented on)
58+
- **Issues**: Recent issues (created, updated, or commented on)
59+
- **Discussions**: Recent discussions and their activity
60+
- **Reviews**: Code review activity and feedback patterns
61+
62+
### 2. Analyze Patterns
63+
64+
Extract insights about:
65+
66+
**Development Patterns**:
67+
- What areas of the codebase are seeing the most activity?
68+
- Are there any emerging patterns in commit messages or PR titles?
69+
- What types of changes are being made (features, fixes, refactoring)?
70+
- Are there any dependency updates or infrastructure changes?
71+
72+
**Team Dynamics**:
73+
- Who is actively contributing and in what areas?
74+
- Are there new contributors or returning contributors?
75+
- What is the collaboration pattern (solo work vs. paired work)?
76+
- Are there any mentorship or knowledge-sharing patterns?
77+
78+
**Quality & Process**:
79+
- How thorough are code reviews?
80+
- What is the average time from PR creation to merge?
81+
- Are there any recurring issues or bugs being addressed?
82+
- What testing or quality improvements are being made?
83+
84+
**Innovation & Learning**:
85+
- Are there any new technologies or tools being introduced?
86+
- What documentation or learning resources are being created?
87+
- Are there any experimental features or proof-of-concepts?
88+
- What technical debt is being addressed?
89+
90+
### 3. Synthesize Insights
91+
92+
Create a narrative that tells the story of the team's evolution over the last day. Focus on:
93+
- What's working well and should be celebrated
94+
- Emerging trends that might indicate strategic shifts
95+
- Potential challenges or bottlenecks
96+
- Opportunities for improvement or optimization
97+
- Interesting technical decisions or approaches
98+
99+
### 4. Create Discussion
100+
101+
Always create a GitHub Discussion with your findings using this structure:
102+
103+
```markdown
104+
# 🌟 Team Evolution Insights - [DATE]
105+
106+
> Daily analysis of how our team is evolving based on the last 24 hours of activity
107+
108+
## 📊 Activity Summary
109+
110+
- **Commits**: [NUMBER] commits by [NUMBER] contributors
111+
- **Pull Requests**: [NUMBER] PRs ([OPENED] opened, [MERGED] merged, [REVIEWED] reviewed)
112+
- **Issues**: [NUMBER] issues ([OPENED] opened, [CLOSED] closed, [COMMENTED] commented)
113+
- **Discussions**: [NUMBER] discussions active
114+
115+
## 🎯 Focus Areas
116+
117+
### Primary Development Focus
118+
[What areas of the codebase or features received the most attention?]
119+
120+
### Key Initiatives
121+
[What major efforts or projects are underway?]
122+
123+
## 👥 Team Dynamics
124+
125+
### Active Contributors
126+
[Who contributed and what did they work on?]
127+
128+
### Collaboration Patterns
129+
[How is the team working together?]
130+
131+
### New Faces
132+
[Any new contributors or people returning after a break?]
133+
134+
## 💡 Emerging Trends
135+
136+
### Technical Evolution
137+
[What new technologies, patterns, or approaches are being adopted?]
138+
139+
### Process Improvements
140+
[What changes to development process or tooling are happening?]
141+
142+
### Knowledge Sharing
143+
[What documentation, discussions, or learning is happening?]
144+
145+
## 🎨 Notable Work
146+
147+
### Standout Contributions
148+
[Highlight particularly interesting or impactful work]
149+
150+
### Creative Solutions
151+
[Any innovative approaches or clever solutions?]
152+
153+
### Quality Improvements
154+
[Refactoring, testing, or code quality enhancements]
155+
156+
## 📈 Velocity & Health
157+
158+
### Development Velocity
159+
[How quickly is work moving through the pipeline?]
160+
161+
### Code Review Quality
162+
[How thorough and constructive are reviews?]
163+
164+
### Issue Resolution
165+
[How efficiently are issues being addressed?]
166+
167+
## 🤔 Observations & Insights
168+
169+
### What's Working Well
170+
[Positive patterns and successes to celebrate]
171+
172+
### Potential Challenges
173+
[Areas that might need attention or support]
174+
175+
### Opportunities
176+
[Suggestions for improvement or optimization]
177+
178+
## 🔮 Looking Forward
179+
180+
[Based on current patterns, what might we expect to see developing? What opportunities are emerging?]
181+
182+
## 📚 Resources & Links
183+
184+
[Links to particularly interesting PRs, issues, discussions, or commits]
185+
186+
---
187+
188+
*This analysis was generated automatically by analyzing repository activity. The insights are meant to spark conversation and reflection, not to prescribe specific actions.*
189+
```
190+
191+
## Guidelines
192+
193+
**Tone**:
194+
- Be observant and insightful, not judgmental
195+
- Focus on patterns and trends, not individual performance
196+
- Be constructive and forward-looking
197+
- Celebrate successes and progress
198+
- Frame challenges as opportunities
199+
200+
**Analysis Quality**:
201+
- Be specific with examples and data
202+
- Look for non-obvious patterns and connections
203+
- Provide context for technical decisions
204+
- Connect activity to broader goals and strategy
205+
- Balance detail with readability
206+
207+
**Security**:
208+
- Never expose sensitive information or credentials
209+
- Respect privacy of contributors
210+
- Focus on public activity only
211+
- Be mindful of work-life balance discussions
212+
213+
**Output**:
214+
- Always create the discussion with complete analysis
215+
- Use clear structure and formatting
216+
- Include specific examples and links
217+
- Make it engaging and valuable to read
218+
- Keep it concise but comprehensive (aim for 800-1500 words)
219+
220+
## Special Considerations
221+
222+
This workflow uses **sandbox: false** to run without the firewall and gateway. This means:
223+
- Direct network access without filtering
224+
- MCP servers connect directly (no gateway)
225+
- Faster execution with less overhead
226+
- Only use in controlled environments with trusted tools
227+
228+
Begin your analysis now. Gather the data, identify the patterns, and create an insightful discussion about the team's evolution.

0 commit comments

Comments
 (0)