1. Executive Summary
Czip is a session archive for the Hermes agent runtime, with readers for Claude Code transcripts: it packs a conversation into an LZMA file with a six-letter id, indexes every pack with SQLite FTS5, and gives the next session a short map plus search and range reads instead of the transcript. Notable: the Hermes context engine wraps the native compressor, writes everything a compaction removes to a raw JSONL file before accepting the compaction, and returns the uncompacted context when that write fails. Weak: the pack's "lossless" mode is not lossless, the documented flags for it are not parsed, and several headline numbers have no artifact in the tree.
Nothing in Czip makes a belief. What survives a session is the record of what was said, under an id that can be read, searched and deleted, and the only correction is removing a file. That is session-log retrieval, in scope on the same terms as UniSessions and Session Recall, and closest in mechanism to LCM-X, the other Hermes context engine here that keeps every removed turn.
There are four stores. Packs (hkp.py)
are the archive. The index (depo.py) is a
derived FTS5 file over all packs. The context archive
(hermes_context_engine/czip/__init__.py) is one exact JSONL
per session with a pack beside it. The job index
(is_kaynagi.py) reads Hermes Kanban tasks, plan Markdown
and archive maps into a second FTS5 file, with an optional local
embedding arm. A task store (gorev.py) saves approved
prompts and plans as small packs in the same directory.
One mark is present, negative_eval, on the job index.
Six are withheld (section
9).
Licence. The commercial clause reaches use, not only
redistribution: using the software "in commercial activity",
including "using it to produce a paid service", needs a
separate written licence whose terms are stated nowhere and which is
requested by opening a public issue (LICENSE, second
section). The MIT grant that survives covers the four commits up to 19
September 2026, ending at 65ee356; the map, deduplication,
archive index, merge, task store and context engine all arrived on or
after 20 September. The Turkish text, which the English one points to,
adds that the new terms apply only to later versions and recommends
PolyForm Noncommercial 1.0.0 for "the same intent" without
adopting it; neither file says which text governs.
2. Mental Model
A pack is a transcript copy. It has no status, no confidence and no
notion of being right; a later session reads it as evidence of what
happened, and the map's instruction tells the reader to fetch exact
ranges before relying on anything (hkp.py:1052-1059). The
job index says the same in every hit: its evidence_claim
field reads "indexed source; file existence/hash and delivery claims
need separate verification" (is_kaynagi.py:147).
Three things change what a pack holds, all at write time:
- Smart mode (
akilli, the default) cuts each tool output longer than about 4,040 characters to its first and last 2,000, replaces the second and later copies of an identical tool output or tool argument with a pointer such as[AYNI-#12 …], and records each cut in the result (hkp.py:715-781). - The decision gate (
--jev) asks a model, by default a local one, whether each tool output above 1,200 characters is still needed, keeps those with an error word unasked, and replaces the ones scored below 0.30 with[JEV-SILINDI noul=… — kaynak girdide duruyor](hkp.py:315-323,:485-572,:720-726). - Whitespace cleaning runs in every mode, before the
mode is consulted (
hkp.py:700-709), which is the finding in section 9.
After that a pack never changes. A merge writes a new pack and leaves
the old ones; the context engine rewrites its session pack from the
JSONL on every compaction. A pack stops being findable when its file is
deleted and czip index runs again
(depo.py:189-201). Its id stays in kayit.json,
and a read by that id fails on the missing path.
Diagram source
%% caption: every source passes one packer that cleans whitespace in both modes; a pack is a file with an id, found through an index that follows the directory; the context engine keeps the exact bytes in JSONL beside its pack
flowchart TD
A["Hermes session from<br/>state.db, a Claude<br/>Code transcript,<br/>or any file"] --> P
G["merge of 2+ sessions:<br/>same role and text<br/>kept once"] --> P
G --> Z["sources ended and<br/>archived in state.db;<br/>undo file written"]
P["sikistir: whitespace<br/>cleaned in both modes"] --> M{"mode"}
M -- "akilli" --> T["tool output cut;<br/>repeats become<br/>AYNI-#N; optional<br/>model gate drops"]
M -- "eksiksiz" --> L["no cut, no dedup"]
T --> H["HKP1 file with a<br/>six-letter id"]
L --> H
H --> I["czip index: FTS5<br/>per message and per<br/>8-message block"]
I --> Q["asearch: newest<br/>pack first"]
Q --> R["range: messages<br/>by index"]
R ~~~ C["Hermes compaction<br/>removes messages"]
C --> J["raw JSONL, exact,<br/>plus a pack copy;<br/>failure keeps context"]
J --> K["czip_search and<br/>czip_range, this<br/>session's lineage only"]3. Architecture
A directory of Python modules, the engine in the standard library.
czip_cli.py dispatches find,
find-index and find-drive to
is_kaynagi.py and every other verb to hkp.py
(czip_cli.py:7-16). The Hermes plugin, the MCP server and
the context engine load hkp.py by path and call its
functions directly (plugin/__init__.py:29-47,
hermes_context_engine/czip/__init__.py:75-84).
Storage is files and SQLite:
- HKP1.
"HKP1", two 4-byte lengths packed little-endian (<II), then LZMA preset 9 extreme of a JSON meta block and of a JSON list of short records (hkp.py:628-656). The README describes the lengths as big-endian. Meta holds the title, a string dictionary for repeated fields and lines, values constant across the session, and the message count. Repeated values of 40 characters or more and lines of 24 or more seen three times become␟N␞tokens (hkp.py:575-625). - Registry.
kayit.jsonmaps an id to a path, title and time, written by temporary file and rename with no lock (hkp.py:37-72). The task store keeps its owngorev.jsonbeside it. - Archive index.
czip-index.db: apackagestable and two FTS5 tables,mftsper message andbftsper block of eight messages, with Turkish diacritics folded (depo.py:43-69). It is rebuilt incrementally by mtime and size. - Context archive.
$HERMES_HOME/czip/context/<session>.jsonland.hkp, plusaliases/<session>.jsonnaming the root session when Hermes rotates an id (hermes_context_engine/czip/__init__.py:250-288). - Job index.
runtime/czip-is-kaynagi/index.db:sourceswith a SHA-256 per document, an FTS5searchtable, and ametatable recording each provider's coverage and failures (is_kaynagi.py:11-15). - Vectors. An optional resident service,
embedding_service.py, embeds job-index sources in 1,200-character chunks withgoogle/embeddinggemma-2at a pinned revision, serves search on loopback behind a bearer token, and pauses on macOS memory pressure (embedding_service.py:22-35,:252-313).
Two defaults are the author's machine. The pack directory defaults to
~/007-HERMES/05-CIKTILAR/oturum-paketleri
(hkp.py:32); the skill tells agents packs live in
~/.hermes/session-packs. czip_auto.py reads
~/007-HERMES/20-HERMES/state.db and imports the merger from
~/007-HERMES/20-HERMES/czip-source, both hardcoded
(czip_auto.py:11-17).
Deployment and ergonomics
The CLI needs Python 3.9 and nothing else; packing and archive search
run offline with no key. install.sh writes a launcher to
~/.local/bin, copies the Hermes plugin and the Turkish
skill, and when hermes is on the path registers the MCP
server and enables the plugin with tool override allowed
(install.sh:9-26). The MCP server needs the
mcp package, which no manifest in the tree names. The
context engine is a manual symlink into the Hermes checkout and a config
change. The decision gate's default motor, Laya, runs from a virtual
environment at a hardcoded path and asks a local model on port 8888 to
translate Turkish first (hkp.py:332-357,
laya_kapi.py:17-24). The embedding service needs PyTorch
and Transformers from requirements-embedding.txt.
Packs are binary and cannot be repaired by hand;
czip range and the MCP iceri_ac print them as
JSON. The context engine's JSONL is plain text and is the authoritative
copy.
4. Essential Implementation Paths
- Pack.
_main_icipaketle→oturum_oku(state.db, read-only URI) orgirdi_ayristir(a file) →sikistir→paket_yaz→id_ata(hkp.py:1375-1508,:916-934,:147-197,:689-798). - Claude Code input.
girdi_ayristirdetects Claude Code JSONL and flattens text, tool-use and tool-result blocks, tool results under atoolrole (hkp.py:90-144);ccd_dokum.pydoes the same for exported zips used by merge. - Map, read, range, search.
harita,kilavuz,mesaj_araligi,paket_ara(hkp.py:1020-1060,:806-841,:844-855,:858-878). - Archive search.
index→depo.guncelle;arsivara→depo.ara, falling back to opening every pack when the index is missing (hkp.py:1619-1743,depo.py:116-207,:265-417). - Merge.
birlestir.adaylari_bul→gruplari_kur→oturumlari_birlestir→sikistir→pasife_al; undo isgeri_al(birlestir.py:93-122,:153-199,:211-276,:290-396). - Context engine.
compressandprune_tool_results_onlydiff the message list before and after the native compressor,_czip_storeappends the removed messages, and_inject_sectionwrites the archive appendix into the summary message (hermes_context_engine/czip/__init__.py:297-463). - Job index.
buildreads plans, Kanban tasks with their latest run and attachments, verified archive maps and a Drive name cache;JobIndex.searchruns BM25 and the optional semantic arm (is_kaynagi.py:154-219,:80-149). - Task store.
gorev.kaydetpacks the raw request and the approved text in lossless mode under a[PROMT]or[PLAN]title (gorev.py:57-87). - Background.
czip_auto.main(czip_auto.py:48-180), started by theczip-autohook (plugins-extra/czip-auto/__init__.py:14-34).
5. Memory Data Model
A pack record is a short dict: r role, c
content, tc a list of {n, a, i} tool calls,
e and e2 reasoning, f a finish
reason other than stop, and x a bag of
id, tool_call_id, tool_name,
platform_message_id, timestamp,
token_count, observed and
compacted (hkp.py:237-287).
api_content is dropped on purpose, because Hermes rebuilds
its memory injection per session. oturum_oku also selects
effect_disposition and reasoning_details when
the columns exist, and kayit_yap keeps neither
(hkp.py:922-926). A tool call keeps its name, arguments and
id and loses its type, call_id and any other
field.
Identity is the pack's id and a message's index inside it. Nothing else carries an identifier across packs: the same message merged into two packs has two addresses.
Time is whatever the source recorded. Packs keep the message timestamps; the index keeps the file's mtime; nothing records when something was true.
Scope is absent on the pack archive. Every pack in the directory is
one corpus, and the MCP hafiza_ara searches all of it. The
context archive is one file per session lineage, so a session reads its
own removed messages and no other's — a physical partition. The job
index stores a source kind and a list of case numbers
(esaslar) extracted from text by regex
(is_kaynagi.py:37-48).
The task store's record is a pack holding the raw request as a
user message and the approved text as an
assistant message; gorev.json lists them and
is rebuilt from the directory when lost
(gorev.py:90-115).
6. Retrieval Mechanics
Nothing is injected automatically from the pack archive. The agent
runs czip map, search and range,
or the MCP tools, and the skills tell it to read ranges rather than
whole packs.
The map is bounded on the command line and not over
MCP. harita returns role counts, the twelve
most-used tools, the last 40 user requests cut to 96 characters, and the
last six messages in full (hkp.py:1020-1060). The CLI
prints each tail message cut to 700 characters
(hkp.py:1798-1820); the MCP hafiza_harita,
whose docstring promises about 1.5k tokens, returns the dict as JSON
with the six messages whole, reasoning included
(mcp_server.py:216-228). The context engine's
czip_map keeps two and clips fields to 1,500 characters
(hermes_context_engine/czip/__init__.py:552-559). The map's
title is meta.get("b"), a key nothing writes, so it is
always the file name (hkp.py:1047);
depo.py:177-180 carries a comment describing exactly this
defect and the fix that was applied there only.
Search inside a pack lower-cases the query, splits
it into words of two or more characters, and returns the first eight
messages, in message order, whose decoded content contains every word as
a substring (hkp.py:858-878). Tool-call arguments are not
searched.
Search across packs ignores relevance.
depo.ara tries the whole query as an FTS5 phrase, then
every meaningful term ANDed, then the rarest three, two and one, and
when the message layer falls to a single term or nothing it retries the
full query against the eight-message blocks and adds those ranges
(depo.py:265-417). Every query orders by
p.mtime DESC and takes the first
limit * paket_limit rows (depo.py:291-305).
FTS5's rank is never read, so the hits shown are the matches in the most
recently written packs. A diagnostic note says which rung matched, and a
total miss names the terms no pack contains.
The block layer is attributed in code to STAIR, arXiv:2609.03874
(depo.py:34-38, :272-277). That paper,
submitted 3 September 2026, describes an LLM-based retriever guided by a
document's table of contents and argues against fixed-length chunking.
The code's blocks are fixed windows of eight messages
(idx // BLOK).
The job index is the one ranked path. Terms are
folded for Turkish, and a handful are stemmed by prefix; BM25 weights
title 4, tags 6 and text 1, with recency second
(is_kaynagi.py:24-35, :134). With no hit it
retries with OR, except when the query holds a number. One case number
in the query becomes an exact filter. The semantic arm is skipped when
the query holds a number the case does not explain, and its hits are
fused by reciprocal rank at k = 60 with weight 0.8 against 1.0 for
keywords, one hit per group (is_kaynagi.py:80-121). Every
hit carries a source hash, the coverage of each provider, and a stale
flag after a day or a failed refresh.
The context engine's search is this session only.
czip_search runs paket_ara over the session
pack and falls back to scoring messages by the number of query words
they contain; czip_range pages the raw JSONL with a SHA-256
per field and a next cursor; czip_find is the
job index (hermes_context_engine/czip/__init__.py:512-573).
An empty archive points the agent at czip_find. The archive
packs are not in the pack directory, so the cross-pack index never sees
them.
7. Write Mechanics
Every write is a pack. The CLI, the /czip command and
the MCP sikistir and oturum_sikistir tools
pack on request; /czip-son packs the active session and
then closes and archives it in state.db
(plugin/__init__.py:284-317). After a pack, the CLI scans
the last seven days for sessions with overlapping words and suggests a
merge (hkp.py:1491-1508,
birlestir.py:399).
Merge drops any repeated message, not just a duplicated
one. Sessions are interleaved by timestamp with a boundary
marker, and a message is skipped when any earlier message in the merged
stream had the same role and the same first 4,000 characters of cleaned
content (birlestir.py:203-265). A user's "continue" or
"yes" survives once across all merged sessions, the same repetition the
context engine has a test to preserve
(tests/test_engine_regression.py:48-49). Candidates are
pairs whose Jaccard overlap of title and first three user messages
reaches 0.18; a pair is merged at 0.45 locally or at a model score of
0.60, and pairs join transitively through union-find
(birlestir.py:29-33, :180-198).
The prompt store's approval is a word in the
instructions. The command and the always-on
czip-promt context tell the model to show the prompt, wait
for a yes, then run czip gorev kaydet with the text on
stdin (commands/czip_promt.md:21-40). The same context says
that when handing work to another profile the save needs no approval at
all (plugins-extra/czip-promt/__init__.py:24-26). The CLI
accepts any caller.
The context engine writes before it lets the compaction
stand. Under a thread lock and an OS file lock it reloads the
JSONL, appends the removed messages, writes the JSONL and a lossless
pack to temporary files, checks that the pack's message count equals the
archive's, and renames the pack then the JSONL into place
(hermes_context_engine/czip/__init__.py:297-332). Any
exception returns the uncompacted list to Hermes
(hermes_context_engine/czip/__init__.py:349-363). An
unreadable existing archive blocks every later write instead of being
overwritten.
Operational cost
A pack is synchronous: one read of state.db, the cleaning passes, and
LZMA at preset 9 extreme over the whole session, with no model unless
--jev is given; the gate then batches 20 questions per call
within a 90-second budget (hkp.py:315-323). A new pack is
searchable across packs only after czip index, which the
auto script runs at the end of each pass and nothing else runs
(czip_auto.py:173-179). The context engine rewrites the
session's whole JSONL and repacks the whole archive at every compaction,
so its cost grows with the session. A map from the CLI is a few thousand
characters; the MCP map is unbounded, as above.
8. Agent Integration
Five surfaces, each with its own verbs:
- CLI with English and Turkish verbs
(
hkp.py:1063-1080). - Hermes plugin:
/czip,/czip-sonand/czip_end,/czip_ex,/czip_search,/czip_merge,/czip_auto,/czip_esik, the prompt and plan stores, and aliases in three spellings (plugin/__init__.py:420-541). - Context engine:
czip_search,czip_range,czip_map,czip_find, plus an appendix in every compaction summary listing the archived range and the last 25 user requests (hermes_context_engine/czip/__init__.py:435-504). - MCP server: twelve tools, the original seven and
five
hafiza_*(memory) tools (mcp_server.py:21-260). The README says seven. - Skills for Hermes, Claude Code and Codex, and a Claude Code plugin manifest.
The English skill teaches arguments the engine does not
accept. skills/czip-session-pack/SKILL.md and the
README tell the agent to run
czip pack <session_id|last|longest> [--full] and
czip read <id|last>. The pack verb checks only
--eksiksiz (hkp.py:1381), so
--full produces a smart, truncating pack with no warning.
Session selection accepts son, en-son,
en-uzun and en-buyuk
(hkp.py:937-954); last and
longest fall to a prefix match and fail.
id_coz treats son as the newest pack and
anything else as an id or a path (hkp.py:75-82).
Two flows depend on code outside the tree. The
sentinel scripts/context-nobetci.py writes pack offers for
a czip-tasi plugin that the skill describes and the
repository does not contain, and the oto,
oto_pasif and jev settings it forwards are
read by nothing else here. The job index admits an archive map only when
a receipt.json beside it says verified, and
the archiver that writes those, oturum-arsivcisi, is not
here either (is_kaynagi.py:197-209).
9. Reliability, Safety, and Trust
The lossless mode
The README promises that --full returns every byte and
that the round-trip is "bit-exact (test suite: 210/210 messages,
bit-for-bit)". In the code, sikistir runs
bosluk_temizle over content, reasoning and tool arguments
before it reads the mode (hkp.py:700-709). For text without
a code hint that collapses runs of spaces and tabs, trims spaces around
newlines, squeezes three or more newlines to two and strips the ends;
for code it converts CRLF and strips the ends
(hkp.py:290-300). Fields outside the kept set are dropped
in every mode, as in section 5. The
committed round-trip test packs four messages whose text has none of
these features (tests/test_roundtrip.py:10-22), and no
210-message test exists in the tree.
The context engine does not depend on the claim: it treats the JSONL
as the exact copy and reads ranges from it, and its paging test asserts
byte equality on text with leading spaces, tabs and doubled spaces
(tests/test_engine_regression.py:52-56). The CLI, the MCP
server and the task store read packs.
What the host's database sees
The README says state.db is always opened read-only and
the engine cannot delete or corrupt anything. hkp.py does
open it read-only. birlestir.pasife_al opens it read-write
and sets ended_at, end_reason and
archived = 1 on each source session, and writes an undo
file with the previous values (birlestir.py:290-363). It
runs from /czip-son, from czip merge auto,
from czip pack --oto-pasif, and from
czip_auto.py for any merge group idle 48 hours, with no
person involved (czip_auto.py:105-167). Messages are not
deleted. geri_al restores the recorded values.
The PII layer
The README says personal data in a pack is tokenised and encrypted,
and its Limits section says packs are not encrypted. The second is what
the code does. kvkk.uygula, which tokenises names,
addresses and identity numbers and keeps the map under Fernet, is called
by kvkk.py's own outbound gate and its self-test; its
docstring names a --kvkk flag on paketle that
the CLI does not parse. The outbound gate guards only the cloud decision
engine, which is off by default. Its identity-number pattern is nine
digits, (?<!\d)[1-9]\d{8}(?!\d)
(kvkk.py:33), while a Turkish national identity number has
eleven, so a real one is never counted, and a body with no other finding
is sent without a prompt (kvkk.py:90-92).
The tool surface
The MCP sikistir takes an input that may be any readable
path and an output path the model chooses, and iceri_ac and
hafiza_getir read any HKP path
(mcp_server.py:21-61, :199-213). A model
holding the server can copy any file it can name into a pack and read it
back.
Concurrency
The context engine serialises writers across processes, and a test
runs two spawned processes against one archive
(tests/test_engine_regression.py:103-115).
kayit.json and gorev.json are read, changed
and replaced with no lock, so a background pack and a foreground one can
each drop the other's new id.
Marks
negative_eval— present, on the job index: a semantic candidate whose stored hash differs from the source's is refused, a candidate from another case is refused from a populated list, and a numeric query never takes the semantic arm (tests/test_semantic_retrieval.py:28-35). The suite sits on the job index, not on the pack archive.scope_enforced— withheld. The pack archive has no key. The case number in the job index is a filter on the read path, and it is a value extracted from text by regex, so a record that names two cases carries both and one that names none escapes every case filter. The context engine's per-session files are a partition.trust_state— withheld. Nothing holds a status. The job index'sverifiedreceipt gate is a filter on a field whose writer is outside the tree;staleis a label on coverage that withholds nothing.human_review— withheld. The prompt store's approval is an instruction to the model, and the save is a shell command any caller can run. The auto-merge prints undecided pairs as awaiting approval and nothing queues them.audit_log— withheld. The undo files record changes to the host's sessions, one file per operation; the context JSONL is the archive itself.tombstone— withheld. A gate deletion leaves a marker in one record of one pack.bitemporal— withheld. Message timestamps and file times only.
10. Tests, Evals, and Benchmarks
The CI workflow runs unittest discover and the
round-trip script on three operating systems and two Python versions
(.github/workflows/tests.yml). The 49 cases cover the job
index (12), the semantic fusion with a mocked backend (12), the context
engine against a stub of Hermes's compressor (17), the CLI (4) and the
plugin manifests (4). The engine regression file is the strongest:
archive failure returns the original context, a failed pack commits
neither file, a rotated session id finds its root archive, exact
pagination, and two processes writing one archive.
hermes_context_engine/test_czip_engine.py runs against a
real Hermes import and prints PASS or FAIL for 15 checks; CI does not
run it.
The pack engine has the round-trip script and nothing else. No
committed test covers smart mode, deduplication, the dictionary, the
map's size, merge, depo.ara, the task store or
czip_auto.py.
One negative case passes on an empty result.
test_deleted_plan_removed_after_successful_snapshot deletes
the plan and asserts no hit of kind plan for
yangin; the Kanban task that remains carried the word only
through the deleted plan's tags, so the search returns nothing at all
(tests/test_is_kaynagi.py:37-38). A control asserting the
task is still found would make it bite.
Headline numbers against artifacts.
| Claim | Where | Artifact in this tree |
|---|---|---|
| 93,417 to 1,561 tokens, about 60× | README, hkp.py:1013-1018 |
None; a comment records a 3,421-message private session and no tokenizer is imported |
| 12,217,023 to 479,724 B; 39.8 MB to 1.44 MB over five sessions | README | None |
| 18.0× and 8.4× on two sessions | README | None |
| Round-trip bit-exact on all 210 messages | README | None; the committed test has four messages |
| A model scored a false merge 0.13 against 0.75 locally | README | None |
| 80/80 single-hop, 0/40 blind, 6/20 two-hop | benchmarks/super-context-proof.md |
The page says its harness and outputs are not committed; 748,800 / 112 does give the stated 6,685× |
| 8/8 for Czip, summary and full history on 615 messages; 16/16 against 2/16 on two 4,015-message seeds | README | In a separate repository,
Jilazem/czip-continuity-gauntlet |
The last row recomputes. Summing the four results.json
files under results/2026-09-30 gives Czip 71,243 prompt
tokens with 8 grounded of 8; full history 369,536; the rolling summary
10,928 for answers plus 77,243 for its setup calls, 88,171 in all; the
last-24 control 1 of 8 on each seed; and 73,004 and 72,547 tokens for
Czip on the two large seeds. The ratio 369,536 / 71,243 is the reported
5.19×. Every Czip run there packs in lossless mode and records engine
SHA-256 a219624c…, the hash of the hkp.py the
harness loaded, and the results page attributes it to commit
6a2273f. No hkp.py in any of the 33 commits on
this repository's five branches hashes to that value; at
6a2273f the file hashes to fb6012f3…. The run
used an engine committed nowhere in this repository. Its own page calls
it a synthetic demonstration of one model on one template.
No paper of its own; the one citation is the STAIR attribution in section 6.
Tests to want first: a smart and a lossless pack of messages with
doubled spaces and leading indentation, compared byte for byte;
--full, last and longest on the
CLI; a merge of two sessions that each say "yes"; an archive search
where the older pack is the better match; and the deleted-plan case with
the task as a control.
11. For Your Own Build
Steal
- Archive what compaction removes before letting it stand, and refuse the compaction when the archive write fails. Diff the message list around the host's compressor rather than reimplementing it, so every rule the host has keeps working.
- Keep the exact bytes in a plain file and the search copy beside it. Read ranges from the exact file, page long fields, and return a hash per page.
- Persist the continuation when the host rotates a session id, so a new process finds the original archive.
- Re-read every vector hit from the current source and drop it when the hashes differ. A stale embedding then cannot cite text that is gone.
- Keep a numeric constraint away from similarity search. A case or ticket number in the query either filters exactly or the semantic arm does not run.
- Write the undo record for anything done to a host's state, with the previous values, before telling the user it is done.
Avoid
- Do not normalise text in a mode named lossless. Put any cleaning behind the mode check, and test with the characters it would remove.
- Do not deduplicate a conversation by content. "Yes" twice is two turns. Deduplicate by message id, or not at all.
- Do not order full-text hits by file time and cut. Read the engine's rank, then break ties by recency.
- Do not let the documentation's flags drift from the parser. An unknown flag should fail.
- Do not publish a benchmark hash without the commit that produces it.
Fit
Fits one person running Hermes on their own machine who wants long sessions carried forward without a summary they cannot check, and who will read and search the record as a record. The context engine is the part with engineering behind it and stands on its own. The CLI and plugin assume the author's directory layout, a Turkish-first workflow and a local model server for the optional gate.
Walk away if the archive must be byte-exact outside the context engine, if two people or projects must not search each other's sessions, if anything written to the host's session table must be approved by a person, or if commercial use is on the table, where the licence asks for a separate agreement on unstated terms.
12. Open Questions
- Which
hkp.pyproduced engine hasha219624c…in the published benchmark runs. - Whether
haritais meant to read the title frombaslik, asdepo.pywas changed to. - Whether the
czip-tasiplugin and theoturum-arsivcisiarchiver are to be published, and what writesreceipt.json'sverified. - What the branch
fix/session-isolation-i18n-20261015changes, dated 16 October 2026 and not merged at this pin. - Whether
kvkk.uygulais meant to run on every pack.
Appendix: File Index
- Engine, format, CLI:
hkp.py - Archive index:
depo.py - Merge and host-state writes:
birlestir.py,ccd_dokum.py - Task store:
gorev.py - Context engine:
hermes_context_engine/czip/__init__.py,hermes_context_engine/README.md - Job index and vectors:
is_kaynagi.py,semantic_client.py,embedding_service.py,EMBEDDINGS.md - Surfaces:
mcp_server.py,plugin/__init__.py,czip_cli.py,plugins-extra/czip-auto/__init__.py,plugins-extra/czip-promt/__init__.py,commands/,skills/ - Background:
czip_auto.py,scripts/context-nobetci.py,ayar.py - Decision gate and PII:
laya_kapi.py,kvkk.py - Tests:
tests/test_engine_regression.py,tests/test_is_kaynagi.py,tests/test_semantic_retrieval.py,tests/test_cli.py,tests/test_manifest.py,tests/test_roundtrip.py,hermes_context_engine/test_czip_engine.py - Benchmark:
benchmarks/super-context-proof.md - Licence:
LICENSE,LICENSE_tr.md
Recorded searches
Run from the repository root at the pinned commit with
/usr/bin/git grep.
--fullis not a pack flag.git grep -n -e '--full' -- '*.py'returnshkp.py:1140,:1156and:1622, all forindex; the controlgit grep -n -e '--eksiksiz' -- hkp.pyreturns the pack check at:1381.lastandlongestare not session selectors.git grep -n -E '"last"|"longest"' -- '*.py'returns nothing; the controlgit grep -n -F '"en-uzun"' -- hkp.pyreturns:941.- Whitespace cleaning precedes the mode.
git grep -n -E 'bosluk_temizle|mod != "eksiksiz"' -- hkp.pyreturns the calls at:703and:709and the mode checks at:745and:766. - Nothing writes the map's title key.
git grep -n -E 'meta\[.b.\]' -- '*.py'returns nothing;git grep -n -F 'meta.get("b")' -- '*.py'returnsdepo.py:180andhkp.py:1047; the controlgit grep -n -F 'meta["baslik"]' -- '*.py'returnshkp.py:634. - Archive search orders by file time.
git grep -n -E 'ORDER BY|rank' -- depo.pyreturns the threeORDER BY p.mtime DESClines and no read ofrankorbm25. - Writes to the host's sessions.
git grep -n -F 'UPDATE sessions' -- '*.py'returnsbirlestir.py:341,:344,:384and:387. - The pack-time PII pass has no caller.
git grep -n -F 'uygula(' -- '*.py'returnskvkk.py:193,:295and:327;git grep -n -e '--kvkk'returns onlykvkk.py:15. - No delete verb.
git grep -n -i -E 'os\.remove|\.unlink\(|rmtree|delete from' -- '*.py' ':!tests' ':!hermes_context_engine/test_czip_engine.py'returns index-row deletes indepo.py,is_kaynagi.pyandembedding_service.py, and temporary-file cleanup in the context engine. - The offer consumer and the archive receipt writer are
absent.
git ls-files | grep -i tasireturns nothing, whilegit grep -l -F 'czip-tasi'listshkp.py, the three skill files andscripts/context-nobetci.py;git grep -n -F 'receipt.json'returns the reader atis_kaynagi.py:202and the test fixture. - No headline artifact.
git grep -n -i -E 'tiktoken|o200k'returns the two READMEs only;git grep -n -F '210'returns README lines and two cover-image scripts, no test. - The benchmark engine hash. In bash,
for c in $(git rev-list --all); do git show "$c:hkp.py" | shasum -a 256; done | sort -uprints 17 distinct hashes over 33 commits, nonea219624c…; at6a2273fthe hash isfb6012f3…. - No paper, no submodules.
.gitmodulesandCITATION.cffare absent;git grep -n -i -E 'arxiv|bibtex|@article|@misc|doi\.org'returnsdepo.py:34and:272.
History
2026-12-02 — 9314a97b….
First reading, read at the user's request from the 2026-12-02 triage
shortlist, from a full clone at the head of main, read
only. Screened: one auto-run surface (.claude-plugin/ with
plugin.json, a marketplace entry a harness installs from),
no build-time execution, nothing inside the cooldown, no unpinned
surface. Nothing was installed, built or run, and none of the 49 test
cases or the two scripts was run; the published benchmark's
results.json files were read through the GitHub API and
their totals recomputed. One mark (section 9).