agentleFS
lgzarturolgzarturo/codeconductor/AGENTS.md

codeconductor

AGENTS.md0 starsChanged 25 days agoMITView on GitHub

This project uses CodeConductor for structured AI-assisted engineering workflows. These principles apply to all agents in every workflow. They reduce common LLM coding mistakes and bias toward caution over speed. 1. Think Before Coding — State assumptions explicitly. If uncertain, ask. If multiple interpretations exist, present them — don't pick silently. If a simpler approach exists, say so. 2. Simplicity First — Minimum code that solves the problem. No features beyond what was asked. No abstractions for single-use code. No…

The file

Show its rules and text

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

21 rules. About 1 is common, 14 are distinctive, and 6 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not build features, abstractions, or "flexibility" that is not explicitly requested.

    line 26
  2. Distinctive:

    Prefer the language's standard library over third-party packages.

    line 31
  3. Distinctive:

    Do not invoke the Implementer without an accepted Technical Plan.

    line 69
  4. Distinctive:

    Do not skip the Reviewer step for medium- or high-risk changes.

    line 70
  5. Common:

    Do not store secrets in any file loaded by Muse.

    line 71
  6. Very specific:

    Do NOT use npx cc-codeconductor for local testing.

    line 85
  7. Distinctive:

    Prefer editing over rewriting whole files.

    line 141
  8. Distinctive:

    Do not re-read files you have already read unless the file may have changed.

    line 142
  9. Distinctive:

    Test your code before declaring done.

    line 146
  10. Distinctive:

    No sycophantic openers or closing fluff.

    line 147
  11. Distinctive:

    Keep solutions simple and direct.

    line 148
  12. Distinctive:

    When using tools, be precise and minimal with context.

    line 150
  13. Distinctive:

    If the task type differs from the previous one, execute "/clear" before starting.

    line 154
  14. Very specific:

    When the user types /graphify, invoke the skill tool with skill: "graphify" before doing anything else.

    line 163
  15. Very specific:

    If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.

    line 177
  16. Very specific:

    Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.

    line 179
  17. Very specific:

    After modifying code, run graphify update .

    line 181
  18. Distinctive:

    Use when: Before reviewer in refactor (medium–high), API change, and database migration routes.

    line 190
  19. Distinctive:

    Does not: Write files, execute commands, or make routing decisions.

    line 219
  20. Very specific:

    When the orchestrator receives a GoalGraph, it delegates tasks in dependency order.

    line 223
  21. Distinctive:

    Does not: Write implementation code.

    line 245

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

CodeConductor — Agent Instructions

This project uses CodeConductor for structured AI-assisted engineering workflows.

Behavioral Discipline

These principles apply to all agents in every workflow. They reduce common LLM coding mistakes and bias toward caution over speed.

  1. Think Before Coding — State assumptions explicitly. If uncertain, ask. If multiple interpretations exist, present them — don't pick silently. If a simpler approach exists, say so.
  2. Simplicity First — Minimum code that solves the problem. No features beyond what was asked. No abstractions for single-use code. No speculative "flexibility." Ask: "Would a senior engineer say this is overcomplicated?"
  3. Surgical Changes — Touch only what you must. Don't "improve" adjacent code. Match existing style. Remove only what YOUR changes made unused. Every changed line must trace directly to the user's request.
  4. Goal-Driven Execution — Transform tasks into verifiable goals with success criteria. For multi-step tasks, state a plan with verification checks. Loop until verified.

YAGNI (You Aren't Gonna Need It)

Do not build features, abstractions, or "flexibility" that is not explicitly requested. Every line you write must solve a problem that exists now.

Stdlib-First

Prefer the language's standard library over third-party packages. Add a dependency only when the repository's existing tools cannot solve the problem.

<!-- CODECONDUCTOR:BEGIN managed -->

CodeConductor — Muse Preset

This file configures CodeConductor for Muse (Meta's coding-agent CLI, binary muse). It lives at the project root (AGENTS.md) so Muse's context-file loader picks it up automatically.

Behavioral Discipline

  1. Think Before Coding — state assumptions; ask if uncertain; present alternatives instead of picking silently.
  2. Simplicity First — minimum code that solves the problem; no speculative abstractions.
  3. Surgical Changes — touch only what the task requires; match existing style; remove only what your own change made unused.
  4. Goal-Driven Execution — turn the task into a verifiable goal with a success check; loop until it passes.

Commands

CodeConductor ships its workflows as Muse skills under .agents/skills/, invoked as /cc:<name> (e.g. /cc:feature, /cc:review). Run /cc:ask "<problem>" when unsure which one applies — it recommends exactly one and stops; it does not start the workflow.

Skills live under .agents/skills/ (Muse discovers skills there natively, per its own docs). Read .agents/skills/using-cc-skills/SKILL.md first — it maps intent to the right slash command.

Where a step says "adopt the X role", read the matching skill under .agents/skills/ and act as that role for the rest of the step.

What never changes

  • Do not invoke the Implementer without an accepted Technical Plan.
  • Do not skip the Reviewer step for medium- or high-risk changes.
  • Do not store secrets in any file loaded by Muse.

Receipt integrity

  • For any implementation, test, review, handoff, or delivery decision, capture or verify the current RDD receipt with npx cc-codeconductor rdd.
  • A receipt is valid only for its exact candidate. If code, tests, contracts, or runner configuration changed, repeat the affected verification.
  • TDD and Mutation Testing retain their existing gates; RDD verifies that their observed evidence still belongs to the current candidate.
<!-- CODECONDUCTOR:END managed -->

Local Development Execution Rule

Do NOT use npx cc-codeconductor for local testing. Use bun run dev instead to test all current flow before publishing version v1.0.0 to npm.

Production (npx)Local development (bun run dev)
npx cc-codeconductor seo audit --url …bun run dev seo audit --url …
npx cc-codeconductor goal "…"bun run dev goal "…"
npx cc-codeconductor ccep parse …bun run dev ccep parse …

Project-Specific Notes

This section is manually maintained. Add project-specific conventions, exceptions, or context here.

Agent Routing Table

Task TypeRiskRoute
New feature designanyarchitect → tester → implementer
Bug fixlowtester → implementer
Bug fixmedium–hightask-coach → tester → implementer
Refactorlowimplementer
Refactormedium–higharchitect → implementer → complexity-auditor → reviewer
API changeanyarchitect → implementer → complexity-auditor → reviewer
Database migrationanyarchitect → tester → implementer → complexity-auditor → reviewer
Test coverageanytester
Documentation updateanydocs
Codebase explorationanyrepo-explorer
Code reviewanyreviewer
DDD→SDD→TDD pipelineanycontract-builder → architect → tester → implementer

Each arrow represents a handoff. The next agent starts only after the previous agent's deliverable is available.

Internal skills (not shipped)

SkillDescriptionPath
cc-self-reviewSelf-review del producto (seguridad, implementación, flujo, features, mental model). Solo este repo.SKILL.md
cc-update-preset-modelsRefresca slugs de modelo en src/presets/models/ y tests de install. Solo este repo.SKILL.md

Slash commands (Cursor, solo este proyecto): /cc-self-review · /cc:self-review · /cc-update-preset-models · /cc:update-preset-models

  • Canonical skills: skills/cc-self-review/, skills/cc-update-preset-models/ (fuera de presets/ y del npm package)
  • Cursor stubs: .cursor/commands/ y .cursor/skills/ para cada una
  • Never copy into presets/, CCEP profiles, Conductor Agent routing, or src/presets/
  • This repo dogfoods bun run dev install preset --target cursor. Maintainer stubs are skipped by isMaintainerReservedDest (including --force).

OpenSpec

OpenSpec is a delivery loop (validate-backlog → discover → design → test → implement → review) and the backlog tool for BACKLOG.md. Author with /cc-backlog (bun run dev locally). Deliver with bun run dev openspec … and /cc-openspec.

Approach

  • Think before acting. Read existing files before writing code.
  • Be concise in output but thorough in reasoning.
  • Prefer editing over rewriting whole files.
  • Do not re-read files you have already read unless the file may have changed.
  • Skip files over 100KB unless explicitly required.
  • Suggest running /cost when a session is running long to monitor cache ratio.
  • Recommend starting a new session when switching to an unrelated task.
  • Test your code before declaring done.
  • No sycophantic openers or closing fluff.
  • Keep solutions simple and direct.
  • User instructions always override this file.
  • When using tools, be precise and minimal with context.

Context Budget

  • If the task type differs from the previous one, execute "/clear" before starting.
  • Delegate verbose operations to sub-agents.

graphify

This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships.

When the user types /graphify, invoke the skill tool with skill: "graphify" before doing anything else.

Rules:

  • For codebase questions, first run graphify query "<question>" when graphify-out/graph.json exists. Use graphify path "<A>" "<B>" for relationships and graphify explain "<concept>" for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output.
  • Dirty graphify-out/ files are expected after hooks or incremental updates; dirty graph files are not a reason to skip graphify. Only skip graphify if the task is about stale or incorrect graph output, or the user explicitly says not to use it.
  • If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
  • Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.
  • After modifying code, run graphify update . to keep the graph current (AST-only, no API cost).

complexity-auditor

Role: Analyzes code for bloat, unnecessary abstractions, and non-native solutions. Produces a structured Complexity Audit Report with LOC deltas, dependency changes, and bloat pattern findings.

Use when: Before reviewer in refactor (medium–high), API change, and database migration routes.

Permissions:

  • read: allow
  • edit: deny
  • bash: deny
  • network: deny

Does not: Propose new dependencies, suggest new abstractions, recommend external libraries, or edit any file.

goal-planner

Role: Transforms an objective string into a YAML task graph with dependencies. Deterministic template matching; objective → GoalGraph. No side effects.

Use when: User runs codeconductor goal "<objective>" or the orchestrator needs a multi-step plan before delegation.

Permissions:

  • read: allow
  • edit: deny
  • bash: deny
  • network: deny

Does not: Write files, execute commands, or make routing decisions.

Dependency order delegation (orchestrator):

When the orchestrator receives a GoalGraph, it delegates tasks in dependency order. A task is routed only after all its depends_on targets complete with status done. If a dependency is blocked, the dependent task remains pending. The orchestrator tracks the graph state in .codeconductor/current-goal.yml.

contract-builder

Role: Defines API contracts, data shapes, and behavior specs before implementation. Produces OpenAPI specs, JSON Schema, or TypeScript interfaces that the implementer and tester use as the source of truth.

Use when: A new feature needs spec-before-implementation, an API contract needs definition, or the DDD→SDD→TDD pipeline is triggered.

Permissions:

  • read: allow
  • edit: ask (docs, ADRs, OpenAPI only)
  • bash: deny
  • network: deny

Does not: Write implementation code. Modify source files.

Agent Contract Notes

Agent permissions and routing in this file are the canonical Pi context contract for this repository.

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.