Skip to content

Releases

Release v0.21.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 00:50
8bedcc6

What's New in v0.21.1

Changed

  • The skills tell agents to install cora from the release binary and to review before a pull request. Both skills (cora-code, cora-review) get a references/install.md: install with install.sh or the release archive and verify the checksum, never build from source to use cora (a source build lacks the bundled model and turns the meaning-based search off offline), then run cora install and cora index. Reviewing the branch with cora before opening a pull request is now worded as required, not recommended. cora install refreshes the cora-written copies.

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.21.1.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.21.1.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.21.1.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.21.1.zip

The archives above contain the code embedding model, so semantic search works right after the download, offline included.

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo (builds from source; downloads the 33.5 MB code model on first use)
cargo install cora-code

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md

Release v0.21.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 00:20
f7ceae4

What's New in v0.21.0

Removed

  • The hashing and pretrained embeddings are gone (#751). The code model is the only embedding. Without it (offline before the first download, CORA_EMBED_OFFLINE=1, brain.embedding: off) the vector signal is off and cora brain answers from keyword and call-graph signals with a warning that says so, instead of mixing in a weak substitute that measured neutral to harmful. brain.embedding is now auto or off; potion still loads, hashing and pretrained load with one warning. The pretrained-embed build feature, the 31 MB vendored token table and its extraction script are deleted, and the vector weights table with them.

Added

  • cora ignores dependencies, minified files and lockfiles by default, in review, scan and the index (#767). The built-in list was four root-only patterns, so a monorepo's packages/app/node_modules, vendored vendor/ directories and *.min.js were indexed and scanned, and cora review did not apply it to the diff at all (a secret added under node_modules/ was a CRITICAL finding and went to the model). Now the list covers node_modules, vendor, bower_components, __pycache__, site-packages, .venv, Pods (any depth), dist, target, .next, .nuxt, .gradle, *.min.js, *.min.css, *.js.map, *.css.map and the common lockfiles, and the diff is filtered before the scanners and the judge see it (one line says which files were skipped). Names that are often a project's own code (build, out, coverage, venv) are deliberately not on it: checked on Django, Rails, React, Flask, Express, coveragepy, ripgrep and cobra, the list hid only vendored libraries, minified files, source maps and lockfiles (a first draft with coverage/ would have hidden coveragepy's whole source; a test now guards against such names). ignore.keep turns single built-ins off, ignore.defaults: false all of them, and ignore.files still adds. The first index run after upgrading rebuilds the index with the new list. The Ignore Files docs now say exactly what ignore.files, ignore.defaults, ignore.keep, review.exclude, rules_engine.index_skip_files, ignore.rules and cora-ignore: each do.

  • The skills follow the Agent Skills layout and teach ignoring first (#767). cora-code and cora-review are now a short SKILL.md plus references/ files (ignore.md, tools.md, scan.md, ci.md) that the agent loads when needed; cora install writes and refreshes all of a skill's files, keeping any you edited. They tell the agent to set up ignores before the first review or scan (so dependencies and generated code do not poison the prompt or the index) and what not to ignore. The build now checks the layout (name equals directory, description limits, SKILL.md size, every reference linked and one level deep) and that every command, flag and MCP tool the skills name exists.

  • cora review and cora scan use the code model fully, also as an agent reviewer and in CI (#765). Before a review or scan with a judge builds its context, cora brings the project's index and vectors up to date (review.context_chain.auto_index, on by default, incremental), so a fresh CI checkout gets code intelligence and the code embedding model is used with no cora index step; a --no-llm run still only reads an existing index. The agent tools cora.review_prepare and cora.scan_prepare do the same, and cora.scan_prepare now gives the agent the context cora scan gives its judge (before, it had none). Review finds related code by the indexed name and signature of each changed symbol, with the vector signal, instead of the bare name; scan lists the real symbols of its files from the index (it searched file:"<path>" through the brain before) and finds code elsewhere that does a similar thing. A log line says what the context is made of (Code index: 1996 symbols; code model on, or code model off when only keyword and call-graph context was available). The cora-code and cora-review skills tell the agent to review the whole branch with cora before opening a PR and to suggest cora review in the project's CI.

  • The skills cora installs stay in step with the binary (#762). Each installed skill (cora-code, cora-review) now carries the cora version that wrote it and a hash of its text. After an upgrade, cora install refreshes the copies cora wrote, including the cora-review skill of v0.19.0 and v0.20.0 (which only reported "exists and differs" before), and keeps one you edited unless --force; cora install --remove takes only cora's copies. cora upgrade reminds you to run it. The build now fails when a skill names an MCP tool, a cora command or a flag that does not exist, and the pre-release checklist has a skills section.

  • Release binaries contain the code embedding model (#761). The archives built by the release workflow use the new bundled-model feature, so a fresh download indexes and searches by meaning right away, offline included: the first use unpacks the 33.5 MB potion-code-16M-v2 into the data directory (size and SHA-256 verified, atomic, no network). The binary grows by that size. cargo install builds do not carry it (crates.io's 10 MB package limit) and still download it once. scripts/fetch-model.sh fetches the pinned files; the release job smoke-tests the binary offline with an empty data directory, and a unit test keeps the script's pins equal to the code.

  • cora install sets up opencode (#753). It writes a plugin whose chat.message hook appends the cora hook context block to the prompt, adds mcp.cora to opencode.json and installs the cora-code skill. A config with comments (opencode.jsonc) or a plugin of yours with the same name is never touched. Checked against opencode 1.19.5; the newer Plugin.define shapes shown in the online docs were not found in that release and are not generated.

  • cora install sets up Hermes Agent (#753). It adds one marked block to ~/.hermes/config.yaml with a pre_llm_call hook (cora hook context --agent hermes, appended to the current user message) and the MCP server, and installs the cora-code skill. The file is edited as text so your comments stay; a top-level hooks: or mcp_servers: you already have is never duplicated (cora prints the snippet instead), --remove restores the file exactly, and the first run still asks you to approve the hook. Checked against Hermes 0.19.0.

  • cora install sets up pi and omp (#753). For each agent it writes a before_agent_start extension that injects cora hook context before every prompt (checked against pi 1.5.2 and omp 18.20.3: the message is stored in the session), registers the MCP server (exposure: direct for pi, whose default hides MCP tools behind codemode) and installs the cora-code skill. A file of yours with the same name is never replaced without --force, and --remove deletes only what cora wrote.

  • Agent hooks put code search in front of every prompt (#753). cora hook context takes the user's prompt from an agent hook, searches the project's index (keyword, meaning and call graph, never a download, time-boxed, always exit 0) and prints a short block of the matching symbols plus the cora tools to use; chit-chat and unindexed projects get nothing. --agent claude reads Claude Code's hook JSON, --agent hermes Hermes' and answers with its context envelope, and --prompt serves pi, omp and opencode plugins. cora hook session prints a one-line reminder at session start. The MCP server now sends instructions that say when to use each tool.

  • cora install sets up Claude Code natively (#753). It merges UserPromptSubmit and SessionStart hooks into ~/.claude/settings.json (your own hooks are kept), registers the MCP server with alwaysLoad, installs the cora-code skill and adds a short managed block to ~/.claude/CLAUDE.md. Everything is idempotent, --dry-run writes nothing, --remove undoes it, a settings file that is not JSON is never overwritten, and --no-instructions leaves CLAUDE.md alone.

  • cora explore completes a question with matches by meaning (#746). A multi-word query that keyword search cannot fill gets a separate block of symbols found by the same hybrid cora brain uses; --no-semantic turns it off and --json marks each result via: keyword or via: semantic. The MCP tool descriptions of cora.brain_search and cora.search_symbols now say which one to use for a question and which for a known name.

  • A reflection pass drops or lowers recurring false positives before they are stored (#723). Findings pass a deterministic check inside admission: a security or correctness claim about a documentation file (unless it is about a leaked credential) and any finding in a lockfile are dropped, and unwrap, panic or println flagged in a test file is lowered one severity level. It costs no tokens, and anything that does not clearly match stays as the judge reported it.

  • Large diffs are reviewed in chunks, in CI too (#720). A diff over review.max_chunk_chars (default 48,000 characters, about 1,000 lines) is split into requests of whole files; a file larger than that is split at hunk boundaries. Before, chunking started only above hook.max_diff_size (5 MB) and never with --ci, so a 1,850-line diff went to the model in one request and failed with finish_reason=length.

  • review.exclude (#720). Globs of files removed from the reviewed diff (CHANGELOG.md, docs/**, lockfiles). Unlike ignore.files, they are never sent to the model and never produce a finding; the output names them.

  • review.fail_on_incomplete (#720, default true). A review that did not cover the whole diff (a chunk failed, or the model call failed and only the deterministic findings remain) names the files it skipped and exits 1. Set it to false for the old warn-and-pass behaviour.

  • **`llm.reasoning_...

Read more

Release v0.20.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 17:03
b40b742

What's New in v0.20.0

Added

  • Path-scoped ignore.rules (#680). An entry can be an object, - rule: bug-println with files: ["crates/cli/**"] and an optional reason, to silence a rule in some directories only while it keeps firing elsewhere; plain strings still silence a rule everywhere. An empty files list is a config error. Works in review, scan and the MCP tools. See docs/configuration.md.
  • Cora Review can use Anthropic workload identity federation (no stored API key). The review job exchanges its GitHub OIDC token for a short-lived Anthropic access token (when ANTHROPIC_FEDERATION_RULE_ID, ANTHROPIC_ORGANIZATION_ID, ANTHROPIC_SERVICE_ACCOUNT_ID and ANTHROPIC_WORKSPACE_ID are set) and sends it only to api.anthropic.com; otherwise it falls back to CORA_API_KEY, CORA_BASE_URL and CORA_MODEL. A smoke test workflow verifies the exchange and a Bearer call to /v1/chat/completions. See docs/examples.md.
  • cora.scan_prepare speaks the CLI's selection language (#686). The MCP tool accepts include/exclude globs, extensions, incremental and changed_since (git rev), orders batches source-first (code before docs/data/lockfiles, shallower first; order: "path" keeps walk order), and returns planning data — total_chars, estimated_tokens and per-batch file counts — so an agent can scope a scan before spending tokens. cora.scan_finalize takes the same inputs; a fingerprint mismatch refuses the call. See docs/usage.md.
  • Agents validate before they commit (#674). A review of the staged diff, by an agent (cora.review_finalize) or by cora review --staged, now leaves a marker bound to that exact change set. cora hook verify reports it (exit 0 validated, 10 validated but blocking, 11 not validated) and cora hook claude-guard is a Claude Code PreToolUse hook that denies a git commit that is unreviewed, blocking, uses --no-verify, or is not a plain commit of the staged change. The pre-commit hook (now v2, upgraded in place by cora hook install) accepts a validated diff and otherwise falls back to cora review --staged --ci --severity major; a tooling error is reported as "not a pass". The /cora-review skill tells agents to review before every commit. See docs/usage.md.

Fixed

  • bug-println treats a binary crate as program code (#682). Every module of a package that has src/main.rs and no src/lib.rs is exempt (stdout is its interface), not only main.rs, src/bin/, examples/ and benches/. A library package, or one with both main.rs and lib.rs, keeps the rule, so a core crate can still guard against writing to stdout. Together with the eprintln! and .expect("...") changes this closes #682.
  • --help no longer prints CORA_BASE_URL, CORA_MODEL or CORA_PROVIDER values (#687). A base URL can carry credentials (user:pass@host, ?key=...) and the other two name internal deployments; like the API key, their [env: ...] values are hidden (clap hide_env_values).
  • cora scan is quieter and says what it found (#683). The qual-clone hint (.clone() in Rust, 306 info findings on one workspace) is now opt-in via rules_engine.clone_hints: true. New cora scan --min-severity <info|minor|major|critical> hides lower findings in every output format and in the count (blocking is still decided by hook.min_severity), and the summary counts by severity: found 457 issues (1 critical, 150 minor, 306 info).
  • Models that reject temperature work (#701). cora always sent temperature (default 0.0); newer models such as claude-opus-5-5 answer HTTP 400 "temperature is deprecated for this model" and the review ended as "could not complete". A 400 that names temperature is now retried once without it and remembered for the model for the rest of the process; every other 400 is returned unchanged, and providers that accept it keep the configured value.
  • crypto/hardcoded-secret no longer flags CancelToken::default() and review_prepare matches review_finalize (#697). A path such as Token::default() was read as token: <value>; the value after a single : can no longer start with another :. cora.review_prepare now applies ignore.rules, inline cora-ignore markers and the context filter to deterministic_findings, so the agent no longer sees (and fixes) a finding that review_finalize would drop.
  • cora.scan_finalize reports how much of the project the verdict covers (#685). New optional input batches_judged; the result has coverage (complete, partial, or unverified when not declared), total_batches, batches_judged, files_judged and files_total. A partial run says Judged 1/11 batches (3/23 files) and should_block is null instead of false. The /cora-review skill now passes batches_judged.
  • Three built-in rules stop flagging idioms (#681, part of #682). bug-todo fires only on a deliberate marker: upper-case TODO, FIXME, HACK or XXX inside a comment (not pub mod todo;, todo_state or the word "todo" in prose). bug-println no longer matches eprintln! / eprint! (stderr diagnostics). bug-expect flags only .expect(""); a non-empty message states an invariant and is the recommended alternative to unwrap(). Treating every module of a binary crate as program code is still open in #682.
  • Custom rules are validated and the docs match the schema (#684, #678). cora config validate and config load now reject an invalid regex, an empty or duplicate id, an id that shadows a built-in rule, an empty message and an unknown languages value, naming the rule. languages accepts language names ("rust") as well as extensions ("rs"); languages and exclude are optional. cora config validate --dry-run [--path DIR] runs each custom rule and prints how many lines it matched. docs/configuration.md now shows the real schema (rules_engine.custom); the 0.19.0 entry no longer says custom_rules.
  • cora-ignore no longer fails silently (#679). A marker on a line with findings that names none of them (a typo, an unknown rule, or explanation text that became part of the rule name) now prints a warning on stderr naming the marker and the rule ids on that line. -- ends the rule list, so cora-ignore: sec-hardcoded-secret -- env var name suppresses the finding and keeps the reason in the source.
  • The Cora Review workflow now fails with an error naming each empty secret (CORA_API_KEY, CORA_BASE_URL, CORA_MODEL) instead of running without them.
  • The Cora Review job no longer gets cancelled on larger pull requests: its time limit is 30 minutes (the review action allows up to three LLM attempts of 10 minutes each).

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.20.0.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.20.0.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.20.0.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.20.0.zip

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo
cargo install cora

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md

Release v0.19.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 02:58
f7b9418

What's New in v0.19.0

Added

  • The calling agent can be the reviewer, with no LLM configured in cora (#647). Four MCP tools split a review into prepare / judge / finalize with the agent as the judge: cora.review_prepare returns the hardened prompts, valid_files, deterministic findings and the response schema; cora.review_finalize merges the agent's findings (validated by judge::admit), applies ignore.rules, inline markers and the quality gate, and returns the verdict. cora.scan_prepare (paged by batch, path restricted to the project) and cora.scan_finalize do the same for a scan. Stateless: finalize recomputes the deterministic half from the same diff/path. cora install also installs a /cora-review skill for Claude Code (~/.claude/skills/cora-review/SKILL.md whenever ~/.claude exists; a customized copy is never overwritten or removed without --force). For Claude Code the MCP server itself is registered with claude mcp add cora -- cora mcp. See docs/usage.md for the security model.

  • cora review and cora scan run without an API key (#646). With no key they run the deterministic checks only, print a one-line notice on stderr, and label the result "Deterministic checks only (no LLM judge)" (SARIF: cora.judge = none on the invocation, even with zero results). --no-llm forces it and silences the notice. A missing key is no longer an error for these two commands; any other config error still is. The judge is chosen once at the entry point (judge::select_judge, JudgeChoice). cora commit and MCP cora.review_diff still need a key.

Security

  • --help no longer prints secrets from the environment. clap shows [env: NAME=value] for options bound to an env var, so cora --help with CORA_API_KEY or GITHUB_TOKEN set printed the key (into logs, CI output, screenshots). --api-key and --token now hide their env value.

  • The SARIF "no judge" marker can no longer be forged or missed. A model-written summary containing the marker sentence is stripped, and the judge-failure fallback (deterministic findings only) now carries the marker, so cora.judge = "none" is set exactly when no model judged.

  • A hostile diff can no longer hide findings (audit follow-up). Inside a hunk whose line counts are not used up, --- / +++ lines are content, not file headers (a removed SQL/Lua comment -- x, or an added line ++ b/tests/y.py, used to drop the rest of the hunk or re-file it under another path, so a secret was reported as nothing). valid_files now comes from the same parser, and file names are escaped in the review prompt.

  • A judge can no longer downgrade or absorb a scanner finding (audit follow-up). When a judge issue sits on the same line and topic as a scanner finding, the surviving issue takes the stronger severity and the scanner's rule_id (an "info" judge issue used to replace a CRITICAL scanner finding).

  • cora scan / cora.scan_prepare no longer follow symlinks, and enclosing-scope reads stay inside the project (a hostile repo's id -> ~/.ssh/id_rsa or a +++ b/../../x header could put outside files into a model prompt).

  • cora install --remove keeps a customized skill unless --force; agent-mode tools report dropped_by_validation, accept any severity case, refuse a scan_finalize whose files_fingerprint no longer matches, and compute should_block and the quality gate on all findings (the caller's min_severity only trims the list). admit also fixes lines for deleted files and the old path of a renamed file. --no-llm and review_finalize skip building the LLM prompt (no clippy run).

  • Bumped rustls 0.23.45 → 0.23.46 and quinn-proto 0.11.16 → 0.11.19 (RUSTSEC-2026-0338/0339/0340/0341/0342 and RUSTSEC-2026-0346/0347/0348/0349), plus the yanked chacha20 0.10.1 → 0.10.2. Lockfile-only patch bumps; this was failing the Security Audit (CVE) job on every PR.

  • A judge's findings are untrusted input, bounded by one gate (#644). judge::admit clears rule_id (only deterministic scanners may carry one; it feeds suppression and the finding cap), truncates title/body/suggested_fix, caps the list at 200 findings (most severe kept), drops findings for files outside the diff or scan batch, and turns a line the diff/file does not contain into a file-level finding. cora review and cora scan both apply it; deterministic findings are merged afterwards, so a judge can add findings but never remove one. cora scan now wraps each batch in an untrusted-data fence like review does.

  • The review cache can no longer serve a stale or cross-mode result (#644). The cache moved behind the LLM adapter and stores the model's raw answer keyed by the exact prompts (so focus, rules, profile, system prompt, sanitization, context and memory all invalidate it) plus model/provider/base URL/temperature. ignore.rules, hook.min_severity and deterministic rules are applied on every run, including cache hits. Existing cache entries are simply not hit again.

Changed

  • Help points to agent mode. cora --help, cora review/scan --help, cora mcp --help and cora install --help now mention --no-llm, the agent-as-reviewer MCP tools, the /cora-review skill and claude mcp add cora -- cora mcp.

  • Rules are test-code aware (#663). Whole test files (*_test.*, *.test.ts, spec/, fixtures/, ... not just tests/) and Rust #[cfg(test)] modules / #[test] functions (also a diff hunk inside mod tests) are exempt from bug-unwrap, bug-expect, bug-println, qual-clone, qual-error-ignore, sec-hardcoded-url and sec-hardcoded-secret; the secret scanners only run their high-confidence patterns there, so a real AWS key or token in a test is still reported (injection, eval and other security patterns still apply inside test blocks, and a test region is only trusted when our brace matching agrees with the code's own indentation: /* { */ comments are ignored, and a region that never closes, or that contains an item starting at or left of its own indentation, is dropped instead of exempting what follows). An attribute that carries its item on the same line (#[cfg(test)] fn helper() {}) no longer exempts the NEXT line, and an attribute inside a block comment is not an attribute. bug-println is also skipped in main.rs, src/bin/, examples/ and benches/. New setting rules_engine.include_tests: true turns the exemptions off. On uteke-core (Rust) the findings drop from 2400 to 235 and the 6 Critical ones disappear; on uteke-cloud the 3 Major URL findings are gone. New module engine::test_context.

  • rules_engine.max_findings now defaults to 50, and Critical/Major findings are never hidden. The old default of 5 could hide serious findings (a module with 7 critical findings showed 5) and made agents and users misread a capped list as the full picture. The cap now limits only the noise: it keeps every Critical and Major finding and fills the remaining slots with the most severe Minor/Info ones, still reporting how many were not shown. On a real Rust codebase the unfiltered list was up to 2400 findings, 88% bug-unwrap, so unlimited is not the default. Set max_findings: 0 (or null) for no cap.

  • Review is now prepare / judge / finalize with the LLM as the seam (#649). review::prepare turns a diff into a judge::Packet (judge-visible text, assembled context, system prompt override, valid_files, diff chunks, deterministic findings); a judge::Judge returns findings (HttpJudge = today's LLM call, NoJudge = deterministic only); review::review_with merges, guards file paths, post-processes and decides should_block. Output of cora review is unchanged. The review pipeline now has an end-to-end test with a fake judge (no network), and the llm module no longer prints: spinners moved to progress::Spinner and llm::run_review_prompts / llm::scan_files take an events observer (the old llm::review_diff / llm::review_diff_stream are replaced by run_review_prompts).

  • One finalize module owns the result tail of review, scan, commit and MCP (#648). engine::finalize (shape, shape_issues, blocks, exit_code, save_debt, save_history) replaces six hand-copied versions of severity filtering, should_block, quality gate, exit code, debt snapshot and review history. Behavior of cora review (single and chunked) and cora scan is unchanged. Fixed along the way: the MCP cora.review_diff tool now honors its min_severity parameter and evaluates the quality gate on the reported findings; cora commit now records its review in the review history (command = "commit").

Fixed

  • crypto/hardcoded-secret / sec-hardcoded-secret no longer flag name: value entries whose value is not a literal (#661). In source files, webhook_secret: env::var("X"), refresh_token: prev?.refresh_token, token: Option<&'static str>, "password": ACCOUNT_PW and "clientSecret": j["clientSecret"] are references or types, and format placeholders (api_key = "{}", "%s") are not values. Quoted literals (token: "ghp_...") and = assignments are judged as before. On two real codebases the Critical/Major findings dropped from 38 to 20 (all remaining ones are test fixtures, SQL and test URLs, tracked in #662/#663).

  • injection/sql-concat and sec-sql-concat no longer flag prose or identifier interpolation (#662). A SQL keyword in a message (format!("Insert failed: {e}"), format!("Deleted tag '{}'")) is not SQL: the line needs SELECT..FROM, INSERT INTO, UPDATE..SET or DELETE FROM. Real SQL is reported only when a value is spliced in (= '{x}', WHERE id = {id}, LIKE '%{t}%', IN ({ids}), VALUES (...), "..." + user, query += ...); FROM {table}, SET {cols} and ?{n} parameter indexes cannot be bound as parameters and are not value injection. On two real codebases all five SQL false positives (Critical...

Read more

Release v0.18.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 08:20
6389e4d

What's New in v0.18.0

Security

  • Release checksums are signed with cosign keyless and verified by install.sh and cora upgrade (#591). release.yml now signs checksums-sha256.txt (which covers every archive) via Sigstore/GitHub OIDC before creating the release and uploads checksums-sha256.txt.sigstore.json; a signing failure aborts the job so no unsigned release is published. install.sh and cora upgrade verify the bundle with cosign verify-blob (identity: this repo's release.yml on a v* tag, issuer token.actions.githubusercontent.com) when cosign is on PATH; an invalid signature aborts. Without cosign, or for releases without a bundle, they print a notice and fall back to checksum-only. CORA_REQUIRE_SIGNATURE=1 makes a missing cosign or bundle fatal. See docs/installation.md.

Changed

  • Documented what the hardcoded-secret check flags and its one known limit (all-letter unquoted YAML values), and closed that item as not planned (#625, #635).

  • Scanners take file lines instead of diffs (#610). New engine::scan_input::ScanFile (path, language, (line number, text) pairs) is the one input shape for secrets_scanner::scan_secrets_in, security_scanner::scan_security_in, rules::run_rules_in and inline_suppress::apply_lines. Diff chunks and whole files are thin adapters (ScanFile::added_lines, ScanFile::post_image, ScanFile::from_entry); scan_secrets/scan_security/run_rules/inline_suppress::apply keep their signatures. The files_as_chunks workaround and the MCP fake diff are gone. Findings are byte-identical for diffs and scans. Unit tests that open an index session now use a per-test temp database instead of the shared global one.

Fixed

  • A rules_engine: section without enabled: true no longer disables the built-in rules. enabled now defaults to true when the section is present, so rules_engine: { max_findings: 0 } only changes the cap; set enabled: false to turn the engine off (#638).

  • cora.check_snippet (MCP) now honors ignore.rules, inline cora-ignore: markers and the false-positive filters, and rules_engine.max_findings (#610). The tool used to run the secrets and security scanners on a fake diff with a fixed cap of 10 per scanner and no filtering, so a snippet could report findings that cora scan suppresses. It now goes through the shared post-processing pipeline as a synthetic snippet.<language> file (so path-aware classification applies), loads the project config like the other MCP tools (and fails with the same "Failed to load config" error), and mentions how many findings the cap dropped. Output format is unchanged.

  • Secret-detection edge cases (#625, #628, #629, #630). A string literal inside a constructor wrapper is now a literal: Java new String(".."), Cow::Owned, Box::from, Secret::new, Python str("..") (plain calls such as get_password() stay quiet) (#630). A literal default in the default position of an env read is flagged in code files: os.environ.get("X", "lit"), os.getenv, process.env.X || "lit" / ?? "lit", Rust env::var("X").unwrap_or("lit".into()) / unwrap_or_else(|_| "lit".to_string()), Ruby ENV.fetch, PHP getenv() ?:; the env var name and name-only reads stay quiet (#628). Shell ${VAR:-literal} / ${VAR:=literal} is flagged, while ${VAR}, ${VAR:-} and ${VAR:?msg} stay quiet (#629). The unquoted-YAML rule no longer applies to source code (secret: Secret1Type in .ts/.py), YAML flow-style { password: hunter2hunter2 } is flagged, unspaced password:=os.Getenv("X") is no longer matched, and SQL PASSWORD "..." with double quotes is detected (#625). All-alphabetic unquoted YAML values (password: correcthorsebattery) remain undetected, tracked in #635. The LLM secret cross-check uses the same classification.

  • rules_engine.max_findings is applied after suppression and truncation is reported (#624). The cap (default 5) used to be applied inside each scanner, before ignore.rules / cora-ignore, so suppressed findings consumed slots and pushed real findings out, and the rest were dropped silently. Scanners now run uncapped and the cap is enforced once in post-processing on deterministic findings only (LLM issues are never capped), highest severity first. cora scan and cora review print ⚠ N more deterministic findings not shown (...) on stderr when findings are cut, and the cora scan summary mentions it; stdout formats are unchanged. max_findings: 0 or null now means unlimited (previously 0 hid every finding).

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.18.0.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.18.0.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.18.0.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.18.0.zip

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo
cargo install cora

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md

Release v0.17.2

Choose a tag to compare

@github-actions github-actions released this 09 Oct 04:29
dc02143

What's New in v0.17.2

Fixed

  • Env reads, call expressions and shell interpolation are no longer reported as hardcoded secrets. process.env.X, os.environ["X"], os.getenv("X"), std::env::var("X")?, System.getenv("X"), get_password_from_vault(), String::new() and bare identifiers/member accesses (const password = userInput;) are expressions, not literals, in source files (#616). DB_PASSWORD=${VAR}, db.password=${DB_PASSWORD}, export X="$VAULT_X" and $(cmd) are references (#617). Real values stay flagged: quoted or concatenated literals in code, and bare tokens in .env/.properties/.ini/.toml/shell/YAML files (DB_PASSWORD=hunter2hunter2xx). The LLM secret cross-check uses the same classification.

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.17.2.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.17.2.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.17.2.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.17.2.zip

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo
cargo install cora

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md

Release v0.17.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 03:25
7924943

What's New in v0.17.1

Fixed

  • Hardcoded secrets in Go short declarations, YAML/JSON keys and SQL PASSWORD literals are now detected. Go password := "..." (with or without a trailing comment) and var apiKey string = "..." (#618); unquoted YAML password: hunter2hunter2 and JSON quoted keys "password": "..." / "apiKey": "..." (#619); SQL CREATE USER app WITH PASSWORD '<literal>' and IDENTIFIED BY '<literal>' (#620). References stay quiet: ${VAR}/$VAR, !tag, *alias, &anchor, paths, null/required-style bare words, and SQL placeholders (PASSWORD '%s'). The LLM secret cross-check uses the same pattern, so LLM findings on these shapes are no longer dropped.

Changed

  • One shared post-processing module for cora review and cora scan. The finding filter pipeline (LLM secret false-positive cross-check, Markdown code blocks, ignore.rules, inline cora-ignore:, context-line filter, scanner merge for scans) now lives in engine::postprocess, so a fix lands in one place. Internal refactor with no CLI or output change (#610).

  • ReviewIssue::new constructor and table-driven hardcoded-secret tests. ReviewIssue is now built through ReviewIssue::new(..) plus with_* setters, so adding a field touches one place instead of every construction site. One end-to-end table covers the hardcoded-secret heuristics across languages; known false positives/negatives are pinned in a separate table. Internal change with no CLI or output change (#610).

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.17.1.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.17.1.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.17.1.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.17.1.zip

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo
cargo install cora

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md

Release v0.17.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 01:59
869daaa

What's New in v0.17.0

Fixed

  • A cora-ignore: naming a scanner rule could hide an unrelated LLM finding on the same line. A scanner finding is now merged into an LLM issue on the same line only when they share a topic word (the secret family — password, key, token, credential — counts as one topic); otherwise both are reported and the marker suppresses only the finding it names (#609).

Fixed

  • Real secrets in typed declarations were missed. const password: string = "..." (TypeScript), password: str = "..." (Python) and let password: &str = "..." (Rust) matched none of the secret patterns (they required the value right after password =/password:), and cora review also dropped the LLM's finding on them (and on single-quoted literals) as a false positive. The scanner, the built-in rule and the LLM cross-check now allow an optional type annotation, and the cross-check accepts single-quoted literals. The bare identifier check in the object-shorthand filter, which was always true, now rejects values containing a string literal (#607).

Fixed

  • Real secrets were missed when the line had a trailing comment containing :. The hardcoded-secret false-positive filter treated the first : anywhere (even inside a comment or string) as object shorthand, so password = "..."; // note: fix later was not flagged, and no scanner finding existed on lines carrying a cora-ignore: <rule> marker. The filter now judges only the code, ignoring trailing comments and quoted colons (#603).
  • Concurrent index opens could fail with UNIQUE constraint failed: schema_version.version. Schema migrations are now serialised per process, which also removes a flaky test (#604).

Added

  • Findings now carry a rule_id. Deterministic scanner findings (rules, secrets, security, index) keep their rule id through the merge; it appears in pretty/compact output, as rule_id in JSON (omitted when absent, so older JSON still deserializes), and as properties.coraRuleId in SARIF (#597).

Changed

  • cora-ignore: and ignore.rules match rule ids. cora-ignore: sec-hardcoded-secret suppresses by id (exact, case-insensitive) as well as title; ignore.rules additionally matches ids exactly. A marker naming a scanner rule now also suppresses the LLM finding that displaced that scanner finding on the same line (#597).

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.17.0.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.17.0.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.17.0.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.17.0.zip

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo
cargo install cora

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md

Release v0.16.1

Choose a tag to compare

@github-actions github-actions released this 08 Oct 08:25
1de30cb

What's New in v0.16.1

Fixed

  • cora scan no longer reports "No issues found" when the LLM fails. It now runs the deterministic secrets and security scanners on every scanned file, merges them with LLM findings, and applies ignore.rules and inline cora-ignore: markers (read from file contents), so a hardcoded secret is reported even on an LLM 502 (#595).
  • The LLM no longer flags cora-ignore: markers themselves (e.g. "Security scanner findings suppressed instead of remediated"). The hardened system prompt now explains the marker is Cora's own suppression syntax (#596).

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.16.1.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.16.1.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.16.1.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.16.1.zip

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo
cargo install cora

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md

Release v0.16.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 06:00
7935353

What's New in v0.16.0

Added

  • Rule-scoped inline suppression with cora-ignore:. A source comment such as // cora-ignore: Hardcoded password or secret in variable (also #, --, /* */, <!-- -->; comma-separated rules) suppresses findings with that exact title (case-insensitive) on the same line, or on the next line when the marker line holds only a comment. Applies to both static-scanner and LLM findings; other rules and other lines stay visible, and a bare cora-ignore without rules suppresses nothing. Coexists with ignore.rules / ignore.files (#554).

Security

  • Project .cora.yaml can no longer redirect your API key. provider.base_url from a discovered project config is ignored unless CORA_TRUST_PROJECT_CONFIG=1; base_url must be https (plain http only for loopback); LLM error bodies echoed to the terminal are length-capped (#563).
  • Hardened cora upgrade and install.sh. Checksums are matched by exact filename; downloads go to a random 0700 temp dir; only the single cora binary entry is extracted (symlink/hardlink entries are rejected); every request has a timeout and a size cap; the version probe does not follow redirects and the tag is validated. CORA_UPGRADE_SKIP_CHECKSUM now also requires CORA_UPGRADE_I_UNDERSTAND=1. install.sh fails closed when the checksums file or entry is missing (opt out with CORA_SKIP_CHECKSUM=1) and falls back to shasum -a 256 (#572).
  • install.sh requests now have timeouts and size caps. Every curl call sets --connect-timeout, --max-time and --max-filesize (256 MiB archive, 1 MiB checksums/API JSON), matching cora upgrade, so a stalled or hostile server cannot hang or flood the installer (#580).
  • Hardened LLM response handling. Review and scan system prompts tell the model to treat diff content as untrusted data; the diff fence is longer than any backtick run in the diff; the SSE stream errors on a line over 1 MiB or more than 16 MiB of content (#573).
  • Secrets in test and doc files are no longer invisible to the static security scanner. Test and doc paths still skip the noisy general rules but now run high-confidence checks (AWS keys, private-key headers, GitHub/Slack/Stripe live tokens; values containing EXAMPLE are ignored) (#573).

Fixed

  • cora watch reindexed every source file on each cycle. Change detection now reindexes only files that changed, and --filter restricts what is indexed instead of only gating the trigger (#578, #584).
  • Secrets in test, fixture and example files were skipped entirely by the secrets scanner. High-confidence secrets are now reported in those paths too (#579, #583).
  • cora findings list --severity never matched, and severity colouring never applied. Both are now case-insensitive (#586, #588).
  • Unit tests wrote to the real data directory and could block on the global vector index lock. Tests are isolated from the real data dir, and the lock wait is bounded (#587, #589).
  • cora affected never matched naming-convention tests. The CLI took the file extension (rs) as the file stem. CLI and MCP now share one query, with escaped LIKE wildcards, batched queries and one deduplicated pattern list ({stem}_test, test_{stem}, {stem}.test, {stem}.spec, tests/{stem}, __tests__/{stem}). MCP dead-code now honors analysis.entry_point_patterns like the CLI (#575).
  • cora --config <file> serve ignored --config. The global option is now passed through (#576).
  • MCP brain_search ignored the configured embedding backend. It now resolves the backend from the project config (#576).
  • Review and indexing disagreed about which files to skip. Review-time scanners now use the same patterns as the indexer (ignore.files + index.skip_files) (#576).
  • Review scanners could resolve a different project than indexing when run from a subdirectory or workspace member. Every entry point now resolves the project root the same way, and review no longer creates an empty cora.db when no index exists (#574).
  • Files from different projects overwrote each other's fingerprints (perpetual reindex). Files are keyed by (project_id, path) (schema v8). callers/callees/trace match names exactly instead of by substring (run no longer matches rerun), and index runs prune stale files and their edges (#565).
  • MCP server robustness. Stdin is framed as bytes and decoded as UTF-8; garbage input yields a -32700 parse error; notifications get no response and notifications/cancelled no longer stops the server; tools/call without a name returns -32602; limit/depth/min_lines are clamped; cora.install requires confirm: true (#564).
  • Chunked review printed "No issues found" while reporting issues when chunks returned empty summaries (#562).
  • CI: the CLA check works for fork PRs (#553); rustls pinned to 0.23.45 for RUSTSEC-2026-0285 and a deprecated f32 import removed so clippy passes on rustc 1.99 (#561).

Changed

  • Ignore patterns now use a single matcher for the index walk, review scanners, cora scan --include/--exclude and watch --filter. Behavior changes you may notice in ignore.files and related options:
    • **/*.test.ts no longer matches footest.ts, and vite.config.* no longer matches vite.configx.
    • Patterns with a wildcard in the middle (src/*.rs, *.gen.*) now match; they were silently ignored before, so files you thought were excluded may now actually be excluded.
    • Patterns without a / also match by basename, in cora scan --include/--exclude and watch --filter too.
    • An invalid glob matches literally instead of being dropped (#577).
  • cora index --watch now runs the same watcher as cora watch. It checks every 500 ms (was 2 s), skips hidden directories, and prints Reindexed: ... (#576).
  • Internal refactors with no CLI change: one seam for opening the index (IndexBridge, #574), one index-session module (#576), and review split into a deterministic stage testable without an LLM (#577), LLM parse/repair/retry policy unified behind one Transport seam (#582), and review-history SQL owned by a single review_store module (#585).

📦 Platforms

Platform File
Linux (x86_64) cora-x86_64-unknown-linux-gnu-v0.16.0.tar.gz
Linux (ARM64) cora-aarch64-unknown-linux-gnu-v0.16.0.tar.gz
macOS (Apple Silicon) cora-aarch64-apple-darwin-v0.16.0.tar.gz
Windows (x86_64) cora-x86_64-pc-windows-msvc-v0.16.0.zip

🚀 Quick Start

# Quick install (Linux / macOS)
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install.sh | sh

# Or via cargo
cargo install cora

# Init project
cora init

# Review staged changes
CORA_API_KEY=your-key cora review --staged

Full changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md