Instruction file imported from shantanunp/kodiak-agent (
.cursor/rules/kodiak-agent-label.mdc). Copyright stays with the author.
Kodiak offline field labeling
When the user asks you to complete an offline label job (or you have .cache/agent-jobs/**/job.json open):
- Read
job.json— everything is in the file (sourceJava,schemaJson,schemaContext,mapper,fields[]). - Follow
systemPromptandschemaContextexactly — same rules as the live model API. - For each
fields[]entry, find the Java write insourceJavaand produce aFieldMappingResponse. - Write only
result.jsonnext tojob.json(see shape in.github/instructions/kodiak-agent-label.instructions.md). - Do not call external model HTTP APIs. Do not invent schema field paths.
- Do not run npm commands yourself.
- After writing
result.json, printjob.vscodeStepsfor the user to run in the VS Code terminal:
npm run label:import -- --result <result.json> [--fields ...]
npm run label -- --mapper <id> --from-cache-only [--fields ...]
npm run ui:serve