Prerequisites: Bun 1.3+, Cortex Code CLI
git clone https://github.com/anthu/cortex-code-action
cd cortex-code-action
bun installsrc/
├── entrypoints/run-cortex.ts # Main entry point
├── security/ # canUseTool gate and blocklists
├── modes/ # Mode detection and prompt assembly
├── prompt/ # System prompts
├── github/ # Comment and commit utilities
└── utils/ # Output sanitization
test/
└── security/ # Unit tests for security gate
docs/ # Detailed documentation
examples/ # Ready-to-use workflow files
bun testbun run typecheckAdd test cases to test/security/can-use-tool.test.ts. Every new blocked tool or path pattern should have a corresponding test.
- Update
CHANGELOG.md - Commit:
git commit -m "chore: release v0.x.0" - Tag:
git tag v0.x.0 - Push:
git push && git push --tags - Create release:
gh release create v0.x.0 --generate-notes