GeezerVison is showing fhorja.dev — Fhorja: an open-source workflow for AI coding agents
Fhorja is an open-source workflow your AI coding agent follows: plain markdown commands you install once. No app, no server.
You hand your agent a task, for example:
“Fix the login redirect loop.”
Fix the login redirect loop.
Add a dark mode toggle.
Add tests for the tax rules.
Split the billing module.
Make emails unique per user.
Add a way to delete notes.
One task in. One draft pull request out.
Your agent takes the task to a draft pull request: a proposed change, not yet sent for review, that you read before anything goes in. It plans, tests, and writes every decision to plain files on your machine. Then it stops: you read it, confirm or change its decisions, mark it ready for review, and merge.
MIT licensed. 98 commands in plain markdown: six carry most tasks, and the rest cover reviews, audits, incidents, research and design work when a task needs them. When your repository is connected to GitHub or another git host (a remote), your agent runs every step on its own and stops at the draft pull request. It never merges.
The run, level by level
Example task: a small notes app7 levels, in orderQuestions for you: 0
Start
Decide
Plan
Review
Build
Commit
Open PR
What happens when you hand Fhorja a task
Seven levels in this example: start, decide, plan, review, build, commit, open a draft pull request. Six of them carry most tasks; Decide joins only when your request leaves a choice open, as this one does. On a repository with a remote, it asks you nothing along the way.
The example here is a small notes app:
“Add a way to delete notes.”
task-init
decision-interview
implementation-plan
approve-plan
implement-approved-slice
branch-commit --apply
pr-package --apply
Press Play the example run, or step through with the arrows.
Level 1
Start: task-init
Opens a folder and a branch for the task, and writes down any extra step this task needs, and why. Here: your request leaves a choice open.
writesTASK_STATE.md
## Recommended pipeline- Escalations: decision-interview (a decision the request does not contain)## Resume notes- Task branch: task/2026-09-24_delete-notes- Base branch: main
Level 2
Decide: decision-interview
Where your request leaves a choice open, it reads the code, picks one, writes it down as a provisional decision (its best guess until you confirm it), and keeps going.
Cuts the work into slices, small pieces built and checked one at a time. Each one names its files, when it counts as done, and any decision it rests on.
writesIMPLEMENTATION_PLAN.md
### Slice 01: delete a note- Scope: src/notes.js, test/notes.test.js- Decision-ref: rests on provisional P-1- Exit criterion: WHEN deleteNote(id) runs, listNotes() SHALL leave that note out
Level 4
Review: approve-plan
A separate AI session that never saw your chat checks the plan and can send it back for changes.
round 1: needs_revision Slice 01 adds an undo that no decision covers. Back to implementation-plan.
round 2: satisfied The undo is gone. Plan approved.
appends toIMPLEMENTATION_PLAN.md
## Approval log- 2026-09-24: APPROVED by approve-plan, self-run blinded review, round 2 satisfied. Rests on provisional: P-1.
Level 5
Build: implement-approved-slice
Writes the code and pastes the real test output into an evidence file. A check with no output shown counts as unverified.
Commits the work on the task branch, never on main, and moves on to the last step.
makesthe commit
[task/2026-09-24_delete-notes 2da2393] Notes can be deleted 2 files changedRun now: pr-package --apply
Level 7
Open PR: pr-package --apply
When your repository has a remote, it pushes the branch and opens a draft pull request that lists the decisions it made without you. The run stops there.
opensthe draft pull request
Not delivered, needs youNone.Decisions made without you1. Deleting a note archives it. Confirm before merge.Not verifiedNo risk review of the diff ran. Read the change to src/notes.js.Run now: none
This level is yours. It opens with the draft pull request.
7 levels0 questions asked1 decision left for you
The last level
Your move.
The run stops at the draft pull request on purpose. What is left belongs to you:
Read the draft pull request.
Confirm P-1, or tell your agent what you want instead.
Mark it ready for review.
Merge it.
These four are always yours, on every run. You can confirm P-1 before or after the merge.
An example run on a made-up notes app. The commands, file names and line formats are the ones Fhorja really uses; the app and its code are invented.
The steps behind it 21:59 to 22:06 UTC
task-init
decision-interview
implementation-plan
approve-plan
implement-approved-slice
branch-commit
pr-package
draft PR
Not delivered, needs you
None.
Summary Shortened
When the gh active account cannot see the repository, pr-package --apply had no rule and the chain would stop at the PR step.
Decisions made without you
P-1 Impact: high, it handles a host credential provisional
Pass the working account's token to the PR calls only, instead of switching the active account with gh auth switch.
Not verified
None.
This run, in numbers
minutes from task-init to this draft
77
questions asked along the way
00
files written
99
decision waiting for you
11
Counted from the recorded run: files written are the commit's files plus the task's own files.
A real Fhorja task, recorded on 2026-09-24 and replayed from its own files in shortened form. Nothing here is a live agent.
what you get
What you get on every task.
Pick one. Each comes with the file or the output that shows it.
01 of 06
Nothing gets lost between sessions.
Task state, decisions and the plan live in plain files on your machine, one folder per task, kept out of git: TASK_STATE.md, DECISIONS.md, IMPLEMENTATION_PLAN.md. Close the chat, open a new one, and resume-from-state reads TASK_STATE.md and tells you where you left off.
No decision needs explaining twice, to the agent or to you next week. The decisions that matter also travel in the pull request, where your team sees them.
From the repository: README.md, docs/FAQ.md
new sessionTASK_STATE.md, example
>resume-from-state## Quick reanchor- Active decisions: D-1- Current slice: 02- Phase: implementation- Next step: implement-approved-slice
D-1 is a decision you confirmed. The agent's own picks are numbered P-1, P-2 until you do.
TASK_STATE.mdDECISIONS.mdIMPLEMENTATION_PLAN.md
02 of 06
It runs on its own to a draft pull request.
When your repository has a remote (a copy on GitHub or another git host), your agent goes from task-init to a pushed task branch and a draft pull request without stopping, in the session you have open or in a background session you start for the task. It asks first only if your CI would announce the push or the draft to someone outside the repository.
Reading the pull request, confirming or changing its decisions, marking it ready for review and merging are always yours. Without a remote, the run ends at a commit on your machine.
From the repository: commands/pr-package.md, docs/FAQ.md
approve-planAPPROVED by approve-plan, self-run blinded review
implement-approved-slicenpm test: exit 0
branch-commit --applyRun now: pr-package --apply
pr-package --applygit push, gh pr create --draft. Run now: none
03 of 06
You see everything decided without you.
When your request leaves a choice open, the agent picks one and writes it down as a numbered provisional decision (P-1, P-2) with its evidence and impact. Until you confirm it, it is the agent's best guess, not your approval. The draft pull request lists each one still open under Decisions made without you, with the ones touching data, security, payments, or cost first. When the agent replaced one of its own, only the newest appears.
To keep a choice, tell your agent "confirm P-1". To change it, say what you want instead. The agent writes a locked decision, D-1, that points back to P-1, and P-1 stays as written. If the agent finds one of its own picks wrong before you answer, it writes a new entry that says which one it replaces and why.
From the repository: docs/FAQ.md, commands/decision-interview.md, commands/pr-package.md
DECISIONS.mdexample
the agent chooses
### P-1: Accept any path as a destinationEvidence: the request says "the page it asked for"Impact: high. Status: provisional.
the blind review finds a bug; the agent corrects itself
### P-2: Only internal paths are a valid destinationReplaces: P-1. src/auth/callback.ts:41 already rejects absolute URLs.Impact: high. Status: provisional.
you tell your agent to confirm it, after reading the pull request
## Locked decisions### D-1: Only internal paths are a valid destinationConfirms: P-2
04 of 06
A blind review checks the plan before any code.
Before any code, every plan bigger than a one-sentence change goes to a separate AI session that gets only the plan, a fixed checklist, and the decisions the plan relies on. It never sees your conversation, so it cannot inherit the assumptions made there.
If the reviewer asks for changes, the agent revises the plan and sends it back, without asking you. A one-sentence change to one or two files gets a quick script check instead.
From the repository: commands/approve-plan.md
approve-planexample
The reviewer receivesthe plan (IMPLEMENTATION_PLAN.md), a fixed checklist, and the P-Ns the plan cites
Never receivesthe conversation, or the plan writer's own notes
round 1: needs_revision slice 02 rests on P-1 without the label. Back to implementation-plan.
Each piece of the plan counts as done only when the agent pastes the command it ran and the real output. A check with no output shown is marked unverified, not done.
What the agent cannot check on its own shows up in the pull request under Not verified, saying what a person needs to run or look at.
From the repository: commands/implement-approved-slice.md, commands/pr-package.md
every scripts/tests/*.sh: `suites: 43 run, 0 failed`.
Not verified (example pull request) The round trip through the real SSO provider. Sign in once on staging with a real account.
06 of 06
A task that hits a snag teaches the next one.
After you merge, ask your agent to close the task (task-close). If the task hit a real snag, such as a review asking for changes, a check that failed before it passed, or a revert, it writes the lesson to LEARNINGS.md. The next task on the same project finds it on its own.
A clean task has nothing to teach, and says so in one line: Learnings: none harvested (no signal recorded).
From the repository: commands/task-close.md, docs/FAQ.md
LEARNINGS.mdreal excerpt, 2026-09-24, trimmed
## 2026-09-24 pr-package-gh-account harvest-session-learnings- Tried: opened a PR with `gh pr create` on a machine where gh had four logged-in accounts.- Failed because: the active account was not the repository owner's and could not see the private repository ("Could not resolve to a Repository").- Next time: check `gh auth status` and pass the owner's token to that one command.
next task: the script that finds the lessons that match it (rank-learnings.sh), real output
The same install covers more than the route to a pull request.
Six commands carry most tasks. The other 92 wait for the moments that need them: your agent picks one up when a task calls for it, or you ask for it by name.
Reviews before you merge
security-reviewa11y-auditreview-hard
A security pass against the OWASP ASVS checklist, an accessibility ledger against WCAG 2.2, and a risk review of the change itself. On a large change, the security and risk reviews split the work across several reviewers at once.
Summarizes the pages you point it at into the project's references, then compares them in one write-up that keeps its recommendation apart from what the sources say.
Runs independent slices of a plan, research angles or screens in parallel, one worker each, where your tool can run them. For independent slices of an approved plan, this is the default.
You need an AI coding agent such as Claude Code, Codex, Cursor or Kimi Code, git, and a terminal. For the draft pull request on GitHub, add the GitHub CLI (gh), logged in. You install Fhorja once; after that, each project needs one pasted paragraph.
Run this in a terminal from a folder outside your projects (your home folder is fine). It makes a folder called fhorja.dev. You do this once, not once per project.
2Step 2 done
Run the two setup scripts, Done
Terminal
cd fhorja.dev
./scripts/bootstrap-user-setup.sh
./scripts/sync-workflow-slash-commands.sh
The first one creates USER_MEMORY.md, a file for your own working preferences that the commands read, and runs a quick check of the install. The second opens a setup wizard: pick Sync everything. That puts every command where your agent looks for it.
For Claude Code, the commands land in ~/.claude/commands and the skills in ~/.claude/skills.
For Codex, the skills land in ~/.agents/skills, and the older custom prompts in ~/.codex/prompts.
For Cursor, the commands land in ~/.cursor/commands, and Cursor 3.17.8 or later reads the skills from ~/.agents/skills. On an older Cursor, update it first.
Kimi Code has no slash-command folder, so every command arrives as a skill in ~/.agents/skills, called as /skill:<name>.
Any tool that reads Agent Skills finds them in ~/.claude/skills or ~/.agents/skills, the two folders the sync writes. A tool that reads neither can still open the command files as plain markdown.
More ways to install
Sync everything installs the whole catalog, 98 commands. To script the install instead, pass a profile: minimal carries 24 commands, core 52, full all 98.
./scripts/sync-workflow-slash-commands.sh --profile full
--project /path/to/your/repo also installs into that one project.
--no-skills skips copying the skills to your user folders.
3Step 3 done
Paste one paragraph into CLAUDE.mdAGENTS.mdCursor's rules filethe file Kimi Code always loadsyour tool's instruction file, Done
Open the project you want to work on and paste it into its CLAUDE.md, the file Claude Code always loads. No CLAUDE.md yet? Create one.
Open the project you want to work on and paste it into its AGENTS.md, the file Codex always loads. No AGENTS.md yet? Create one.
Open the project you want to work on and paste it into a Cursor rules file. The Fhorja docs say only "your rules file for Cursor"; Cursor's own rules documentation shows how to make a rule apply to every chat.
Paste it into the instruction file Kimi Code always loads for your project. The Fhorja docs name CLAUDE.md, AGENTS.md and rules files but not Kimi Code's own, so check Kimi Code's docs for the one it reads.
Paste it into the file your tool always loads for your project: CLAUDE.md, AGENTS.md or a rules file, whichever one it reads.
The paragraph
Show the paragraph
**Start engineering work by running `task-init`.** Any change to this repository is a task: a
one-line docs edit is a task, a typo fix is a task. Do not edit a file before the task folder
exists. A short pipeline is what small work gets, so its size is a reason to take that pipeline,
never a reason to skip the workflow. Then follow the `Run now:` line of each command's
Handoff without waiting to be asked.
When a task is already active, read its `TASK_STATE.md` first and continue from
`## Recommended next step` rather than starting a new one.
Once per project. Setup gave your agent the commands; this paragraph tells it to use them. Without it, an agent handed a small job tends to just do the job: in a measured test, the same model on the same request edited the file and never opened a task. In plain words, the paragraph tells your agent to open a task for every change, keep small changes on the short route, and move from one step to the next without waiting for you.
4Step 4 done
Open your agent in your project and describe a task, Done
Pick something small and real for the first run: a narrow bug, a small feature, a setting. Say what you want in plain words, the way you would tell a colleague. The paragraph from step 3 tells the agent to start with task-init; for the first run, name it anyway, as below. If the agent ever starts editing without opening a task, say "run task-init first".
Your first message
Run task-init for this task: <the change you want, in a sentence or two>
In Kimi Code
/skill:task-init
In Kimi Code you call a skill as /skill:<name>, so this starts it. Then describe the task.
Lost at any point? Ask for workflow-guide. It says what to run now and why, and changes nothing.
What happens next
After task-init, your agent keeps going on its own. Here is the whole trip, in plain words.
01
It writes a plan
The work gets cut into small steps. A separate AI session that never saw your chat checks the plan before any code is written.
02
It does the work, with proof
Each step runs the real checks and pastes their output as proof. Anything it could not check is written down, not skipped.
03
It opens a draft pull request
A pull request is a proposed change you can read before it goes in, and a draft is one that notifies nobody yet. If your project has a remote, a copy on GitHub or another git host, the agent commits, pushes its own branch and opens the pull request as a draft without stopping to ask, unless the repository's CI would announce the push or the draft to someone outside it; then it shows you the pull request and where it goes, and asks before it pushes. On GitHub it opens the draft through the GitHub CLI (gh); if no logged-in account can see the repository, it stops after the push and asks you to run gh auth login. With no remote, it stops at a commit on your machine.
04
You read it and decide
The pull request opens with anything it could not finish, then a summary, the decisions it made without you, and what it could not verify. Read it, confirm or change the decisions it made, mark it ready for review, and merge. Those four are always yours. To confirm a decision, tell your agent "confirm P-1", before or after the merge.
Tiny changes skip the plan review. If your request is one sentence, names at most two files, and leaves only small choices open, if any, a quick script check is enough. The agent writes those choices down and lists them in the draft pull request. After you merge, ask your agent to close the task (task-close); that is when a task that hit a snag writes its lesson for the next one. And if you close the chat halfway, the task keeps its notes in plain files, so the next session picks up where you stopped.
Short answers, taken from the docs. Pick a concern to see the rest.
01What is Fhorja, in one breath?
What is Fhorja, in one breath?
What it is
An open-source workflow that AI coding agents follow: 98 commands written in markdown, plus small local bash and Python scripts for lint, sync and build. Each task gets its own folder of plain files, so the plan, the decisions and the next step live on disk instead of in a chat that forgets.
One task folder, in a projects/ folder git ignores, inside the repository you work inexample
projects/acme__shop/active/2026-09-25_fix-login/
README.md # human summary
TASK_STATE.md # read this to resume
SOURCE_OF_TRUTH.md # facts, and where your code lives
DECISIONS.md # every decision, with its reasoning
IMPLEMENTATION_PLAN.md # the plan, in small steps
Fhorja itself costs nothing: no subscription, no API key, no hosted service, and the license is MIT. You pay only for the AI tool and the model you already use.
Fhorja itself does not: no server, no telemetry, nothing phoned home. Your AI tool still talks to its model provider as it did before. When your repository has a configured remote, your agent pushes the task branch and opens a draft pull request on your own git host. Beyond that, data leaves through Fhorja only when you run a command that fetches something, like capture-references fetching the URLs you gave it.
You pick the work, then read the draft pull request. It opens with what still needs you, then the summary, then the decisions made without you and anything the agent could not verify. Reading it, confirming or changing its decisions, marking it ready for review and merging are yours.
05What happens to a decision the agent made without me?
What happens to a decision the agent made without me?
Decisions and mistakes
It is recorded, not locked: a numbered P-N entry (P-1, P-2) in DECISIONS.md with its evidence and its impact. It never counts as your input until you confirm it or choose something else.
DECISIONS.mdexample
## Provisional decisions
### P-2: Retry the webhook three times, then log it
Evidence: src/webhooks/send.ts:42 already retries twice
Impact: normal
Status: provisional
Each card says whether it is a myth or a fact, and where that is written down.
0 of 3 guessed
01 What you do
Fhorja waits for you to approve every plan.
Show the answerHide the answer
Myth . A separate AI reviewer checks every plan bigger than a one-sentence change and does not wait for you. If it finds a choice your request did not make, that choice goes into the pull request for you to confirm. Without a remote, or if you switch on step-by-step mode (assisted), it asks you instead.
With a remote configured, the agent pushes the branch by itself.
Show the answerHide the answer
Fact . Right after the last commit, pr-package --apply pushes the task branch and opens the draft pull request on its own. If your CI would announce the push or the draft outside the repository, it asks first.
You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.