Assumer
Code
Guide
Code Examples
Learn how to build a project with Assumer: real tasks you can hand to the agent in your own codebase, and what it does with them
Quick Example
Dashboard Feature
Prompt
Add an analytics page to our Next.js dashboard. Reuse the chart components in
src/components/charts and the existing /api/stats route. Plan first.
Output
- ✓ Plan Reviewed First
- ✓ Existing Code Read
- ✓ New Page in src/app
- ✓ Chart Components Reused
- ✓ Loading & Error States
- ✓ Tests Added
- ✓ Lint & Format Run
- ✓ Diff Ready to Review
Multi-file Refactor
Prompt
Move the customer and deal logic in our CRM out of the React components into a
services layer, without changing behaviour.
Result
- ✓ Plan with File List
- ✓ Services Extracted
- ✓ Components Updated
- ✓ Imports Fixed Project-wide
- ✓ Tests Still Passing
- ✓ One Reviewable Diff
Authentication
Prompt
Add GitHub OAuth sign-in next to the existing email login. Keep the current session handling.
Generated
- ✓ OAuth Callback Route
- ✓ Sign-in Button
- ✓ Existing Sessions Reused
- ✓ .env.example Updated
- ✓ Protected Routes
- ✓ Callback Tests Added
Database Example
Prompt
Write a PostgreSQL migration for our ecommerce schema and update the ORM models to match.
Tables in the Migration
- Users
- Products
- Categories
- Orders
- Payments
- Reviews
- Coupons
- Wishlist
AI Chat Example
Prompt
Add a chat endpoint that uses the OpenAI API with conversation history, following the patterns in src/server.
Generated
- ✓ Chat UI
- ✓ Streaming Response
- ✓ Markdown Support
- ✓ Code Highlighting
- ✓ Conversation Memory
Deployment Example
Commands
assumer run "run the tests and fix any failures"
git commit -am "Add analytics page"
git push origin feature/analytics
Result
- ✓ Tests Passing
- ✓ Changes Committed
- ✓ Branch Pushed
- ✓ PR Opened for Review
- ✓ CI Runs Your Pipeline
- ✓ Shipped by Your Existing Host