Repository navigation
Fixes from a review of 0.1.0. After upgrading, run keyfit setup once to rewrite your shims.
Removed
keyfit add linear --readonly. It was recorded in the registry, but nothing read it: no MCP server Keyfit
sets up uses Linear's read-only endpoint, and the docs never offered it. Areadonly = truealready in the
registry is ignored.
Fixed
- The AWS check skips Superset's agent wrappers too. It ran the first
awson PATH after
Keyfit's shims, so anawsin~/.superset/binwould have answered it; like every other check,
it now runs the first one after Superset's wrappers as well, as the security page says. - A tool started in a folder that no longer exists (a removed worktree) says so and doesn't start, instead
ofinternal error (FileNotFoundError …), or a Python traceback when.ornode_modules/.binis on
PATH.KEYFIT_DISABLE=1still starts it. - AWS: an SSO or
aws logincache time without a zone is read as UTC instead of ending ininternal error (TypeError …). Sections written[profile acme]or[profile "acme"](andsso-sessionsections
written that way) are found, as the AWS CLI reads them, instead of "no profile 'acme'".$VARIABLESin
AWS_CONFIG_FILEandAWS_SHARED_CREDENTIALS_FILEare expanded, as the AWS CLI does, andkeyfit add awskeeps the expanded file. - A relative
CLOUDSDK_CONFIGno longer crasheskeyfit add google,keyfit add gcloud,keyfit add firebaseandkeyfit init; it is taken from the current folder, as gcloud does. - With Claude Code older than 2.1.268, whose
claude auth status --jsondoesn't name its config folder,
every check failed ("Claude used config directory None"). The organisation alone decides then. - A shim whose Python is gone (for example, Homebrew removed the Python that pipx's Keyfit ran on) says so and
names the fix,pipx reinstall keyfit(orbrew reinstall keyfit), thenkeyfit setup, instead of only
keyfit setup, which can't run either.KEYFIT_DISABLE=1now runs the tool when Keyfit can't start, too. Run
keyfit setuponce to rewrite your shims. - Setup edge cases.
keyfit setup --rcon a startup file that isn't UTF-8, on a folder or with aZDOTDIR
that doesn't exist printed a traceback after writing the shims; it now keeps every byte of such a file, or says
which line to add by hand.--removesaid "No Keyfit line" in a file that isn't UTF-8 and deleted the PATH file
that line loads, so every new zsh printed an error; it now takes the line out. A commented-out Keyfit line no
longer counts as active.--remove --purgewith~/.config/keyfita symbolic link stops before changing
anything instead of half-way. An unwritable config folder is said in one line instead of a traceback. - Ctrl-C during online checks (
keyfit status, the end ofkeyfit init) stops at once with exit status 130,
instead of waiting for the slowest check (up to 40 seconds) and then printing a traceback. - Hand edits.
roots = ["."]is refused: a relative root made every folder the project. A number or a date
where Keyfit writes text (config_dir = 5,token = 5,login = 5) fails that account's check, and stops its
sign-in commands, instead of an internal error. A check cache of another shape ([],null) counts as empty
instead of stopping every tool until it was deleted. - The tests no longer depend on the Mac that runs them. They never read your home folder, git
identity, Keychain or the tokens of a Keyfit session they run in, and their guard against the
network now covers the requests Keyfit actually makes. Their fake tools run on the Python that
runs the tests, so a Mac without the Command Line Tools runs them too. New tests cover
keyfit run, every online check's request, and paths that had none.
Security
- The firebase CLI Keyfit runs to renew a sign-in and at
Sign in now?is looked for innode_modules/.bin
no higher than the repository's top (outside a repository, the nearestpackage.json) or your home
folder. For a project outside your home folder the search went up to/, so a
node_modules/.bin/firebaseanother local user created in/private/tmpor/Users/Sharedcould run. - The project's own wrangler, which Keyfit runs for its Cloudflare check,
keyfit add cloudflare,Sign in now?andBind this folder now?, is looked for the same way: for a project outside your home folder the
search fornode_modules/.bin/wranglerwent up to/too. - Only a Google API key goes to Google.
keyfit add gemini --keysent any printable value to the
Gemini API and stored it, so a typo such as--key env:GITHUB_TOKENshipped a GitHub token to Google.
Now only a value shaped like a Google API key (AIza…) is sent, there and in the Gemini check. - A key typed where a name belongs is never repeated. argparse echoed it (
keyfit add linear lin_api_…without--key:unrecognized arguments: lin_api_…), and so did the messages about
--profile,--login,--emailand--workspace. It is now shown as<a key, not shown>, and those
options refuse a key before anything runs. - A key written into the registry by hand (
linear = "lin_api_…") is named, not shown, in
keyfit status,keyfit which -vand every failed start. - AWS errors show account IDs as their last four digits. The error Keyfit passes on from
aws sts get-caller-identity(an AccessDenied with an ARN, say) showed them in full. vercel --api URLis refused inside a project: every request carries the login's token. Vercel's
own API may still be named.- Control characters can't lock the registry or drive the terminal. Written as they were, a control character
in a project name, or in an AWS profile imported from a repository's.envrconkeyfit init, made
registry.tomlunreadable, so everykeyfitcommand and all thirteen tools stopped, in every folder. The registry
now escapes them, project names refuse them and.envrcprofiles with them are not imported. Supabase
organization names,.firebasercproject IDs, Google Workspace server names and the emails in their login files,
and the Claude status line show them escaped. - Folder names can't run commands through the generated shell code. The shims, the PATH files and the
startup-file line put paths in double quotes, so a$, backtick or quote in the install or config folder's name
made every tool exit 127, and a backtick ran its command at every launch. Such paths are now single-quoted;
others are written as before. Runkeyfit setuponce to rewrite them.