Lint the prompt. Review the change against its plan.
YACT is a command-line tool for AI-assisted coding that works one way: plan first. You write a prompt. The model turns it into a plan and lists what your prompt left unclear. You resolve every entry, and one model call then implements the plan. The plan goes to the reviewer together with the change. Not for vibe coding.
Website: agabor.github.io/yact
Not affiliated with Anthropic. YACT is an independent, open-source, third-party tool. It is not made, endorsed, or supported by Anthropic PBC. "Claude" and "Anthropic" are trademarks of Anthropic PBC; they are used here only to describe which API this tool calls. For Anthropic's own products and documentation, go to anthropic.com and docs.claude.com.
- Design principles
- How YACT works
- Installation
- Quick start
- The prompt file
- Prompt commands
- Plan, then act
- Commands
- Global flags
- Configuration
- Storage
- No automated workflows
- Troubleshooting
- Known issues
- Security and privacy
- Contributing
- A prompt is a program. A prompt is a program in a very high-level language, so it can
be checked before it runs. When you plan, the model checks your prompt for two properties
and writes the result into the plan. The prompt must be complete: code the model
needs and was not given is listed under
## Missing context. It must have no silent assumptions: every decision the model made for you is listed under## Assumptions. Both blockactuntil you resolve them. See Plan, then act. - A person is present for every decision. Only you accept an assumption. YACT has no agent loop and no automated workflows.
- The plan goes with the change. Each step names the file it changes and links the context it was given. A reviewer who has the plan compares the change with what was asked.
- Predictable. Each command is a single API call. YACT never explores your codebase, runs commands or retries on its own initiative.
- Transparent. The prompt and the plan live in a plain Markdown file you can read and edit, every response is saved verbatim, and the cost of every call is printed.
The lint is not a proof. The model does the checking and can overlook something, so you still read the plan, check the change and run your tests. More on the method: Principles.
YACT is a CLI tool, invoked as y. You write a prompt and link the files it needs, send it
once, and get one response back.
The prompt lives in a plain Markdown file, yact-prompt.md, in the root of your project. It
holds your instructions (or a plan) and links to the files you want to send. When you
run a prompt command such as ask, plan or act, YACT:
- builds one request from the prompt file, the linked files and a few optional message files,
- sends it to Claude with the system prompt that belongs to the command,
- saves the raw response to
.yact/temp/buffer.txt, - and then, depending on the command, prints the response, saves it as a plan, or writes the files it contains to disk.
There is no tool calling, no MCP and no multi-turn loop.
YACT asks the model to emit complete source files rather than incremental edits. This keeps the LLM interface simple — no editing tools, no patch formats to get wrong, no partial-apply failures — and keeps each request self-contained.
The trade-off is that an editable file must fit inside the model's output token limit. YACT requests up to 128000 output tokens per call; see Anthropic's model documentation for per-model limits. YACT warns before the call about any linked file longer than 300 lines, and the official prompts ask the model to keep files under about 200 lines.
A code block in a response is written to disk when its first line is a comment holding the
file path (// path, # path, /* path */, -- path or <!-- path -->, optionally after
a shebang line). A block with a path comment and no content deletes that file. A
response may only write or delete the files the prompt links; a link to a file that does not
exist yet counts, which is how a plan names a new file. A block for any other path, and a
block cut off at the end of the response, is rejected: the other files are still written,
and the call ends with an error that names the rejected files. Absolute paths and paths that
leave the project directory are rejected too.
Every prompt command and query sends one user message made of these parts, in order:
.yact/domain.txt— an optional description of your project, written by you.yact/temp/index.txt— the code index, when the call asks for one- Every linked project file, as a code block whose first line is the file path
- The prompt itself
Before the call, YACT prints each linked file with its line count (Reading: main.go (42 lines)). Use --dry-run to build and check the request without calling the API.
- You select the context yourself. YACT will not go looking for the files a change needs, so you need to know your codebase. The code index and keyword search help, and the plan lists what is still missing.
- You resolve the plan.
actdoes not run until the missing context is supplied and every assumption is accepted or answered. - File sizes are bounded by the model's output token limit, and every changed file is written back in full. Keep files small.
- YACT does not run your tests and does not run unattended.
- One provider only: Anthropic's API. There is no support for other providers or local models.
YACT is written in Go (1.26 or newer). Building from source means you run code you can read:
git clone https://github.com/agabor/yact.git
cd yact
go build -o y .
Then move y somewhere on your PATH — ~/.local/bin needs no elevated privileges:
mkdir -p ~/.local/bin
mv y ~/.local/bin/
There is also an install.sh script that builds the binary and moves it to
/usr/local/bin using sudo.
Release binaries are built by GitHub Actions from tagged commits and published on the releases page:
| Platform | Asset |
|---|---|
| Linux (x86-64) | yact-linux-amd64 |
| Linux (ARM64) | yact-linux-arm64 |
| Windows (x86-64) | yact-windows-amd64.exe |
| macOS (Apple silicon) | yact-darwin-arm64 |
| macOS (Intel) | yact-darwin-amd64 |
On Linux and macOS:
chmod +x yact-linux-amd64
mkdir -p ~/.local/bin
mv yact-linux-amd64 ~/.local/bin/y
On Windows, place yact-windows-amd64.exe in a directory on your PATH (renaming it to
y.exe is convenient). Releases do not currently include checksum files; if you need to
verify what you run, build from source.
Check the installed version with y --version.
Create an API key in your own account at
console.anthropic.com and store it. YACT reads the key
only from its own config file, not from the ANTHROPIC_API_KEY environment variable:
y config anthropic_api_key <your-own-anthropic-key>
y config
Then, inside a git working tree, plan first:
y new # start an empty prompt
y read main.go # link a file into yact-prompt.md
y prompt "add a --version flag" # write the request into yact-prompt.md
y plan # one call, writes a plan to yact-prompt.md
$EDITOR yact-prompt.md # read the plan, resolve its two sections
y act # one call, implements the plan
git diff # check the change against the plan
For a trivial change you can skip the plan, and to understand code before you change it, ask:
y new
y prompt "rename Foo to Bar"
y act # one call, files written to disk
y new
y prompt "how are flags parsed?"
y ask # one call, answer printed
System prompts are downloaded automatically from this repository the first time you use a command.
yact-prompt.md is both the prompt and the list of context files.
[main.go](main.go)
[[commands/call.go]]
-----
Add a --version flag that prints the version set at build time.
Keep the output format of ((help text)) unchanged.
Only explicit links select files. Plain mentions of a path in prose are not sent.
- Markdown links
[text](path)send exactly that file. Wrap paths with spaces in angle brackets:[my file.go](<my file.go>). - Double-bracket links
[[path]]are a shorter way to write a Markdown link:[[commands/call.go]]sends the same file as[commands/call.go](commands/call.go). They do not expand glob patterns. To link every file that matches a pattern, usey read "commands/*.go", which expands the pattern when it writes the links. - Keywords
((phrase))send every file whose content contains the phrase as whole words, ignoring case and separators:((plan step))matchesPlanStep,plan_stepandplan step, but notexplanation. Only files with a configured extension are searched. The parentheses are removed before the prompt is sent; the phrase itself stays. A keyword you type intoyact-prompt.mdis searched on every call; one you pass toy promptis searched once, and the files it finds are linked.
Each file is sent once. Folders listed in .yact/ignore.txt (by default vendor,
node_modules, .yact and .git) are skipped, and so is yact-prompt.md itself. Other
hidden files and folders are not skipped: a link to .env sends that file, so do not link
secrets. URLs are never fetched.
A link whose target is not a project file that can be sent (a typo, a file that does not
exist yet, a file in an ignored folder, or a [[pattern]] written for an older version)
sends nothing, and YACT prints it before the call: Unresolved: commands/*.go.
A line made only of dashes (such as -----) splits the file into read links above it
and a body below it. Links above the line select files, but that block is not sent
to the model; only the body below the line is sent (with keyword markers stripped). y read
and y keyword add their links above the line, creating it if needed, so the instructions
you write below stay clean.
Note that any dash-only line counts, including a Markdown horizontal rule (---).
- Commands take no prompt argument. Every prompt command, and
query, sendsyact-prompt.md. y prompt "<text>"writes to it. The text is appended to the body. Files it links, and files that match a((keyword))in it, are also added as read links, and the keyword markers are removed from the stored text. Text accumulates across calls until you edit the file or runy newory compact. You can also edit the file directly.yact-prompt.mdis the prompt. If it holds a plan, the whole plan is sent (see Plan, then act). A missing or empty file is an error.
Every system prompt file in ~/.yact/systemprompts/ becomes a command: act.txt gives you
y act. If a command's prompt is missing, YACT downloads it from the systemprompts/
folder of this repository's main branch. y help lists the prompts you have.
To replace your copy with the latest version, download it again. This overwrites any edits you made to the file:
y download prompt act
The official prompts:
| Command | Defaults | What it does |
|---|---|---|
plan |
--model haiku --output plan --index public |
Writes or updates a step-by-step plan in yact-prompt.md, with the lint of the prompt |
act |
--model haiku --index public |
Writes code: the complete files in the response are written to disk |
ask |
--model sonnet --output print |
Answers questions about the code in plain text |
analyze |
--model sonnet --output print |
Reports where the code breaks the code principles, with fixes |
review |
--model sonnet --output print |
Reviews a diff, linked with y read, against the prompt |
bash |
--model haiku --output print |
Prints a plain list of shell commands |
act, plan, analyze and review share one set of code principles
(systemprompts/include/principles.txt), so code is
planned, written and reviewed against the same rules. They are described on
the website.
You can write your own prompts. Before you edit an official one, copy it to a new name,
because y download prompt overwrites the original. Prompt names may not contain /, \
or .., and the names of the built-in commands are taken.
A prompt file may start with a line flags: followed by flags. That line is not sent to
the model. It sets the defaults of the command:
flags: --model haiku --index public
Only --model, --index and --output are allowed here; any other flag is an error, such
as prompt 'act' flags: unknown flag: --strict in a prompt file downloaded before
--strict was removed. Flags you pass on the command line win over these defaults:
y -o print act prints the response even though act writes files by default. The
effective flags are printed as Executing: y <flags> <command> before the call.
An older letter syntax is still read, so existing prompt files keep working: c1 to c4
for the model, i1 or i2 for the index, n for --output print and p for
--output plan, as in flags: c1i1. Other letters are ignored.
A prompt file can include shared text with [[ name ]], which is replaced by the content
of ~/.yact/systemprompts/include/<name>. Includes may include other files; cycles are
reported as errors. Includes are downloaded together with the prompt.
y prompt "add authentication"
y plan
plan defaults to --output plan, so the response is saved to yact-prompt.md, replacing
its previous content (including links added with y read); nothing is written to your
source tree. The plan looks like this:
# Goal
One or two sentences.
## Steps
### 1. Create the User model
**File:** [src/models/user.go](src/models/user.go) (new)
- Add `type User struct { ... }`
**Context:** [src/db/connection.go](src/db/connection.go)
### 2. ...
## Assumptions
- [ ] **A1. Unclear:** the prompt does not say how long a session lasts. Taken: 24 hours.
## Missing context
- [src/config/config.go](src/config/config.go): the name of the session secret setting
Each step changes one file and links the files it needs, so the plan also selects the
context for each step. The two sections at the end are the lint of your prompt. Each is
left out when it has no entries, and each blocks act until you resolve it.
If the model had to guess the content of a file it was not given, it lists that file under
## Missing context. A plan with that section cannot be run: act fails with
Files needed as context are missing; run the plan command again to update the plan.
Run y plan again. The files linked in the section are sent this time, and the model revises the plan
and removes the section. You can also link files yourself with y read, y keyword or a
((keyword)) in the prompt.
Where the prompt leaves a decision open, the model makes it and lists it under
## Assumptions. Each entry has a checkbox and an id, and you resolve every entry before
act runs:
## Assumptions
- [x] **A1. Unclear:** the prompt does not say how long a session lasts. Taken: 24 hours.
- [ ] **A2. Unclear:** the prompt does not say where errors are shown. Taken: on a new page.
Answer: inline, after the field loses focus
- Accept an entry by ticking its box by hand: change
[ ]to[x]. - Answer an entry by writing a line that starts with
Answer:under it, then runy planagain. The model changes the steps to follow your answer and rewrites the entry withDecided:in place ofTaken:. Its box is still open: read how the model understood you, then tick it.
While an entry is open and has no answer, act fails with Assumptions are still open.
While an entry has an answer that has not been planned yet, it fails with
Answers under assumptions are not applied yet. y plan is never blocked.
Only you tick a box. The model always writes open boxes, and after each plan call YACT decides every box: a box is ticked only if the entry with the same id was ticked in the previous plan and its text is unchanged. If the model rewords an entry you accepted, you accept it again. A list item without a box counts as open.
The two sections hold different things. Missing context holds facts about code the model could not see, and you resolve it by linking files. Assumptions holds decisions about what you want, and you resolve it by deciding.
y act
git diff
y act sends the whole plan, with the files its steps link, in one call, and writes the
files it gets back. Check the change with git diff and run your tests. YACT does not
select or tick off steps: if only part of the plan was implemented, run y plan to drop
the finished steps (see Updating a plan) and then y act again.
Keep plans small enough for one call and one review. If a goal needs more, plan and implement it in several smaller goals, one after the other.
If act finds a problem in the plan while it writes the code, such as a contradiction or a
choice the plan left open, it writes a note to .yact/temp/feedback.md, and YACT prints it
after the call. Treat the note as a bug report on the prompt. The file is not cleared
between calls.
Run y plan on an existing plan to update it: the model checks which steps are already
implemented in the linked files, drops them and renumbers the rest. It also applies your
answers to assumptions. To change the plan, append an instruction first:
y prompt "also add a logout endpoint"
y plan
YACT does not attach the plan to anything. It is in yact-prompt.md, and y new deletes
that file. Commit the plan with the change or copy it into the pull request, whichever your
team prefers, so that the reviewer can compare the change with it.
y [flags] <command> [arguments]
| Command | Description |
|---|---|
<prompt command> |
Call the LLM with the command's system prompt |
query |
Call the LLM without a system prompt; the response is printed |
new |
Start a new, empty prompt |
prompt <text> |
Append text to yact-prompt.md, linking the files it links or names by keyword |
read <file>... |
Link files above the separator in yact-prompt.md (glob patterns supported) |
keyword <keyword> |
Link every file containing the keyword |
index <none|public|all> |
Write or remove the code index without calling the LLM |
compact |
Reduce yact-prompt.md to its links |
commit |
Write the code blocks of the last response to disk |
batch |
Fetch the result of a pending batch job |
download prompt <command> |
Download a system prompt again, replacing the local copy |
config [key value] |
Show or change configuration |
help |
Show help and the available prompt commands |
y new
Deletes yact-prompt.md (including any plan in it) and .yact/temp/index.txt.
.yact/domain.txt is kept.
y prompt "add a --version flag"
Appends the text to the body of yact-prompt.md, creating the file if needed. Quote the
text so the shell passes it as one argument. Files the text links, and files that match a
((keyword)) in it, are added above the separator, and the markers are removed from the
stored text. A link that does not resolve prints Unresolved: <path>. You can also write
the prompt in an editor.
y read main.go
y read "commands/*.go"
y keyword Transaction
y read adds [path](path) links above the separator in yact-prompt.md, creating the
separator if needed. Quote glob patterns so the shell does not expand them. Directories,
files in ignored folders and files already linked are skipped. When a
file has an extension that is not in .yact/extensions.txt yet, y read
adds it there, so keyword search covers the files you link.
y keyword links every project file whose content contains the keyword as whole
words (see Selecting context files). Type ((keyword)) into
yact-prompt.md instead to search on every call without adding links.
There is no separate command for this; write the output to a file and link it like any other file:
go test ./... 2>&1 > test-output.txt
y read test-output.txt
git diff main > yact-diff.patch
y read yact-diff.patch
y review
The file is sent like any linked file, and stays linked (and so is sent with every
call) until you remove the link or run y new.
YACT can generate a compact index of the declarations in your project: file paths followed
by function, method, type and class signatures, without bodies. Supported languages are
Go, PHP, JavaScript (.js, .mjs, .cjs), C#, Swift and Kotlin. Ignored folders are
skipped.
y prompt "where is the config loaded?"
y -i public ask
none— no indexpublic— only the public interfaceall— all declarations
The numbers 0, 1 and 2 are accepted too. The index is written to
.yact/temp/index.txt and sent only in the call that asks for it; every other call deletes
it. act and plan default to public. With the index, the model can name code
it was not given and ask for it under ## Missing context. To write or remove the index
without calling the LLM:
y index all
y index none
y prompt "is Foo buggy?"
y ask
A prompt command takes no argument: it sends yact-prompt.md. The response is always
saved to .yact/temp/buffer.txt. What happens next depends on the output mode, set with
-o / --output or by the command's prompt file:
apply(the default) — code blocks for linked files are written to disk, and any text outside them is printed. Blocks for other files are rejected (see Whole files, not diffs)print— the response is printedplan— the response is saved toyact-prompt.md
Run YACT inside a version-controlled working tree so you can review and revert what it writes.
y prompt "explain what the keyword command does"
y query
The prompt and context are built the same way as for prompt commands: yact-prompt.md is
the prompt. The response is printed by default.
y compact
Replaces yact-prompt.md with just its links, once each, above a separator. The
instructions are dropped. Useful for reusing the context of a plan or a pull request
description for a new instruction.
y commit
Writes the code blocks of the last response in .yact/temp/buffer.txt to disk and prints
any text around them, for example after --output print. The files the prompt linked at
the time of that call are saved with the response, so the same files are allowed as in
apply.
y -b act
y batch
With -b / --batch, the request is submitted to Anthropic's Message Batches API instead
of being streamed. Batches cost half as much but may take a while. Only one batch can be
pending; it is stored in .yact/batch_job_id.txt together with the output mode.
y batch prints the status while the batch is processing. Once it has ended, it prints
token usage and the discounted cost, saves the response to the buffer, delivers it with the
output mode the batch was submitted with (writing files, printing, or saving the plan),
and clears the pending job.
Flags come before the command.
-m, --model <name> Model: haiku, sonnet, opus, fable, or 1 to 4
-o, --output <mode> apply writes files, print prints the response, plan writes it
to yact-prompt.md
-i, --index <name> Code index for this call: none, public or all
-b, --batch Submit the request as a batch job
--dry-run Build and check the request, skip the LLM call
--no-progress Hide the progress indicator
-V, --version Print the version and exit
-h, --help Show help
y -m opus plan
y -i all ask
y -i none act
y -o print act
y --dry-run act
y -b plan
y config # show settings
y config anthropic_api_key <key> # required
y config ext vue # add a file extension for keyword search
y config ignore dist # skip a folder
~/.yact/config holds one setting, anthropic_api_key: your own Anthropic API key. The
model is not a setting: it comes from -m or from the --model default of the command's
prompt file, and is haiku when neither names one. The maximum output token count per call
is fixed at 128000.
Keyword search (y keyword and ((keyword))) only looks at files with the extensions in
.yact/extensions.txt. Without that file, or with an empty one, a default set of common
source extensions is used. y config ext <extension> adds one and creates the file, and so
does y read when it links a file with a new extension.
.yact/ignore.txt lists folders that are never linked, searched or indexed. Each line is a
folder path relative to the project root, with forward slashes. A path segment may use *
wildcards, and ** as a whole segment matches any number of folders, as in
build/**/generated. Without the file, vendor, node_modules, .yact and .git are
ignored. y config ignore <folder> creates the file with these defaults plus the new
folder. An empty file means no folder is ignored, not even .git.
Write a short description of your project — what it does, its main concepts and conventions
— into .yact/domain.txt. It is optional, and when it exists it is sent first in every
call.
Every call prints its duration, the input and output tokens and an estimated cost in dollars; the model is shown with the progress indicator. The estimate is calculated locally from hard-coded rates and is informational only. A warning is shown if the response hit the output token limit and may be incomplete.
Global, in ~/.yact/:
config— the API key (JSON)systemprompts/— system prompts, andinclude/for shared prompt parts
Per project:
yact-prompt.md— the prompt: your text and links, or the plan made from them.yact/domain.txt— optional project description, sent with every call.yact/extensions.txt— extensions searched by keyword.yact/ignore.txt— folders to skip.yact/batch_job_id.txt— the pending batch job and its output mode.yact/temp/buffer.txt— the last LLM response.yact/temp/index.txt— the code index, when a call asks for one.yact/temp/feedback.md— the noteactwrites when it finds a problem in the plan
A good .gitignore setup commits the .yact/*.txt settings so the whole team shares them,
and ignores the rest:
.yact/temp
.yact/batch_job_id.txt
yact-prompt.md
Whether you commit yact-prompt.md is up to you. The plan should reach the reviewer one
way or the other: commit it with the change and leave it out of .gitignore, or copy it
into the pull request.
YACT does not support running unattended, and the GitHub workflows that used to be in this repository are removed. A plan needs a person to accept or answer its assumptions, and a job that plans and implements with nobody reading would have to tick the boxes itself.
You can still call single commands from your own scripts. --no-progress keeps logs
readable, the response of every call is in .yact/temp/buffer.txt, and errors go to
standard error with exit code 1.
"Claude API key not configured"
- Set your key:
y config anthropic_api_key <your-own-anthropic-key>.
"unknown flag: --strict" (or --verbose, --skill), possibly after prompt 'act' flags:
- The flag was removed. In a prompt file, download a current copy with
y download prompt act; on the command line, leave the flag out.
"error processing code blocks: file … is not linked in the prompt"
- The response wrote a file the prompt does not link, and that file was not written; the
other files were. Check
git diff. If the file belongs in the change, link it withy read <file>(or in the plan) and run the command again.
"error processing code blocks: file at … is truncated"
- The response was cut off in its last file, which was not written. Split large files, or make the plan smaller.
"no plan found in yact-prompt.md"
yact-prompt.mdis missing or empty. Write a prompt withy prompt "<text>"or in an editor, then run the command again.
"act command takes no arguments" (or any other prompt command)
- Prompt commands no longer take the prompt as an argument. Run
y prompt "<text>"first, then the command without an argument.
"Files needed as context are missing; run the plan command again to update the plan"
- The plan has a
## Missing contextsection. Runy planonce more, or link the files yourself.
"Assumptions are still open"
- An entry under
## Assumptionshas an open box and no answer. Tick the box if you accept the entry, or write anAnswer:line under it and runy plan.
"Answers under assumptions are not applied yet"
- You answered an assumption and have not planned again. Run
y plan, read the rewritten entry and tick it.
An assumption you ticked is open again
- The model reworded the entry, so the tick was not kept. Read the new wording and tick it again.
"Unresolved: …"
- A link points to something YACT cannot send: a typo, a file that does not exist yet, a
path in an ignored folder, or a
[[pattern]], which no longer expands globs. A file the plan creates is expected here. Otherwise fix the path, or link the matching files withy read "<pattern>".
act implements only part of the plan, or the response is cut off
- The plan is too large for one call. Run
y planto drop the finished steps andy actagain, and plan smaller goals next time.
"a batch is already pending"
- Fetch the pending result with
y batchfirst.
Files are not sent, or unexpected files are sent
- Only links select files. Run with
--dry-runto see which files would be sent. Check that the path is relative to the project root and not in an ignored folder. Remember that a file linked withy readstays linked, and so is sent with every call, until you remove the link or runy new.
The model keeps seeing old instructions
- Text added with
y promptaccumulates inyact-prompt.md. Edit the file, or runy compactory new.
"no system prompt found for command"
- The prompt could not be downloaded. Check the command name and your connection, or create
the file in
~/.yact/systemprompts/yourself.
"Warning: ... has N lines, more than 300" / truncated responses
- Split large files: the model has to write them back in full.
API errors
- Check that your API key is valid in the Anthropic console, that your account has credits, and that the selected model is available to you.
In rare cases, y plan can get stuck re-listing the same files under ## Missing context
without changing the plan in any other way. YACT keeps no conversation history: each
y plan call is a single, independent request, so the model has no memory of having asked
for those files before. If the linked files already answer what it is asking for and it
does not recognize that, it asks for the same files again instead of moving the plan
forward.
Symptom: running y plan repeatedly leaves ## Missing context unchanged (the same
files, sometimes reworded), while nothing else about the plan progresses.
Fix: remove the ## Missing context section from yact-prompt.md by hand, then run
y act directly, skipping y plan. With the section gone, that gate
no longer blocks act, and the steps proceed with whatever context is already linked. If a
step then genuinely fails for lack of context, link the file yourself with y read or
y keyword rather than asking y plan to find it again.
YACT is a local command-line program. It has no server component.
- Your API key stays on your machine. It is stored in
~/.yact/configas plain JSON and sent only to Anthropic's API, as thex-api-keyheader it requires. - You get your own key. YACT never issues, requests, brokers or collects API keys.
- No telemetry. The only network connections YACT makes are the API calls you trigger,
and downloads of system prompts from
raw.githubusercontent.comwhen they are missing locally or you runy download. URLs in prompts are never fetched. - No background activity. YACT runs when you invoke it and exits. It modifies nothing
outside
~/.yact/, the.yact/folder andyact-prompt.mdof your project, and the files written from responses. - Writes stay in the linked files. File paths in responses are parsed before anything
is written or deleted. A response may only write or delete files the prompt links,
including new files the plan links; absolute paths and paths that leave the project
directory are rejected. Check
git diffbefore you commit. - You choose what is sent. Only linked files, the message files in
.yact/and the prompt are sent. Hidden files are sent if you link them, so do not link secrets. The code index is generated only when a call asks for it. - Auditable. The source is public, releases are built from tagged commits, and every
response is saved verbatim to
.yact/temp/buffer.txt.
Open an issue at github.com/agabor/yact/issues. For anything security-sensitive, please report it privately through the repository's security advisory page rather than in a public issue.
The codebase is small and split into focused packages:
api— the Claude clientcommands— one handler per commandconfig— settings, flags and prompt loadingindex— the code indexerlogic— prompt files, links, plans, assumptions and response parsingprojectpath— the type for paths inside the project
Run the tests with go test ./.... The code follows the same
principles that the prompts ask the model to
follow. Contributions are welcome: open an issue to discuss an idea, or send a pull
request.
You can also change what YACT does without touching the code: every *.txt file in
~/.yact/systemprompts/ becomes a command.
The website in docs/ is a small Jekyll site, built by GitHub Pages: plain HTML pages that
share one layout, with CSS and JavaScript and no other build step.