Agent guide
This page is the starting point for LLM agents working on Saluki, and for the humans directing them. It covers our policy on agent use, then points to the guidance for each part of the development process. Read it before starting any work, then read the linked pages relevant to your task.
Policy
Use of LLMs while working on Saluki is absolutely fine. This covers all aspects of working on the project: feature development, testing, debugging, and so on.
However, we don't allow fully autonomous or unsupervised commits to main or release branches. In practice:
- a human operator may use LLMs as part of their workflow
- setting up agents to run autonomously is fine
- a human operator MUST review every contribution before it's merged
These rules have a single goal: keep human operators part of the development process, so that we maintain the quality of the software and don't lose understanding of what we're building.
Guiding principles
- Top priorities are correctness, then performance, in that order.
- Code should be maintainable and human-readable.
- Documentation is crucial.
- Write code comments and docs in the ASD-STE100 style: short sentences, the active voice, and the present tense. Comments describe the code as it is now. See Writing style.
- Development is a conversation, not a monologue. Communicate early and often, from ideation to execution, so that you and the human operator stay aligned on the current task: debugging an issue, adding a feature, or refactoring code.
Documentation lives under docs/
All documentation lives under docs/, and all development guidance lives under docs/development/. When you update documentation or propose a new page or section, it MUST go there. Don't add READMEs or other Markdown files next to code, and don't add guidance to the entrypoint files listed below. See Where documentation lives for the details.
Entrypoints
Some files must stay where tooling expects to find them. They point into docs/ instead of holding guidance:
| File | Read by | Contents |
|---|---|---|
AGENTS.md | Agents that follow the AGENTS.md convention, Bits Code Review, and Codex Cloud | Pointer to this page, and a ## Code Review Rules section that points review agents to the codereview_guideline.md files |
.claude/CLAUDE.md | Claude Code | Imports this page |
.agents/skills/*/SKILL.md, symlinked from .claude/skills | Agent skill discovery | Procedures; reference material lives in docs/development/ |
codereview_guideline.md files | The /dd-review workflow | Self-contained review prompts, generated from marked sections of docs/development/; see Edit the guidelines |
test/antithesis/AGENTS.md | Agents working in test/antithesis/ | Antithesis workflow notes |
Project map
bin/agent-data-plane: the primary artifact of this project, a binary that runs alongside the Datadog Agentbin/correctness: tools for correctness and integration testslib/: production frameworks and common code supportingagent-data-planelib/datadog-agent/: core Agent configuration and IPC protocolslib/datadog-agent/runtime: the shared runtime for processes that act as a remote agent for the Datadog Agent, such asagent-data-plane: registration, configuration streaming, the workload provider, the status, flare, and telemetry services, the control plane workers, and theRemoteAgentstartup facade
docs/: all documentation, published as the project's docs sitetest/: integration, correctness, benchmark, and Antithesis test cases
Checking your work
The Makefile is authoritative for build commands. These checks get progressively deeper: use level 1 while editing Rust code, and work through the later levels when you think you're done.
cargo check --workspace && cargo check --workspace --tests. At first this may be narrowed to the--binor--libyou're working on, but run it on the whole workspace before moving on. Run the relevant tests withcargo nextest run, and always runmake fmtwhen you're done editing.make check-allfor lints, including Vale on documentation.make test-allfor all unit tests.
Use the /panoramic skill for correctness and integration testing.
Topics
| Topic | Read when |
|---|---|
| Style guide | Writing any code, code comment, or documentation, including the ASD-STE100 writing rules |
| Conventions | Making design choices; covers project-specific design rules and taste |
| Common language | Interpreting requirement levels such as MUST and SHOULD |
| Contributing | Writing commits, opening pull requests, adding release notes, and addressing review feedback |
| How we review | Reviewing a change: what to look for, and how to write review comments |
| Code review | Checking a change against the review checklists, or changing the review guidelines |
| Testing | Choosing which kind of test to write, and running test suites |
| Panoramic cases | Writing, running, or debugging a panoramic case; reading its results |
| Testing patterns | Writing unit tests or property tests |
| Configuration system | Working on configuration, the schema overlay, or the configuration inventory |
| Datadog Agent version | How we manage, update, and use the right version of the Datadog Agent |
| Plans | Planning work that spans several pull requests |
For Antithesis work, read test/antithesis/AGENTS.md.
Skills
Skills under .agents/skills/ hold step-by-step procedures. Where a skill needs reference material, it links to a page in this guide.
| Skill | Purpose | Reference |
|---|---|---|
binary-size-analysis | Find what contributes to the size of the agent-data-plane binary | |
config-schema-update | Update the vendored Datadog configuration schema | Configuration system |
config-system | Work on the configuration system | Configuration system |
create-release-note | Write a release note fragment | Release notes |
external-pr-ci-trigger | Run CI for an external contributor's pull request (maintainers only) | |
panoramic | Run correctness and integration tests and read their results | Panoramic cases |
Plans
Write plans for work that spans several pull requests in docs/development/plans/, one file per effort. Plans aren't published to the docs site and aren't linted. Keep a plan current as work lands, move anything of lasting value into the relevant page of this guide, and delete the plan in the final pull request of the effort.