You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An agent reading this README will not know about our lint, test, deploy, or agent workflows, and will draft new workflows without considering the upcoming preprod runner. An agent may trust the README and move on without checking with ls.
Moreover, I want to add more high-level guidance here (eg for self-hosted runners ([self-hosted, preprod])), and this will just get lost in the noise.
Proposed fix (edit: rejected, see below)
Auto-generate the workflow inventory from the YAML files so it cannot drift.
Add a pre-commit hook (scripts/pre-commit/gen-workflow-docs.py) that:
Parses name:, on:, and runs-on: from each .yml/.yaml file
Writes a Markdown table between <!-- BEGIN WORKFLOW TABLE --> / <!-- END WORKFLOW TABLE --> markers in the README
Runs whenever any file in .github/workflows/ changes
Hand-written sections (Security, Best Practices, Troubleshooting) stay as-is. Only the inventory table is generated.
I think the "Auto-generate the workflow inventory from the YAML files so it cannot drift" idea is overkill.
My overall goal: instruct agents to treat the workflow files themselves as sources of truth. They are capable of doing that (even parallelizing with sub-agents). If we wanted to save a few tokens we could use pre-commit hooks to generate the table to build a progressive disclosure pattern, but that is overkill at this point.
Activity
ktdreyer commentedon Mar 2, 2026
I think the "Auto-generate the workflow inventory from the YAML files so it cannot drift" idea is overkill.
My overall goal: instruct agents to treat the workflow files themselves as sources of truth. They are capable of doing that (even parallelizing with sub-agents). If we wanted to save a few tokens we could use pre-commit hooks to generate the table to build a progressive disclosure pattern, but that is overkill at this point.
strip stale per-workflow docs from workflows README (ambient-code#770)
deps(runner): bump claude-agent-sdk 0.2.157, anthropic 1.7.0 (#1735)