Repository navigation
Releases
Release v0.21.1
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 areferences/install.md: install withinstall.shor 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 runcora installandcora index. Reviewing the branch with cora before opening a pull request is now worded as required, not recommended.cora installrefreshes 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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md
Release v0.21.0
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 andcora brainanswers 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.embeddingis nowautooroff;potionstill loads,hashingandpretrainedload with one warning. Thepretrained-embedbuild 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, vendoredvendor/directories and*.min.jswere indexed and scanned, andcora reviewdid not apply it to the diff at all (a secret added undernode_modules/was a CRITICAL finding and went to the model). Now the list coversnode_modules,vendor,bower_components,__pycache__,site-packages,.venv,Pods(any depth),dist,target,.next,.nuxt,.gradle,*.min.js,*.min.css,*.js.map,*.css.mapand 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 withcoverage/would have hidden coveragepy's whole source; a test now guards against such names).ignore.keepturns single built-ins off,ignore.defaults: falseall of them, andignore.filesstill adds. The first index run after upgrading rebuilds the index with the new list. The Ignore Files docs now say exactly whatignore.files,ignore.defaults,ignore.keep,review.exclude,rules_engine.index_skip_files,ignore.rulesandcora-ignore:each do. -
The skills follow the Agent Skills layout and teach ignoring first (#767).
cora-codeandcora-revieware now a shortSKILL.mdplusreferences/files (ignore.md,tools.md,scan.md,ci.md) that the agent loads when needed;cora installwrites 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.mdsize, every reference linked and one level deep) and that every command, flag and MCP tool the skills name exists. -
cora reviewandcora scanuse 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 nocora indexstep; a--no-llmrun still only reads an existing index. The agent toolscora.review_prepareandcora.scan_preparedo the same, andcora.scan_preparenow gives the agent the contextcora scangives 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 searchedfile:"<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, orcode model offwhen only keyword and call-graph context was available). Thecora-codeandcora-reviewskills tell the agent to review the whole branch with cora before opening a PR and to suggestcora reviewin 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 installrefreshes the copies cora wrote, including thecora-reviewskill of v0.19.0 and v0.20.0 (which only reported "exists and differs" before), and keeps one you edited unless--force;cora install --removetakes only cora's copies.cora upgradereminds you to run it. The build now fails when a skill names an MCP tool, acoracommand 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-modelfeature, so a fresh download indexes and searches by meaning right away, offline included: the first use unpacks the 33.5 MBpotion-code-16M-v2into the data directory (size and SHA-256 verified, atomic, no network). The binary grows by that size.cargo installbuilds do not carry it (crates.io's 10 MB package limit) and still download it once.scripts/fetch-model.shfetches 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 installsets up opencode (#753). It writes a plugin whosechat.messagehook appends thecora hook contextblock to the prompt, addsmcp.coratoopencode.jsonand installs thecora-codeskill. 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 newerPlugin.defineshapes shown in the online docs were not found in that release and are not generated. -
cora installsets up Hermes Agent (#753). It adds one marked block to~/.hermes/config.yamlwith apre_llm_callhook (cora hook context --agent hermes, appended to the current user message) and the MCP server, and installs thecora-codeskill. The file is edited as text so your comments stay; a top-levelhooks:ormcp_servers:you already have is never duplicated (cora prints the snippet instead),--removerestores the file exactly, and the first run still asks you to approve the hook. Checked against Hermes 0.19.0. -
cora installsets up pi and omp (#753). For each agent it writes abefore_agent_startextension that injectscora hook contextbefore 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: directfor pi, whose default hides MCP tools behindcodemode) and installs thecora-codeskill. A file of yours with the same name is never replaced without--force, and--removedeletes only what cora wrote. -
Agent hooks put code search in front of every prompt (#753).
cora hook contexttakes 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 claudereads Claude Code's hook JSON,--agent hermesHermes' and answers with itscontextenvelope, and--promptserves pi, omp and opencode plugins.cora hook sessionprints a one-line reminder at session start. The MCP server now sendsinstructionsthat say when to use each tool. -
cora installsets up Claude Code natively (#753). It mergesUserPromptSubmitandSessionStarthooks into~/.claude/settings.json(your own hooks are kept), registers the MCP server withalwaysLoad, installs thecora-codeskill and adds a short managed block to~/.claude/CLAUDE.md. Everything is idempotent,--dry-runwrites nothing,--removeundoes it, a settings file that is not JSON is never overwritten, and--no-instructionsleavesCLAUDE.mdalone. -
cora explorecompletes 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 hybridcora brainuses;--no-semanticturns it off and--jsonmarks each resultvia: keywordorvia: semantic. The MCP tool descriptions ofcora.brain_searchandcora.search_symbolsnow 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,panicorprintlnflagged 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 abovehook.max_diff_size(5 MB) and never with--ci, so a 1,850-line diff went to the model in one request and failed withfinish_reason=length. -
review.exclude(#720). Globs of files removed from the reviewed diff (CHANGELOG.md,docs/**, lockfiles). Unlikeignore.files, they are never sent to the model and never produce a finding; the output names them. -
review.fail_on_incomplete(#720, defaulttrue). 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 tofalsefor the old warn-and-pass behaviour. -
**`llm.reasoning_...
Release v0.20.0
What's New in v0.20.0
Added
- Path-scoped
ignore.rules(#680). An entry can be an object,- rule: bug-printlnwithfiles: ["crates/cli/**"]and an optionalreason, to silence a rule in some directories only while it keeps firing elsewhere; plain strings still silence a rule everywhere. An emptyfileslist is a config error. Works inreview,scanand the MCP tools. Seedocs/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_IDandANTHROPIC_WORKSPACE_IDare set) and sends it only toapi.anthropic.com; otherwise it falls back toCORA_API_KEY,CORA_BASE_URLandCORA_MODEL. A smoke test workflow verifies the exchange and a Bearer call to/v1/chat/completions. Seedocs/examples.md. cora.scan_preparespeaks the CLI's selection language (#686). The MCP tool acceptsinclude/excludeglobs,extensions,incrementalandchanged_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_tokensand per-batch file counts — so an agent can scope a scan before spending tokens.cora.scan_finalizetakes the same inputs; a fingerprint mismatch refuses the call. Seedocs/usage.md.- Agents validate before they commit (#674). A review of the staged diff, by an agent (
cora.review_finalize) or bycora review --staged, now leaves a marker bound to that exact change set.cora hook verifyreports it (exit 0 validated, 10 validated but blocking, 11 not validated) andcora hook claude-guardis a Claude CodePreToolUsehook that denies agit committhat 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 bycora hook install) accepts a validated diff and otherwise falls back tocora review --staged --ci --severity major; a tooling error is reported as "not a pass". The/cora-reviewskill tells agents to review before every commit. Seedocs/usage.md.
Fixed
bug-printlntreats a binary crate as program code (#682). Every module of a package that hassrc/main.rsand nosrc/lib.rsis exempt (stdout is its interface), not onlymain.rs,src/bin/,examples/andbenches/. A library package, or one with bothmain.rsandlib.rs, keeps the rule, so a core crate can still guard against writing to stdout. Together with theeprintln!and.expect("...")changes this closes #682.--helpno longer printsCORA_BASE_URL,CORA_MODELorCORA_PROVIDERvalues (#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 (claphide_env_values).cora scanis quieter and says what it found (#683). Thequal-clonehint (.clone()in Rust, 306 info findings on one workspace) is now opt-in viarules_engine.clone_hints: true. Newcora scan --min-severity <info|minor|major|critical>hides lower findings in every output format and in the count (blocking is still decided byhook.min_severity), and the summary counts by severity:found 457 issues (1 critical, 150 minor, 306 info).- Models that reject
temperaturework (#701). cora always senttemperature(default0.0); newer models such asclaude-opus-5-5answer HTTP 400 "temperatureis deprecated for this model" and the review ended as "could not complete". A 400 that namestemperatureis 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-secretno longer flagsCancelToken::default()andreview_preparematchesreview_finalize(#697). A path such asToken::default()was read astoken: <value>; the value after a single:can no longer start with another:.cora.review_preparenow appliesignore.rules, inlinecora-ignoremarkers and the context filter todeterministic_findings, so the agent no longer sees (and fixes) a finding thatreview_finalizewould drop.cora.scan_finalizereports how much of the project the verdict covers (#685). New optional inputbatches_judged; the result hascoverage(complete,partial, orunverifiedwhen not declared),total_batches,batches_judged,files_judgedandfiles_total. A partial run saysJudged 1/11 batches (3/23 files)andshould_blockis null instead of false. The/cora-reviewskill now passesbatches_judged.- Three built-in rules stop flagging idioms (#681, part of #682).
bug-todofires only on a deliberate marker: upper-caseTODO,FIXME,HACKorXXXinside a comment (notpub mod todo;,todo_stateor the word "todo" in prose).bug-printlnno longer matcheseprintln!/eprint!(stderr diagnostics).bug-expectflags only.expect(""); a non-empty message states an invariant and is the recommended alternative tounwrap(). 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 validateand 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 unknownlanguagesvalue, naming the rule.languagesaccepts language names ("rust") as well as extensions ("rs");languagesandexcludeare optional.cora config validate --dry-run [--path DIR]runs each custom rule and prints how many lines it matched.docs/configuration.mdnow shows the real schema (rules_engine.custom); the 0.19.0 entry no longer sayscustom_rules. cora-ignoreno 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, socora-ignore: sec-hardcoded-secret -- env var namesuppresses the finding and keeps the reason in the source.- The
Cora Reviewworkflow now fails with an error naming each empty secret (CORA_API_KEY,CORA_BASE_URL,CORA_MODEL) instead of running without them. - The
Cora Reviewjob 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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md
Release v0.19.0
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_preparereturns the hardened prompts,valid_files, deterministic findings and the response schema;cora.review_finalizemerges the agent's findings (validated byjudge::admit), appliesignore.rules, inline markers and the quality gate, and returns the verdict.cora.scan_prepare(paged by batch, path restricted to the project) andcora.scan_finalizedo the same for a scan. Stateless: finalize recomputes the deterministic half from the same diff/path.cora installalso installs a/cora-reviewskill for Claude Code (~/.claude/skills/cora-review/SKILL.mdwhenever~/.claudeexists; a customized copy is never overwritten or removed without--force). For Claude Code the MCP server itself is registered withclaude mcp add cora -- cora mcp. Seedocs/usage.mdfor the security model. -
cora reviewandcora scanrun 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 = noneon the invocation, even with zero results).--no-llmforces 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 commitand MCPcora.review_diffstill need a key.
Security
-
--helpno longer prints secrets from the environment. clap shows[env: NAME=value]for options bound to an env var, socora --helpwithCORA_API_KEYorGITHUB_TOKENset printed the key (into logs, CI output, screenshots).--api-keyand--tokennow 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_filesnow 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_prepareno longer follow symlinks, and enclosing-scope reads stay inside the project (a hostile repo'sid -> ~/.ssh/id_rsaor a+++ b/../../xheader could put outside files into a model prompt). -
cora install --removekeeps a customized skill unless--force; agent-mode tools reportdropped_by_validation, accept any severity case, refuse ascan_finalizewhosefiles_fingerprintno longer matches, and computeshould_blockand the quality gate on all findings (the caller'smin_severityonly trims the list).admitalso fixes lines for deleted files and the old path of a renamed file.--no-llmandreview_finalizeskip building the LLM prompt (no clippy run). -
Bumped
rustls0.23.45 → 0.23.46 andquinn-proto0.11.16 → 0.11.19 (RUSTSEC-2026-0338/0339/0340/0341/0342 and RUSTSEC-2026-0346/0347/0348/0349), plus the yankedchacha200.10.1 → 0.10.2. Lockfile-only patch bumps; this was failing theSecurity Audit (CVE)job on every PR. -
A judge's findings are untrusted input, bounded by one gate (#644).
judge::admitclearsrule_id(only deterministic scanners may carry one; it feeds suppression and the finding cap), truncatestitle/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 reviewandcora scanboth apply it; deterministic findings are merged afterwards, so a judge can add findings but never remove one.cora scannow 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_severityand 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 --helpandcora install --helpnow mention--no-llm, the agent-as-reviewer MCP tools, the/cora-reviewskill andclaude mcp add cora -- cora mcp. -
Rules are test-code aware (#663). Whole test files (
*_test.*,*.test.ts,spec/,fixtures/, ... not justtests/) and Rust#[cfg(test)]modules /#[test]functions (also a diff hunk insidemod tests) are exempt frombug-unwrap,bug-expect,bug-println,qual-clone,qual-error-ignore,sec-hardcoded-urlandsec-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,evaland 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-printlnis also skipped inmain.rs,src/bin/,examples/andbenches/. New settingrules_engine.include_tests: trueturns the exemptions off. Onuteke-core(Rust) the findings drop from 2400 to 235 and the 6 Critical ones disappear; onuteke-cloudthe 3 Major URL findings are gone. New moduleengine::test_context. -
rules_engine.max_findingsnow 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. Setmax_findings: 0(ornull) for no cap. -
Review is now prepare / judge / finalize with the LLM as the seam (#649).
review::prepareturns a diff into ajudge::Packet(judge-visible text, assembled context, system prompt override,valid_files, diff chunks, deterministic findings); ajudge::Judgereturns findings (HttpJudge= today's LLM call,NoJudge= deterministic only);review::review_withmerges, guards file paths, post-processes and decidesshould_block. Output ofcora reviewis unchanged. The review pipeline now has an end-to-end test with a fake judge (no network), and thellmmodule no longer prints: spinners moved toprogress::Spinnerandllm::run_review_prompts/llm::scan_filestake an events observer (the oldllm::review_diff/llm::review_diff_streamare replaced byrun_review_prompts). -
One
finalizemodule 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 ofcora review(single and chunked) andcora scanis unchanged. Fixed along the way: the MCPcora.review_difftool now honors itsmin_severityparameter and evaluates the quality gate on the reported findings;cora commitnow records its review in the review history (command = "commit").
Fixed
-
crypto/hardcoded-secret/sec-hardcoded-secretno longer flagname: valueentries 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_PWand"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-concatandsec-sql-concatno 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...
Release v0.18.0
What's New in v0.18.0
Security
- Release checksums are signed with cosign keyless and verified by
install.shandcora upgrade(#591).release.ymlnow signschecksums-sha256.txt(which covers every archive) via Sigstore/GitHub OIDC before creating the release and uploadschecksums-sha256.txt.sigstore.json; a signing failure aborts the job so no unsigned release is published.install.shandcora upgradeverify the bundle withcosign verify-blob(identity: this repo'srelease.ymlon av*tag, issuertoken.actions.githubusercontent.com) whencosignis onPATH; an invalid signature aborts. Withoutcosign, or for releases without a bundle, they print a notice and fall back to checksum-only.CORA_REQUIRE_SIGNATURE=1makes a missingcosignor bundle fatal. Seedocs/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 forsecrets_scanner::scan_secrets_in,security_scanner::scan_security_in,rules::run_rules_inandinline_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::applykeep their signatures. Thefiles_as_chunksworkaround 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 withoutenabled: trueno longer disables the built-in rules.enablednow defaults totruewhen the section is present, sorules_engine: { max_findings: 0 }only changes the cap; setenabled: falseto turn the engine off (#638). -
cora.check_snippet(MCP) now honorsignore.rules, inlinecora-ignore:markers and the false-positive filters, andrules_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 thatcora scansuppresses. It now goes through the shared post-processing pipeline as a syntheticsnippet.<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, Pythonstr("..")(plain calls such asget_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", Rustenv::var("X").unwrap_or("lit".into())/unwrap_or_else(|_| "lit".to_string()), RubyENV.fetch, PHPgetenv() ?:; 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: Secret1Typein.ts/.py), YAML flow-style{ password: hunter2hunter2 }is flagged, unspacedpassword:=os.Getenv("X")is no longer matched, and SQLPASSWORD "..."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_findingsis applied after suppression and truncation is reported (#624). The cap (default 5) used to be applied inside each scanner, beforeignore.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 scanandcora reviewprint⚠ N more deterministic findings not shown (...)on stderr when findings are cut, and thecora scansummary mentions it; stdout formats are unchanged.max_findings: 0ornullnow means unlimited (previously0hid 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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md
Release v0.17.2
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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md
Release v0.17.1
What's New in v0.17.1
Fixed
- Hardcoded secrets in Go short declarations, YAML/JSON keys and SQL
PASSWORDliterals are now detected. Gopassword := "..."(with or without a trailing comment) andvar apiKey string = "..."(#618); unquoted YAMLpassword: hunter2hunter2and JSON quoted keys"password": "..."/"apiKey": "..."(#619); SQLCREATE USER app WITH PASSWORD '<literal>'andIDENTIFIED 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 reviewandcora scan. The finding filter pipeline (LLM secret false-positive cross-check, Markdown code blocks,ignore.rules, inlinecora-ignore:, context-line filter, scanner merge for scans) now lives inengine::postprocess, so a fix lands in one place. Internal refactor with no CLI or output change (#610). -
ReviewIssue::newconstructor and table-driven hardcoded-secret tests.ReviewIssueis now built throughReviewIssue::new(..)pluswith_*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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md
Release v0.17.0
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) andlet password: &str = "..."(Rust) matched none of the secret patterns (they required the value right afterpassword =/password:), andcora reviewalso 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. Thebare identifiercheck 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
:. Thehardcoded-secretfalse-positive filter treated the first:anywhere (even inside a comment or string) as object shorthand, sopassword = "..."; // note: fix laterwas not flagged, and no scanner finding existed on lines carrying acora-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, asrule_idin JSON (omitted when absent, so older JSON still deserializes), and asproperties.coraRuleIdin SARIF (#597).
Changed
cora-ignore:andignore.rulesmatch rule ids.cora-ignore: sec-hardcoded-secretsuppresses by id (exact, case-insensitive) as well as title;ignore.rulesadditionally 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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md
Release v0.16.1
What's New in v0.16.1
Fixed
cora scanno 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 appliesignore.rulesand inlinecora-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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md
Release v0.16.0
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 barecora-ignorewithout rules suppresses nothing. Coexists withignore.rules/ignore.files(#554).
Security
- Project
.cora.yamlcan no longer redirect your API key.provider.base_urlfrom a discovered project config is ignored unlessCORA_TRUST_PROJECT_CONFIG=1;base_urlmust behttps(plainhttponly for loopback); LLM error bodies echoed to the terminal are length-capped (#563). - Hardened
cora upgradeandinstall.sh. Checksums are matched by exact filename; downloads go to a random 0700 temp dir; only the singlecorabinary 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_CHECKSUMnow also requiresCORA_UPGRADE_I_UNDERSTAND=1.install.shfails closed when the checksums file or entry is missing (opt out withCORA_SKIP_CHECKSUM=1) and falls back toshasum -a 256(#572). install.shrequests now have timeouts and size caps. Everycurlcall sets--connect-timeout,--max-timeand--max-filesize(256 MiB archive, 1 MiB checksums/API JSON), matchingcora 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
EXAMPLEare ignored) (#573).
Fixed
cora watchreindexed every source file on each cycle. Change detection now reindexes only files that changed, and--filterrestricts 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 --severitynever 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 affectednever matched naming-convention tests. The CLI took the file extension (rs) as the file stem. CLI and MCP now share one query, with escapedLIKEwildcards, batched queries and one deduplicated pattern list ({stem}_test,test_{stem},{stem}.test,{stem}.spec,tests/{stem},__tests__/{stem}). MCP dead-code now honorsanalysis.entry_point_patternslike the CLI (#575).cora --config <file> serveignored--config. The global option is now passed through (#576).- MCP
brain_searchignored 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.dbwhen 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/tracematch names exactly instead of by substring (runno longer matchesrerun), 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
-32700parse error; notifications get no response andnotifications/cancelledno longer stops the server;tools/callwithout a name returns-32602;limit/depth/min_linesare clamped;cora.installrequiresconfirm: 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);
rustlspinned to 0.23.45 for RUSTSEC-2026-0285 and a deprecatedf32import 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/--excludeandwatch --filter. Behavior changes you may notice inignore.filesand related options:**/*.test.tsno longer matchesfootest.ts, andvite.config.*no longer matchesvite.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, incora scan --include/--excludeandwatch --filtertoo. - An invalid glob matches literally instead of being dropped (#577).
cora index --watchnow runs the same watcher ascora watch. It checks every 500 ms (was 2 s), skips hidden directories, and printsReindexed: ...(#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 oneTransportseam (#582), and review-history SQL owned by a singlereview_storemodule (#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 --stagedFull changelog: https://github.com/codecoradev/cora-code/blob/main/CHANGELOG.md