Skip to content
المشاريع

حول

Add one word, `lit`, to an Antigravity CLI (agy) prompt and get a planned, tested, reviewed workflow, plus a handoff note for the next session. Formerly antigravity-swarm.

أدوات التطوير

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+٢
خلال 15 يومًا
+٧
خلال شهر
+٧

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

LitFamily cover: a terminal in a sunset look. LitGravity's round-cornered status card frames the screen with its stage map, plan gauge, skill pills, and context and quota gauges, a pixel LITFAMILY wordmark and a striped half-sunk sun fill the middle, the row of seven product names lights LITGRAVITY, and an agy prompt types a request at the bottom.

LitGravity

Keep the work lit.

LitGravity is an add-on for Google's Antigravity CLI (agy). It makes agy check its own work before it says "done", and leaves a note so the next session starts where this one stopped.

npm version npm downloads per month MIT license GitHub stars

You ask agy for a feature. It writes the code and says it is finished, and a day later you find the tests never ran. You open a new conversation and explain the whole project again.

With LitGravity you start the same request with lit. agy first writes down what "finished" means for this task, adds a test that fails, makes it pass, and ends by telling you what it checked and what it could not. When you stop, type lit handoff. agy saves a note, and the next conversation finds it and carries on.

Install   Demo   Update & remove   Quick start   What you can see   What you get   agy limits   한국어

Two ways to use it

The easy way. Write your request as usual and put lit in front of it, or at the end (fix the date parsing bug in src/dates.js lit). Both read the same:

lit fix the date parsing bug in src/dates.js

agy sets the goal, writes a failing test, fixes the bug, checks the result and tells you what it checked. When the project has a test command, the first reply ends with one goal question built from your words; yes arms it. Most tasks need nothing more.

The full workflow. For a bigger job, go one step at a time. Each step leaves a file the next step reads, and you can skip any step you do not need.

Step Type What happens
1. Explore lit brainstorm <question> Many options, scored, cut to a short list
2. Clarify lit interview <idea> agy asks questions until the goal is clear, and saves a spec
3. Plan lit crucible <approach> or lit plan <task> Crucible attacks the approach first and hands what survives to the plan; lit plan writes plans/<slug>.md and asks for your approval
4. Build yes to the plan's question, lit start plans/<slug>.md, or lit loop <task> agy builds it step by step, with tests and checks
5. Review lit review A review in five lanes, findings first
6. Hand off lit handoff What was done, what was checked and the next step, saved to .litgravity/handoff/latest.md

Install with one line, then open agy in your project (Install has the details and Quick start the first run):

npx @litfamily/litgravity@latest install

Demo

Here is one request in agy. The status line is LitGravity's own: it names the route and draws the loop map, turns amber when the agent asks you something, and ticks one more stop for each evidence file the loop writes. agy repaints it on events only, so the card and its sunset hold still between events while the session above moves.

A silent loop of an agy session with LitGravity. The prompt "lit add a --shout flag that prints the greeting in capitals, with a test" makes the status card say lit-loop IGNITED and draw the PIN to RECORD map. The agent asks a question and the card turns amber with YOUR TURN; then each evidence file the loop writes ticks one more stop, from PIN ✓ to REVIEW ✓, and a DONE label shows for 20 seconds. agy repaints the line on events only, so the card and its sunset hold still between them.

The status card is LitGravity's own output; the agy screen around it is redrawn. The last scene is 20 seconds later.

Quick start

  1. Install LitGravity, then open agy in a project. Type /skills to see the LitGravity skills and /hooks to see the plugin's hooks.
  2. Start a prompt with lit, or end it with lit. The word after a leading lit picks the route, as the table below shows.
  3. Approve a plan, then lit start plans/<slug>.md builds it row by row with tests.
  4. Before you stop, lit handoff. Next time, lit adhd tells you the one thing to do now.
you type    lit plan a tiny todo app
it does     reads the plan skill, explores the repo, writes plans/todo-app.md with ordered tasks and checks
it ends     "Plan saved. Run `lit start plans/todo-app.md` when you are happy with it."
You type What happens
lit Runs the default loop, or picks up a plan you started with lit start
lit while its route is already active A short "continues" note
lit plan, lit review, lit research, lit debug, lit handoff, lit adhd, lit brainstorm, lit team, lit humanize Picks that route
lit +x +y <task> Runs the skills you name, the first one leading
lit <other route> Switches
Any skill id as that word (lit debugging, lit structural-search) Runs that skill; /litgravity:<skill-id> does the same as a slash command
lit new Starts over
<task> lit, <task> lit-loop, <task> litwork, <task> lit-hijack Works like the same word in front: the words before it are the task, and the goal question uses them. A question such as what does lit-loop do? stays an ordinary prompt

npx @litfamily/litgravity list prints every skill with the words that reach it.

What you can see

LitGravity on its own makes no decks or drawings. What it changes is what agy shows while it works, and what you find when you come back. Every picture in the four parts below is LitGravity's own output, captured from a throwaway project: the status card, the installer, the hooks and the lit-adhd collector. None of them is a live agy session. The status card is drawn from recorded state files, and the installer ran against this repository's test double of agy.

Watch a run

The status card is an opt-in status line (install --status-line). It names the route, draws the loop's stages from PIN to RECORD, counts the goal's criteria and names the next one, shows the tool in use, and keeps context and quota on its bottom edge. The sunset in the free cells follows the clock, so it moves each time agy redraws and rests when it does not.

The status card in three redraws a few seconds apart, stacked: lit-loop at GREEN with PIN and RED ticked, criterion 1/2 and the next criterion named, run_command in use, skills lit-loop and review-work, context 42%, quota 28%, branch main; the glints on the sea and the stars differ between redraws and the sun stays.
Status card · one state, three moments of the clock
The status card with three helper lanes, lit-executor, qa-runner and lit-verifier, each running, two of them with a step count, under lit-loop at GREEN.
Status card · three helper lanes
Two status cards stacked. The top one is amber with YOUR TURN in the corner, a question waiting and criterion 1/2. The bottom one has PIN, RED, GREEN, VERIFY, REVIEW and RECORD all ticked and DONE in the corner.
YOUR TURN and DONE · it asked you something, then every stage ticked

Install and check

npx @litfamily/litgravity@latest install opens with the LIT mark, shows every place it will write, then asks one question at a time with No as the default. doctor prints one line per check. These two pictures were captured against this repository's test double of agy, so the agy version and the validation result in them come from that double.

The LIT synthwave mark, the install plan listing host, scope, plugin folder, agent file, receipt, validation and approvals, and the first question with Yes and No (default).
install · the plan, then one question
The last install card: what was installed and checked, the settings, and what to run next.
install · what was written and what to do next

Let it run, then answer once

During a planned run (lit plan, then yes) the agent keeps going without you. A step that cannot be undone or leaves your machine, such as a bump, a tag, a publish or a push, is parked instead of run. The hooks note each one, and when the run has done what it can, one list shows every parked step in full with the answers that settle it. (agy has no hook that draws text for you, so these messages go to the model, which repeats the list to you.)

A hook message: parked steps are noted while row 3 of the plan is still open.
start-work · parked steps noted while a row is still open
Two hook messages in order: the end-of-run list with the waiting row, four parked steps and the answers lit approve x, lit deny, lit skip-row and lit pause; and the closing line that the plan is complete because every row is ticked and node ok.mjs passed.
start-work · the list at the end, then the closing line

Come back after a break

lit adhd reads your conversations, plans and Git and answers in a few lines: what changed since you last looked, the one thing to do now, what to type and why. It answers in Korean unless you ask for English, as in lit adhd en.

The lit adhd en verdict card: Since 08:07: 0 finished, 1 waiting on you; Do now: in greet-cli: answer: Should --quiet also silence warnings, or only the greeting? #0c6d2e; Type: nothing — answer in greet-cli; Why: that conversation waits for your answer · If not: that conversation keeps waiting; Read 2/2 sessions.
lit-adhd · the verdict card in English
lit adhd en
The same verdict card written in Korean, with the lines 처음 봄, 지금 할 일, 입력, 이유 and 읽음 2/2 세션.
lit-adhd · the verdict card in Korean, the default
lit adhd

You get all of this with LitGravity alone. Decks, Word reports, figures, schematics and films come from the LitFamily extensions. The four files below were made with the extension pack (wjgoarxiv-skills), which installs separately from LitGravity; Extensions shows how to add it.

The same Korean deck about a logistics platform in four tonalities: a dark night cover with an amber year, a navy cover with four KPI figures, a cobalt cover on cream, and a teal cover; below each, the matching chart slide with a native bar chart of monthly shipments, two bullet takeaways and a data table.
lit-pptx
P&ID of a sodium hypochlorite dosing skid on a framed sheet: a storage tank TK-101 with level transmitter and alarm, duty and standby metering pumps P-101A and P-101B behind filters and check valves, a relief valve PSV-101 back to the tank, a flow loop FE-101, FT-101 and FIC-101 signalling the pump, a legend, notes and a title block.
lit-schematic
Two drawings side by side: an isometric cutaway of a shell-and-tube heat exchanger with copper tube bundle, baffles and saddle supports, each part labelled; and a journal-style two-panel figure of an adsorption rig, panel a a flow diagram with gas cylinders, mass flow controllers, an oven column and a mass spectrometer, panel b the column itself with adsorbent bed and thermocouples.
lit-schematic
Four frames of a 12-second film in one dark house style: a ring drawing on beside the Korean line 작게 시작해서 끝까지, a bar chart beside One clock for every frame, a line through points beside 한 화면에 한 가지 생각, and a grid of teal and amber tiles over Same house, every film.
lit-typographic-motion

Install

You need Node.js 20 or newer and the Antigravity CLI, signed in once. Run from any folder, and the check ends with LitGravity: ready when nothing is broken:

npx @litfamily/litgravity@latest install
npx @litfamily/litgravity@latest doctor

To update later, run npx @litfamily/litgravity@latest update: it asks the npm registry each time, says which version it found, never reinstalls an older copy of itself, and ends with one line on whether the litgravity on your PATH and the installed plugin match; Safety and uninstall lists every lifecycle command. To let a coding agent do the install, paste the prompt in the reference.

The installer shows every destination first and validates the plugin with agy plugin validate before and after copying. agy loads a plugin's hooks, skills and agents without a trust step, so there is nothing to approve. By default the plugin goes to ~/.gemini/config/plugins/litgravity, so LitGravity is available in every project.

Switch What it does
--scope project Copies to ./.agents/plugins/litgravity for one project
--dry-run Previews and writes nothing
--yes Installs from a shell without a terminal (agent, CI), which otherwise only previews
--no-agent-file Skips the global rule file for one run
--status-line Adds the opt-in status line to agy's user settings, after a backup
--round Adds one icon font for round ends when no icon font is on this machine (details)
--glyphs round Saves round ends for pills and gauges (square and auto too)
--agent Prints the install guide for coding agents and does nothing else

Every user-scope install also leaves one owned rule file at ~/.gemini/config/rules/litgravity.md, because agy reads that folder at every session start. The rule stays short on purpose (the lit activation word, where plans and handoffs live, and the release freeze), so the ground rules hold before any skill loads. An interactive install asks first and a No stores the rule off, while --yes adds it; the lifecycle table turns it off later or adds a project block.

doctor lists the installed copy, the validation result, the six hook events and a smoke run of each hook script, the global rule file, every skill and agent, the extensions with their install line, any old engine cache or stray saved copy, and the host programs the skills call.

install, doctor and help open with the synthwave LIT mark, sized to the terminal width. Without 256 colours (NO_COLOR, TERM=dumb, a 16-colour terminal) the same scene is drawn without colour. In a pipe, a CI log, an agent's tool call or a terminal narrower than 24 columns it shrinks to the one plain line LIT · antigravity; there install and doctor add a line that points a coding agent at its guide.

In a terminal window of at least 40 columns and 12 rows, install and uninstall draw their plan, questions, steps and result as cards under the LIT mark. A question names its step (LIT 1/2), says in one sentence what Yes does and what No leaves alone, and marks No as the default: press y or n, or move with the arrow keys or Tab and press Enter. Esc answers nothing, and Ctrl+C stops. Each answer folds to one row, the install steps tick off in one card, and the last card lists what was installed, how it is set and what to do next. Buttons and pills are round where the status line is. NO_COLOR keeps the cards without colour, and a locale without UTF-8 draws them in ASCII. With --yes, --dry-run, TERM=dumb, LITGRAVITY_AGENT_FILE set, a pipe or CI, the same text prints as plain lines.

The installer writes in a few places outside your project, and the map shows them. If the destination is a symlink, someone else's folder, or a copy you edited, it stops with No files written.; otherwise it copies the plugin, then writes the rule file and a small receipt. Everything else LitGravity leaves on disk is written later by your conversations, and the installer never changes your extension copies (it only reads the skill folders to tell you, once, when extensions check has something to show).

Flowchart of litgravity install. Plan printed, then a destination check: a symlinked, foreign or edited destination stops the install with No files written and, for an edited copy, a command that moves it to saved/. A new or LitGravity-owned destination goes on to agy plugin validate, then copy and validate again into the plugin folder ~/.gemini/config/plugins/litgravity, or ./.agents/plugins/litgravity at project scope. The last step writes the global rule file ~/.gemini/config/rules/litgravity.md, records receipt.json, backups/ and saved/ under ~/.local/share/litgravity/, and changes ~/.gemini/antigravity-cli/settings.json only with --status-line. Below, two bands: written later by conversations (~/.local/state/litgravity/, plans/, .litgravity/ with ledger, handoff and goals) and left alone by the installer (~/.gemini/config/skills/<id> extension copies and agy credential files).

Terminal capture. The install command ends with Status: Ready, and the doctor command ends with LitGravity: ready after thirty passing checks.

What you get

A lit turn runs the same routine through these parts. A bigger change gets a written plan first, the work is built row by row with tests under a goal record that outlives one conversation, and a second look reviews it before anything merges. Research shows its sources, documents and prose read clean, and the turn ends with a handoff the next conversation reads.

Part Contents Role
42 skills 33 dense agy skills with their references and scripts, plus 9 stubs for moved skills Plan, build, check, research, write, hand off
11 agents Child agents agy starts under their type names Plan, execute, verify, review, Korean prose
6 hooks Run at session start, each turn, each tool call, and the stop gate Route lit, hold unfinished turns, ledger every tool

agy loads only the first 24,000 bytes of a SKILL.md, so each of the 33 dense skills, read on demand, keeps its references, scripts and templates in its own folder, with the long material in references/ and the skill naming the file to open. The skill groups are loop and goals, ideas and planning, building, review and cleanup, research and knowledge, teams, prose, continuity and guidance, and tools, plus the nine stubs of the moved families (see Extensions).

  • Host programs. The skills call programs already on your machine: Python 3, Chrome or Chromium for browser work, ast-grep, ripgrep and the language checkers that lsp drives. doctor names what is missing and the command that installs it; LitGravity never installs software globally.
  • Agents. agy starts them with invoke_subagent under their type name: lit-planner, lit-executor, lit-verifier, qa-runner, quality-reviewer, librarian-researcher, and five Korean prose agents (korean-style-analyzer, korean-prose-editor, meaning-preservation-auditor, native-flow-reviewer, polish-orchestrator). Reviewers and the Korean agents get read and search tools only.
  • Models. npx @litfamily/litgravity models lists the models and effort tiers your agy offers, read from agy itself, so a model Google adds later shows up with no LitGravity update.
The six hook events
  • SessionStart adds the LitGravity route list, the newest handoff note (cut to 6,000 characters) and an update notice, once per new conversation. An update notice or the lit adhd nudge is not repeated in a project that already saw it (.litgravity/shown/notices.jsonl).
  • Stop saves .litgravity/handoff/auto.md at every turn end of a conversation a lit route has touched: the last request, the plan row that is next, the open goal criterion and the tail of the last reply. This stands in for the compaction event agy lacks: a fresh conversation opens with the note, and this one stays as long as it was, because a plugin has no way to compact it. On the first turn after the first save, LitGravity asks the model to tell you one line, once per conversation: Handoff saved (.litgravity/handoff/auto.md). This conversation's context is unchanged; start a new conversation in this folder when it gets long and it opens with that note. The line is the model's to say, so it is advisory. LITGRAVITY_AUTO_HANDOFF=0 turns the save, the full-note carry and that line off; SessionStart then points at latest.md as before.
  • PreInvocation is the lit router. agy has no prompt hook, so on the first model call of a turn the router reads the newest prompt from the transcript, applies the re-entry rule and injects one step that names the skill file to read.
  • PostInvocation and Stop run the checks that agy cannot run in advance (see the limits). Stop also holds an unfinished turn, as Held turns describes.
  • PreToolUse refuses child agents that could write while lit-plan is active.
  • PostToolUse writes one ledger line per tool call while a route is active, in .litgravity/ledger/<conversation>.jsonl, with key shapes redacted. A silent ledger means the hooks are not loaded.

The status line

The status line under the prompt shows where the work stands: the model and its effort tier, the context and quota gauges (the context gauge moves at every percent), the active route with its clock, and the map of that route with the current stage lit. On a dark terminal with 256 colours or truecolor (a terminal that announces only 256 colours gets the card now; macOS Terminal.app needs LITGRAVITY_HUD_COLOR=256 or a dark COLORFGBG), at least 60 columns wide and 20 rows high, it is a framed card with rounded pills and gauges, the next step, the last tool, lanes and skills, and a half-sunk sun on a glittering sea. The pictures below are drawn from the real renderer's output: before a lit prompt, while the loop works, and when the turn waits on you.

The status line as a framed card in three states, each with a half-sunk striped sun on a sea at the right. Before lit it says READY and that no lit route has run yet, with the model, the context gauge at 42 percent, the quota and the branch on the bottom edge. While lit-loop works it adds the PIN through RECORD map with GREEN lit as a rounded pill, the last tool and its age, criterion 1 of 2 with a gauge and the next step, and the skill chips. When the turn waits, the border, pills and sun turn amber and the card says YOUR TURN.

The sun is drawn only in cells no text uses and gets smaller when words need its place. The scene moves with the clock while agy redraws the line and rests when it does not; agy sets the redraw rate, and the sun itself never moves. NO_COLOR, 16 colours, the ASCII form, a narrow or short window and a terminal that reports a light background keep the single row, and litgravity doctor says which of these applies to your terminal. --status-line at install turns it on. Its parts, colours, round and square forms, plain-text form and the looks for lit adhd, YOUR TURN, review lanes and DONE are in the reference.

Extensions

LitGravity is the LitFamily core for agy, and it is complete on its own: planning, building, checking, research, handoffs and the lit router all ship in this package. The skills that make files (slides, Word documents, diagrams, schematics, figures, interfaces, films and README covers) each pull in their own engines, and together they used to be most of the package, while most people use one or two of them. They are now LitFamily extensions on one extension shelf, the wjgoarxiv-skills repository, where each skill has a folder written for agy.

Everything on the left ships in the npm package, and the core needs nothing on the right to plan, build, check, research or hand off. Install the extensions you use alongside LitGravity for the full LitFamily experience; leave the rest out and nothing in the core is missing.

Two areas. Left, the LitGravity plugin: 33 core skills in nine groups (loop and goals, ideas and planning, building, review and cleanup, research and knowledge, teams, prose, continuity and guidance, tools), 11 agents, 6 hooks, and nine stubs that keep the old names: lit-pptx, lit-docx, lit-diagram-drawer, lit-schematic, lit-scientific-visualization, frontend-ui-ux, visual-qa, lit-typographic-motion and readme-studio. Right, wjgoarxiv-skills extensions in five families: decks, documents, figures, design and video-covers, each folder at variants/litgravity/<id>. An arrow labelled install <id> --yes runs from that folder to a card for litgravity extensions install with four numbered steps: check same-name skills and stop if any; move an old copy aside, whole, to ~/.gemini/extension-backups/<date>/; copy into the emptied folder; write a receipt inside the copy. An arrow labelled new copy + receipt runs on to agy user skills at ~/.gemini/config/skills/<id>, which answers as /<id>. Another arrow labelled if installed runs from the stubs to the same place. Below it, a card lists the other verbs, list, check, update, remove and prune-backups, each a plan only until --yes, and a note says that when the extension is not installed, the stub gives this command and the four hand lines and makes nothing.

Family in wjgoarxiv-skills Extensions
decks lit-pptx
documents lit-docx
figures lit-diagram-drawer, lit-schematic, lit-scientific-visualization
design frontend-ui-ux, visual-qa
video-covers lit-typographic-motion, readme-studio

LitGravity keeps a short stub under each extension's old name, so lit deck …, lit motion …, /litgravity:lit-pptx and the rest still land somewhere useful. The stub hands the turn to your installed copy, or, when the extension is not installed yet, gives you the lines that install it and makes nothing. The installer says the same after every install or update, and the first agy conversation after it mentions it once.

The easiest way in is LitGravity's own extensions command. Every verb that changes anything prints its plan first and waits for --yes, so you can read exactly which folder moves where before it happens:

npx @litfamily/litgravity extensions install lit-pptx          # the plan only
npx @litfamily/litgravity extensions install lit-pptx --yes    # do it (--project: this workspace only)
Verb What it does
install Backs up any old copy, then copies in the new one and its receipt
list Shows each as installed (with receipt), not installed, receipt-less, or shadowed by a same-name skill
update Fetches the source and reinstalls only the ones whose files changed
remove Moves its own copy into the backups; a folder without a receipt is yours, so it refuses
check Changes nothing; prints one fix line per duplicate, receipt-less copy or missing source
prune-backups Shows the backups with their sizes and deletes them only with --yes

A few rules keep the command safe and easy to drive:

  • Same-name check. Before copying, install looks in every folder agy loads and stops with the path of any skill sharing the name. Your skill is never moved, and --allow-shadow installs anyway with a warning.
  • Backups. An existing copy at the destination goes whole into a dated folder under ~/.gemini/extension-backups/ before the new copy goes in.
  • Source. It keeps its own shallow clone of just the agy folders of wjgoarxiv-skills in ~/.cache/litgravity/extensions-src (or reads a clone you already have with --from <path>), so there is nothing to clone by hand.
  • Several at once. --family <name> and --all pick several. npx @litfamily/litgravity extensions help has the details, and doctor runs check and prints its summary.

Start a new conversation (or type /skills reload), and the skill answers as /<id>. To install by hand, the reference gives the four shell lines, the workspace-only version, and how to update and remove a copy.

How a lit turn runs

agy still runs the conversation and picks the model. LitGravity adds a routine in plain files you can read, so you stop re-explaining where you were and checking by hand what really works:

What agy does What lit adds
Starts fast from one typed line A plan in plans/ before the first edit
Forgets the last conversation once a long one fills its context A handoff in .litgravity/ the next turn reads
Calls it done when the model says so Checks against the plan, marks the unchecked as unverified

Flowchart of one lit turn in agy. You type lit plan a tiny todo app. The PreInvocation hook reads the prompt from the transcript and injects one step: read lit-plan/SKILL.md. After the model call, the PreToolUse hook checks invoke_subagent and may start one of 11 child agent types, only read-only ones during lit-plan. After each tool call, the PostToolUse hook appends a line to .litgravity/ledger/<conversation>.jsonl. The PostInvocation hook runs boundary and prose checks and tells the model to undo changes outside plans/, at most twice per turn. The Stop hook asks whether work is left open: held, the turn continues for up to three holds and pause releases it; released, the turn ends. Below, the next turns: lit start on plans/<slug>.md, lit review with five lanes (goal, qa, quality, security, context), lit handoff writing .litgravity/handoff/latest.md, and the SessionStart hook pointing the next conversation to that note.

agy gives a plugin no hook on the prompt itself, so the PreInvocation hook steers from the first model call and the other hooks each watch one moment of the turn. Each moment leaves a file you can open afterwards (the plan, the ledger, the handoff note), and the next turns pick up from those files:

  • lit start builds the plan, checked with tests and a look at the real surface. Whatever nobody could check is marked as unverified.
  • lit review checks the result in five lanes.
  • lit handoff writes .litgravity/handoff/latest.md with what was built, how it was checked and what is left. The SessionStart hook of your next conversation points to it.

Five things a turn does for you

A single prompt often asks for more than one kind of work. lit explain the export code and draw its data flow needs the explainer and the diagram. lit-loop is the base loop, and every skill whose words match joins it as a companion, in order; only more than 8 companions or a note over 3,000 bytes is cut, and each cut is named. A deliverable you refuse (but no slide deck, don't make slides) or only ask about stays out. Each planned skill is required: before the turn ends the model reads its SKILL.md or writes SKIP <id>: <reason>, and the Stop hook holds the turn once when it did neither. The plan lasts for that turn, and for your answer when the turn ended on a question. A skill that moved to wjgoarxiv-skills is listed only when you installed it; otherwise the note carries the one line that installs it. When the router guesses wrong, name the skills yourself: lit +comprehend +diagram <task>.

Some questions deserve more than one head. ultra-brainstorm <topic> first prints what the run will cost in quota and asks how many idea agents to start (100 is the floor it suggests). On your number it writes one run_workflow script: hundreds of small agents on agy's cheapest model tier each look at the topic through a different lens, reducers fold their ideas into clusters, and one judge scores the clusters. You get a top list and one question. On a build without run_workflow it says it is blocked and offers lit brainstorm.

lit team <goal> makes this conversation the team lead. It splits the goal, decides by itself whether the slices run as subagents, as one workflow, as herdr panes (only inside herdr, with herdr on PATH) or in separate worktrees when they touch the same files, then briefs, watches, merges, verifies and gives you one short report. Members never commit.

A plan now says when it is done in a form a machine can check: a ## Done when block with one command such as npm test. At approval lit-plan compiles it into a goal sentence, refuses vague words and outward-only steps, runs the command once to prove the goal is false today, and asks Approve plan and start work? (yes / yes goal / no), with the goal it would set on the next line. yes starts start-work on that plan with no goal; yes goal starts it and arms the goal. A plan with a goal: native line is asked Approve plan, start work and set goal: /goal <cond>? (yes / edit / no) instead, and its yes does both. Only the conversation that asked can answer. Before you answer, review-plan plans/<slug>.md (or lit plan review) gives the plan a read-only review that also audits who runs each row. When the check cannot become a goal, the question shrinks to Approve plan and start work? (yes / no) with one line saying why. If the start is refused (the plan is gone, or this conversation already runs start-work), no goal is armed either. A hook cannot type agy's own /goal, so the reply gives you that line to paste, and LitGravity checks the same condition at every turn end and tells you when it is met. lit cancel clears a goal LitGravity armed and never one you set yourself.

lit adhd now answers with one card of about six lines: what changed since you last looked, the one thing to do now, the exact words to type, why, and how much of the record it read. A claimed finish never counts as done; only a commit or a fully ticked plan does. lit adhd detail keeps the old board, and lit adhd recap [session] is where lit recap went (that word still works and says it moved).

What a planning turn may do

lit plan turns are planning only. Most of that is asked, then checked afterwards, because agy offers no safe way to stop a write before it happens (see the limits):

  • The router tells the model to write only under plans/ and .litgravity/ and to keep the shell to plain read-only commands. Your own approval prompts still decide whether a write or command runs.
  • After every model call and at the end of the turn, the boundary check compares the workspace with its state at the start of the turn. A file changed or removed outside plans/ is reported and the model is asked to undo it, at most twice per turn. A command that changed nothing on disk leaves no trace for this check.
  • Child agents are refused before they start unless they are read-only: lit-planner, librarian-researcher, lit-verifier, quality-reviewer and the Korean prose agents.

Route state lives outside the project, under ~/.local/state/litgravity/, away from the files a planning turn is asked to touch. If that state is damaged, the child-agent limit and the plan gate stay on; if it goes missing, the hooks fall back to the route journal kept beside it.

Held turns and the ledger

If you think in process plants, here is the same routine as one. Your prompt is the feed, the PreInvocation router is the header, and each route word opens the line to its vessel. I drew the stages as one train to keep it readable; in agy each of them is a separate lit prompt, usually in a later turn.

Process flow diagram of the lit workflow in agy. A lit prompt and the last handoff feed the PreInvocation router. A header runs along the top and drops into three vessels by route word: lit plan into lit-plan, lit start into start-work, lit review into review-work, and lit handoff into a lit-handoff unit. Between lit-plan and start-work, analyser AIC-101 (Stop: plan file yet?) drives a three-way valve that either releases the turn or sends it back; between start-work and review-work, AIC-102 (Stop: rows open?) does the same. Each vessel sends a sample line down to the PostToolUse ledger, .litgravity/ledger/<conversation>.jsonl. The lit-handoff unit sends latest.md off the sheet. A stream table lists, for each route, the skill, what leaves (plans/<slug>.md, plan rows ticked and tests run, findings with file:line first, .litgravity/handoff/latest.md) and whether the Stop hook holds it. In the animated version, dashes move along every stream.

Every vessel bleeds a sample line into the ledger, and the handoff note leaves on the right for whichever conversation comes next. Between the vessels, the Stop hook's two analysers hold a turn while its work is open:

Route Held at the end while
lit-plan no plans/<slug>.md exists yet
start-work an approved plan has open rows
litgoal, lit-loop a goal record has an open criterion

A planning or goal turn is held at most three times in a row without progress. Say pause, or write BLOCKED at row N:, PAUSED at row N: or CANCELLED: in the ledger, to release a hold. The capture below is the real hold from a planning turn that wrote nothing.

A start-work run that finishes while you are away

Once you approve a plan, start-work is meant to reach its end without you. At each turn end the Stop hook looks at the plan and gives the model one push toward the next open row. When every row is ticked and the plan's ## Done when check (check: \npm test``, for example) passes, the run closes itself with one line. If nothing changes for two pushes, you get one inbox and then quiet until something moves.

The model does not stop to ask in the middle. A row that needs you gets a BLOCKED: line, and a row nobody can finish gets IMPOSSIBLE:. A step outside the run's grants, like a push, a publish or a write outside the project, should be parked instead of run. That part is up to the model: agy gives a hook no way to stop a shell command before it runs, so LitGravity tells the model to park and cannot force it. What the hooks do control is what happens to a parked step afterwards. A plain read is never parked; the model is told to run it. The inbox numbers the runnable steps, up to 8 per tier, local [B] first, and folds the steps it cannot check into one held line with their reasons; a step that carried a secret is stored and shown with [secret] in its place and never runs. You answer by typing one of these:

Type What happens
lit approve runs the parked local steps the last inbox showed: new files and folders, git add of named files
lit approve x typed exactly and alone; runs the [X] steps the last inbox showed, each through /bin/sh with a time limit
lit deny drops every parked step and refuses the same ones for the rest of the run
lit skip-row [N] ticks the blocked rows (or row N) as skipped
lit pause, lit resume silence the run, then wake it again

agy shows the inbox only to the model, so you read it as the model relays it. lit approve x then runs those steps outside agy's own approval prompts. Before you type it, run npx @litfamily/litgravity inbox in the project folder: it prints the hooks' own list of what each answer would run, with no model in between. The reply to lit approve x opens with how many of the listed steps it ran.

A plan line Run charter: commit on <branch> in <repo> lets the run commit on that branch once you say yes, in a repository outside the workspace too. A goal is armed only by yes goal, or by yes to a plan with a goal: native line, and it ends itself when the run waits on you or after 30 turns. A child lane counts as running from its invoke_subagent call until that call returns, and a finished run waits for it. The reference has the tiers, the limits and what agy cannot do here.

A prompt without lit may get a short hint as well. For a request like "plot this csv", the hook names the skill that may fit and lets the model decide; otherwise it adds one compact line listing the main skills. A hint ships only after it scored recall at least 0.85 with at most 0.10 false hits on near misses, on a held-out half of the test prompts.

Terminal capture. After the prompt lit plan a tiny todo app with no plan file written, the Stop hook answers decision continue with the lit-plan gate reason asking for the plan file. A second block shows a ledger line recording a read_file tool call.

What agy limits today

These are the facts of agy 1.4.3, probed on a real install. LitGravity works inside them, and the reference gives each one in full.

  • No blocking before a write. agy's PreToolUse hook has to decide every call it sees, so LitGravity checks file changes and prose after the fact. The one hard stop is a child agent that could write during a lit-plan turn.
  • Headless runs cannot ask. Whether an agy -p run may run a command or write a file depends on the account's agy permission settings; when one is denied, the denial ends the run. The skills read first and report BLOCKED with the permission they need.
  • Seeing images. agy's model reads a PNG through read_file, and every look step in the visual skills relies on that.
  • Starter Quota. Every model call counts against your account's quota, so tests and probes use the free agy plugin validate and /hooks, /skills, /agents.
  • No compaction event, no slash-command folder, no MCP server from a plugin here. Handoff notes, skills as commands (/litgravity:<skill-id>) and script subcommands take their place.
  • No lsp tool. The lsp and lsp-setup skills drive language checkers from the command line instead.

Safety and uninstall

Every lifecycle command previews with --dry-run, and hooks fail open: if one breaks, your conversation continues. Files that conversations created in your projects (plans/, .litgravity/) stay where they are.

Task Command
Install npx @litfamily/litgravity@latest install
Update npx @litfamily/litgravity@latest update (asks the registry, validates, replaces in place, keeps your settings)
Global rule off or back on npx @litfamily/litgravity config agentFile off (or on)
Project block npx @litfamily/litgravity agent-file project --dir <path> (writes only the marked block into the repo's AGENTS.md)
Check npx @litfamily/litgravity@latest doctor
Extensions npx @litfamily/litgravity extensions list (then install, update, remove, check, prune-backups)
Remove npx @litfamily/litgravity uninstall --yes

The installer writes only its own plugin folder, its data directory, its rule file and, when you ask, the status line key and the icon font files of --round, and it never reads agy's credential files.

What each part may write, and what it leaves
  • The installer writes only its own plugin folder, its data directory ($XDG_DATA_HOME/litgravity), the owned rule file in agy's global rules folder, and, when you ask, the status line key in agy's user settings, after a backup, and the two icon font files of --round in your font folder. It never reads agy's credential files. A rule file it did not write stops the install before the first write instead of being merged into.
  • A symlinked, foreign or edited destination stops the install before the first write. To keep an edited copy, the installer gives a command that moves it to ~/.local/share/litgravity/saved/<scope>-<date>. That folder is outside agy's plugins folder on purpose: agy loads every folder it finds there, so a copy saved beside the plugin would run as a second LitGravity. doctor warns about any such leftover. --dry-run never mutates.
  • extensions writes only into agy's skill folder for the scope (~/.gemini/config/skills/<id> or .agents/skills/<id>), ~/.gemini/extension-backups/ and its own source clone in ~/.cache/litgravity/extensions-src. Without --yes it only prints its plan. It never moves a same-name skill you keep elsewhere, never removes a folder without its receipt, and deletes only inside ~/.gemini/extension-backups/, only with prune-backups --yes.
  • Releases up to 0.1.8 cached engines under ~/.local/share/litgravity/runtime/ ($XDG_DATA_HOME/litgravity/runtime/), and the cache can take 150 MB or more. Nothing reads or writes there now, the extensions included, and uninstall leaves it, so delete that folder to free the space; doctor names it while it is there.
  • lit team keeps its packet under .litgravity/team/<id>/ and takes a short lock folder, .lock, for each change. A lock that a crashed process left behind is taken back on its own: once it is 30 seconds old with no owner record or with its owner's process gone, or once it is older than 10 minutes even if that pid now belongs to another program. If a team command still stops with team state lock timed out, the message names the lock folder and its holder (pid and age, or no owner record). Close the conversations that use that team, then delete the folder it names.
  • Set LITGRAVITY_HOOK_TRACE=<file> before starting agy to log one line per hook call. It is off otherwise.

Reference

docs/reference.md keeps the material most readers need only once: the status line in full, a coding agent's install prompt, installing an extension by hand, and what agy limits today, in detail.

Family

LitGravity is one of the seven LitFamily packages. Each one brings the same way of working to a single coding agent, and each installs and runs on its own: install the one for the agent you use, and it needs none of the others. LitFamily lists all seven and the agent each one is for.

The cover is drawn and animated brand artwork, with no agy session recorded in it. If your system asks for reduced motion, you see a still frame instead.

License

MIT. See LICENSE.

The LitGravity and LitFamily names and logos are covered by the trademark policy.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…