Skip to content

agent templates and also drag and drop agents between workspaces - #102

Merged
danielehrhardt merged 5 commits into
mainfrom
godmode/19-agent-templates-and-also-drag-and-drop-a
Oct 7, 2026
Merged

danielehrhardt merged 5 commits into
mainfrom
godmode/19-agent-templates-and-also-drag-and-drop-a

Conversation

@danielehrhardt

Copy link
Copy Markdown
Contributor

The last run had already finished the work before it timed out. This time I only merged the newest main (#99, no conflicts) and re-checked: type check passes and the agent and team tests pass (74/74).

From the earlier run: the full core suite had 4 failures out of 1592. All 4 also fail on an unchanged main, so they come from this machine's setup, not this change (a background upkeep test, a Claude Code auto-update test, and two folder tests). All commits are authored by ••••••••.

Summary (PR description)

Role templates (like companies.sh from Paperclip)

  • New leadership roles, each with a job description, instructions and (where it fits) a schedule: CEO, CTO, CMO, CFO, COO, Head of Product, Head of Sales, Office Manager.
    • The CEO runs a weekly company review across the department heads.
    • The CFO writes a monthly finance report.
    • The CMO and Head of Sales do weekly planning.
  • New specialist roles: Software Engineer, Code Reviewer, Uptime Watcher, Content Writer, SEO Specialist, Outreach Writer, Support Agent, Executive Assistant, Recruiter.
  • Every template has a department, and the New agent page filters roles by department.

Org chart templates

  • Templates are now multi-level org charts, in two kinds:
    • Companies: Software startup, Agency, Online shop, SaaS company (21 agents), Founder's office.
    • Teams: Back office, Marketing, Sales, Engineering, Product & QA.
  • Each card shows a small org chart preview.
  • The install dialog shows the full chart. You can untick seats (a removed lead's team then reports one level up) and choose where they work: a new workspace (the default for companies), Global or an existing workspace. Their schedules can be set up in the same step.
  • Leads can hand work to their reports. The top of the chart reports to Godmode.

Drag and drop in the Agents view

  • Org chart view: drop an agent on another agent to make it their report, on a workspace panel to move it there, or on Godmode to report to Godmode directly.
  • Grid and list views: drop an agent on a workspace section.
  • While you drag, a bar at the bottom lists every workspace, including empty ones and ones not on screen.
  • The dragged card says what will happen, e.g. "Report to CTO in Software startup · with 3 reports". Drops that would create a loop are refused with the reason.
  • Moving a lead moves its whole team along and keeps their reporting lines. The confirmation has an Undo button that puts everyone back.
  • The agent's "…" menu has a new "Move to" submenu for the same move without dragging.
  • Backend: new POST /api/agents/:id/move endpoint, with tests.

Fix from your screenshot: workspace headings like "Make Money with AI" no longer run into the "1 working / 1 needs you" text. In narrow panels the stats shrink to a dot and a number, with the full text on hover.

Screenshots

In workspace/task-19/:

  • 01-drag-onto-lead.png
  • 02-team-moved-with-undo.png
  • 03-invalid-drop.png
  • 04-grid-drop-on-workspace.png
  • 05-company-templates.png
  • 06-team-templates.png
  • 07-roles-leadership.png
  • 08-install-dialog.png
  • 09-company-installed.png
  • 10-move-to-menu.png

What you need to do: review and merge the PR once Godmode opens it. The desktop app only gets this after the next update script run (it hasn't been reinstalled since 2026-10-04).


Task #19 · done by Godmode with Godmode Bot

- New agent page: whole companies and teams as org charts, roles filtered by department
- Install dialog: preview the chart, leave seats out, pick or create the workspace
- Agents view: drag agents onto a lead or a workspace, dock with every workspace, undo
- Agent menu: Move to workspace
- Workspace headings no longer overlap their stats
@danielehrhardt
danielehrhardt merged commit 404ddaf into main Oct 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant