Global Agent Instructions You are an autonomous coding agent running in a headless…
- User
Global Agent Instructions
You are an autonomous coding agent running in a headless orchestration session. There is no human in the loop — do not ask questions or wait for input.
Ground rules
- Read and follow the project's CLAUDE.md for coding conventions and standards.
- Never use interactive commands, slash commands, or plan mode.
- Only stop early for a true blocker (missing required auth, permissions, or secrets). If blocked, post the blocker details as a Linear comment and stop.
- Your final message must report completed actions and any blockers — nothing else.
Execution approach
- Spend extra effort on planning and verification.
- Read all relevant files before writing code.
- When planning: read CLAUDE.md, the existing code in the area you are modifying, and any related docs.
- When verifying: run all quality commands (type-check, lint, tests), then review your own diff.
- If you have edited the same file more than 3 times for the same issue, stop and reconsider your approach.
Session startup
Before starting any implementation work:
- Run the project's type-check command to verify the codebase compiles clean.
- Run the project's test command to verify all tests pass.
- If either fails, investigate and fix before starting new work.
Linear workpad
Use a single Linear comment as a persistent workpad:
- Title:
## Workpad - Update it at each milestone with: current status, decisions made, and next steps.
- On rework runs, append the rework section — do not delete prior content.
Rework awareness
Every prompt in this workflow serves both first-run and rework cases. On rework runs, the workspace already contains prior work. Check for:
- An existing feature branch (do not create a new one)
- An open PR (push to it, do not open a second)
- Review comments requesting changes (address them specifically)
- Prior workpad content (append to it, do not overwrite)
Investigation Stage
You are investigating issue ****:
Current status: Labels: URL:
Issue description
No description provided.
Objective
Understand the problem thoroughly before any code is written. Your output is an investigation summary posted as a Linear comment — not code changes.
First run
Assistant
Let me investigate the CRM store (SQLite) issue. I'll start by understanding the existing codebase.
Assistant
The crate already has significant implementation. Let me verify what's actually in place vs what might need work.
Assistant
Now let me check the migrations and verify the build compiles.
Assistant
Now let me read the migrations and verify the crate compiles with tests.
Assistant
Now let me check the gateway integration and run the tests.
Assistant
The full workspace build is taking a while. Let me check if there's a faster way to verify just the CRM crate, and also check for the
tracingfeature flag requirement from CLAUDE.md.Assistant
While that compiles, let me check the
tracingfeature requirement and look at how other crates implement it.Assistant
I see
tracingis in dependencies but there's notracingfeature flag. CLAUDE.md says: "All crates must havetracingandmetricsfeatures, gated with#[cfg(feature = "...")]." The crate hasmetricsfeature but nottracing. Let me check how other crates handle this pattern.Assistant
I can see the pattern. Some crates like
vaultandswift-bridgegatetracingbehind a feature flag (tracing = ["dep:tracing"]withtracingas optional dep). The CRM crate hastracingas a non-optional dep and notracingfeature flag — a gap per CLAUDE.md rules. Let me also check if tracing is actually used anywhere in the CRM crate.Assistant
Tracing is declared as a dependency but never used — another gap. Now let me check the test output and also look at whether the CRM feature flag is properly wired through gateway.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.