Skip to content

Optional codebase-context integration for work-plan and work-execute - #130

Open
PatrickSys wants to merge 4 commits into
mainfrom
cursor/codebase-context-integration-704e
Open

PatrickSys wants to merge 4 commits into
mainfrom
cursor/codebase-context-integration-704e

Conversation

@PatrickSys

@PatrickSys PatrickSys commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Adds an off-by-default integrations.codebaseContext bridge to the codebase-context CLI.

Naming: plan-context and edit-preflight are Workspine helper subcommands only (not codebase-context CLI commands). They call the real CLI: patterns + per-file search --intent explore for planning, and search --intent edit for edit preflight (MCP get_team_patterns / search_codebase).

When enabled and the CLI is available, artifacts live under .work/integrations/codebase-context/. Disabled or missing CLI paths return disabled / unavailable with no workflow change.

Includes helper wiring in .work/bin/gsdd.mjs, User Guide notes, stubbed unit tests aligned to real JSON shapes, and an optional CC_E2E_BIN e2e test against a built codebase-context from main.

Open in Web Open in Cursor 

Add off-by-default integrations.codebaseContext config, helper commands
that record plan context and edit preflight receipts under .work/, workflow
docs, and unit tests with a stubbed CLI runner.

Co-authored-by: Patrick Rosselló Colom <PatrickSys@users.noreply.github.com>
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
workspine Ready Ready Preview Nov 6, 2026 9:49am UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T22:35:05.439424Z 2fe3ab0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2fe3ab0075

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bin/lib/integrations-cli.mjs Outdated
}

if (first === 'codebase-context') {
return cmdCodebaseContextSubcommand(second, [...rest, ...(json ? ['--json'] : [])], {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Forward subcommand flags instead of only positional arguments

For the enabled integration with an available CLI, both documented workflow commands lose their required inputs here: rest comes from positionalArgs(), which removes --files, --plan, --query, and --task together with their values. Consequently, plan-context returns missing_files and edit-preflight returns missing_query, even when callers supply all required flags, so neither workflow can produce its context or preflight artifact. Forward the original workspace-resolved subcommand arguments rather than the filtered positional list.

Useful? React with 👍 / 👎.

cursoragent and others added 3 commits October 30, 2026 22:39
Document Workspine-only plan-context/edit-preflight helpers, invoke
patterns and search --intent explore|edit (MCP get_team_patterns /
search_codebase), bundle integration modules in .work/bin, forward CLI
flags correctly, and run node for .js command paths. Tests mirror real
JSON shapes; optional CC_E2E_BIN e2e passes against main build.

Co-authored-by: Patrick Rosselló Colom <PatrickSys@users.noreply.github.com>
Keep XML sections and line budgets intact; document the registered integrations CLI command. Targeted and full 31-file CI suite pass; fresh consumer integrations show is off by default.

Agent: chat-on-steroids-core/86f31bc2-34b2-4051-974b-26abc00b3053
…urate

Clarify unreleased CLI availability, preserve XML and workflow budgets, and retain project-local command receipts. Targeted tests 1201 pass, 4 skip; full 31-file CI before final docs copy passed.

Agent: chat-on-steroids-core/86f31bc2-34b2-4051-974b-26abc00b3053

This branch was successfully deployed

1 active deployment
Preview — 63dc9c7f Deployed Nov 6, 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.

2 participants