Jump to content

MindAttic.Agency: Difference between revisions

From MindAttic Docs
md2wiki: sync from MindAttic.Docs
 
md2wiki: sync from MindAttic.Docs
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
= MindAttic Agent Standard =
= MindAttic.Agency =


This directory is the single implementation home for provider-neutral agent behavior shared by every repository under <code>D:\Projects\MindAttic</code>. Project-local <code>AGENTS.md</code> files and <code>.agent</code> command definitions are discovery pointers only. They must not contain another copy of the workflow.
MindAttic.Agency is the MindAttic Agent Standard: the one canonical copy of the provider-neutral rules, commands (abilities), hooks, subagent roles, runner, deploy library and documentation generators that every MindAttic repo and every agent CLI (Claude Code, OpenAI Codex, Kimi Code, Google Antigravity/<code>agy</code>) uses. A CLI that opens any MindAttic repo gets the same rules and commands with no per-repo setup; project-local <code>AGENTS.md</code> files and <code>.agent/commands</code> are thin pointers back here and never hold another copy of the workflow. It is also the home of org-wide tickets for the workspace root (ticket prefix <code>MAT</code>).


Install or refresh the thin pointers for all sibling repositories from the workspace root:
* <strong>The whole product</strong>, built or not, every epic, feature and story: [[MindAttic.Agency/SPEC|SPEC.md]].
* <strong>What it is, what it is not, and the rules that keep it coherent</strong>: [[MindAttic.Agency/BIBLE|BIBLE.md]].
* <strong>The current finish line</strong> (the active milestone and its epics): [[MindAttic.Agency/RELEASE|RELEASE.md]].
* <strong>The rules themselves</strong>: <code>AGENTS.md</code> at the repo root, read by every CLI.


<pre class="md-code lang-powershell">powershell -File mindattic-agent-standard/install.ps1</pre>
== Top-level scripts ==


The runner accepts <code>bootstrap</code>, <code>save</code>, <code>load</code>, <code>do</code>, <code>progress</code>, <code>show</code>, <code>queue</code>, <code>quicksaves</code>, and <code>alias</code>. Project-specific commands remain in the project repository's catalog, while common lifecycle commands live here.
All are PowerShell, run from the workspace's <code>mindattic-agent-standard/</code> mirror or this checkout.


<code>/quicksave</code>, <code>/quickload</code>, <code>/quicksaves</code>, <code>/alias</code>, <code>/do</code>, <code>/commit</code>, <code>/deploy</code>, <code>/progress</code> are also real global commands at <code>~/.claude/commands/</code> — present for every repo on Day 1, with no per-project <code>.claude/commands</code> copy and no <code>install.ps1</code> run required. <code>install.ps1</code> still projects provider-neutral pointers (<code>.agent/commands/*.md</code>) for non-Claude clients, mirroring whatever it finds in that global folder.
{| class="wikitable"
! Script
! What it does
|-
| <code>install.ps1</code>
| Writes the thin <code>AGENTS.md</code> and <code>.agent/commands/*.md</code> pointers into every sibling repo of the workspace, mirroring the global command folder.
|-
| <code>install-hooks.ps1</code>
| Points Claude's <code>settings.json</code>, Codex's <code>hooks.json</code>, Kimi's <code>config.toml</code> and agy's <code>hooks.json</code> at the one copy of the gate hooks in <code>shared/hooks/</code>.
|-
| <code>install-commit-hooks.ps1</code>
| Installs <code>commit-msg</code> (ticket-ID check plus the commit gate), <code>pre-commit</code> and <code>post-commit</code> shims in every repo; the latter two take and release a per-repo commit lock (MAT-T135) so two agents committing at once never share <code>.git/COMMIT_EDITMSG</code>.
|-
| <code>share-scripts.ps1</code>
| Points the machine's global Claude settings at the shared statusline and quickload hook, removes identical per-repo copies, installs the rendered commands into <code>~/.claude/commands/</code>, and runs the mirror <code>-Check</code>.
|-
| <code>render-abilities.ps1</code>
| Renders <code>shared/abilities/*.md</code> into each CLI's native form: <code>shared/commands/</code> for Claude, skills for Codex, Kimi and agy, and <code>shared/codex-command-catalog.md</code>.
|-
| <code>export-catalog.ps1</code>
| Writes <code>command-catalog.json</code>, the inventory of every global and per-project command, skill and pointer across the workspace and CLIs.
|-
| <code>sync-workspace-copy.ps1</code>
| Copies this repo onto the workspace-root <code>mindattic-agent-standard/</code> mirror; <code>-Check</code> only reports files that differ or are missing.
|-
| <code>clone-repo.ps1</code>
| The one way a repo joins the workspace: creates the folder, clones it, tags it <code>wip</code> on GitHub, records it in the workspace's <code>docs/workspace-repos.json</code> and restarts the Launcher so it appears.
|-
| <code>prose-agent.ps1</code>
| The portable runner: <code>bootstrap</code>, <code>save</code>, <code>load</code>, <code>do</code>, <code>progress</code>, <code>show</code>, <code>queue</code>, <code>quicksaves</code> and <code>alias</code>, behind <code>/quicksave</code>, <code>/quickload</code>, <code>/quicksaves</code>, <code>/alias</code> and <code>/do</code>.
|-
| <code>agent-progress.ps1</code>
| Behind <code>/progress</code>: every recent subagent, its ticket, what it is doing now and an estimated percent done.
|-
| <code>schedule-wakeup.ps1</code>
| The portable <code>ScheduleWakeup</code>: a one-shot Windows scheduled task that runs a prompt in <code>claude</code>, <code>codex</code>, <code>kimi</code> or <code>agy</code> after a delay or at a time.
|-
| <code>broadcast-ticket-done.ps1</code>
| Tells every other running CLI that a ticket just closed, through the nudge files <code>shared/hooks/context-gate.py</code> folds into their next turn.
|-
| <code>genericize-instructions.ps1</code>
| Archives provider-specific instruction files (<code>CLAUDE.md</code>, <code>CODEX.md</code>, <code>GEMINI.md</code> and the like) to <code>legacy-instructions/</code> and replaces them with forwarders to <code>MINDATTIC_AGENT.md</code>.
|}


Each repo's <code>.agent/</code> folder also holds the runner's portable handoff (<code>agent-session.json</code>) and bookmark queue (<code>agent-queue.json</code>), both git-ignored. The folder was <code>.prose/</code> until MAT-T39 (the name read as the separate Prose product); the runner moves an old <code>.prose/</code> handoff and queue across on first use, and <code>install.ps1</code> moves the command pointers and rewrites <code>.gitignore</code> entries.
<code>kickstart.ps1</code> (Azure app wake-up) is still on disk but is outside the product: Azure is decommissioned (MAT-T297).


Every <code>save</code> also picks a shareable handoff code, an adjective-animal pair from <code>shared/handoff-words/</code> (e.g. <code>lively-oxen</code>), regenerated on collision with any unconsumed code, and records the handoff (repo/worktree and branch, login, task, decisions, state, next, queue) in the machine-wide registry <code>%LOCALAPPDATA%\MindAttic\handoffs\&lt;code>.json</code> (override: <code>-RegistryRoot</code> or <code>MINDATTIC_HANDOFF_REGISTRY</code>). Every login on the machine shares it, so <code>load &lt;code></code> (<code>/quickload &lt;code></code>) restores that exact handoff from any login's CLI in any folder; loading consumes the code (archived under <code>consumed\</code>, never deleted) and frees it for reuse. <code>quicksaves</code> lists the unconsumed codes (<code>/quicksaves</code> renders them as a brochure, MAT-T109, renamed from <code>/handoffs</code> in MAT-T113, with a &lt;=255-char description per entry). <code>alias -Type handoff -Code &lt;code> -Alias &lt;nickname></code> (<code>/alias handoff &lt;code> &lt;nickname></code>, MAT-T110) attaches, replaces or clears (blank <code>-Alias</code>) a human nickname on a pending handoff at any time; <code>load</code>/<code>/quickload</code> resolve a nickname the same way they resolve a literal code. The global <code>/quicksave</code>, <code>/quickload</code>, <code>/quicksaves</code> and <code>/alias</code> definitions are rendered from <code>shared/abilities/*.md</code> into <code>shared/commands/</code> (a render target, not a source - see <code>render-abilities.ps1</code>); <code>share-scripts.ps1</code> (run by <code>install.ps1</code>) installs them into <code>~/.claude/commands/</code>.
== The <code>shared/</code> folders ==


== Docs site pipeline (HOUSE-LAW-14) ==
{| class="wikitable"
! Folder
! What it holds
|-
| <code>shared/abilities/</code>
| The source of every portable command, one Markdown file each; edit here, then run <code>render-abilities.ps1</code>.
|-
| <code>shared/commands/</code>
| Claude's rendered commands (a render target, never hand-edited), plus <code>member/</code> templates for the per-member commands.
|-
| <code>shared/hooks/</code>
| The gate hooks every CLI runs: test gate, commit gate, <code>commit-msg</code>, the <code>pre-commit</code>/<code>post-commit</code> commit lock, pace, context and rate-limit gates, prompt logging and the quickload-on-do hook.
|-
| <code>shared/roles/</code>
| Subagent role definitions (implementer, planner, reviewer, architect and the rest).
|-
| <code>shared/templates/</code>
| <code>run.ps1</code>, the per-repo launcher template that calls <code>Invoke-AppRun</code> in <code>deploy-lib.ps1</code>.
|-
| <code>shared/config/</code>
| Global settings read by the agents, such as <code>idle-status.json</code> (the idle status interval).
|-
| <code>shared/brochure/</code>
| The GitHub Pages brochure generator, its schema, the "Skylight" theme and <code>adopt-brochure.ps1</code>.
|-
| <code>shared/readme-pointer/</code>
| The README pointer template and <code>convert-readme.ps1</code>, which moves a README into <code>docs/overview.md</code>.
|-
| <code>shared/docs-site/</code>
| The older DocFX docs-site pipeline, kept only for repos that are documentation by design.
|-
| <code>shared/buildup/</code>
| Build-up tools (MAT-T484): the build order, the code ledger (comb) and membranes, each forwarding to the <code>tickets</code> CLI.
|-
| <code>shared/waterfall/</code>
| The workspace waterfall generator, its page, and the epic and feature hierarchy linter (MAT-T462).
|-
| <code>shared/flush/</code>
| The <code>/flush</code> RAM and disk cleanup scripts and the list of disk cruft sources.
|-
| <code>shared/handoff-words/</code>
| The adjective and animal word lists that make quicksave handoff codes such as <code>lively-oxen</code>.
|-
| <code>shared/unity/</code>
| <code>MindAtticPublish.cs</code>, the Unity editor build hook used by <code>/publish</code>.
|-
| <code>shared/vendor/</code>
| Vendored third-party code, such as the Nexus Mods upload action.
|}


Every MindAttic repo publishes its docs to <code>https&#58;//mindattic.github.io/&lt;Repo>/</code> through the one pipeline here:
Loose files in <code>shared/</code> include <code>deploy-lib.ps1</code> (the shared app deploy and run menu), <code>publish-app.ps1</code>, <code>member-commands.ps1</code>, <code>statusline.ps1</code> and the Nexus and Thunderstore publishing helpers.


* <code>shared/docs-site/build-docs-site.ps1</code> stages README.md (as the home page) and <code>docs/**/*.md</code>, rewrites links, generates <code>toc.yml</code>/<code>docfx.json</code>, and runs DocFX (<code>-Build</code>, or <code>-Serve</code> to preview).
== Handoffs ==
* <code>shared/docs-site/template/</code> is the MindAttic look (the old codex README.htm theme) on top of DocFX's <code>modern</code> template.
 
* <code>.github/workflows/docs-pages.yml</code> is the reusable workflow that builds and deploys to Pages.
Every <code>save</code> picks a shareable handoff code from <code>shared/handoff-words/</code> and records the handoff in the machine-wide registry <code>%LOCALAPPDATA%\MindAttic\handoffs\&lt;code>.json</code> (override: <code>-RegistryRoot</code> or <code>MINDATTIC_HANDOFF_REGISTRY</code>), so <code>load &lt;code></code> restores it from any login's CLI in any folder. Loading consumes the code (archived under <code>consumed\</code>). Each repo's <code>.agent/</code> folder holds its local handoff (<code>agent-session.json</code>) and bookmark queue (<code>agent-queue.json</code>), both git-ignored.
* <code>shared/docs-site/adopt-docs-site.ps1 -Repo &lt;name> [-Api]</code> opts a repo in: it writes the thin <code>.github/workflows/docs.yml</code> caller, retires <code>README.htm</code>/<code>tools/build-readme.*</code>, and turns Pages on.


== This repo is the one canonical copy (MAT-T50) ==
== This repo is the one canonical copy (MAT-T50) ==


<code>D:\Projects\MindAttic\mindattic-agent-standard\</code> is a legacy mirror left over from before this standard was pulled into its own repo (<code>MindAttic.Agency</code>). Left alone, the two drift in both directions — MAT-T26's readiness sweep found fixes that had landed in only one side or the other (MAT-T50). This repo is the source of truth: <code>sync-workspace-copy.ps1 -Check</code> (run from the workspace's <code>MindAttic.Agency</code> checkout) reports any file that differs from or is missing under the mirror, and the same script without <code>-Check</code> copies this repo's files onto it. <code>share-scripts.ps1</code> runs the <code>-Check</code> pass (report-only) on every install.
<code>D:\Projects\MindAttic\mindattic-agent-standard\</code> is a mirror of this repo, and some global settings run the copies there. Change files here, then run <code>sync-workspace-copy.ps1</code>; <code>share-scripts.ps1</code> runs its <code>-Check</code> pass on every install and reports any drift.
 
== Further reading ==
 
* [[MindAttic.Agency/hook-contract-matrix|hook-contract-matrix.md]]: what each hook does on each CLI, confirmed or not.
* [[MindAttic.Agency/claude-only-abilities|claude-only-abilities.md]]: the abilities that depend on Claude-only mechanisms.
* [[MindAttic.Agency/ops/hetzner-deploy-pipeline|ops/hetzner-deploy-pipeline.md]]: the shared Hetzner host for public web apps.


== Pages in this repository ==
== Pages in this repository ==
* [[MindAttic.Agency/BIBLE|MindAttic.Agency — Project Bible]] — MindAttic.Agency is the one canonical copy of the MindAttic Agent Standard: the provider-neutral rules, abilities, hooks, roles and…
* [[MindAttic.Agency/BIBLE|MindAttic.Agency — Project Bible]] — MindAttic.Agency is the one canonical copy of the MindAttic Agent Standard: the provider-neutral rules, abilities, hooks, roles and…
* [[MindAttic.Agency/build-up|Build up: from the lowest leaves to the finished product (MAT-T484)]] — The owner, 2026-11-30: start building by organising the work into units, "pick one project and test it to make sure it works and refine it…
* [[MindAttic.Agency/claude-only-abilities|Claude-only abilities: precise verdicts (MAT-T103)]] — MAT-T93/MAT-T98's Stop-hook feedback reopened scrutiny of every ability marked permanently Claude-only: checking only whether…
* [[MindAttic.Agency/claude-only-abilities|Claude-only abilities: precise verdicts (MAT-T103)]] — MAT-T93/MAT-T98's Stop-hook feedback reopened scrutiny of every ability marked permanently Claude-only: checking only whether…
* [[MindAttic.Agency/hook-contract-matrix|Hook contract matrix]] — Per-CLI confirmed/unverified behavior for the shared lifecycle hooks (shared/hooks/pace-gate.py, shared/hooks/context-gate.py,…
* [[MindAttic.Agency/hook-contract-matrix|Hook contract matrix]] — Per-CLI confirmed/unverified behavior for the shared lifecycle hooks (shared/hooks/pace-gate.py, shared/hooks/context-gate.py,…
Line 37: Line 136:
* [[MindAttic.Agency/RELEASE|MindAttic.Agency — Release charter]] — The MindAttic Agent Standard: the provider-neutral rules (AGENTS.md), abilities, hooks, roles, runner and shared scripts that every…
* [[MindAttic.Agency/RELEASE|MindAttic.Agency — Release charter]] — The MindAttic Agent Standard: the provider-neutral rules (AGENTS.md), abilities, hooks, roles, runner and shared scripts that every…
* [[MindAttic.Agency/research/sql-express-2025-fit|research/sql-express-2025-fit]] — Date: 2026-11-26
* [[MindAttic.Agency/research/sql-express-2025-fit|research/sql-express-2025-fit]] — Date: 2026-11-26
* [[MindAttic.Agency/single-source|Single source: nested-hierarchy abstraction and reverse traversal (MAT-T462)]] — The owner, 2026-11-30: each feature as abstract as it can be, each epic made of the most abstract features, everything in line with…
* [[MindAttic.Agency/SPEC|MindAttic.Agency — Product specification]] — In the ecosystem (docs/ECOSYSTEM.md at the workspace root): Platform: owns the agent standard (shared rules, hooks, commands, the run…
* [[MindAttic.Agency/unity-vs-unreal-manalith|Unity vs Unreal: building the same Manalith twice]] — On 2026-11-22 the same Meshy "Midnight Geode" FBX became the Manalith in two engines: GridGame (Unity 6000.4, built-in pipeline,…
* [[MindAttic.Agency/unity-vs-unreal-manalith|Unity vs Unreal: building the same Manalith twice]] — On 2026-11-22 the same Meshy "Midnight Geode" FBX became the Manalith in two engines: GridGame (Unity 6000.4, built-in pipeline,…


<div class="md2wiki-source">From [https://github.com/mindattic/MindAttic.Agency/blob/main/README.md MindAttic.Agency/README.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.</div>
<div class="md2wiki-source">From [https://github.com/mindattic/MindAttic.Agency/blob/main/docs/overview.md MindAttic.Agency/docs/overview.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.</div>


[[Category:MindAttic.Agency]]
[[Category:MindAttic.Agency]]

Latest revision as of 02:01, 2 December 2026

MindAttic.Agency

MindAttic.Agency is the MindAttic Agent Standard: the one canonical copy of the provider-neutral rules, commands (abilities), hooks, subagent roles, runner, deploy library and documentation generators that every MindAttic repo and every agent CLI (Claude Code, OpenAI Codex, Kimi Code, Google Antigravity/agy) uses. A CLI that opens any MindAttic repo gets the same rules and commands with no per-repo setup; project-local AGENTS.md files and .agent/commands are thin pointers back here and never hold another copy of the workflow. It is also the home of org-wide tickets for the workspace root (ticket prefix MAT).

  • The whole product, built or not, every epic, feature and story: SPEC.md.
  • What it is, what it is not, and the rules that keep it coherent: BIBLE.md.
  • The current finish line (the active milestone and its epics): RELEASE.md.
  • The rules themselves: AGENTS.md at the repo root, read by every CLI.

Top-level scripts

All are PowerShell, run from the workspace's mindattic-agent-standard/ mirror or this checkout.

Script What it does
install.ps1 Writes the thin AGENTS.md and .agent/commands/*.md pointers into every sibling repo of the workspace, mirroring the global command folder.
install-hooks.ps1 Points Claude's settings.json, Codex's hooks.json, Kimi's config.toml and agy's hooks.json at the one copy of the gate hooks in shared/hooks/.
install-commit-hooks.ps1 Installs commit-msg (ticket-ID check plus the commit gate), pre-commit and post-commit shims in every repo; the latter two take and release a per-repo commit lock (MAT-T135) so two agents committing at once never share .git/COMMIT_EDITMSG.
share-scripts.ps1 Points the machine's global Claude settings at the shared statusline and quickload hook, removes identical per-repo copies, installs the rendered commands into ~/.claude/commands/, and runs the mirror -Check.
render-abilities.ps1 Renders shared/abilities/*.md into each CLI's native form: shared/commands/ for Claude, skills for Codex, Kimi and agy, and shared/codex-command-catalog.md.
export-catalog.ps1 Writes command-catalog.json, the inventory of every global and per-project command, skill and pointer across the workspace and CLIs.
sync-workspace-copy.ps1 Copies this repo onto the workspace-root mindattic-agent-standard/ mirror; -Check only reports files that differ or are missing.
clone-repo.ps1 The one way a repo joins the workspace: creates the folder, clones it, tags it wip on GitHub, records it in the workspace's docs/workspace-repos.json and restarts the Launcher so it appears.
prose-agent.ps1 The portable runner: bootstrap, save, load, do, progress, show, queue, quicksaves and alias, behind /quicksave, /quickload, /quicksaves, /alias and /do.
agent-progress.ps1 Behind /progress: every recent subagent, its ticket, what it is doing now and an estimated percent done.
schedule-wakeup.ps1 The portable ScheduleWakeup: a one-shot Windows scheduled task that runs a prompt in claude, codex, kimi or agy after a delay or at a time.
broadcast-ticket-done.ps1 Tells every other running CLI that a ticket just closed, through the nudge files shared/hooks/context-gate.py folds into their next turn.
genericize-instructions.ps1 Archives provider-specific instruction files (CLAUDE.md, CODEX.md, GEMINI.md and the like) to legacy-instructions/ and replaces them with forwarders to MINDATTIC_AGENT.md.

kickstart.ps1 (Azure app wake-up) is still on disk but is outside the product: Azure is decommissioned (MAT-T297).

The shared/ folders

Folder What it holds
shared/abilities/ The source of every portable command, one Markdown file each; edit here, then run render-abilities.ps1.
shared/commands/ Claude's rendered commands (a render target, never hand-edited), plus member/ templates for the per-member commands.
shared/hooks/ The gate hooks every CLI runs: test gate, commit gate, commit-msg, the pre-commit/post-commit commit lock, pace, context and rate-limit gates, prompt logging and the quickload-on-do hook.
shared/roles/ Subagent role definitions (implementer, planner, reviewer, architect and the rest).
shared/templates/ run.ps1, the per-repo launcher template that calls Invoke-AppRun in deploy-lib.ps1.
shared/config/ Global settings read by the agents, such as idle-status.json (the idle status interval).
shared/brochure/ The GitHub Pages brochure generator, its schema, the "Skylight" theme and adopt-brochure.ps1.
shared/readme-pointer/ The README pointer template and convert-readme.ps1, which moves a README into docs/overview.md.
shared/docs-site/ The older DocFX docs-site pipeline, kept only for repos that are documentation by design.
shared/buildup/ Build-up tools (MAT-T484): the build order, the code ledger (comb) and membranes, each forwarding to the tickets CLI.
shared/waterfall/ The workspace waterfall generator, its page, and the epic and feature hierarchy linter (MAT-T462).
shared/flush/ The /flush RAM and disk cleanup scripts and the list of disk cruft sources.
shared/handoff-words/ The adjective and animal word lists that make quicksave handoff codes such as lively-oxen.
shared/unity/ MindAtticPublish.cs, the Unity editor build hook used by /publish.
shared/vendor/ Vendored third-party code, such as the Nexus Mods upload action.

Loose files in shared/ include deploy-lib.ps1 (the shared app deploy and run menu), publish-app.ps1, member-commands.ps1, statusline.ps1 and the Nexus and Thunderstore publishing helpers.

Handoffs

Every save picks a shareable handoff code from shared/handoff-words/ and records the handoff in the machine-wide registry %LOCALAPPDATA%\MindAttic\handoffs\<code>.json (override: -RegistryRoot or MINDATTIC_HANDOFF_REGISTRY), so load <code> restores it from any login's CLI in any folder. Loading consumes the code (archived under consumed\). Each repo's .agent/ folder holds its local handoff (agent-session.json) and bookmark queue (agent-queue.json), both git-ignored.

This repo is the one canonical copy (MAT-T50)

D:\Projects\MindAttic\mindattic-agent-standard\ is a mirror of this repo, and some global settings run the copies there. Change files here, then run sync-workspace-copy.ps1; share-scripts.ps1 runs its -Check pass on every install and reports any drift.

Further reading

Pages in this repository

From MindAttic.Agency/docs/overview.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.