Repository navigation
FormTxt 0.35.0: Antigravity beside Claude Code, Codex and Cursor, and the four found however FormTxt was started - #12
Merged
Conversation
…gine, held to its recorded hash, and agents install finds claude through it backend/app/services/agent_lookup.py is the family's one finder for Claude Code, Codex, Cursor and Antigravity, copied whole and byte for byte from FormVis 146dddd1 (VERSION 1.0.0, SHA-256 252ea9bb9419d4990f174f91914f09800497bc69e98f849f5643bbf4217cc3f3). It uses the standard library only and nothing in it is edited here. The engine starts using it in the next commit. setup/agents.py records the hash for each version of the file. agents check, agents sync --check and agents sync name the file and exit 1 when it does not match the hash recorded for its version, or is missing. agents install claude finds the program through the finder instead of a bare which, so a Claude Code installed by Homebrew, npm or a version manager is found when the script runs with a short PATH. The mcp get, remove and add calls go through the finder's run in its child environment. When the program is missing or does not start, the line printed is the finder's own sentence. Run on Linux, Python 3.13: the hash of the copied file; agents check and agents sync --check clean; on a copy of the kit a changed finder and a missing finder each gave their line and exit 1; agents install claude against a made-up home, a stand-in login shell, PATH /usr/bin:/bin:/usr/sbin:/sbin and a node-style stand-in claude that records its calls (dry run: --version and mcp get; real run: mcp add after them; nothing anywhere: the "was not found" sentence). Three tests added to backend/tests/test_dock_manifest.py after that was seen. The suite was run on the whole branch, not on this commit alone: 203 passed. Not run: the real Claude Code, macOS, Windows.
…ough the family's finder, and the status reports Antigravity FormTxt started from the Dock, the Finder or the Start menu gets the system's short program path, not the one a Terminal has. The engine asked which, a few folders and a login shell that was not interactive, so a program installed by Homebrew, npm or a version manager was reported as not installed, and one that was found could still fail to start in a tab or in Chat because it ran with the engine's PATH. Every lookup and every start now goes through backend/app/services/agent_lookup.py: the status answers, opening a Claude Code, Codex or Cursor tab, Chat, the version and sign-in checks. claude_code and agent_programs keep their function names and what they return; their bodies call the finder. A program counts as installed only when its --version ran, and each status entry also says how it was found, where the engine looked, the error line of a program that does not start, and one sentence for the person. A tab and Chat start through the login shell with the program's own folder first on PATH. Both status answers report a fourth program, Antigravity (agy), like the others. There is no Antigravity tab, label or file: the tab route still takes codex and cursor only. Where the engine refused a tab or Chat with "is not installed", it now answers with the finder's sentence, which names the places it looked or the reason the program does not start. frontend/src/dock-adapter.ts reads those sentences as the same kind of refusal, one changed test; nothing in frontend/src/dock is touched. The dock's own general sentences for a missing program are left as they are. Tests that pinned the old lookup were changed for that reason only: the stand-ins in test_agent_programs.py now answer --version (a program that does not is reported as not starting), the fixture that replaced terminal.login_shell is now a made-up home with a stand-in shell because the finder asks the shell itself, and the two sets of program names include antigravity. test_agent_lookup.py is new, written after the behaviour was seen. Run on Linux, Python 3.13, an engine from source on port 4735 started with env -i, a made-up home, a stand-in login shell, PATH /usr/bin:/bin:/usr/sbin:/sbin and node-style stand-in programs: the four programs found under known folders, then through the shell's PATH, then missing with the list of places, and one that does not start with its error line; Codex, Cursor and Claude Code tabs opened through the routes and read over the stream, each run by the stand-in node beside it; Chat started and answered a message; 404 and 409 with the sentence when the programs were gone. Suite: 195 passed before, 203 after. tsc --noEmit clean. Not run: the real Claude Code, Codex, Cursor or Antigravity; macOS; Windows; a frozen engine; a real zsh, bash or fish with real rc files; the window in a browser.
… holds both versions backend/app/services/agent_lookup.py is replaced whole by the copy from FormVis ddc893ae (VERSION 1.0.1, SHA-256 62667f9b68b7d101e1896ce617240424e33b7e498c560bc79d45f0ab26c77d51). Against 1.0.0 two lines differ: the version, and the line that picks a program's error line, which no longer takes env's own hint as the error. Nothing in the file is edited here. setup/agents.py LOOKUP_HASHES records 1.0.0 and 1.0.1. The test of the changed-file sentence reads the version from the file; it had 1.0.0 written in it, which is the only reason it was changed. The dock_start fixture already removes the six folder variables. Run on Linux, Python 3.13: the hash of the copied file; agents check clean; the five test files about agents and the panel, 26 passed. Not run: the real Claude Code, Codex, Cursor or Antigravity; macOS; Windows.
…rograms backend/tests/conftest.py gives the run, before any test module is imported, a PATH of its own stand-ins folder and the system's four folders, a stand-in login shell as SHELL, and none of the six folder variables the finder reads. An autouse fixture empties the finder's system install folders for every test. The stand-ins answer --version, exit 1 for anything else and write one line per start; the run ends with a line that says how many were started and which. Run on Linux, Python 3.13, with a decoy folder of my own first on PATH and a stand-in SHELL of my own: the six test files about agents, the panel and the agents kit, 27 passed and 1 skipped, the summary line said 0 starts, and my decoys' log stayed empty. The whole suite is run at the end of the branch. Not run: macOS, Windows (the guard is skipped where os.name is nt).
…ns an Antigravity tab, and agents install adds FormTxt to Antigravity frontend/src/dock is the family's shared module 2.2.0, copied whole and byte for byte from FormVis ddc893ae (16 entries with MANIFEST.json; agents.ts is new). The module takes its agent kinds from the adapter: frontend/src/dock-adapter.ts is typed for the fourth kind and lists antigravity among its tabs. Nothing else in the adapter changed. The engine's tab route takes kind antigravity and starts agy the way it starts Codex and Cursor: found by the family's finder, started through its start path, with the tab's own token in its environment. Antigravity reads its MCP servers from a file, so the tab also gets the entry formtxt_tab (the address and the tab's token) in .agents/mcp_config.json of its working folder. Everything else in that file is kept, the file is the user's alone, and the entry is taken out when the tab closes, when the token also stops being accepted. Decision: FormTxt's Codex and Cursor tabs run in the open document's folder, and the Cursor tab's file there names variables, never the token. The Antigravity tab runs in a folder of FormTxt's own inside the data folder (agent-tabs/antigravity), so a token is never written beside the person's documents. ./formtxt agents install takes antigravity, and includes it when no client is named. It writes FormTxt's MCP server into ~/.gemini/config/mcp_config.json, keeps everything else, backs the file up and replaces it whole; a second run changes nothing. A server named formtxt that FormTxt did not write is left alone and reported, and so is a file that is not an MCP servers file. When only the path that guides for earlier versions name is there, the documented file is written and the result says the older one was seen and left alone. No skill is copied for Antigravity. ./formtxt agents sync regenerated agents/manifest.json (the panel's tab list). Seen on an engine from source with a stand-in agy first on PATH (a real agy was never started): the status reported it as running, version 1.2.3; the tab opened through POST /api/terminal/agent and its stream showed the stand-in's banner; the file held its seeded server and key beside formtxt_tab at mode 0600; after the tab was closed the file was exactly as seeded. agents install antigravity was run against a made-up home in seven cases. Tests added after that: four in backend/tests/test_agent_programs.py. backend/tests/test_agent_lookup.py expected 422 for an Antigravity tab and now expects the 404 with the finder's sentence, the only reason it changed. Six test files about agents and the panel: 31 passed, 1 skipped. tsc --noEmit exit 0. agents check clean. Not run: a real agy; the panel in a browser; a production build; Windows; macOS; the desktop window.
backend/formtxt_engine.py, the file the packaging freezes as the engine, replaces a standard input, output or error stream that is None with the null device, at the very top, before any import of FormTxt's own. A Windows engine built without a console has no streams and the first line it printed stopped it at start; a tester saw that in another Form engine. The way FormWeb's entry does it. Seen on Linux, Python 3.13: Python started with its three streams closed reports all three as None; the entry started that way on port 4742 with its own data folder answered /api/health with 200, and before the change the same start gave no answer and exit code 1. Started normally on port 4743 it still printed its log lines. Not run: Windows, a frozen engine. No test added.
…tigravity The launcher's usage text, the README line for ./formtxt mcp, the agents kit line of CLAUDE.md and two skill pages said Claude Code, Codex and Cursor; they now say Claude Code, Codex, Cursor and Antigravity. The harness skill's line about agent_programs.py also says the programs are found by the family's finder and where an Antigravity tab runs. ./formtxt agents sync mirrored the two skill pages into .agents/skills. Left alone: the trademark sentence at the foot of README.md and in NOTICE.md, AGENTS.md (it names the config files the repository ships), CHANGELOG and log history, the dock folder. Checked: ./formtxt agents check clean.
…ck's state test runs again The guard added four commits ago gave the run a PATH of its stand-ins and the system's four folders. That also took node away, and the test of the dock's state.ts in backend/tests/test_dock_manifest.py skipped where it had run before. The run now gets a tools folder in its sandbox, second on PATH, with one link to the node that was on PATH before it was narrowed. The folder node came from stays off PATH; on this machine it also holds a real claude. Run on Linux, Python 3.13, with a decoy folder of my own first on PATH and a stand-in SHELL of my own: the whole suite, 207 passed, none skipped; the summary line said 0 stand-in starts and my decoys' log stayed empty.
A minor release: Antigravity as the fourth agent program beside Claude Code, Codex and Cursor, with its tab in the terminal panel and its place in agents install; the four programs found however FormTxt was started; the engine starting when it has no output streams; and a test run that can only find stand-ins. The CHANGELOG entry lists them. Version sites, the same eleven files as 0.34.0: backend/app/__init__.py, frontend/src/version.ts, frontend/package.json, frontend/package-lock.json (the two fields of this project), src-tauri/Cargo.toml, src-tauri/Cargo.lock (package formtxt), src-tauri/tauri.conf.json, README.md (the badge and the version line), CHANGELOG.md (new entry), and the two header lines of backend/HASHOUT_LOG.md and frontend/HASHOUT_LOG.md. Left alone: setup/mcpb/manifest.json (0.0.0, stamped at build), and the log entries headed "after v0.34.0", which keep the words they were written with. Not rebuilt: the three browser demo pages (demo, demos/paper, demos/newsletter). They still carry 0.32.0 and the earlier terminal panel. Checked: tsc --noEmit exit 0; the engine's test suite, 207 passed, with a decoy folder of my own first on PATH whose log stayed empty; ./formtxt agents sync --check and agents check clean; mcpb check; icons --check. Not run: npm run build, npm audit, cargo metadata, a desktop build, the panel in a browser, a real agent program, macOS and Windows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FormTxt 0.35.0: Antigravity beside Claude Code, Codex and Cursor, and the four found however FormTxt was started
What changes for people
Four agent programs
agyprogram, is the fourth agent program FormTxt works with, beside Claude Code, Codex and Cursor. The terminal panel has an Antigravity tab when the program is found on this computer../formtxt agents installalso adds FormTxt to Antigravity (~/.gemini/config/mcp_config.json). It keeps everything else in that file, leaves alone a server named formtxt that it did not write, and a second run changes nothing.Finding the programs
Also
How it was checked
All on Linux, Python 3.13, with stand-ins for the agent programs.
tsc --noEmitclean../formtxt agents sync --check,agents check,mcpb checkandicons --checkclean. The finder file and the 15 files of the panel match their recorded hashes.agyfirst on PATH: the status reported Antigravity as found, version 1.2.3; a tab opened through the engine's real tab route (refused without the window's key) and its stream showed the stand-in's banner; the tab's settings file held a server and a key that were there before, beside FormTxt's own entry, readable by the user only; after the tab was closed the file was exactly as it was before../formtxt agents install antigravityagainst a made-up home, seven cases: a dry run, a first run that kept another server and another key, a second run that changed nothing, an entry of FormTxt's own at another path brought up to date, a server of the same name that FormTxt did not write left alone, only the older file present, a file that is not JSON left alone.Not run
agyread the tab's settings file, ask for its folder to be trusted, or sign in inside a tab.src-tauri) was not compiled on the build machine; this branch changes only its version.npm auditor browser test folder was run.Held at the safer choice, for the owner to overrule
./formtxt agents installwith no program named now also writes Antigravity's settings file, for a person who may not have Antigravity, as it already wrote Codex's and Cursor's.Merge
Merge with a merge commit. Do not squash and do not rebase-merge.