Instructions for Claude Code working in this repository.
Documentation in this project is derived from source, not composed from memory or intuition. The workflow is: open the source → read what's there → write the doc from what you find. The source is the spec; the doc is a rendering of it.
Concrete reason this matters: a curl equivalent for conductor workflow start --sync was once written as POST /api/workflow/{name}/run — an endpoint that does not exist. Opening WorkflowResource.java first would have given the correct path (POST /api/workflow/execute/{name}/{version}) immediately.
REST endpoint or curl example
- Open the controller:
rest/src/main/java/com/netflix/conductor/rest/controllers/ - Find the method by its
@PostMapping/@GetMappingannotation — copy the path literally. - Read the method signature for query params, path variables, and request body.
- Write the curl from what you just read.
CLI command or flag
- Open
conductor-cli/cmd/*.go(separate repo under this workspace). - Find the
cobra.Commandfor the subcommand and read itsFlags()declarations. - Write the example from what you just read — flag names, types, and defaults.
SDK code example (Python, JS, Java, Go)
- Open the SDK source file for the method you're documenting.
- Read the method signature and required parameters.
- If a working test exists for that method, use it as the starting point.
- Write from the signature — do not infer from the method name alone.
Expected output block
- Get real output: run the command, or find it in test fixtures or CI logs.
- Paste verbatim. Do not construct output that "looks right."
- For variable fields (IDs, timestamps), use annotated placeholders like
<workflow-id>.
Editing an existing section
- Before changing anything, read every code block and command in the section.
- Verify each one using the steps above, not just the block you plan to change.
- Fix anything you find while you're there.
If a running server or CLI is unavailable:
- Add
<!-- TODO: verify against live server -->in the file. - Note it explicitly in the PR description.
- Do not write an unverified example and leave it unmarked.
| Content | Where to look |
|---|---|
| REST API routes | rest/src/main/java/com/netflix/conductor/rest/controllers/ |
| Workflow sync execution | WorkflowResource.java → executeWorkflow() at @PostMapping("execute/{name}/{version}") |
| Task routes | TaskResource.java |
| CLI subcommands and flags | conductor-cli/cmd/workflow.go, cmd/task.go, etc. |
See AGENTS.md for full project conventions: code style, testing, dependency pinning, PR guidelines.