{"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-2608-24188","title":"Paritok-4B: Intent-Conditioned Context Compression for Coding Agents","arxiv_id":"2608.24188","date":"2026-08-25","proceeding":null,"authors":["Jiayu Shi","Luzhuo Chen"],"abstract":"Coding agents re-send large file reads and tool outputs to a frontier LLM every turn, and this context dominates their token bill. General-purpose prompt compressors are trained on prose and suit code poorly: they paraphrase identifiers and drop the exact spans an agent needs to edit. We present Paritok-4B, a 4B LoRA compressor for coding-agent trajectories built on two commitments. It is extractive: it selects spans rather than rewriting them, and 96.0% of the identifiers, paths, and numbers it emits already appear in its input, holding at 96.2% on held-out SWE-bench Lite output. It is intent-conditioned: told the agent's current task, it acts chiefly inside a retained segment, selecting which lines survive (retained lines are +0.067 more intent-relevant than removed ones, paired 95% CI [+0.056, +0.078]) rather than changing how much is retained. We distil a gpt-4.1-mini teacher over 67,074 real OpenHands trajectories into 40,606 validated examples and fine-tune Qwen3-4B. On all 300 SWE-bench Lite instances, Paritok-4B compresses agent context to 25.7% of its size, 2.0x harder than a gpt-4.1-mini compressor (50.2%) and 2.4x harder than gpt-5 (61.9%), while retaining 86.5% of uncompressed single-shot solve quality. Fed the cat -n line-numbered input real agents produce, it compresses slightly less (27.8%) and retains more (89.3%); there the paired test is informative, with 30 instances solved only uncompressed and 17 only compressed, an exact McNemar p=0.079, so at this sample size compressing context to roughly a quarter of its size does not significantly reduce the solve rate. The model is a 264 MB adapter that self-hosts on one 24 GB GPU with no per-token compressor fee, which at list prices decides the economics: gpt-5 as a compressor is net-negative, costing more than the downstream tokens it saves. Weights, data, and evaluation scripts are open (Apache 2.0).","url_abs":"https://arxiv.org/abs/2608.24188","url_pdf":"https://arxiv.org/pdf/2608.24188","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":null,"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2608.24188"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/Paritok-official/paritok-4b-v1","reach":null}],"summary":{"ran":7,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":11,"ran":7,"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":"873b2f50274887b3","entry":"apply_selection","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/tool_topk.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/tool_topk.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":"873b2f50274887b3"}},{"code_sha256_prefix":"dcaf987a228b2052","entry":"content_hash","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/storage.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/storage.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":"dcaf987a228b2052"}},{"code_sha256_prefix":"54d1f09ecff523fc","entry":"is_expand_call","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/pipelines/virtual.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/pipelines/virtual.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":"54d1f09ecff523fc"}},{"code_sha256_prefix":"60354326a5e0c943","entry":"is_virtual_tool_call","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/pipelines/virtual.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/pipelines/virtual.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":"60354326a5e0c943"}},{"code_sha256_prefix":"1ef84960d2b01625","entry":"looks_like_missing_tool_help","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/tool_topk.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/tool_topk.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":"1ef84960d2b01625"}},{"code_sha256_prefix":"fa73c5db1a0fbd68","entry":"match_region","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/pipelines/edit_recovery.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/pipelines/edit_recovery.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":"fa73c5db1a0fbd68"}},{"code_sha256_prefix":"cd3e7e762ba0cc48","entry":"strip_read_line_numbers","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/pipelines/edit_recovery.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/pipelines/edit_recovery.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":"cd3e7e762ba0cc48"}},{"code_sha256_prefix":"0a1c71ee1daac8f4","entry":"apply_selection_adaptive","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/tool_topk.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/tool_topk.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":"0a1c71ee1daac8f4"}},{"code_sha256_prefix":"2718e4da2b56c44d","entry":"build_shadow_storage","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/storage.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/storage.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":"2718e4da2b56c44d"}},{"code_sha256_prefix":"23903c550ccee149","entry":"parse_shell_replaces","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/pipelines/codex_edit_recovery.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/pipelines/codex_edit_recovery.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":"23903c550ccee149"}},{"code_sha256_prefix":"0857a4b13cc34b09","entry":"recover_edit","repo":"Paritok-official/paritok-4b-v1","repo_kind":"found_in_text","path":"paritok/pipelines/edit_recovery.py","file_url":"https://github.com/Paritok-official/paritok-4b-v1/blob/HEAD/paritok/pipelines/edit_recovery.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":"0857a4b13cc34b09"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","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,795 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6795},"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}}}