When you connect a new repository, Twill doesn’t require manual configuration. A specialized Dev Environment Agent analyzes your codebase, creates a complete sandbox environment, and gets your project running so the agent can verify its work against a real system.Documentation Index
Fetch the complete documentation index at: https://docs.twill.ai/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
The Dev Environment Agent runs when:- First task on a repository — No environment exists yet
- Environment failure detected — Existing setup has errors
What the Agent Analyzes
The agent examines your repository to understand:- Package manager — Lockfiles like
pnpm-lock.yaml,package-lock.json,poetry.lock - Framework — Next.js, Django, Rails, FastAPI, etc.
- Infrastructure —
docker-compose.yml, database requirements - CI/CD workflows — GitHub Actions, GitLab CI for environment hints
- Config files —
.env.example, framework configs, build scripts
The Bootstrap Process
The generated entrypoint script follows five phases:- System dependencies — Installs missing packages and version managers
- Project dependencies — Runs the appropriate install command for your package manager
- Infrastructure services — Starts Docker Compose and waits for healthy status
- Database setup — Runs migrations and seeds test data
- Development server — Starts your dev server in the background with logging
Learning and Persistence
Environment fixes aren’t throwaway. The Dev Environment Agent runs directly on the workspace sandbox, not in a per-task fork, so anything it installs or configures persists for every future task. Learn more about the workspace sandbox and task forks. When the agent updates the configuration:- Changes are written to special files in the sandbox
- Twill detects and validates these updates
- New configuration is persisted to the database
- Future tasks use the improved environment
For complex or non-standard setups, you can SSH into the workspace sandbox and
configure it directly. See Dev
Environment.