Skip to content

Native audit: Cline missing .clinerules/agentmemory.md #705

Closed as not planned

Description

@rohitg00

PR #677 ships only ~/.cline/mcp.json for Cline. Cline has a native rules surface we should also wire.

Per Cline's rules docs:

  • .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:

  1. Write .clinerules/agentmemory.md at the project root (CLI flag --global writes to ~/.clinerules/ instead? Cline docs are quiet on global rules. Needs verification).
  2. Keep ~/.cline/mcp.json for tool wiring.
  3. 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.

Activity

  1. rohitg00 commented on May 28, 2026

    @rohitg00
    OwnerAuthor

    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.

  2. changed the title [-]Native surface audit: Cline adapter writes only MCP — missing .clinerules/agentmemory.md[/-] [+]Native audit: Cline missing .clinerules/agentmemory.md[/+] on May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions