
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@markjaquith/agency
Advanced tools
Smuggle project-level LLM instruction into any Git repo. Plan your tasks. Commit your plans. Execute your plans using Opencode. Filter those plans out out your PRs.
bun install -g @markjaquith/agency
agency task <branch-name>Create a new feature branch from the latest origin/main and initialize AGENTS.md and TASK.md files using the template you've set for this repo. Commits smuggled files and lands you on that branch.
Options:
--from <branch> - Branch from a specific branch instead of origin/main--from-current - Initialize on current branch instead of creating a new one--continue - Continue a task by copying agency files to a new branch (after PR merge)Examples:
agency task my-feature # Create 'my-feature' from latest origin/main
agency task my-feature --from dev # Create 'my-feature' from 'dev' branch
agency task --from-current # Initialize on current branch (no new branch)
agency task --continue my-feature-v2 # Continue task on new branch after PR merge
agency editOpen TASK.md in the system editor for editing. Nice if you have to paste in large amounts of context.
agency workLaunch Opencode to work on the current task defined in TASK.md. All your context will be loaded.
agency loopRun a Ralph Wiggum loop over the current TASK.md.
The command repeatedly invokes opencode run in isolated iterations, committing progress after each loop, until all tasks are complete or a maximum loop count is reached.
When all work is finished, the loop terminates and outputs <promise>COMPLETE</promise>.
Options:
--min-loops <n> - Run at least n iterations, even if tasks complete earlier--max-loops <n> - Stop after n iterations even if tasks remainExample:
agency loop --max-loops 10
agency emit [base-branch]Create an emit branch with smuggled files reverted to their merge-base state (removes additions/modifications to those files made on feature branch). Default branch name is current branch with --PR suffix.
agency push [base-branch]Runs agency emit, pushes the branch, and then switches back to the source branch.
Options:
--pr - Open GitHub PR in browser after pushing (requires gh CLI)--force - Force push to remote if branch has diverged--branch <name> - Custom name for emit branchagency mergeRuns agency emit, and then merges the PR back into the base branch locally.
Options:
--squash - Use squash merge instead of regular merge (stages changes, requires manual commit)--push - Push the base branch to origin after mergingagency template use [template]Set which template to use for this repository. Shows interactive selection if no template name provided. Saves to .git/config.
agency template save <files...>Save the specified files back to the configured template directory (so they will be used for future agency task commands).
agency base getGet the base branch for the current feature branch.
agency base set <branch>Set the base branch for the current feature branch.
agency switchToggle between source branch and emit branch. If on an emit branch (e.g., foo--PR), switches to source branch (e.g., foo). If on source branch and emit branch exists, switches to emit branch.
agency sourceSwitch to the source branch for the current emit branch.
To install dependencies:
bun install
To run:
bun run index.ts
This project uses hk for git hook management. The configuration is in hk.pkl.
To install the git hooks:
hk install
Pre-commit hook runs:
Commit-msg hook validates:
Pre-push hook runs the same checks as pre-commit.
Note: Tests are intentionally excluded from git hooks as they are slow. Run them manually with bun test.
MIT
FAQs
Manages personal agents files
We found that @markjaquith/agency demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.