{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2605-14084","title":"CRANE: Constrained Reasoning Injection for Code Agents via Nullspace Editing","arxiv_id":"2605.14084","date":"2026-05-13","proceeding":null,"authors":["Mingzhi Zhu","Michele Merler","Raju Pavuluri","Stacy Patterson"],"abstract":"Code agents must both reason over long-horizon repository state and obey strict tool-use protocols. In paired Instruct/Thinking checkpoints, these capabilities are complementary but misaligned. The Instruct model is concise and tool-disciplined, whereas the Thinking model offers stronger planning and recovery behavior but often over-deliberates and degrades agent performance. We present CRANE (Constrained Reasoning Injection for Code Agents via Nullspace Editing), a training-free parameter-editing method that treats the Thinking-Instruct delta as a directional pool of candidate reasoning edits for the Instruct backbone. CRANE combines magnitude thresholding to denoise the delta, a Conservative Taylor Gate to retain edits that are jointly beneficial for reasoning transfer and tool-use preservation, and Graduated Sigmoidal Projection to suppress format-critical update directions. By merging paired Instruct and Thinking checkpoints, CRANE delivers strong gains over either individual model while preserving Instruct-level efficiency: on Roo-Eval it achieves pass1 of 66.2% (+19.5%) for Qwen3-30B-A3B and 81.5% (+8.7%) for Qwen3-Next-80B-A3B; on SWE-bench-Verified it resolves up to 14 additional instances at both scales (122/500 and 180/500); and on Terminal-Bench v2 it improves pass1/pass5 by up to 2.3%/7.8%, reaching 7.6%/17.9% and 14.8%/30.3%, respectively, consistently outperforming alternative merging strategies across all three benchmarks.","url_abs":"https://arxiv.org/abs/2605.14084","url_pdf":"https://arxiv.org/pdf/2605.14084","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2605.14084","atlas_url":"https://app.syntology.ai/?focus=2605.14084","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.14084"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/rpi-nsl/CRANE","reach":null}],"summary":{"ran":12,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":18,"ran":12,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"943a39eea2540d53","entry":"build_format_neighborhoods","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_nullspace_format5_5.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_nullspace_format5_5.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"943a39eea2540d53"}},{"code_sha256_prefix":"90047ec9a980d646","entry":"build_seed_mix","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/build_public_calibration_subsets.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/build_public_calibration_subsets.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"90047ec9a980d646"}},{"code_sha256_prefix":"de15c6b5b5a0f743","entry":"decode_targets","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"src/crane_s_reason_auto.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/src/crane_s_reason_auto.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"de15c6b5b5a0f743"}},{"code_sha256_prefix":"5ecc4be2c44b632b","entry":"is_public_calibration_set","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_calibration_public.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_calibration_public.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5ecc4be2c44b632b"}},{"code_sha256_prefix":"90314bf4a4e9ee1b","entry":"load_arch","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/model_arch.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/model_arch.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"90314bf4a4e9ee1b"}},{"code_sha256_prefix":"a96b99f51e7b0b0f","entry":"load_stats","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/analyze_calibration_stability.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/analyze_calibration_stability.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a96b99f51e7b0b0f"}},{"code_sha256_prefix":"c99f881b76df3461","entry":"locate_format_tokens","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_nullspace_format5_5.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_nullspace_format5_5.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c99f881b76df3461"}},{"code_sha256_prefix":"9463b71f3d4065e8","entry":"median_threshold","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"src/crane_denoise.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/src/crane_denoise.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9463b71f3d4065e8"}},{"code_sha256_prefix":"6148a8caae33e43a","entry":"pearson","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/analyze_calibration_stability.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/analyze_calibration_stability.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6148a8caae33e43a"}},{"code_sha256_prefix":"7f8e6ee5f90f787c","entry":"rankdata","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/analyze_calibration_stability.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/analyze_calibration_stability.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7f8e6ee5f90f787c"}},{"code_sha256_prefix":"b21ddcd37b356aac","entry":"slerp_tensor","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"src/crane_merge.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/src/crane_merge.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b21ddcd37b356aac"}},{"code_sha256_prefix":"85900954efb902a9","entry":"to_device","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"src/crane_s_reason_auto.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/src/crane_s_reason_auto.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"85900954efb902a9"}},{"code_sha256_prefix":"5bb7421a66c31529","entry":"build_long_context_calibration","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_nullspace_format5_5.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_nullspace_format5_5.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5bb7421a66c31529"}},{"code_sha256_prefix":"e9c61188dbd84cf6","entry":"get_d_r_texts","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_calibration.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_calibration.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e9c61188dbd84cf6"}},{"code_sha256_prefix":"0af4150ef99982b8","entry":"get_d_t_texts","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_calibration.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_calibration.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0af4150ef99982b8"}},{"code_sha256_prefix":"adfe6cac72f3929d","entry":"get_public_calibration_items","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_calibration_public.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_calibration_public.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"adfe6cac72f3929d"}},{"code_sha256_prefix":"05cc678bf62752b9","entry":"get_public_calibration_texts","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"crane/crane_calibration_public.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/crane/crane_calibration_public.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"05cc678bf62752b9"}},{"code_sha256_prefix":"595a279e50bcdfb5","entry":"wrap_with_fsdp","repo":"rpi-nsl/CRANE","repo_kind":"found_in_text","path":"src/crane_s_reason_auto_fsdp.py","file_url":"https://github.com/rpi-nsl/CRANE/blob/HEAD/src/crane_s_reason_auto_fsdp.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"595a279e50bcdfb5"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}