Skip to main content
Codeep
$ cat ./codeep.md

Codeep

Codeep is a powerful CLI tool designed for deep code analysis and exploration across multiple programming languages. It provides comprehensive codebase insights through advanced parsing capabilities, enabling developers to quickly understand project structure, dependencies, and code metrics. The tool features intelligent code traversal, pattern recognition, and automated documentation generation, making it invaluable for code reviews, refactoring projects, and onboarding new team members. Codeep supports batch processing of large codebases and generates detailed reports in various formats, helping development teams maintain code quality and architectural consistency. Its lightweight design and cross-platform compatibility make it ideal for integration into CI/CD pipelines and development workflows.

22 stars 2 forks TypeScript Apache License 2.0
VladoIvankovic 2431 Feb 1, 2026
Login with GitHub to like and favorite this CLI tool
$ git release --latest

Latest Releases

All releases

> TL;DR — MiniMax M3.1 Flash is the new MiniMax default ($0.15/$0.60, 1M context), and DeepSeek's deepseek-flash is now V4.1-Flash-1017 with no change to price or id.
Added
  • MiniMax M3.1 Flash (MiniMax-M3.1-Flash) on all three MiniMax providers
(minimax, minimax-api, minimax-cn), first in the picker and the new default. 1M context; on the pay-per-use API it is $0.15 in / $0.60 out with cache reads at $0.015. MiniMax M3 stays in the picker, and a config that names it keeps it. - /thinking now works on it. Low, Medium, High and Max map to the five levels MiniMax documents (it also has xhigh, which no tier sends). Thinking cannot be switched off on this model, so no tier does. **/thinking auto sends nothing and the model runs at its own default, which is max**: the heaviest level, and the one that spends a subscription's 5-hour window fastest. Pick Low, Medium or High for everyday work. MiniMax M3 has no such control and gets none. The Mac app has the same control. - The retired MiniMax-M3.1-Flash-Preview name is served by this model.
Changed
  • DeepSeek V4.1 Flash is now the 2026-10-17 release (V4.1-Flash-1017).
DeepSeek kept the id (deepseek-flash) and the price, so nothing changes in your config or your estimates; the picker description names the version. OpenRouter lists this snapshot as its own id, deepseek/deepseek-v4.1-flash-1017.
Fixed
  • MiniMax M3 cache hits were estimated at half their price. A cached token
costs $0.06 against $0.30 for a miss (0.2×), and Codeep billed it at the 0.1× default. /cost and /stats for M3 sessions with a lot of caching were low by that difference. The Mac app had the same gap and is fixed alongside.

> TL;DR — A terminal run can now tell your phone right away, or after 15 s, 30 s, 1 or 5 min (Telegram run notices after, in /settings). 1 minute stays the default.
Added
  • A choice of how long a run must take before it tells your phone.
/settings has a new row, Telegram run notices after: Right away, 15 seconds, 30 seconds, 1 minute or 5 minutes. A run started at the terminal sends its "Codeep finished" notice to Telegram once it has taken that long. Runs of about half a minute used to send nothing, for everyone, and this is the way to have them send. - 1 minute is still the default. Nothing changes until you pick another; a phone is not buzzed about work you watched finish unless you ask for it. - A run started from the phone is unaffected. It is always answered, whatever the row says. - It governs the notice itself (what ran, how long, tokens and cost). Whether the notice also carries the agent's answer is still **Send terminal answers to Telegram**, as before. - /telegram shows the choice in its status line (Notice after:). - A value in the config file that is not one of the five (a hand edit) is read as 1 minute, and the row shows it as 1 minute. - The Mac app gets the same choice, as Send answers after, in its next release after 3.9.0.

> TL;DR — A launcher can hand Codeep its prompt in a file with --prompt-file, so it stays out of the process list. The Omarchy bar widget's Ask field does that from plugin 1.1.0.
Added
  • codeep --prompt-file <path> (also --prompt-file=<path>) starts a new
session with the file's text as its first message, exactly as codeep -- <prompt> would: a leading / is text, a prompt that says review stays a prompt, and --yolo means what it did. It exists for launchers. A word on the command line is public: any local user can read /proc/<pid>/cmdline on a system whose /proc is not mounted with hidepid, so codeep -- "<prompt>" shows the prompt in the process list for as long as Codeep runs. The Omarchy bar widget's Ask field did exactly that (reported against its first release, omacom/omarchy-plugin-marketplace #11499); from plugin 1.1.0 it writes the prompt to a private file and passes only the path. An environment variable would be private too, but does not arrive through a terminal that runs as a single instance (ghostty, kitty, foot's server), which starts the child from its own environment. - It is strict about what it reads. The path must be absolute (no ~, no relative path). The file must be a regular file and not a symbolic link (opened without following one, and looked at again through the open descriptor), owned by you, and not writable by its group or by others, and at most 256 KiB of UTF-8 text. A BOM is dropped and the text trimmed; an empty file is an error. Anything else ends the launch with one line saying why and exit code 1, before any session starts. No message holds the prompt or the path. - **It removes the file after reading it, but only a launcher's own temp file:** a name of codeep-prompt- and at least six letters or digits (what mktemp codeep-prompt-XXXXXXXXXX makes). Any other file is read and left alone, and so is one that was refused. A failed removal is not an error. - One prompt. -p/--prompt, -- and --prompt-file are three ways to give it; more than one is the existing "Give the prompt once" error, whose message now names all three. A missing, -- or empty path is a missing-value error, as -p's is. - An older Codeep ignores it (an unknown flag and a stray word), and starts without the prompt. A launcher asks codeep --version first; the plugin does. - What it does not cover. It keeps the prompt out of the process list, nothing more. The conversation is saved as a session as it always was (the whole prompt, in .codeep/sessions of the project or ~/.codeep/sessions), the audit log keeps the first 400 characters of it (.codeep/audit/<day>.jsonl, on by default), and the live status file and the notification name the run by its first five plain words.

> TL;DR — Gemini 4 Argon is the new Google default ($2/$10 until 1 December), tried against Google's API. Its thinking tokens are counted, streamed replies once, and 3.7 and 3.5 Flash move to 3.8 and 3.6.
Added
  • Gemini 4 Argon (gemini-4-argon), Google's flagship reasoning model,
generally available since 13 October. It is first in the Google picker and the Google default: 3.1 Pro, still a preview, moves down one place, and a config that names it keeps it. The fresh-install provider is still Z.AI. Through OpenRouter it is google/gemini-4-argon (listed there on 14 October, $2/$10). The owner ran it against Google's API on 14 October with their own key (below); the rest comes from Google's own pages, read the same day. - A paid key only. Google does not offer it on the free tier or on the Google AI Pro plan, so a key without billing cannot call it; the picker says so. - One 1,048,576-token window, shared by what you send, its thinking and its answer. - /thinking offers low, medium and high. Its own default is medium, so Auto runs it there; Max sends high, as there is nothing above it, and no level switches thinking off. (The gate was a gemini-3 prefix, which gemini-4-argon fails, so it would have shipped with /thinking hidden.) - Latency is uneven. The same one-line requests took 3.7 s and 29 s at its default effort, and 59.7 s and 3.5 s at reasoning_effort: "high", in two runs the same day (native: 9.7 s and 4.6 s). Effort did not decide it; allow for tens of seconds, and more for a prompt that needs real thinking. - At least 32,768 reply tokens on every tier. Its thinking counts inside max_tokens, a hard limit, and Google says to raise anything lower for it because it "can spend more of the limit on thinking than earlier models". This reaches the task planner, which sent 2,048. - No temperature, topp or topk. Google ignores them on it, so Codeep leaves them out. - $2.00 in / $10.00 out per million tokens (thinking counts as output), through 30 November; $4.00 / $20.00 from 1 December. Cached input is 95% off ($0.10, then $0.20), and there is no cache-write charge or long-prompt tier. Estimates use the rate billed now and do not anticipate the rise on 1 December; revisit the row on that date, not before (docs/MODEL_MAINTENANCE.md).
  • scripts/verify-gemini-argon.mjs, for the owner to run with their own key
(GOOGLEAPIKEY, at most 12 requests, asks y/N first, --dry-run sends nothing). On the OpenAI-compatible endpoint the CLI uses: a plain turn, a tool call with its follow-up, one at reasoning_effort: "high", and the same plain and tool-call requests STREAMED with usage requested in the stream (how the CLI really sends them). On the native generateContent API the macOS app uses: one at thinkingLevel: high with usageMetadata printed verbatim, and a function call replayed four ways: without its thought signature, with Google's documented placeholder, as returned, and rebuilt the way the app rebuilds it (which proves the signature sits where the app reads it). It prints status, finish reason, usage, timing and where each signature sits for each, and which replay Google accepted. --model <id> points every check at another model (--model gemini-3.8-flash), which is how to find out whether Gemini 3.x behaves like Argon.
Changed
  • Gemini 3.7 Flash and 3.5 Flash are gone from the picker. Google deprecated
both on 8 October and routes requests for them to 3.8 Flash and 3.6 Flash, which it names as the replacements; an existing setting moves to that model at launch. Their price and context rows stay, so an old session export still reads. Gemini 3.5 Flash-Lite, a different model, is untouched.
Fixed
  • A Google model's thinking tokens are now counted. On Google's
OpenAI-compatible endpoint (what Codeep uses for every Google model) the reply's completion_tokens leaves thinking out and there is no completiontokensdetails: the owner's test of Argon at high effort came back as {"completiontokens":7,"prompttokens":47,"total_tokens":207}, so 153 thinking tokens existed only as the gap in the total — and Google bills them as output. /cost, /stats and the usage ledger counted 7 output tokens where Google prices 160 (its pricing page: the output price includes thinking tokens; no bill was read). When a Google reply's total exceeds prompt plus completion, the difference now goes to the completion count. Nothing is added for any other provider (OpenRouter already folds reasoning into completion_tokens, and elsewhere a total may legitimately differ), and nothing twice if Google ever folds thinking in. This is Google-wide, not Argon-only: it applies to any Google model whose reply carries such a gap. That gap was seen on non-streamed replies. Streamed replies carry total_tokens too (the two streamed requests of the second run), but neither had any thinking in it, so a streamed reply WITH thinking was not seen; the fix reads the same field and its streamed tests use a shape written from the non-streamed one. How far back 3.x under-counted is not known either.
  • A streamed reply's usage is counted once. Google's compat stream puts
usage on every chunk (both chunks of both streamed requests of the second run, with the same totals), and chat() recorded every chunk that carried it, so a streamed chat reply — compaction summaries, session titles, /plan, /recall — counted twice on Google. It now keeps the last chunk's usage and records it once. (The agent-turn stream already kept the last; OpenAI sends usage on the final chunk only, so nothing changes there.)
  • Plain chat waits up to 5 minutes for Argon, not 60 seconds. The chat
mode of the TUI, /plan, compaction summaries, session titles and /recall all go through one chat() request on apiTimeout, a single timer for the whole reply; replies of 59.7 s and 29 s for a one-line prompt were seen on the same day, the first 0.3 seconds under it. Argon alone gets a 300-second floor there (a larger apiTimeout still wins). 300 seconds is the most a non-streamed reply can wait: Node's own fetch drops a connection that is silent for 5 minutes whatever Codeep sets. Agent turns already had 10 to 15 minutes and are unchanged.
Verified
By the owner, on 14 October, against gemini-4-argon with their own key(scripts/verify-gemini-argon.mjs, two runs of 8 and 12 requests, key not inthe output; figures in docs/MODEL_MAINTENANCE.md):
  • The OpenAI-compatible endpoint accepts it: a plain turn, a call of a
function tool (read_file), its follow-up with the reply replayed as returned, reasoningeffort: "high" with maxtokens: 4096 (391, finish_reason: stop, 153 and 120 thinking tokens outside completion_tokens in the two runs), and the plain and tool-call requests streamed with streamoptions.includeusage. The streamed tool call assembles into valid JSON.
  • The native API reports thinking apart: {"promptTokenCount":47,
"candidatesTokenCount":7,"totalTokenCount":205,"thoughtsTokenCount":151}. Total is prompt plus candidates plus thoughts.
  • A function call replayed without its thoughtSignature is an HTTP 400
("Function call is missing a thought_signature in functionCall parts"), on Argon and on gemini-3.8-flash in the same test, and it is a 200 when replayed as returned. The signature sits on the functionCall part (content.parts[0].thoughtSignature; 124 characters on a call with no thinking, 332 to 348 on 3.8 Flash). A call rebuilt the way the macOS app rebuilds it — the call and that part's own signature, nothing else — is answered too, on both models, so the placement the app reads is right.
  • Google's documented placeholder (skipthoughtsignature_validator) on
the first call is accepted by both models, so history that carries no signature can be replayed.
  • Usage rides on every chunk of Google's compat stream (both chunks of
each streamed request, same totals) — the double counting fixed above.
  • A thought signature comes back on a plain answer too, and on streamed
chunks (delta.extracontent.google.thoughtsignature), not only on function calls.
  • Latency is uneven: 2 to 60 s for one-line requests across the two runs,
with no pattern by effort.
  • Not a run, but a reading of the code: the CLI is not affected by the
signature requirement, because it keeps history as plain text and never replays a function call (the agent loop in src/utils/agent.ts sends the model's own earlier turns as text and tool results as a user message).
Not verified
Still open after those runs, and each is written down so it is not claimed:
  • A streamed reply WITH thinking: whether its final chunk carries the
same gap in total_tokens. The streamed requests had no thinking. The native streamGenerateContent usageMetadata the macOS app reads is not covered by any check, nor is where the signature sits in its chunks (the native checks used generateContent).
  • What usage reports for cached tokens. Every request was far below the
4,096 tokens implicit caching needs, so no cache hit was seen: the 95% rate is Google's published price, not a measurement.
  • Gemini 3.x other than 3.8 Flash on the native path (3.6 Flash, 3.5
Flash-Lite, 3.1 Pro): the same family and almost certainly the same, not tested.
  • How each client reports Google's refusal for a free-tier key: the exact
text and status were not seen.
  • Replays with parallel function calls: every run made one call at a
time. Google puts the signature on the first call of a parallel turn only; the macOS code follows that and it is untested live.
  • A signature replayed after a model switch (Argon to another Gemini, or
the reverse).
  • The macOS response shape {"content": …} is what the rebuilt replay
used and was accepted; other shapes were not compared.
  • That 32,768 is the right cap in practice — it is Google's advice, not a
measurement.
Left alone
Google says hard prompts "can take several minutes" and to allow HTTP timeoutsof at least 15 minutes. Agent turns here get 10 minutes (12, then 15 later ina run) as one timer that streaming does not reset, plain chat getsapiTimeout (60 seconds; 300 for Argon, above), and Node's fetch gives up on aconnection silent for 5 minutes whatever Codeep allows — so 15 minutes wouldneed a new dependency, and a retry after a timeout bills the thinking again.The task planner makes its own request with no timer of its own.

> TL;DR — On Omarchy, Codeep now sends a desktop notification when a run ends or waits for you (opt-in on other Linux), codeep usage --json prints your usage, and bar plugins can see its status.
Added
  • A desktop notification when Codeep needs you. On Linux, through
notify-send, Codeep tells you when a run you started in the terminal ends after 30 seconds or more (Codeep finished — <task> or Codeep stopped — <task>, and how long it took), when an approval has waited 10 seconds (Codeep is waiting for your approval, and the tool's name), and when a clarifying question has (Codeep has a question, and the task). "Stopped" is a run you stopped, one that paused at a safety limit, one that failed, and one the model declined. A run started with codeep --yolo -- "<prompt>" notifies the same way, with Agent Mode on. On Omarchy, whose shell is the notification daemon, it is on; elsewhere it is off until you turn it on. Desktop notifications in /settings (shown on Linux when notify-send is installed) sets it, and what you set wins over the default. When you are looking at it — on Hyprland, when the focused window is the terminal Codeep runs in — nothing is shown. A notification says only a fixed phrase, the first five words of what you typed (at most 48 characters, leaving out paths, URLs, names with an extension and the characters <, > and &), the duration and a tool's name — never an answer, a command or a path, because the desktop keeps what it shows: Omarchy writes every notification to files under ~/.local/state/omarchy/notifications/. A skill's agent step is named by the skill (commit skill), since its text carries the step before it. The ACP server in an editor never sends one. Telegram's settings are unchanged.
  • codeep usage [--json] [--days N], and /usage. What Codeep used,
from the local usage ledger and nothing else: today, the last 7 days, all time, and tokens by model, as a short table, or with --json as one JSON document (schemaVersion 1) for scripts and desktop widgets. --days N lists the last N days, zero-filled, counted by your local calendar day. No network, no API key, any platform; with an empty ledger it prints zeros and exits 0.
  • Live status for desktop integrations, on Omarchy. Each Codeep process
keeps a small file, ~/.local/state/codeep/sessions/<pid>.json (under $XDGSTATEHOME when that is set; readable by you only), saying whether it is idle, working, waiting for an approval or waiting for an answer, with the same short task label as a notification, the project, provider and model. A bar plugin reads it to show what Codeep is doing. The file is removed when Codeep ends, including when its terminal is closed on it or it is sent SIGTERM. One that is killed (SIGKILL) or crashes leaves it behind: a plugin treats a file whose process is gone as stale, and the next Codeep to start removes it. A relative XDGSTATEHOME is ignored, as the XDG specification says. Share live status with Omarchy plugins in /settings (On by default, shown only on Omarchy) turns it off, and Off removes the file at once. The ACP server writes its own, with kind acp.

Installation

curl -fsSL https://raw.githubusercontent.com/VladoIvankovic/Codeep/main/install.sh | bash
npm install -g codeep
brew tap VladoIvankovic/codeep && brew install codeep
$ tail ./comments.log

Comments (0)

Login with GitHub to post a comment
No comments yet. Be the first to comment!