agentleFS
mytech-today-nowmytech-today-now/augment-extensions/AGENTS.md

augment-extensions

AGENTS.md4 starsChanged 4 days agoMITView on GitHub

This repository provides extension modules for Augment Code AI that exceed the standard .augment/ character limit. You can discover and use extension modules through the augx CLI: When working on a project that has Augment Extensions linked: Each module contains: - module.json - Metadata and configuration - rules/ - Markdown files with detailed guidelines - examples/ - Code examples demonstrating best practices - README.md - Module overview When augx init is run, the CLI automatically generates .augment/COMMAND_HELP.md containing comprehensive help…

  • Installs packages
  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

55 rules. About 0 are common, 29 are distinctive, and 26 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈29

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 26

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When working on a project that has Augment Extensions linked:

    line 24
  2. Distinctive:

    Apply module rules: Follow the guidelines in the module's rules/ directory

    line 28
  3. Very specific:

    When augx init is run, the CLI automatically generates .augment/COMMAND_HELP.md containing comprehensive help documentation for all …

    line 59
  4. Very specific:

    Check for help reference: Look for .augment/COMMAND_HELP.md in the project

    line 63
  5. Distinctive:

    Generate accurate commands: Use the help text to construct correct command invocations

    line 65
  6. Distinctive:

    Query before applying: Always check module content before applying rules

    line 102
  7. Distinctive:

    Respect versions: Use pinned versions for consistency

    line 103
  8. Distinctive:

    Report issues: If module content conflicts, notify the human

    line 105
  9. Very specific:

    Draft Change Proposal: Create openspec/changes/[change-name]/proposal.md

    line 127
  10. Very specific:

    Review & Align: Create spec deltas in openspec/changes/[change-name]/specs/

    line 128
  11. Very specific:

    Implement Tasks: Create openspec/changes/[change-name]/tasks.md and implement

    line 129
  12. Distinctive:

    When making architectural changes:

    line 141
  13. Very specific:

    Create a change proposal in openspec/changes/

    line 142
  14. Very specific:

    Store JIRA Tickets: Place JIRA ticket content in openspec/changes/[change-name]/jira/[TICKET-ID].md

    line 157
  15. Distinctive:

    Link to Proposal: Add "Related JIRA" section in proposal.md linking to the JIRA ticket

    line 158
  16. Distinctive:

    Cleanup: Remove temporary JIRA files after migration

    line 160
  17. Distinctive:

    When working with JIRA tickets:

    line 172
  18. Very specific:

    Create jira/ directory within the OpenSpec change

    line 173
  19. Distinctive:

    Add "Related JIRA" section to proposal.md

    line 175
  20. Distinctive:

    Update coordination manifest with JIRA file tracking

    line 176
  21. Distinctive:

    Remove temporary JIRA files after successful migration

    line 177
  22. Distinctive:

    Use 'bd' for task tracking

    line 186
  23. Very specific:

    Create Task: Run bd create "Task title" --type task

    line 190
  24. Very specific:

    Add Dependencies: Run bd dep add <task-id> <blocker-id> --type blocks

    line 191
  25. Very specific:

    Find Ready Tasks: Run bd ready for tasks with no open blockers

    line 192
  26. Very specific:

    Work on Task: Run bd update <id> --status in_progress and bd comments add <id> "Progress"

    line 193
  27. Very specific:

    Close Task: Run bd close <id> --reason "Completed work", then bd sync

    line 194
  28. Very specific:

    Use the installed native bd CLI for every task mutation.

    line 207
  29. Very specific:

    Use hash-based IDs with "bd-" prefix: bd-<hash> (e.g., bd-a1b2)

    line 208
  30. Very specific:

    All issue IDs MUST use "bd-" prefix (see openspec/specs/beads/naming-convention.md)

    line 209
  31. Very specific:

    Update status and add comments through bd as work progresses.

    line 213
  32. Very specific:

    Naming Convention: All issue IDs MUST use "bd-" prefix.

    line 219
  33. Very specific:

    Check .augment/coordination.json for active specs

    line 240
  34. Distinctive:

    Update coordination manifest when creating files

    line 247
  35. Distinctive:

    When MCP is enabled, AI agents automatically:

    line 302
  36. Very specific:

    When neither MCP config file declares the beads server, the snippet is omitted entirely.

    line 434
  37. Distinctive:

    When reading an exported file in any of the four target tools:

    line 438
  38. Distinctive:

    Treat the content between the banner and the footer as canonical static guidance.

    line 440
  39. Very specific:

    Never hand-edit exported files - changes are overwritten on the next augx export.

    line 442
  40. Very specific:

    If a mirrored per-module file disappears after a module rename, run augx link <module> --mirror ...

    line 443
  41. Distinctive:

    File issues for remaining work: - Create issues for anything that needs follow-up

    line 462
  42. Distinctive:

    Verify: - All changes committed AND pushed

    line 473
  43. Distinctive:

    NEVER stop before pushing - that leaves work stranded locally

    line 478
  44. Distinctive:

    NEVER say "ready to push when you are" - YOU must push

    line 479
  45. Distinctive:

    If push fails, resolve and retry until it succeeds

    line 480
  46. Very specific:

    After editing VERSION, run pnpm run version:sync.

    line 486
  47. Very specific:

    Use pnpm run version:sync:dry-run to preview changes.

    line 487
  48. Very specific:

    Use pnpm run version:sync:force in non-interactive contexts.

    line 488
  49. Distinctive:

    Prefer the smallest change that satisfies the current task.

    line 493
  50. Distinctive:

    Keep changes focused and avoid unrelated edits.

    line 499
  51. Distinctive:

    Avoid new dependencies unless the task requires them.

    line 500
  52. Distinctive:

    Prefer behavior-based validation over compile-only checks.

    line 501
  53. Distinctive:

    Run the smallest relevant tests first, then broader checks when they are useful.

    line 502
  54. Distinctive:

    Never claim completion if the required validation was skipped or failed.

    line 503
  55. Very specific:

    Use test-artifacts/ or test-results/ for local failure artifacts when you need them.

    line 505

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Augment Extensions - AI Agent Integration

This repository provides extension modules for Augment Code AI that exceed the standard .augment/ character limit.

For AI Agents

Discovery

You can discover and use extension modules through the augx CLI:

# List all available modules
augx list

# Show module details
augx show <module-name>

# Search for modules
augx search <keyword>

Usage in Projects

When working on a project that has Augment Extensions linked:

  1. Check linked modules: augx list --linked
  2. View module content: augx show <module-name>
  3. Apply module rules: Follow the guidelines in the module's rules/ directory

Module Structure

Each module contains:

  • module.json - Metadata and configuration
  • rules/ - Markdown files with detailed guidelines
  • examples/ - Code examples demonstrating best practices
  • README.md - Module overview

Integration Workflow

  1. Human initializes: augx init
  2. Human links modules: augx link coding-standards/typescript
  3. AI agent queries: augx show typescript-standards
  4. AI agent applies rules from module content

CLI Commands Reference

  • augx list - List all available modules
  • augx list --linked - List modules linked to current project
  • augx show <module> - Display module content
  • augx show linked - Show all linked modules
  • augx show all - Show all available modules
  • augx search <term> - Search for modules
  • augx update - Update all linked modules
  • augx version - Show CLI version (augx --version, augx -V, and augx --v also work)
  • augx --help - Show CLI help (augx -h and augx --h also work on Linux and Windows)

Command Help Reference

When augx init is run, the CLI automatically generates .augment/COMMAND_HELP.md containing comprehensive help documentation for all detected workflow tools (Beads, OpenSpec, Augx).

For AI Agents:

  1. Check for help reference: Look for .augment/COMMAND_HELP.md in the project
  2. Use for command discovery: Reference the file to learn available commands and their syntax
  3. Generate accurate commands: Use the help text to construct correct command invocations
  4. Understand tool capabilities: Learn what each tool can do without executing commands

Example workflow:

# AI agent discovers available commands
cat .augment/COMMAND_HELP.md

# AI agent learns Beads commands
# Sees: "bd create <title> - Create a new issue"

# AI agent generates correct command
bd create "Implement feature X" -p 1

Benefits:

  • No trial-and-error: AI agents know exact command syntax before execution
  • Always current: Regenerated on augx init to reflect latest tool versions
  • Comprehensive: Includes main commands and all subcommands (up to 3 levels deep)
  • Multi-tool: Single reference for all workflow tools in the project

Module Types

  1. coding-standards - Language/framework specific standards
  2. domain-rules - Domain-specific guidelines (web, API, security, etc.)
  3. workflows - Process and methodology integration (OpenSpec, Beads, etc.)
  4. examples - Extensive code examples and patterns

Character Limit Context

  • Standard .augment/ limit: ~49,400 characters
  • Extension modules: No limit (stored separately)
  • Modules are loaded on-demand when relevant to current task

Best Practices for AI Agents

  1. Query before applying: Always check module content before applying rules
  2. Respect versions: Use pinned versions for consistency
  3. Combine modules: Multiple modules can be active simultaneously
  4. Report issues: If module content conflicts, notify the human

Example Usage

# AI agent working on TypeScript project
$ augx list --linked
typescript-standards (v1.0.0)
react-patterns (v2.1.0)

$ augx show typescript-standards
# Returns full module content including all rules and examples

OpenSpec Integration

This repository uses OpenSpec for spec-driven development.

OpenSpec Workflow

  1. Draft Change Proposal: Create openspec/changes/[change-name]/proposal.md
  2. Review & Align: Create spec deltas in openspec/changes/[change-name]/specs/
  3. Implement Tasks: Create openspec/changes/[change-name]/tasks.md and implement
  4. Archive: Move completed change to openspec/archive/[change-name]/

OpenSpec Files

  • openspec/project-context.md - Project overview and architecture
  • openspec/specs/ - Source of truth specifications
  • openspec/changes/ - Proposed changes (deltas)
  • openspec/archive/ - Completed changes

For AI Agents

When making architectural changes:

  1. Create a change proposal in openspec/changes/
  2. Define spec deltas (ADDED/MODIFIED/REMOVED sections)
  3. Break down into tasks
  4. Implement and archive when complete

Learn More: See workflows/openspec/ for comprehensive workflow documentation.


JIRA Integration

This repository integrates JIRA tickets into OpenSpec changes for traceability and context preservation.

JIRA Workflow

  1. Store JIRA Tickets: Place JIRA ticket content in openspec/changes/[change-name]/jira/[TICKET-ID].md
  2. Link to Proposal: Add "Related JIRA" section in proposal.md linking to the JIRA ticket
  3. Update Coordination: Track JIRA file in .augment/coordination.json
  4. Cleanup: Remove temporary JIRA files after migration

JIRA Directory Structure

openspec/changes/[change-name]/jira/
├── [TICKET-ID].md          # JIRA ticket content
└── .gitkeep                # Ensures directory is tracked

For AI Agents

When working with JIRA tickets:

  1. Create jira/ directory within the OpenSpec change
  2. Copy JIRA ticket content to jira/[TICKET-ID].md
  3. Add "Related JIRA" section to proposal.md
  4. Update coordination manifest with JIRA file tracking
  5. Remove temporary JIRA files after successful migration

Example: See openspec/changes/bash-coding-standards/spec-delta-jira-integration.md for complete workflow documentation.


Beads Integration

This repository uses Beads for task tracking and memory. Use 'bd' for task tracking

Beads Workflow

  1. Create Task: Run bd create "Task title" --type task
  2. Add Dependencies: Run bd dep add <task-id> <blocker-id> --type blocks
  3. Find Ready Tasks: Run bd ready for tasks with no open blockers
  4. Work on Task: Run bd update <id> --status in_progress and bd comments add <id> "Progress"
  5. Close Task: Run bd close <id> --reason "Completed work", then bd sync

Beads Files

  • .beads/embeddeddolt/ - Authoritative native Dolt database (gitignored)
  • .beads/issues.jsonl - Generated compatibility export for existing readers; never hand-edit or append task updates
  • .beads/config.yaml - Shared native Beads settings and Dolt synchronization remote
  • .beads/config.json - Existing Augx project metadata
  • .beads/metadata.json - Local native storage identity (gitignored)

For AI Agents

When tracking work:

  1. Use the installed native bd CLI for every task mutation. On a fresh clone, run bd bootstrap first.
  2. Use hash-based IDs with "bd-" prefix: bd-<hash> (e.g., bd-a1b2)
    • All issue IDs MUST use "bd-" prefix (see openspec/specs/beads/naming-convention.md)
    • Valid formats: bd-<hash>, bd-<name>, bd-<hash>.<number>
  3. Track dependencies with bd dep; do not mutate exported JSONL relationship fields.
  4. Find ready tasks with bd ready and inspect current state with bd show or bd list.
  5. Update status and add comments through bd as work progresses. Native writes refresh the JSONL export; bd sync exchanges Dolt history through the configured remote.

The November 27, 2026 cutover recovered the legacy task log into Beads 1.3.1 embedded Dolt. Legacy JSONL-only writers now reject mutations for Dolt projects. See .beads/README.md for commands and recovery guidance. Do not restore an old alias that shadows the installed native bd command.

Task States: open, in_progress, blocked, closed

Naming Convention: All issue IDs MUST use "bd-" prefix. See openspec/specs/beads/naming-convention.md for complete specification.

Learn More: See augment-extensions/workflows/beads/ for comprehensive workflow documentation.


Coordination System

This repository uses a coordination manifest (.augment/coordination.json) to harmonize OpenSpec, Beads, and .augment/ rules.

How It Works

The coordination manifest tracks relationships between:

  • Specs (OpenSpec) - What needs to be built
  • Tasks (Beads) - How it's being built
  • Rules (.augment/) - Guidelines for building
  • Files - What was built

For AI Agents

Before starting work:

  1. Check .augment/coordination.json for active specs
  2. Find related tasks for the spec you're implementing
  3. Load applicable rules for your task
  4. Identify which files are affected

While working:

  1. Track file creation/modification with task IDs
  2. Update coordination manifest when creating files
  3. Reference specs and rules in task comments

Query Examples:

// Get all active specs
const coord = require('./.augment/coordination.json');
const activeSpecs = Object.entries(coord.specs)
  .filter(([id, spec]) => spec.status === 'active');

// Get tasks for a spec
const tasks = coord.specs['testing/functional-tests'].relatedTasks;

// Get rules for a task
const rules = coord.tasks['bd-xyz'].relatedRules;

// Get specs governing a file
const specsForFile = Object.entries(coord.specs)
  .filter(([id, spec]) =>
    spec.affectedFiles.some(pattern => filePath.match(pattern))
  );

Learn More: See .augment-guidelines/system-integration/coordination-system.md for detailed documentation.


MCP Integration (Model Context Protocol)

This repository integrates Model Context Protocol (MCP) servers to enable real-time data access for AI agents.

Beads MCP Server

The beads-mcp server provides real-time access to Beads tasks, enabling AI agents to:

  • Query tasks, dependencies, and status
  • Incorporate task context into prompts
  • Automate task orchestration and code generation
  • Link code changes to task resolution

Configuration

MCP servers are configured in two locations:

  1. VS Code Integration: .vscode/mcp.json
    • Automatically loaded by VS Code and Augment Code
    • Enables AI agents to query Beads in real-time
    • Configures context budget and priorities
  2. CLI Integration: .augment/mcp/servers.json
    • Used by augx mcp commands
    • Enables manual MCP server management

For AI Agents

When MCP is enabled, AI agents automatically:

  1. Connect to configured MCP servers on startup
  2. Query relevant data based on current context
  3. Include MCP data in prompts (within context budget)
  4. Suggest actions based on MCP data

Example queries:

  • "Show me all open tasks for Phase 2"
  • "What tasks are blocking bd-shot-list-2.3?"
  • "Generate code for task bd-shot-list-2.4"
  • "What's the status of the AI Shot List Generator?"

Installation

Install the beads-mcp server:

pip install beads-mcp
# or
pipx install beads-mcp

Verify installation:

python -m beads_mcp --version

Usage

The MCP server runs automatically when Augment Code starts. No manual intervention needed.

Manual testing:

# List MCP servers
augx mcp list

# Execute MCP tool
augx mcp exec beads tasks/list

# Discover available tools
augx mcp discover beads

Learn More: See .vscode/MCP_SETUP.md for detailed configuration and troubleshooting.


Cross-Platform Distribution

This repository can materialize linked Augx modules into the native rules surfaces of other AI coding tools, so the same module set powers Claude Code, Cursor, Windsurf, and GitHub Copilot in addition to Augment Code. The Augment Code surface (.augment/ rules) is unchanged.

Two complementary mechanisms, both opt-in, both safe to use together:

  1. augx export --target <tool> - aggregates linked modules into the single-file format the tool expects.
  2. augx link <module> --mirror <tool>[,<tool>...] - per-module symlink (or copy fallback on Windows) into the tool's native rules directory.

augx export Command

augx export --target <claude-code|cursor|windsurf|copilot|all>
            [--output <path>] [--dry-run] [--force] [--verbose]

Per-target output paths:

TargetPath
claude-codeCLAUDE.md
cursor.cursor/rules/augx.mdc
windsurf.windsurfrules
copilot.github/copilot-instructions.md
allall of the above

Each generated file starts with a banner containing augx-version, generated-at, source-hash, and the contributing modules. Re-running with unchanged inputs is a byte-identical no-op. If the existing file has been hand-edited (banner hash mismatches the content), export refuses to overwrite and exits 3; pass --force to override.

--mirror Flag on augx link

augx link <module> [--mirror <tool>[,<tool>...]] [--verbose]

Per-tool per-module destinations:

TargetPer-Module Path
claude-code.claude/rules/<module>/... plus a one-line include stub in CLAUDE.md
cursor.cursor/rules/augx-<module>.mdc
windsurf.windsurf/rules/augx-<module>.md
copilot.github/instructions/augx-<module>.instructions.md

The mirror hook tries symlink first and falls back to copyFile on Windows when EPERM/EACCES/ENOSYS is raised (no Developer Mode). The chosen mode is recorded in .augment/coordination.json.mirrors[<module>] so subsequent runs do not retry symlink. augx unlink <module> reverses both tracked symlinks and tracked copies; hand-edited targets are left in place with a warning.

export and mirrors Blocks in .augment/coordination.json

Two optional top-level keys:

{
  "export": {
    "targets": ["claude-code", "cursor"],
    "ignore": ["**/examples/**"],
    "mirror": false
  },
  "mirrors": {
    "<module-id>": [
      { "tool": "cursor",
        "sourcePath": "augment-extensions/modules/<module>/rules/<file>.md",
        "targetPath": ".cursor/rules/augx-<module>.mdc",
        "mode": "symlink" }
    ]
  }
}
  • export.targets - default target list when augx export is called without --target.
  • export.ignore - glob patterns excluded from aggregation (forward-slash, defaults to ["**/examples/**"]).
  • export.mirror - when true, augx link runs the mirror hook for all targets without requiring --mirror.
  • mirrors - CLI-managed materialization log; do not hand-edit. Cleared by augx unlink.

Loaders MUST ignore unrecognized keys silently. Absence of both blocks preserves prior behavior exactly.

MCP-First Task-Context Contract

Exported artifacts NEVER embed live task data (no bd- IDs, no statuses, no dependency snapshots). When the project declares a Beads MCP server in either .vscode/mcp.json or .augment/mcp/servers.json, augx export inlines a single tool-agnostic snippet from augment-extensions/workflows/mcp/templates/beads.md directly after the banner. The snippet:

  • Names the Beads MCP beads server and tells the consuming agent to query it for live task state.
  • Lists the public operations (tasks/list, tasks/get, dependencies/list, status/get).
  • References augment-extensions/workflows/beads/ for the command guide.
  • Contains no IDs, statuses, secrets, or endpoint URLs.

When neither MCP config file declares the beads server, the snippet is omitted entirely. This keeps exported files focused on static guidance and prevents stale task data from leaking into rule surfaces.

For AI Agents

When reading an exported file in any of the four target tools:

  1. Treat the content between the banner and the footer as canonical static guidance.
  2. For ANY task-related question, query the Beads MCP server (beads) rather than parsing prose for task state.
  3. Never hand-edit exported files - changes are overwritten on the next augx export. Edit module sources under augment-extensions/ and re-run export.
  4. If a mirrored per-module file disappears after a module rename, run augx link <module> --mirror ... again to refresh the tracked set; stale targets are pruned automatically.

Learn More: See augment-extensions/workflows/cross-platform/ for the day-to-day guide (per-tool paths, drift-resolution playbook, end-to-end session walkthrough).


Note: This is a meta-repository for extending Augment Code AI. The actual project-specific .augment/ folder remains in individual projects.

myTech.Today Company Profile

The canonical company services, service area, business claims, and contact details are maintained in docs/company-profile.md. Keep the public profile in README.md, the npm author in package.json, and the publishing guides aligned with that record when those details change. Do not copy company-specific marketing claims into project-agnostic extension modules.

Landing the Plane (Session Completion)

When ending a work session, you MUST complete ALL steps below. Work is NOT complete until git push succeeds.

MANDATORY WORKFLOW:

  1. File issues for remaining work - Create issues for anything that needs follow-up
  2. Run quality gates (if code changed) - Tests, linters, builds
  3. Update issue status - Close finished work, update in_progress items
  4. PUSH TO REMOTE - This is MANDATORY:
    git pull --rebase
    bd sync
    git push
    git status  # MUST show "up to date with origin"
  5. Clean up - Clear stashes, prune remote branches
  6. Verify - All changes committed AND pushed
  7. Hand off - Provide context for next session

CRITICAL RULES:

  • Work is NOT complete until git push succeeds
  • NEVER stop before pushing - that leaves work stranded locally
  • NEVER say "ready to push when you are" - YOU must push
  • If push fails, resolve and retry until it succeeds

Version Synchronization

The root VERSION file is the single source of truth for the workspace version.

  • After editing VERSION, run pnpm run version:sync.
  • Use pnpm run version:sync:dry-run to preview changes.
  • Use pnpm run version:sync:force in non-interactive contexts.
  • VERSIONING.md defines the SemVer rules and supported rewrite targets.

YAGNI

Prefer the smallest change that satisfies the current task. Add abstractions only when there is a clear current use case or when the cost of changing later is high.

Working Rules

  • Inspect the repository before editing.
  • Reuse existing scripts, utilities, fixtures, and test harnesses.
  • Keep changes focused and avoid unrelated edits.
  • Avoid new dependencies unless the task requires them.
  • Prefer behavior-based validation over compile-only checks.
  • Run the smallest relevant tests first, then broader checks when they are useful.
  • Never claim completion if the required validation was skipped or failed.
  • Record skipped checks and any remaining risk.
  • Use test-artifacts/ or test-results/ for local failure artifacts when you need them.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.