Skip to content

improvement(sim-cli): name source find in the workspace primer's debug rules - #10447

Merged
waleedlatif1 merged 1 commit into
stagingfrom
improvement/workspace-primer-source-find
Nov 27, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
improvement/workspace-primer-source-find

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

#10442 added sim workflows source find <block>. It prints a block's code, edges and readers offline, as file:line. A workspace source directory's .sim/AGENTS.md primer never mentions it, so an agent editing workflows/<key>/ inside a workspace dir doesn't learn the command exists. This adds it to the workspace primer's Debug rule, with the --dir workflows/<key> that a workspace directory needs.

sharedRules takes an optional debug extra, the same pattern as its renames and patterns extras. The workflow primer is unchanged byte for byte, so the Mothership worker's workflow-source skill, which preloads that primer, needs no resync. The workspace primer is 4036 bytes, within PRIMER_MAX_BYTES (4096).

Type of Change

  • Other: CLI agent guidance

Testing

vitest run src/commands/protocol/ in packages/sim-cli: 648 pass. That includes "names in the workspace primer only commands and flags this CLI has" (leaf command, --dir is a real flag) and the primer size cap.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 26, 2026 11:43pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Adds sim workflows source find <name> --dir workflows/<key> to the workspace primer’s Debug rule.

  • Workspace primers now show how to find blocks in nested workflows.

Reviews (2) · Last reviewed commit: "improvement(sim-cli): name source find i..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 force-pushed the improvement/workspace-primer-source-find branch from ee4d6ef to d814e99 Compare November 26, 2026 23:43
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@waleedlatif1
waleedlatif1 merged commit e5aad7f into staging Nov 27, 2026
153 of 155 checks passed

This branch was previously deployed

1 inactive deployment
Preview — d814e994 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant