YouMind
Sign in

How to Build a Software Factory with Viktor Code (Full Setup)

@sairahul1
ENGLISHDec 02, 2026
308K
221
56
20
30

TL;DR

A detailed walkthrough of using Viktor Code to generate multiple pull requests from a single high-level goal, emphasizing the importance of CI setup, clear documentation, and human review.

Peter, the co-founder of Viktor, coded with Viktor for 2 hours 10 minutes.

228 PRs were merged from that session over two days.

Rahul - inline image

I read that and had one question.

What does that look like on my own code?

So this morning I gave Viktor one goal from my backlog.

39 minutes later I had 9 pull requests across 5 repos.

Nothing was merged.

Every one of them is waiting for my yes.

Here is the full setup, with the real screenshots.

What a software factory is

A factory is not one big prompt.

It is a line.

→ A goal goes in

→ Small pull requests come out

→ Tests run on every one

→ A human says yes or no

You stop typing every line.

You start reviewing.

Who Viktor is

Viktor is an AI employee.

He lives in Slack, Teams, email, web and desktop apps.

He has his own computer in the cloud.

→ 80,000+ teams

→ 9,800+ tools

Viktor Code is Viktor doing engineering work.

He reads your repos, opens PRs and watches them after he hands them back.

Every action that matters waits for a human yes.

Step 1: Hire Viktor

Start here: https://ref.viktor.com/rahul-x-8

Code RAHUL100 gets you up to $100 in credits.

Then:

→ Add him to your Slack

→ Connect your GitHub

→ Pick the repos he can work in

That is the whole install.

Step 2: Write the map first

My product is DevRelay: AI DevRel for startups.

The code sits in four repos. The docs sit in a fifth.

Before I gave Viktor anything, I already had one file: AGENTS.md.

It explains how the repos fit together.

A new hire reads the docs before touching code.

So does Viktor.

If you don't have this file, write it before anything else.

One page is enough.

Step 3: Give him a goal, not a task

This is the exact message I sent him in Slack at 8:43 AM:

text
1Goal: DevRelay customers should be able to see which of their
2published posts get clicks.
3
4Today we only add UTM tags to links, so nobody can tell what
5worked. I want tracked short links with a click counter, a stats
6card on each published post in the web app, and a total in the
7admin panel.
8
9The code is in four repos on my GitHub: devrel-api, devrel-web-ui,
10devrel-admin and devrel-landing. Start by reading AGENTS.md in the
11devrel-workspace repo, it explains how everything fits together.
12The plan for this feature is in EDITORIAL_PLAN.md, section 10.7.
13
14None of the repos has CI yet. Please set that up first, so every
15pull request after it runs the tests.
16
17Split the work into small pull requests, one per repo or per step,
18and branch from main. Don't merge anything. I'll review and
19approve each one.
Rahul - inline image

Four things make this message work:

→ The outcome comes first, not the files

→ It points him to the map

→ It asks for CI before any feature

→ It says who merges: me

Copy the shape. Swap in your own goal.

Step 4: Tests before features

9 minutes after my message, the first PR was open.

It runs vet, build and test on every pull request to the API.

Rahul - inline image

Then he found something I didn't know about my own code.

Two tests passed on my Mac and failed on Linux.

He fixed both, so CI starts green.

He also told me what he left out:

→ A formatting gate, because 9 files on main aren't clean yet

→ Branch protection, because that is a repo setting and it is mine

Under three minutes later, the other three repos had CI too.

All four checks passed.

Rahul - inline image

This is the part most people skip.

Without tests, a factory just ships bugs faster.

Step 5: The feature, in small pieces

Before the feature code, he sent me the design in Slack.

My plan for this feature was only three lines.

He filled the gaps and listed two defaults I could overrule.

Then the pull requests came in:

text
18:52 devrel-api #84 CI: vet, build and test
28:54 devrel-web-ui #76 CI: typecheck and build
38:54 devrel-admin #12 CI: typecheck and build
48:54 devrel-landing #72 CI: typecheck and build
59:06 devrel-api #85 Tracked short links and click counts
69:16 devrel-web-ui #77 Clicks card on published posts
79:16 devrel-admin #13 Link clicks total
89:18 devrel-workspace #82 Docs updated to match
99:22 devrel-api #86 Links written without https://
Rahul - inline image

The big one is #85.

968 lines across 16 files, with a database migration and tests.

I read it line by line.

→ It stores no IP addresses

→ Tracking stays off until I set one config value

→ It has a "Not tested" section

That last one matters.

He told me what he did not check, so I know where to look.

Step 6: Ask for proof, not promises

The web app PR came with before and after screenshots.

He ran the app on his own computer and took them himself.

This is the new Clicks card from his PR:

Rahul - inline image

The numbers in that card are demo data he seeded to test it, plus one real click.

No customer data.

Step 7: Review like a manager

His first summary said "All 9 PRs".

I counted 8.

So I asked.

His answer:

"You're right: there are 8. I miscounted and there's no ninth."

A few minutes later there was a real ninth: a follow-up PR for links written without https://.

Rahul - inline image

He stacked it on #85 and told me the merge order.

He also said what it does not track, on purpose.

This is the lesson of the whole setup.

Viktor is fast.

The yes is still yours.

The numbers

text
1Goal sent 8:43 AM
2First PR 9 minutes
3First 8 PRs 35 minutes
4All 9 PRs 39 minutes
5Repos 5
6Lines added 1,448
7Files changed 34
8CI checks passed 4
9Merged without me 0

All from one Slack message and one follow-up question.

What happens next

Now it is my turn.

→ Merge the four CI PRs first

→ Then #85, then #86

→ Then the web app, admin and docs PRs

My deploys are manual.

So nothing reaches customers until I ship it.

The setup, in one list

→ Hire Viktor and connect your repos

→ Write one AGENTS.md that explains your code

→ Send a goal, not a task

→ Ask for CI first

→ Ask for small PRs

→ Say "don't merge anything"

→ Review every PR yourself

Peter got 228 merged PRs from 2 hours 10 minutes.

I got 9 open PRs from one message.

Different size. Same line.

Hire @viktor_com and give him the first goal from your backlog. Start free.

Code RAHUL100 gets you up to $100 in credits.

#AIemployee #everyoneships #buildinpublic

Paid Partnership

One-click save

Use YouMind for AI deep reading of viral articles

Save the source, ask focused questions, summarize the argument, and turn a viral article into reusable notes in one AI workspace.

Explore YouMind
For creators

Turn your Markdown into a clean 𝕏 article

When you publish your own long-form writing, images, tables, and code blocks make 𝕏 formatting painful. YouMind turns a full Markdown draft into a clean, ready-to-post 𝕏 article.

Try Markdown to 𝕏

More patterns to decode

Recent viral articles

Explore more viral articles