agentleFS
coddy-projectcoddy-project/coddy-agent/.cursor/rules/config-roundtrip.mdc

coddy-agent / rules

Cursor rule162 starsChanged 56 days agoMITView on GitHub

Lossless and concurrent configuration round trips

The file

We split this config-roundtrip.mdc into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use shared source loading for BOM and CRLF or CR normalization, and preserve the source line-ending convention on write.

    line 12
  2. Distinctive:

    When the source is missing, write one complete valid configuration.

    line 15

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
config-roundtrip.mdc
---
description: Lossless and concurrent configuration round trips
globs:
  - "internal/config/**/*.go"
  - "internal/configapi/**/*.go"
  - "external/httpserver/config*.go"
  - "external/ui/src/ui/settings/**/*"
alwaysApply: false
---
# Configuration round trips

- Use shared source loading for BOM and CRLF or CR normalization, and preserve the source line-ending convention on write.
- Relocate yaml.v3 syntax lines with bounded prefix parsing instead of trusting the raw parser line blindly.
- A PUT compares against the exact client revision and restores only untouched fields.
- When the source is missing, write one complete valid configuration; never restore defaults over the request.
- Restore write-only secrets from live state. Redaction placeholders must never overwrite stored values.
- Map fields use a three-way key merge for concurrent additions and removals.
- A successful save updates the SPA cache immediately. Stale reads cannot replace it; untouched forms may adopt refreshed copies, while edited forms wait for Reload.

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.