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
.clinerules/ is a directory (not a file) at project root. Cline processes all .md and .txt files inside and combines them into one system-prompt block.
Rules files support optional YAML frontmatter with paths: glob patterns for conditional activation.
Cline also auto-detects .cursorrules, .windsurfrules, and AGENTS.md. So an AGENTS.md adapter would cover Cline + Zed + Cursor + Windsurf in one shot.
Slash commands exist (/newrule), but no public API for user-defined ones yet.
No hook system.
Mapping agentmemory primitives
agentmemory primitive
Cline native target
Bootstrap instruction
.clinerules/agentmemory.md
4 slash commands
Not user-extensible in Cline; users still invoke MCP tools manually or via @ mentions
18 MCP tools
~/.cline/mcp.json (already shipped. Keep)
Skills
No Cline equivalent
Hooks
Not supported
Scope
src/cli/connect/cline.ts is 19 LOC today. Adding native rules support is small:
Write .clinerules/agentmemory.md at the project root (CLI flag --global writes to ~/.clinerules/ instead? Cline docs are quiet on global rules. Needs verification).
Keep ~/.cline/mcp.json for tool wiring.
Detect existing .clinerules/ directory and merge non-destructively (frontmatter paths: makes our entry inert outside agentmemory-aware contexts if we want it scoped).
Estimate: +60 LOC + tests.
Cross-agent payoff
Cline shares its rules path with .cursorrules, .windsurfrules, and (per Zed docs) Zed itself. A single connect --rules mode that writes AGENTS.md would cover 4+ agents. Worth considering as the umbrella refactor instead of per-agent rule files.
Closing as redundant — covered by npx skills add rohitg00/agentmemory. See #708 for the full finding. agentmemory's 8 SKILL.md files are already in the right format; the skills CLI handles install for this agent out of the box. The MCP wiring side is already covered by agentmemory connect.
Activity
rohitg00 commentedon May 28, 2026
Closing as redundant — covered by
npx skills add rohitg00/agentmemory. See #708 for the full finding. agentmemory's 8 SKILL.md files are already in the right format; theskillsCLI handles install for this agent out of the box. The MCP wiring side is already covered byagentmemory connect.feat(connect): print 'npx skills add' hint after successful wire (#709)
[-]Native surface audit: Cline adapter writes only MCP — missing .clinerules/agentmemory.md[/-][+]Native audit: Cline missing .clinerules/agentmemory.md[/+]feat(connect): print 'npx skills add' hint after successful wire (roh…