neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
A hard, real-time dollar cap on Claude Code sessions — so a runaway agent can't burn an unexpected bill.
Free for individuals on their own personal work, source-available, and entirely local. No
account, no signup, no telemetry, no network calls. Company and team use needs a
commercial licence.
Warns you at 80% of the cap. Terminates the session at 100%. Logs every session to a local
SQLite file you own.
Requires Node 20 or newer.
If you get agentcap: command not found after installingREADME 전문 보기 ↗A hard, real-time dollar cap on Claude Code sessions — so a runaway agent can't burn an unexpected bill.
Free for individuals on their own personal work, source-available, and entirely local. No account, no signup, no telemetry, no network calls. Company and team use needs a commercial licence.
agentcap run --cap 5.00 -- claude
Warns you at 80% of the cap. Terminates the session at 100%. Logs every session to a local SQLite file you own.
npm install -g @oneclickera/agentcap
Or run it without installing:
npx @oneclickera/agentcap run --cap 5.00 -- claude
Requires Node 20 or newer.
agentcap: command not found after installingThis almost always means npm's global bin directory isn't on your shell's PATH. It's
common with nvm, whose setup usually lives in .zshrc — so if your login shell is
bash (or you have no bash dotfiles), the shell never loads nvm and never sees
agentcap, npm, or even node.
Check where npm installed it and whether your shell can see that directory:
npm prefix -g # npm's global bin lives in <prefix>/bin
echo $PATH
The most reliable fix is a small launcher in a directory that's always on PATH, which
calls node by absolute path instead of relying on #!/usr/bin/env node:
printf '#!/bin/sh\nexec "%s" "%s" "$@"\n' "$(command -v node)" "$(npm prefix -g)/lib/node_modules/@oneclickera/agentcap/bin/agentcap.js" \
> /usr/local/bin/agentcap && chmod +x /usr/local/bin/agentcap
AgentCap also resolves the agent binary the same way — it checks ~/.local/bin,
~/bin, ~/.claude/local, /usr/local/bin, and /opt/homebrew/bin before giving up,
so -- claude keeps working even when Claude Code isn't on your PATH.
# Wrap a normal interactive Claude Code session with a $5 cap
agentcap run --cap 5.00 -- claude
# `claude` is the default, so this is the same thing
agentcap run --cap 5.00
# Any Claude Code flags pass straight through
agentcap run --cap 10 -- claude --model opus --resume
# What have I spent today?
agentcap status
agentcap run --cap <dollars>Wraps the agent and enforces the cap:
Exit codes: 0 normal, 2 stopped by the cap, 3 tracking failure, 64 bad usage.
A cap is required. There is no implicit default, because an unbounded session is the exact thing this tool exists to prevent.
agentcap statusToday's sessions, what each cost, and a live figure for anything running right now.
agentcap status 2026-08-23
STARTED SPEND CAP STATUS PROJECT
09:14 $1.82 $5.00 done ~/code/api
11:02 $5.01 $5.00 capped ~/code/webapp
today $6.83 across 2 sessions
Claude Code's hook payloads contain no token or cost data — that was the first thing we
checked, across all 31 hook events. What every hook payload does contain is
transcript_path, and Claude Code's own transcript records the full Anthropic usage object
and model for every request it makes.
So AgentCap splits the job:
| Piece | Role |
|---|---|
Hooks (--settings) | Report the authoritative transcript path, and act as the deny gate once the cap trips |
Transcript (.jsonl) | The source of truth for tokens; read incrementally, priced locally |
| Wrapper process | Owns accounting, notifications, and terminating the agent |
Hooks are injected via claude --settings '<json>', which merges with your existing config.
AgentCap never writes to ~/.claude/settings.json or your project's .claude/settings.json,
so there is nothing to clean up and nothing to corrupt if it dies unexpectedly.
Full research notes, including the measurements behind the decisions below, are in
SPIKE-hook-cost-data.md.
Two things make this harder than summing a column, and both are handled:
usage
object. Summing naively over-counted a real 10 MB transcript by 2.3× — which would make
the hard stop fire less than halfway to your actual cap. AgentCap deduplicates by
message.id.Also counted: subagent (sidechain) usage, web search at $10/1k, fast-mode premium pricing, and the 1.1× US data-residency multiplier.
The whole pitch is trust, so AgentCap refuses to look like it is protecting you when it isn't. It prints a visible error and stops the session if:
A session it cannot measure is a session it cannot cap, and it says so rather than sitting there looking reassuring.
Costs are estimates at API list prices. They are computed from Claude Code's own usage records, not from your invoice. Volume discounts, credits, and negotiated rates aren't visible locally.
On a Pro/Max subscription you are not billed per token at all. The dollar figure is then a usage signal, not money — still useful as a runaway-loop circuit breaker, but it is not your bill. AgentCap says this on every run rather than quietly implying otherwise.
AgentCap misses a few cents of background usage per session, and you should know why.
Claude Code makes a handful of requests it never writes into the conversation transcript —
summarising the conversation so --resume works, and status checks from commands like /usage.
Anthropic documents these as "background token usage", typically under $0.04 per session.
AgentCap reads the transcript, so it cannot see them, and its total therefore runs slightly low.
The size of that blind spot depends entirely on how big your cap is. On a deliberately tiny test session it looked alarming: Claude Code reported $0.1173, AgentCap reported $0.1032 — a $0.014 gap, about 12%. But the missing amount is roughly fixed per session, not proportional to spend, so on the $5 cap this tool is actually built for, the same few cents is under 1%. The error shrinks as the cap grows.
Two things make this a bounded blind spot rather than a broken promise. First, it is arithmetic we can verify: priced against Claude Code's own token counts, AgentCap reproduces its $0.1163 figure to the hundredth of a cent, so this is missing records, never bad maths. Second, it only ever errs one way — under-counting — so the cap stops slightly late, never prematurely. What this means in practice: treat the cap as a reliable circuit breaker against a runaway agent, and treat the dollar figure as accurate to within a few cents rather than to the penny. If you need every request captured, Claude Code can export OpenTelemetry metrics that include the background ones — the likely route to closing this gap in v0.2.
The cap can overshoot slightly. Cost is only knowable after a request completes, and Claude Code writes its transcript asynchronously. AgentCap polls every 250ms and stops as soon as it sees the cap crossed — but a request already in flight has already been billed. Expect to land slightly over the cap, not exactly on it. Set the cap as a ceiling you're willing to hit, not a precise budget.
Resumed sessions are measured from where you resumed. --cap 5 on
claude --resume means "spend at most $5 from now on", not "this conversation must never exceed
$5 in total". The baseline is reported at startup.
Claude Code has a built-in --max-budget-usd flag that covers --print (non-interactive)
mode. If that fits your use case, use it — it's upstream and needs no wrapper. AgentCap covers
interactive sessions, which that flag does not, and adds persistent history and notifications.
Mid-session warnings print to stderr while Claude Code owns the terminal, so a line can land in the middle of the TUI. The desktop notification is the primary in-session channel for that reason.
Everything is local:
~/.agentcap/usage.db # SQLite log of every session
~/.agentcap/run/<id>/ # per-session control files, while running
Set AGENTCAP_HOME to move it. Inspect it with any SQLite client — it's your data:
sqlite3 ~/.agentcap/usage.db "select started_at, cost_usd, cap_usd, status from sessions;"
This is v0.1. It does Claude Code, on one machine, for one session at a time.
In: dollar caps, 80%/100% notifications, hard stop, local SQLite logging, status, loud failures.
Not yet: OpenAI/Codex and Cursor support, a config file for default caps, agentcap history,
soft-cap (warn-only) mode, team dashboards, Slack/SMS alerts.
npm install
npm test # 48 tests, no API credits spent
The suite runs against test/fake-claude.js, a stand-in for the real binary that fires real
hook subprocesses, honours deny decisions, and reproduces Claude Code's one-line-per-content-block
transcript quirk. That means the cap, the warning, the deny gate, the SIGTERM→SIGKILL escalation,
and every fail-loud path are all exercised without spending a cent.
Copyright (c) 2026 One Click Era (Abdul Manan). All rights reserved.
AgentCap is source-available, not open source. The full terms are in LICENSE; in plain language:
Free, no permission needed, no payment:
Modification requires credit. You can only modify AgentCap with proper credit given to the original owner. That means keeping the copyright notice and licence intact, stating clearly that your version is based on AgentCap by One Click Era (Abdul Manan) and has been modified, and not presenting it as your own original work. Modifying it without giving credit is not permitted.
Requires a paid commercial licence:
The short version: free for you personally, paid for your company. If you're reaching for this to control spend on work you're paid for, that's a commercial licence — get in touch and we'll sort one out.
Two things the licence spells out that are worth reading before you rely on this tool: it terminates running processes when a cap is reached, which can lose unsaved work, and its cost figures are local estimates, not billing statements — see Honest limitations. Responsibility for your account spend stays with you.
Not legal advice. This licence was drafted for the project's needs, not reviewed by a lawyer. If revenue is going to depend on it, have a solicitor read it before you launch.