Filesystem-first agent workspaces for Claude, Codex, OpenCode, and custom subscription tools.
Spec · Profiles · Tasks · Implementation Phases · License
AgentRig is a TypeScript CLI tool for scaffolding a filesystem-first agent workspace into any project.
It creates a .agent-rig/ directory where agents, shared context, Markdown task files, findings notes, handoff logs, credentials, and launch instructions live as ordinary files. AgentRig does not orchestrate AI APIs; users run subscription tools such as Claude, Codex, OpenCode, or custom tools directly.
Handoff logs are intended for cross-session resume notes when work stops midstream or a session closes after a meaningful milestone. They are not meant to duplicate normal planner, worker, or reviewer task flow, which should already live in phase docs, task files, code review notes, and task status changes.
The first filesystem-only MVP is implemented. AgentRig can scaffold a workspace, manage agents and credentials, install profile-declared skills, create Markdown-backed tasks, run the MVP watch loop, and report live status.
AgentRig workspaces are ordinary project files:
.agent-rig/
├── _shared/ # context, task files, session state, profiles, notes, handoff logs
├── .creds/ # gitignored local secrets
├── <agent>/ # agent.toml, instructions.md, context, skills, tools, runs
└── human/ # human approval, unblock, and override helpers
The default agent-rig init --yes workspace is a solo worker agent using codex. Interactive setup can scaffold solo, coder-reviewer, trinity, supervisor-worker, swarm, testing-reviewer, or custom patterns.
Agent instructions start from editable profiles in .agent-rig/_shared/profiles/. Built-in profiles are planner, worker, reviewer, researcher, and writer; custom profiles are plain Markdown files with YAML frontmatter.
In practice, use _shared/handoff_logs/ for session-end operational context such as current branch, active task or phase, unresolved blockers, and the exact next step. Do not add a handoff after every worker or reviewer task unless the task flow itself failed to capture something important.
Use _shared/notes/ for short worker or reviewer findings that are worth carrying forward across sessions: reusable implementation patterns, repo quirks, recurring review findings, or out-of-norm events. Do not use it for routine progress logs.
Required:
node >= 20
npm or npx
AgentRig is packaged as an npm CLI.
npm install -g @inotives/agent-rig
# or
pnpm add -g @inotives/agent-rigVerify the CLI is available:
agent-rig --helpYou can also run AgentRig without a global install:
npx @inotives/agent-rig --helpRun AgentRig from inside the project you want to scaffold:
cd path/to/your-project
agent-rig initagent-rig init starts a setup interview and writes a .agent-rig/ workspace into the current project.
For the non-interactive MVP default, scaffold a solo worker agent using codex:
agent-rig init --yesOr do the same through npx:
npx @inotives/agent-rig init --yesAfter setup, validate the workspace:
agent-rig validate
agent-rig doctor
agent-rig agents
agent-rig statusAgentRig installs default shared skills during setup. To skip network skill installs in automation or tests:
AGENT_RIG_SKIP_SKILLS=1 agent-rig init --yesFilesystem-only MVP flow:
agent-rig tasks create "Implement X" --assigned-to worker --status ready --type task
agent-rig tasks
agent-rig tasks next --agent worker
agent-rig tasks next --agent worker --claim
agent-rig tasks show task-0001
agent-rig status| Command | Purpose |
|---|---|
agent-rig init |
Run the setup-pattern interview and scaffold .agent-rig/. |
agent-rig init --yes |
Scaffold a solo worker using codex. |
agent-rig add <agent-name> |
Add an agent to an existing workspace. |
agent-rig add <agent-name> --profile worker |
Add an agent from an editable profile. |
agent-rig profiles |
List available agent profiles. |
agent-rig profiles show worker |
Print a profile Markdown template. |
agent-rig doctor |
Check local AgentRig environment and workspace health. |
agent-rig agents |
List configured agents and tools. |
agent-rig validate |
Validate workspace files without mutating them. |
agent-rig creds |
Create credential placeholders and .env.example files. |
agent-rig skills |
Install and list shared or agent-local skills. |
agent-rig status |
Show live session state, task counts, and recent handoffs. |
agent-rig start --agent <agent-name> |
Print launch guidance plus relevant resume context for a configured agent. |
agent-rig tasks create "<title>" |
Create a shared Markdown task file. |
agent-rig tasks |
List shared task files. |
agent-rig tasks show <task-id> |
Print the canonical task Markdown. |
agent-rig tasks next --agent <agent-name> |
Print the next dependency-ready shared task for an agent. |
agent-rig tasks next --agent <agent-name> --claim |
Mark the next dependency-ready shared task as in_progress. |
agent-rig tasks set-status <task-id> <status> |
Update task lifecycle status. |
agent-rig tasks assign <task-id> <agent-name> |
Assign a shared task to an agent. |
agent-rig tasks block <task-id> --reason <reason> |
Mark a task blocked and record the blocker. |
agent-rig tasks done <task-id> |
Mark a task done. |
agent-rig watch --once |
Process one ready shared task and exit. |
The first MVP is split into five completed implementation phases, followed by a pre-release preparation phase:
1. CLI scaffold
2. Workspace model and validation
3. Credentials and agent management
4. Live state and launch
5. First MVP watch loop
6. Pre-release and npm registry preparation
See docs/phases.
Run the local checks:
npm test
npm --cache /tmp/agent-rig-npm-cache pack --dry-runFor future phases, follow the phase workflow in AGENTS.md: grill the phase docs, commit docs first, then implement from a feature branch.
agent-rig/
├── docs/
│ ├── project_specs.md
│ ├── profiles.md
│ ├── _archived/
│ └── phases/
├── src/
├── templates/
├── test/
├── AGENTS.md
├── README.md
└── LICENSE
Apache License 2.0. See LICENSE.
