---
title: "Discussion on \"Sharing rules and slash commands across AI coding agents\" | Hashnode"
description: "Discussion on \"Sharing rules and slash commands across AI coding agents\". A single .agents/ directory lets Claude Code, OpenCode, and AGENTS.md-style tools share rules and commands without duplicate prompts."
url: "https://hashnode.com/posts/sharing-rules-and-slash-commands-across-ai-coding-agents/6a0330f6937b84f77988c22e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Sharing rules and slash commands across AI coding agents](https://seanleecoder.hashnode.dev/sharing-rules-and-slash-commands-across-ai-coding-agents?utm_source=hashnode&utm_medium=feed)

A single .agents/ directory lets Claude Code, OpenCode, and AGENTS.md-style tools share rules and commands without duplicate prompts.

May 12 · 8 min read · seanleecoder.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#opencode](https://hashnode.com/tag/opencode)
-   [#devtools](https://hashnode.com/tag/devtools)
-   [#llm](https://hashnode.com/tag/llm)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)

## Written by

[Sean Lee](https://hashnode.com/@seanleecoder)

@seanleecoder · Munich, Germany

  
[View profile](https://hashnode.com/@seanleecoder)

Lead Frontend Developer @ BurdaVerlag | InStyle, Freundin, ELLE, Esquire, Harper’s BAZAAR

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
