Skip to content

feat: organize agent work output into task-scoped folders (.squad/work/{issue}-{slug}/) #707

Closed as not planned

Description

@tamirdresher

Problem

When agents work on issues, research tasks, or side work, they drop output files (screenshots, PDFs, scripts, JSON, markdown reports) directly in the repo root or random locations. Over time this creates a mess — hundreds of unorganized files with no connection to the issue that produced them.

Example of what happens today:

C:\temp\tamresearch1\
├── ISSUE_342_ANALYSIS.md         ← good name, wrong location
├── captcha-py-step0.png          ← no idea what issue this belongs to
├── captcha-py-step1.png
├── extract_pdf.py                ← from which task?
├── email_body.html               ← which email?
├── pr12-full-diff.txt
├── hebrew-podcast-final.mp3
├── mvp-summit-screenshots\       ← at least this got a folder
├── blog-part1-final.md
├── ... hundreds more files ...

Proposed Solution

Agents should organize work output into task-scoped folders with a clear naming convention:

.squad/work/
├── 1752-passover-worksheets/     ← issue #1752
│   ├── 1.pdf
│   ├── extract_pdf.py
│   ├── math_links.txt
│   └── email_body.html
├── 678-git-notes-poc/            ← issue #678
│   ├── state-backend-test-results.md
│   └── architecture-diagram.md
├── research-mvp-summit-book/     ← no issue, descriptive name
│   ├── screenshots/
│   ├── all_summaries.py
│   └── Book-of-News-V3.pdf
└── 587-coordinator-restraint/    ← issue #587
    └── analysis.md

Naming Convention

{issue-number}-{kebab-case-slug}/ when linked to an issue
{descriptive-slug}/ when no issue exists (research, side work)

Implementation

  1. Coordinator instruction — add to squad.agent.md: "When spawning agents for issue work, set the work output directory to .squad/work/{issue}-{slug}/"
  2. Agent spawn prompt — include the output directory path so agents know where to write
  3. Ralph awareness — Ralph should create the work folder when claiming an issue
  4. Cleanup rule — work folders for closed issues can be archived or deleted after N days

What This Does NOT Change

  • .squad/agents/ — agent charters and history stay where they are
  • .squad/decisions/ — decisions stay in their current location
  • .squad/orchestration-log/ — logs stay in their current location
  • Only task output artifacts (files agents produce as deliverables) go in work folders

Related

Activity

  1. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    🏗️ Squad Triage — Flight (Lead)

    Issue: #707 — feat: organize agent work output into task-scoped folders (.squad/work/{issue}-{slug}/)
    Assigned to: FIDO (Quality Owner)
    Reason: Issue relates to testing/quality work

    @copilot evaluation: 🔴 Not suitable — issue involves work outside the coding agent's capability profile.

    Team roster:

    • Flight (Lead) → label: squad:flight
    • Procedures (Prompt Engineer) → label: squad:procedures
    • EECOM (Core Dev) → label: squad:eecom
    • FIDO (Quality Owner) → label: squad:fido
    • PAO (DevRel) → label: squad:pao
    • CAPCOM (SDK Expert) → label: squad:capcom
    • CONTROL (TypeScript Engineer) → label: squad:control
    • Surgeon (Release Manager) → label: squad:surgeon
    • Booster (CI/CD Engineer) → label: squad:booster
    • GNC (Node.js Runtime) → label: squad:gnc
    • Network (Distribution) → label: squad:network
    • RETRO (Security) → label: squad:retro
    • INCO (CLI UX & Visual Design) → label: squad:inco
    • GUIDO (VS Code Extension) → label: squad:guido
    • Telemetry (Aspire & Observability) → label: squad:telemetry
    • VOX (REPL & Interactive Shell) → label: squad:vox
    • DSKY (TUI Engineer) → label: squad:dsky
    • Sims (E2E Test Engineer) → label: squad:sims
    • Handbook (SDK Usability) → label: squad:handbook
    • Ralph (Work Monitor) → label: squad:ralph
    • @copilot (Coding Agent) → label: squad:copilot

    To reassign, remove the current squad:* label and add the correct one.

  2. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    📋 Assigned to EECOM (Core Dev)

    Issue: #707 — feat: organize agent work output into task-scoped folders (.squad/work/{issue}-{slug}/)

    EECOM will pick this up in the next Copilot session.

    For Copilot coding agent: If enabled, this issue will be worked automatically.
    Otherwise, start a Copilot session and say:
    EECOM, work on issue #707

  3. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    📋 Assigned to Flight (Lead)

    Issue: #707 — feat: organize agent work output into task-scoped folders (.squad/work/{issue}-{slug}/)

    Flight will pick this up in the next Copilot session.

    For Copilot coding agent: If enabled, this issue will be worked automatically.
    Otherwise, start a Copilot session and say:
    Flight, work on issue #707

  4. diberry commented on Mar 31, 2026

    @diberry
    Contributor

    🔄 Ralph status: Feature request — organize agent output into task-scoped folders. No PR. Backlog.

  5. 5 remaining items

  6. github-actions commented on Sep 11, 2026

    @github-actions
    Contributor

    🔄 Ralph — Auto-Triage

    Assigned to: Procedures
    Reason: Matched routing keyword(s): prompt, architecture, Agent charters
    Source: routing-rule

    Ralph auto-triaged this issue using routing rules.
    To reassign, swap the squad:* label.

  7. github-actions commented on Sep 11, 2026

    @github-actions
    Contributor

    🔄 Ralph — Auto-Triage

    Assigned to: Procedures
    Reason: Matched routing keyword(s): prompt, architecture, Agent charters
    Source: routing-rule

    Ralph auto-triaged this issue using routing rules.
    To reassign, swap the squad:* label.

  8. github-actions commented on Sep 11, 2026

    @github-actions
    Contributor

    🔄 Ralph — Auto-Triage

    Assigned to: Procedures
    Reason: Matched routing keyword(s): prompt, architecture, Agent charters
    Source: routing-rule

    Ralph auto-triaged this issue using routing rules.
    To reassign, swap the squad:* label.

  9. github-actions commented on Sep 11, 2026

    @github-actions
    Contributor

    🔄 Ralph — Auto-Triage

    Assigned to: Procedures
    Reason: Matched routing keyword(s): prompt, architecture, Agent charters
    Source: routing-rule

    Ralph auto-triaged this issue using routing rules.
    To reassign, swap the squad:* label.

  10. github-actions commented on Sep 13, 2026

    @github-actions
    Contributor

    🔄 Ralph — Auto-Triage

    Assigned to: architect
    Reason: No module, routing, or role keyword match — routed to Lead/Architect
    Source: lead-fallback

    Ralph auto-triaged this issue using routing rules.
    To reassign, swap the squad:* label.

  11. github-actions commented on Sep 24, 2026

    @github-actions
    Contributor

    📋 Assigned to agent-orchestration-dev (Agent Orchestration Engineer)

    Issue: #707 — feat: organize agent work output into task-scoped folders (.squad/work/{issue}-{slug}/)

    agent-orchestration-dev will pick this up in the next Copilot session.

    For Copilot coding agent: If enabled, this issue will be worked automatically.
    Otherwise, start a Copilot session and say:
    agent-orchestration-dev, work on issue #707

  12. bradygaster commented on Nov 5, 2026

    @bradygaster
    Collaborator

    Closing during 2.0 board triage (owner decision). The idea is evaluated, with prior art and an opinion, in the roll-up issue #2390. Original text remains here for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementgo:needs-researchNeeds investigationsquadSquad triage inbox — Lead will assign to a membersquad:agent-orchestration-devAssigned to agent-orchestration-dev (Agent Orchestration Engineer)triagedIssue has been triagedwave:3-laterWave 3 — backlog, future

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions