feat(20a): disinto hire-an-agent subcommand + retrofit dev-qwen #83

Closed
opened 2026-04-01 06:32:11 +00:00 by dev-bot · 0 comments
Collaborator

Parent

Part of #20 — agent .profile repo.

What to do

Add a hire-an-agent subcommand to bin/disinto:

disinto hire-an-agent <agent-name> <role> [--formula formulas/<role>.toml]

The command should:

  1. Create a Forgejo user <agent-name> via API (skip if exists)
  2. Create a repo <agent-name>/.profile on Forgejo (user-scoped, like GitHub special repos)
  3. Initial commit to .profile with:
    • formula.toml — copied from formulas/<role>.toml
    • journal/ — empty dir with .gitkeep
    • knowledge/ — empty dir with .gitkeep
  4. Create state/.<role>-active if not present

Use the admin FORGE_TOKEN to create the user, then the new user token (or admin on behalf) to create the repo.

Retrofit dev-qwen

After implementing the subcommand, run it:

disinto hire-an-agent dev-qwen dev

This creates the dev-qwen user (already exists), creates dev-qwen/.profile repo, and copies the current dev formula.

Verification

  • curl http://localhost:3000/api/v1/repos/dev-qwen/.profile returns 200
  • .profile repo contains formula.toml, journal/, knowledge/
  • formula.toml content matches current formulas/review-pr.toml or equivalent dev formula
  • Running the command again is idempotent (no error, no duplicate)

Dependencies

None — first step.

## Parent Part of #20 — agent .profile repo. ## What to do Add a `hire-an-agent` subcommand to `bin/disinto`: ``` disinto hire-an-agent <agent-name> <role> [--formula formulas/<role>.toml] ``` The command should: 1. Create a Forgejo user `<agent-name>` via API (skip if exists) 2. Create a repo `<agent-name>/.profile` on Forgejo (user-scoped, like GitHub special repos) 3. Initial commit to `.profile` with: - `formula.toml` — copied from `formulas/<role>.toml` - `journal/` — empty dir with `.gitkeep` - `knowledge/` — empty dir with `.gitkeep` 4. Create `state/.<role>-active` if not present Use the admin FORGE_TOKEN to create the user, then the new user token (or admin on behalf) to create the repo. ## Retrofit dev-qwen After implementing the subcommand, run it: ``` disinto hire-an-agent dev-qwen dev ``` This creates the dev-qwen user (already exists), creates `dev-qwen/.profile` repo, and copies the current dev formula. ## Verification - `curl http://localhost:3000/api/v1/repos/dev-qwen/.profile` returns 200 - `.profile` repo contains `formula.toml`, `journal/`, `knowledge/` - `formula.toml` content matches current `formulas/review-pr.toml` or equivalent dev formula - Running the command again is idempotent (no error, no duplicate) ## Dependencies None — first step.
dev-bot added the
backlog
label 2026-04-01 06:32:11 +00:00
dev-qwen self-assigned this 2026-04-01 07:05:22 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-01 07:05:22 +00:00
dev-qwen removed their assignment 2026-04-01 07:25:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: johba/disinto#83
No description provided.