Workspaces
Workspaces are isolated environments where AgentGate executes work orders. Each run gets its own workspace, ensuring security and reproducibility.What Is a Workspace
A workspace is:- Isolated: Separate from other runs and your production systems
- Temporary: Created for the run, destroyed after completion
- Configured: Set up from your workspace source (repo, template, URL)
- Secure: Sandboxed with limited network and resource access
Workspace Sources
Git Repositories
Clone from Git providers:- GitHub
- GitLab
- Bitbucket
- Any Git URL
Templates
Start from pre-configured templates:- Standard project structures
- Pre-installed dependencies
- Configured tooling
- Best practice setups
URL Sources
Fetch from a URL:.zip.tar.gz.tar
Workspace Lifecycle
1
Creation
Workspace is created from the specified source. Files are downloaded/cloned.
2
Setup
Dependencies are installed based on detected project type (npm install, pip install, etc.).
3
Execution
AI agent runs within the workspace, making changes to files.
4
Verification
Tests and checks run against the modified workspace.
5
Artifact Collection
Results, diffs, and outputs are collected.
6
Cleanup
Workspace is destroyed. Only artifacts persist.
Workspace Isolation
Security Model
Each workspace is isolated:| Aspect | Restriction |
|---|---|
| File system | Cannot access host or other workspaces |
| Network | Limited outbound access (configurable) |
| Resources | CPU and memory limits applied |
| Time | Maximum execution duration |
Resource Limits
Default limits per workspace:- CPU: 2 cores
- Memory: 4 GB
- Disk: 10 GB
- Duration: 30 minutes
Enterprise plans may have higher limits. Contact support for custom configurations.
Network Access
By default, workspaces can access:- Package registries (npm, PyPI, etc.)
- Git providers for dependencies
- Configured external APIs
- Your internal networks
- Other AgentGate workspaces
- Unrestricted internet
Git Workspace Configuration
Branch Selection
Specify the branch to clone:Specific Commit
Pin to a specific commit for reproducibility:Shallow Clone
For large repositories, shallow clones are used by default (last 100 commits).Private Repository Access
For private repositories, configure credentials in your organization:- Go to Settings → Integrations
- Connect your Git provider (GitHub, GitLab, etc.)
- Grant access to required repositories
Workspace Outputs
After execution, workspaces produce:Diffs
Changes made to files:Pull Requests
For Git sources, AgentGate can create PRs:Artifacts
Collected outputs like:- Test results
- Coverage reports
- Build artifacts
- Logs
Best Practices
Repository Size
Consider:- Using sparse checkouts for monorepos
- Excluding large binary files
- Using templates for common setups
Dependencies
- Use lock files (package-lock.json, poetry.lock)
- Pin dependency versions for reproducibility
- Include necessary dev dependencies
Configuration
Ensure your workspace has:- Test configuration that works headlessly
- Build scripts that don’t require user input
- Environment variables documented