Skip to content

πŸ“– [Docs]: Central agent model β€” descriptions, AGENTS.md/CLAUDE.md pointers, and a git-isolated workspace bootstrap#31

Merged
Marius Storhaug (MariusStorhaug) merged 17 commits into
mainfrom
docs/agents-central
Jul 9, 2026

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Jul 9, 2026

Copy link
Copy Markdown
Member

The agent model is now complete: agent roles are documented once in a central Agents section, every repository can point to them, and β€” the new piece β€” an agent's first instruction bootstraps a single, git-isolated local workspace so it always starts from the same docs and memory.

New: The Agents section

A new Agents section documents the roles agents play β€” Define, Implement, Reviewer, Security Reviewer, and Agent Author β€” each grounded in the ways of working rather than restating them.

New: The workspace bootstrap

Each runtime's natively-read entry file (Copilot reads AGENTS.md; Claude Code reads CLAUDE.md, which imports the same instructions) becomes a thin bootstrap. Its first instruction clones the central repositories to a git-isolated workspace under ~/.msx:

  • ~/.msx/docs β€” how work is done (this documentation), read as local files. Changed through pull requests.
  • ~/.msx/memory β€” durable notes and prior session context. Changed by pushing to main.

Each clone carries repository-local git config only, so the workspace never touches the global git config or the repository being worked in. Setup is one idempotent script, bootstrap/Initialize-MsxWorkspace.ps1.

New: AGENTS.md and CLAUDE.md pointer files

The repository root carries an AGENTS.md and a CLAUDE.md that imports it, pointing to the central descriptions.

Changed: The agent context model

Agentic Development and AI-First Development now describe agent context as central descriptions in the docs plus per-repository pointer files and the local workspace bootstrap β€” not organization-wide agent files in a private repository.

Technical Details

  • New bootstrap/: Initialize-MsxWorkspace.ps1 (clone/pull plus isolated git config for ~/.msx/docs and ~/.msx/memory), AGENTS.template.md (the user-global entry instruction), and README.md (install steps for Claude Code and Copilot).
  • New src/docs/Agents/: index.md plus define, implement, reviewer, security-reviewer, agent-author.
  • New root AGENTS.md and CLAUDE.md (imports AGENTS.md).
  • Agentic-Development.md and Principles/AI-First-Development.md: plug-in, distribution, and three-layer models updated; added a "The workspace bootstrap" section; no .github-private reference remains.
  • zensical.toml: Agents added to navigation; index tables regenerated.
  • Companion repository created: MSXOrg/memory (private) holds the memory store; agents push notes there directly to main.
  • Validated locally: PSScriptAnalyzer clean, link/anchor and index checks pass, terminology casing verified.
Related issues

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR centralizes agent role documentation into a new Agents docs section and adds lightweight, repo-root pointer files (AGENTS.md, CLAUDE.md) so agent runtimes can discover the canonical role descriptions from a single place.

Changes:

  • Adds a new src/docs/Agents/ section with role pages (Define, Implement, Reviewer, Security Reviewer, Agent Author) and an index.
  • Updates Ways of Working principles/docs to describe the new β€œcentral descriptions + local pointer files” model (removing the prior .github-private framing).
  • Wires the new section into navigation and adds repo-root pointer files for agent tooling (AGENTS.md and CLAUDE.md).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/zensical.toml Adds the Agents section and pages to site navigation.
src/docs/Ways-of-Working/Principles/AI-First-Development.md Updates the 3-layer agent context model to reference central Agents docs + per-repo pointer files.
src/docs/Ways-of-Working/Agentic-Development.md Updates the plug-in/distribution model to point at Agents docs and AGENTS.md/CLAUDE.md.
src/docs/index.md Adds Agents to the top-level documentation map index table.
src/docs/Agents/index.md New Agents section landing page + generated index table region.
src/docs/Agents/define.md Defines the Define agent role (issue capture/refinement/planning).
src/docs/Agents/implement.md Defines the Implement agent role (delivery loop to a review-ready PR).
src/docs/Agents/reviewer.md Defines the Reviewer agent role (PR review/approval responsibilities and constraints).
src/docs/Agents/security-reviewer.md Defines the Security Reviewer role (defensive security review output and constraints).
src/docs/Agents/agent-author.md Defines the Agent Author role (maintaining role docs and keeping pointer files thin).
AGENTS.md Adds repo-root agent pointer file referencing canonical Agents + Ways of Working + Coding Standards URLs.
CLAUDE.md Adds Claude-specific entrypoint that imports AGENTS.md via @AGENTS.md.

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MariusStorhaug Marius Storhaug (MariusStorhaug) marked this pull request as ready for review July 9, 2026 11:10
…y under ~/.msx

Adds bootstrap/ (Initialize-MsxWorkspace.ps1 + AGENTS.template.md + README) and documents the model in Agentic Development. Each runtime's native entry file becomes a thin bootstrap that clones MSXOrg/docs and MSXOrg/memory to ~/.msx with repository-local git config; docs change via PR, memory pushes to main.
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title πŸ“– [Docs]: Central agent descriptions with AGENTS.md and CLAUDE.md pointers πŸ“– [Docs]: Central agent model β€” descriptions, AGENTS.md/CLAUDE.md pointers, and a git-isolated workspace bootstrap Jul 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 7 comments.

Comment thread bootstrap/Initialize-MsxWorkspace.ps1 Outdated
Comment thread bootstrap/Initialize-MsxWorkspace.ps1 Outdated
Comment thread bootstrap/Initialize-MsxWorkspace.ps1
Comment thread src/docs/Ways-of-Working/Agentic-Development.md Outdated
Comment thread bootstrap/README.md Outdated
Comment thread bootstrap/AGENTS.template.md Outdated
Comment thread bootstrap/README.md Outdated
… identity default, clone guard

Say 'modifies' not 'touches' (git reads global config; script writes only repo-local) across the script, README, template, and Agentic Development; default identity to a GitHub noreply (no personal email in a public script); throw a clear error when the target path exists but is not a git repository.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Comment thread bootstrap/Initialize-MsxWorkspace.ps1 Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Comment thread bootstrap/Initialize-MsxWorkspace.ps1
Comment thread bootstrap/Initialize-MsxWorkspace.ps1 Outdated
Comment thread bootstrap/README.md
Reword the inline identity comment to say the script only writes repo-local config (git still reads global/system); add an explicit README warning to override -UserName/-UserEmail when not the maintainer.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Comment thread bootstrap/Initialize-MsxWorkspace.ps1
Comment thread bootstrap/README.md
Comment thread AGENTS.md Outdated
Copilot review round 4 on #31: replace restated rules (branch naming, draft timing, mark-ready criteria) with links to Branching and Merging, Git Worktrees, Contribution Workflow, and Definition of Ready and Done β€” consistent with 'this file points; it never defines.'

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

Comment thread bootstrap/Initialize-MsxWorkspace.ps1 Outdated
Comment thread bootstrap/README.md
Comment thread bootstrap/README.md
Comment thread bootstrap/AGENTS.template.md

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.

Comment thread bootstrap/README.md Outdated
Comment thread bootstrap/README.md
Comment thread bootstrap/AGENTS.template.md
Comment thread bootstrap/Initialize-MsxWorkspace.ps1 Outdated
Comment thread bootstrap/Initialize-MsxWorkspace.ps1
Comment thread src/docs/Ways-of-Working/Agentic-Development.md Outdated
…, clarify entry file

Copilot review round 8 on #31: reword the remaining 'fast-forwards' overstatements (script .EXAMPLE, README bullet); guard both install snippets against a path that exists but is not a git repo; emit a runtime warning when the default maintainer identity is used; and clarify in Agentic Development that the bootstrap is the user-global entry, distinct from the per-repo AGENTS.md/CLAUDE.md pointers.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Comment thread bootstrap/Initialize-MsxWorkspace.ps1 Outdated
Copilot review round 9 on #31: the identity warning now fires when either -UserName or -UserEmail is not explicitly provided, not just -UserEmail.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Comment thread AGENTS.md Outdated
Comment thread bootstrap/README.md Outdated
Copilot review round 10 on #31: drop the restated linter rule from the root AGENTS.md 'Start here'; steer the bootstrap template to user-level Copilot instructions only, keeping per-repo AGENTS.md a thin pointer.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Comment thread bootstrap/README.md
Comment thread bootstrap/AGENTS.template.md
Comment thread bootstrap/Initialize-MsxWorkspace.ps1
Copilot review round 11 on #31: check \0 after the two git config writes (consistent with the other git calls); note the private MSXOrg/memory prerequisite in the README and the template.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated no new comments.

Reduce both files to bare pointers so agents follow AGENTS.md without extra prose that could distract or conflict. Add the Copilot instructions under .github so Copilot picks them up natively.
Document parameters inline instead of .PARAMETER, add .OUTPUTS, gate state-changing operations with SupportsShouldProcess/ShouldProcess (matching Wait-CopilotReview.ps1), and emit result objects instead of Format-Table plus a status string.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.

Comment thread bootstrap/README.md
Comment thread bootstrap/AGENTS.template.md
Comment thread bootstrap/Initialize-MsxWorkspace.ps1
Comment thread bootstrap/Initialize-MsxWorkspace.ps1
Install snippets (README + AGENTS.template) now check \0 after git clone and throw a clear error, so a failed first-time clone fails diagnostically instead of running the script from a missing path. Initialize-MsxWorkspace.ps1 adds ValidateNotNullOrEmpty to -Root, -UserName, and -UserEmail so accidental empty overrides fail early. Addresses Copilot review on PR #31.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated no new comments.

@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit cbfa387 into main Jul 9, 2026
20 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the docs/agents-central branch July 9, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centralize agent descriptions as docs, with AGENTS.md and CLAUDE.md pointers

2 participants