Skip to content

Migrate agent configs and guidance to codeassembly #377

Description

@williamthorsen

Migrate agent guidance to codeassembly

Problem

General agent guidance files (AGENTS.md, CLAUDE.md) are version-controlled in williamthorsen/configs.macos, but they belong with the agent tooling in codeassembly. This creates a split-brain situation where the agent system's content (skills, subagents) lives in one repo and the guidance that shapes agent behavior lives in another.

Context

  • The codeassembly agents CLI already installs skills and subagents via copy/symlink to platform directories
  • configs.macos manages user-specific dotfile symlinks via ensure-user-configuration.sh
  • ~/.agents/ is currently a directory symlink to configs.macos, containing both AGENTS.md (general guidance) and preferences.yaml (user-specific)
  • The Claude CLAUDE.md currently contains shared formatting preferences that belong in the common AGENTS.md

Solution

  1. Add a content/guidance/ directory to the agents package with shared and platform-specific guidance files
  2. Extend the agents CLI install command to install guidance files: shared AGENTS.md to ~/.agents/, platform-specific files to each platform's home directory. Track them in the manifest for drift detection.
  3. Merge writing style and prompt formatting from ~/.claude/CLAUDE.md into the shared AGENTS.md. Reduce CLAUDE.md to a thin shim.
  4. Update configs.macos: remove migrated guidance files, change ~/.agents/ from a directory symlink to an individual file symlink for preferences.yaml only

Acceptance criteria

  • content/guidance/shared/AGENTS.md contains the full shared guidance (including merged formatting preferences)
  • content/guidance/_platforms/claude/CLAUDE.md is a thin shim referencing ~/.agents/AGENTS.md
  • content/guidance/_platforms/rovodev/AGENTS.md is a thin shim referencing ~/.agents/AGENTS.md
  • codeassembly-agents install copies/symlinks guidance files to the correct locations
  • codeassembly-agents install --link symlinks guidance files
  • Guidance files appear in the manifest with drift detection
  • codeassembly-agents uninstall removes installed guidance files
  • codeassembly-agents status reports guidance file status
  • New/modified behavior in this change is covered by tests

Metadata

Metadata

Labels

featureAdded or improved external functionalityscope:agents

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions