Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Codex/reconstruct bun cli#1

Merged
paoloanzn merged 22 commits into
mainfrom
codex/reconstruct-bun-cli
Mar 31, 2026
Merged

Codex/reconstruct bun cli#1
paoloanzn merged 22 commits into
mainfrom
codex/reconstruct-bun-cli

Conversation

@paoloanzn
Copy link
Copy Markdown
Collaborator

@paoloanzn paoloanzn commented Mar 31, 2026

Summary by CodeRabbit

  • New Features

    • Added assistant setup and session management dialogs for improved onboarding flow.
    • Enabled ultraplan feature for users.
    • Introduced new plan execution verification and workflow tools.
  • Documentation

    • Updated README with rebranded project name and simplified setup instructions.
    • Added feature flags audit documentation and app structure overview.
  • Chores

    • Rebranded product references throughout the UI.
    • Disabled all telemetry and analytics collection systems.
    • Updated build system with new compilation variants and feature-flag support.
    • Migrated to new color scheme for UI accents.

paoloanzn and others added 22 commits March 31, 2026 14:34
ultraplan was blocked by two gates that restricted it to ant-only builds:
1. It was in INTERNAL_ONLY_COMMANDS (only included when USER_TYPE=ant)
2. Its own isEnabled checked process.env.USER_TYPE === 'ant'

Move it to the main COMMANDS array and remove the ant-only isEnabled gate.
The feature('ULTRAPLAN') flag already controls whether the code is loaded.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
These components were referenced in REPL.tsx but never defined, causing
a runtime crash when ultraplan tried to launch. Added:

- UltraplanLaunchDialog: pre-launch confirmation with terms/cancel
- UltraplanChoiceDialog: post-plan approval with execute-here/dismiss
- Conditional requires in REPL.tsx gated on feature('ULTRAPLAN')

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the research-archive README with a proper project README
covering what free-code is, build instructions, feature flags,
and project structure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@paoloanzn paoloanzn merged this pull request into main Mar 31, 2026
1 check was pending
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 31, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bc297959-387c-47bb-a6e8-40773309908f

📥 Commits

Reviewing files that changed from the base of the PR and between 4b9d30f and 33f530d.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (71)
  • .gitignore
  • FEATURES.md
  • README.md
  • app_structure_llm.txt
  • env.d.ts
  • package.json
  • scripts/build.ts
  • src/assistant/AssistantSessionChooser.tsx
  • src/commands.ts
  • src/commands/assistant/assistant.tsx
  • src/commands/release-notes/release-notes.ts
  • src/commands/ultraplan.tsx
  • src/components/LogoV2/ChannelsNotice.tsx
  • src/components/LogoV2/CondensedLogo.tsx
  • src/components/LogoV2/Feed.tsx
  • src/components/LogoV2/FeedColumn.tsx
  • src/components/LogoV2/GuestPassesUpsell.tsx
  • src/components/LogoV2/LogoV2.tsx
  • src/components/LogoV2/OverageCreditUpsell.tsx
  • src/components/LogoV2/WelcomeV2.tsx
  • src/components/LogoV2/feedConfigs.tsx
  • src/components/StructuredDiff/colorDiff.ts
  • src/components/UltraplanChoiceDialog.tsx
  • src/components/UltraplanLaunchDialog.tsx
  • src/components/agents/SnapshotUpdateDialog.tsx
  • src/constants/cyberRiskInstruction.ts
  • src/constants/keys.ts
  • src/entrypoints/init.ts
  • src/entrypoints/sdk/coreTypes.generated.ts
  • src/entrypoints/sdk/runtimeTypes.ts
  • src/entrypoints/sdk/toolTypes.ts
  • src/ink/devtools.ts
  • src/ink/global.d.ts
  • src/main.tsx
  • src/screens/REPL.tsx
  • src/services/analytics/datadog.ts
  • src/services/analytics/firstPartyEventLogger.ts
  • src/services/analytics/index.ts
  • src/services/analytics/sink.ts
  • src/services/compact/cachedMCConfig.ts
  • src/services/compact/cachedMicrocompact.ts
  • src/services/compact/snipCompact.ts
  • src/services/compact/snipProjection.ts
  • src/services/contextCollapse/index.ts
  • src/services/contextCollapse/operations.ts
  • src/services/contextCollapse/persist.ts
  • src/services/mcp/client.ts
  • src/services/voice.ts
  • src/skills/bundled/claudeInChrome.ts
  • src/skills/bundled/verifyContent.ts
  • src/tools/TungstenTool/TungstenLiveMonitor.tsx
  • src/tools/TungstenTool/TungstenTool.ts
  • src/tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.ts
  • src/tools/VerifyPlanExecutionTool/constants.ts
  • src/tools/WorkflowTool/constants.ts
  • src/types/connectorText.ts
  • src/utils/claudeInChrome/mcpServer.ts
  • src/utils/claudeInChrome/package.ts
  • src/utils/claudeInChrome/setup.ts
  • src/utils/debug.ts
  • src/utils/filePersistence/types.ts
  • src/utils/logoV2Utils.ts
  • src/utils/modifiers.ts
  • src/utils/releaseNotes.ts
  • src/utils/telemetry/betaSessionTracing.ts
  • src/utils/telemetry/events.ts
  • src/utils/telemetry/instrumentation.ts
  • src/utils/telemetry/sessionTracing.ts
  • src/utils/theme.ts
  • src/utils/ultraplan/prompt.txt
  • tsconfig.json

📝 Walkthrough

Walkthrough

A comprehensive restructuring and rebranding of Claude Code into Free Code, including removal of telemetry and analytics infrastructure, new documentation and build configuration, addition of SDK types and stub components, and UI rebranding throughout the codebase.

Changes

Cohort / File(s) Summary
Project Setup & Configuration
.gitignore, package.json, tsconfig.json
Added build output and dependency directories to gitignore, new package.json for Bun CLI workspace with build scripts and dependencies, and TypeScript configuration supporting ESNext targets and Bun types.
Documentation
README.md, FEATURES.md, app_structure_llm.txt
Replaced prior research-focused README with free-code project description emphasizing telemetry removal and all features unlocked. Added feature flags audit documentation and app structure snapshot for LLM context.
Build Infrastructure
scripts/build.ts
New Bun build script supporting compile mode, dev variants, feature selection, macro generation, and version/changelog handling with git integration.
Type Definitions & SDK
env.d.ts, src/entrypoints/sdk/*, src/types/connectorText.ts
Added MACRO and native module type declarations, comprehensive SDK core and runtime type definitions, and connector text block types.
UI Rebranding
src/components/LogoV2/*, src/utils/theme.ts, src/utils/logoV2Utils.ts
Updated all welcome and feed components from "Claude Code" to "Free Code", changed accent colors from claude to startupAccent across themes, and refactored release notes retrieval logic.
Telemetry & Analytics Removal
src/services/analytics/*, src/utils/telemetry/*
Removed OpenTelemetry instrumentation, event logging, Datadog tracking, and beta session tracing. Replaced implementations with no-op stubs while preserving function signatures.
Entry Point & Initialization
src/entrypoints/init.ts
Removed deferred telemetry initialization, settings fetching, and product instrumentation, reducing startup to configuration bootstrapping only.
New Stub Components
src/assistant/AssistantSessionChooser.tsx, src/commands/assistant/assistant.tsx, src/components/UltraplanChoiceDialog.tsx, src/components/UltraplanLaunchDialog.tsx, src/components/agents/SnapshotUpdateDialog.tsx
Added new React components and utility functions for assistant sessions, ultraplan workflow, and snapshot updates; most currently render null or invoke cancel callbacks.
Compaction & Context Services
src/services/compact/*, src/services/contextCollapse/*
Added cached microcompact, SNIP compaction, and context collapse infrastructure with configuration types and helper functions (mostly stubbed/no-op).
Native & Optional Modules
src/utils/claudeInChrome/package.ts, src/utils/modifiers.ts, src/services/voice.ts, src/utils/claudeInChrome/mcpServer.ts, src/services/mcp/client.ts
Refactored imports to use lazy/dynamic loading for optional @ant/* packages with fallbacks, added try/catch error handling for native modules, supporting graceful degradation when modules unavailable.
Tool Implementations
src/tools/TungstenTool/*, src/tools/VerifyPlanExecutionTool/*, src/tools/WorkflowTool/constants.ts
Added new tools (Tungsten, VerifyPlanExecution, Workflow) with disabled/unavailable implementations returning fixed messages.
Release Notes & Utilities
src/utils/releaseNotes.ts
Refactored release note filtering to support versioning logic via new getRecentReleaseNoteGroups helper with error handling and version comparison.
Command Updates
src/commands.ts, src/commands/ultraplan.tsx, src/commands/release-notes/release-notes.ts
Moved ultraplan command from internal-only to standard commands, changed enablement from conditional to always-true, updated release-notes fetching strategy to tiered version-aware filtering.
Bundled Skills
src/skills/bundled/claudeInChrome.ts, src/skills/bundled/verifyContent.ts
Updated Claude-in-Chrome tool imports to use dynamic loader, replaced bundled verify content markdown with missing-content placeholder strings.
Color Diff & Debug
src/components/StructuredDiff/colorDiff.ts, src/utils/debug.ts, src/utils/filePersistence/types.ts
Switched color-diff from native NAPI to bundled TypeScript implementation, updated debug flag from -d2e to -D, added file persistence type constants.
Module Exports
src/ink/devtools.ts, src/ink/global.d.ts, src/entrypoints/sdk/toolTypes.ts
Added minimal module files with empty exports to establish proper module scope and declaration behavior.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

🐰 Hop hop, the code is rebranded free,
Telemetry gone—no spy to see!
✨ New components, utilities refined,
Lazy loading leaves imports kind,
Building tools with stubs so neat,
Free Code's future looks so sweet! 🚀

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/reconstruct-bun-cli

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant