Skip to content

feat: Workspace Agent — the Voice, conductor for workspace + HowTo example authorship#118

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/workspace-agent
Jul 16, 2026
Merged

feat: Workspace Agent — the Voice, conductor for workspace + HowTo example authorship#118
Jammy2211 merged 1 commit into
mainfrom
feature/workspace-agent

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #116.

Overview

Adds the Workspace Agent — a new Brain conductor, the Voice: the organism's expressive function, how it speaks to practitioners (workspace examples) and teaches first-time learners (the howto register). One agent, two audience registers; the split trigger for a future dedicated HowTo agent is recorded in its AGENTS.md. Founding assessment: PyAutoMind active/workspace_examples_agent.md.

What it does (decision-only v0 — writes nothing)

  • plan (default): pyauto-brain workspace "<raw text>" | <Mind prompt path>WorkspaceDecision — library family, target repo, register (workspace|howto), placement ranked against the target's real scripts/ tree, sibling example to mirror, prose tier (WORKFLOW.md tutorial-prose split), format checklist, routing into start_dev → start_workspace → ship_workspace. A newborn target with no scripts/ tree anchors on autolens_workspace (the autoreduce_workspace bootstrap case).
  • survey: pyauto-brain workspace survey <repo> [--against <sibling>] → example-catalogue inventory + structural diff (missing/extra packages, per-package script counts).

Changes

  • agents/conductors/workspace/{AGENTS.md,workspace.sh,_workspace.py} — the conductor (stdlib-only core, clone.sh-shaped thin entrypoint).
  • bin/pyauto-brain — verb wiring (AGENT_SCRIPT/AGENT_DESC/CONDUCTOR_ORDER after refactor).
  • AGENTS.md — regenerated command-surface tables; conductor bullet; /workspace routing row; /docs footnote amended (generic docs stay /docs; example authorship routes via /workspace).
  • skills/workspace/{SKILL.md,workspace.md} + skills/COMMANDS.md (tier-1 row) + skills/route/route.md (routing row) + skills/brain/brain.md (agent set, also restoring the missing hygiene).
  • docs/concepts/agents.md — live conductor set updated (also restores hygiene + clone, which had drifted).
  • Project-discovery symlinks regenerated — includes the wake_up set missed by refactor: rename morning skill to wake_up (composition door) #115.
  • tests/test_workspace_conductor.py — 10 hermetic contract tests (PYAUTO_ROOT-pointed temp trees): decision structure, both register classifications, newborn fallback anchor, Mind-prompt-path input, survey + --against diff, exit codes, never-writes assertion.

API Changes

None to the Python libraries — this is Brain CLI/skill infrastructure only. New CLI verb pyauto-brain workspace (and /workspace command); no existing verb, skill, or entrypoint changes behaviour.

Verification

  • pytest tests/69 passed (includes the 10 new contract tests; test_skill_install discovers the new verb).
  • bin/install.sh --check-agents-surface / --check-project-discovery — no drift.
  • Manual drives: autoreduce interferometer intent → workspace register anchored on autolens_workspace/scripts/interferometer/; HowToLens intent → howto register + chapter listing; survey autolens_workspace --against autogalaxy_workspace → real diff (missing ellipse; extra cluster/group/point_source).

Gate note

Heart readiness was RED at ship time for reasons unrelated to this branch (a parallel session's dirty PyAutoLens file, stale 07-09 workspace-validation pointer, install verification not run); PyAutoBrain's own suite is green. Shipped to PR-open on explicit user acknowledgement; merge stays human.

🤖 Generated with Claude Code

…ample authorship (#116)

One agent, two audience registers (workspace | howto). Decision-only v0:
plan mode emits a WorkspaceDecision (family, target repo, register,
placement against the target's real scripts/ tree, sibling to mirror,
prose tier, format checklist); survey mode inventories/diffs example
catalogues (the autoreduce_workspace bootstrap tool). Never writes.

Wiring: dispatcher verb + regenerated command-surface tables, /workspace
skill body + wrapper, COMMANDS.md + routing rows, conductor bullet and
/docs footnote in AGENTS.md, docs/concepts/agents.md live-conductor set
(also restoring hygiene + clone), brain.md agent set, project-discovery
symlinks (incl. the wake_up set missed by #115). Hermetic contract tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

feat: Workspace Agent — conductor for workspace + HowTo example authorship

1 participant