Coder
The Coder is your autonomous coding agent. Assign it a task in Momental, and it:
- Spins up an isolated cloud container
- Clones your repository
- Understands the codebase semantically via Code Intelligence
- Implements the feature or fix
- Runs your tests
- Opens a pull request
- Reports back with a summary
It never stores your source code. Each container is destroyed after the task completes. Works best on tasks with clear acceptance criteria — the more specific, the better.
What the Coder does
When you assign a task to the Coder, it reads your task description, acceptance criteria, and relevant knowledge graph context (engineering DECISION and PRINCIPLE atoms). Then it implements the work using a frontier AI model with full access to your codebase.
Before touching any file, it uses Code Intelligence to understand the blast radius of the change — what other functions call the code it's modifying, what tests cover it, and what would break. It implements with context, not just isolated code generation.
When it activates
- A task has clear acceptance criteria and is assigned to the Coder
- An epic subtask is ready to implement
- A bug is reported and needs a fix with a PR
- Tests need to be written for existing code
- A refactor has been planned and needs execution
What it needs
- GitHub connected (Settings → Connections → GitHub)
- A task with a clear description and acceptance criteria
- The more specific the AC, the better the output
- Optionally: Code Intelligence indexed (makes it significantly better on large codebases)
What it produces
- A pull request opened against your default branch
- A branch named
feat/<task-slug> - A summary comment on the task with what was done and test results
- Vega auto-reviews the PR if connected
Security model
Your code is protected by multiple layers of isolation. The Coder never has access to another customer's repository, credentials, or data.
- Ephemeral containers — each execution runs in a dedicated, isolated container destroyed after the task. No persistent filesystem between tasks.
- Single-tenant credentials — the container receives only your team's GitHub token and repo URL. No other credentials.
- Per-team tokens — GitHub App installation tokens are generated on-demand with 1-hour expiry and are never stored.
- No source code stored — the Coder clones your repo into an ephemeral container. Code Intelligence builds a semantic map (not full source files), scoped exclusively to your team.
Setup
- Subscribe to a Pro or Enterprise plan — visit Settings → Billing.
- Connect GitHub — go to Connections → GitHub and install the Coder GitHub App on your organization.
- (Recommended) Index your codebase — run the indexer so the Coder understands your code semantically:
npm install -g @momentalos/cli momental-indexer --dir . --api-key mmt_YOUR_KEY --name your-repo - Assign a task — create a task with clear acceptance criteria and assign it to the Coder from the Plans page.
Best for
- Feature implementation from task descriptions
- Bug fixes with full codebase context
- Test writing for existing code
- Refactoring with blast-radius awareness
- Documentation generation from source
- Dependency updates and migration scripts