Instructions for Cortex Code when working in this repository.
This is a GitHub Actions composite action written in TypeScript using Bun. It provides AI-powered PR code reviews for data teams using the Cortex Code Agent SDK.
action.yml-- The public interface (inputs, outputs, steps)src/security/can-use-tool.ts-- Security gate (most critical file -- review changes carefully)src/entrypoints/run-cortex.ts-- Main entry pointdocs/-- User-facing documentation
- Run
bun run typecheckafter any TypeScript changes - Run
bun testto validate security gate behavior - The
canUseToolgate is security-critical: any change to blocked-tools.ts or blocked-paths.ts requires a corresponding test intest/security/ - Never add
allowDangerouslySkipPermissions: trueorpermissionMode: "bypassPermissions"anywhere in the codebase
bun install
bun run typecheck
bun test