agentleFS
actinon-comactinon-com/brass-monkey/CLAUDE.md

brass-monkey

CLAUDE.md2 starsChanged 3 months agoMITView on GitHub

This file mirrors the intent of GEMINI.md for Claude Code. Where the two overlap, they must stay consistent. If you prefer a single source of truth, replace the "Shared Mandates" section below with an import of GEMINI.md (verify the current import syntax against the Claude Code docs before relying on it). Brass-Monkey already ships as a working stdio MCP server consumed by Gemini CLI and Antigravity. The active goal is to make it installable and upgradeable on Claude (Claude Code…

  • Reads credentials

The file

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

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify formats against live docs — do not trust memory: Before implementing the Claude Code plugin/marketplace phase or the Desktop bundle …

    line 24
  2. Distinctive:

    Never commit directly to main.

    line 35
  3. Very specific:

    One phase per session: Use plan mode to propose before editing, gate each phase on npm test + a manual MCP Inspector check, commit, then …

    line 41
  4. Distinctive:

    ALWAYS provide a technical explanation of proposed changes and seek approval BEFORE modifying files or running state-changing commands.

    line 50
  5. Distinctive:

    BEFORE modifying files or running state-changing commands.

    line 51
  6. Very specific:

    All release work on a dedicated release branch (e.g., release-1.7.0).

    line 63
  7. Very specific:

    Version sync: keep versions synchronized across package.json, gemini-extension.json, the default version in src/mcp-server.ts, and any new …

    line 64
  8. Distinctive:

    Zero-log policy: never log Odoo tokens, passwords, or sensitive record data.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.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
CLAUDE.md

Brass-Monkey — Claude Code Working Context

This file mirrors the intent of GEMINI.md for Claude Code. Where the two overlap, they must stay consistent. If you prefer a single source of truth, replace the "Shared Mandates" section below with an import of GEMINI.md (verify the current import syntax against the Claude Code docs before relying on it).

Current Initiative: Claude Packaging (v1.6.x → Claude-installable)

Brass-Monkey already ships as a working stdio MCP server consumed by Gemini CLI and Antigravity. The active goal is to make it installable and upgradeable on Claude (Claude Code plugin + marketplace as the primary path; a Claude Desktop bundle as a secondary path; raw claude mcp add as the universal fallback) while keeping Gemini/Antigravity working unchanged.

The work is tracked as a checklist in docs/claude-packaging-plan.md. Treat that file as the source of truth for progress: read it at the start of a session, check off items as their "Done when" criteria are met, and commit the updated file.

Non-negotiable rules for this initiative

  1. Verify formats against live docs — do not trust memory. Before implementing the Claude Code plugin/marketplace phase or the Desktop bundle phase, fetch and read the current official documentation and follow the live schema:
    • Claude Code docs map: https://docs.anthropic.com/en/docs/claude-code/claude_code_docs_map.md
    • Claude docs: https://docs.claude.com Plugin manifest structure, marketplace manifest structure, and the desktop bundle format/name (.dxt vs .mcpb) all change; confirm them before writing any manifest.
  2. Branch protection. main is protected. All work happens on a release-1.6.x (or release-1.7.0 if treated as a feature bump) branch. Never commit directly to main. Finalize via Pull Request; the Author (Matt) reviews and merges.
  3. Additive, not forking. The stdio MCP server (src/mcp-server.ts → dist/bundle/index.js) is the shared core. Each ecosystem gets its own thin manifest pointing at the same launch command. Do not fork server logic per platform.
  4. One phase per session. Use plan mode to propose before editing, gate each phase on npm test + a manual MCP Inspector check, commit, then compact/clear before the next phase.

Shared Mandates (consistent with GEMINI.md)

Explanations First & Buy-in

ALWAYS provide a technical explanation of proposed changes and seek approval BEFORE modifying files or running state-changing commands. Treat reports of bugs or concerning behavior as Inquiries (research/strategy) rather than Directives (immediate action) until a plan is agreed. For any change affecting more than one file, modifying tool logic, or altering architectural patterns, present a strategy and wait for explicit buy-in.

Structural Fixes over Band-aids

Prioritize correcting the root cause over restrictive guards or tool-level blocks. If the agent gets confused, first audit the orientation data and skill guidance; fix the guidance before hard-coding restrictions.

Release Workflow

  • All release work on a dedicated release branch (e.g., release-1.7.0).
  • Version sync: keep versions synchronized across package.json, gemini-extension.json, the default version in src/mcp-server.ts, and any new Claude manifests. (Phase 0 introduces a single-source mechanism for this.)
  • Merge to main via PR; Author reviews/merges. Tag main (e.g., v1.7.0) after merge and clean up the release branch.

Technical Mandate

  • Language: TypeScript (strict mode). Modules: ESM.
  • Validation: zod for all tool parameters and Odoo response validation.
  • Performance: async for all RPC calls.
  • Build: npm run build (tsc + ncc bundle to dist/bundle).
  • Test: npm test (vitest). Live/manual checks via ./start-inspectors.sh.

Architecture

  • src/tools/ — Odoo-bridge tools (RPC wrappers, metadata discovery).
  • src/services/ — connectivity, auth, caching, orchestration, auditing.
  • src/schemas/ — Zod schemas.
  • skills/ — 23 domain skills. These already use Anthropic Agent Skills format (SKILL.md with name/description frontmatter + resources/). Reuse them for Claude; do not rewrite the format.
  • docs/ — technical docs and implementation plans.

Security & Data Protection

  • Zero-log policy: never log Odoo tokens, passwords, or sensitive record data.
  • Credential isolation: resolution order is OS keychain → encrypted local file → env var; never commit secrets. Phase 2 resolved the native-module risk: keytar is now an optionalDependency loaded best-effort via createRequire (never bundled — no platform-locked .node ships), and the guaranteed cross-platform baseline is an AES-256-GCM encrypted local file (src/services/credential-store.ts). Hosts that inject ODOO_API_KEY use neither on-disk path. BRASS_MONKEY_NO_KEYCHAIN=1 forces the encrypted-file path.
  • Write guards: state-changing tools require an explicit justification, logged to ir.logging + Chatter with agent/human attribution.

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.