@banjoanton/aigent
v0.0.1
Published
[](https://www.npmjs.com/package/@banjoanton/aigent) [](https://skills.sh/banjo/aigent)
Readme
aigent
Run a Ralph-style implementation loop with OpenCode.
Aigent keeps feature state outside your repository, picks one incomplete PRD task per iteration, runs OpenCode, records progress, and tracks token usage.
Install
npm install -g @banjoanton/aigentYou also need opencode available in your shell.
Skills
Install the included agent skills with the skills CLI:
npx skills add banjo/aigentThis installs aigent-prd, which turns a PRD, feature brief, issue, or rough requirement list into the prd.json, meta.json, and progress.txt files that aigent run uses.
Workflow
Create a feature folder outside the target repo:
~/.aigent/feature/task-priority-abc/
prd.json
meta.json
progress.txtExample prd.json:
{
"project": "MyApp",
"branchName": "ralph/task-priority",
"description": "Add task priority",
"tasks": [
{
"id": "US-001",
"title": "Store task priority",
"description": "Add a priority field and keep existing tasks working.",
"subtasks": ["Add the field", "Update tests"],
"priority": 1,
"passes": false,
"notes": ""
}
]
}Example meta.json:
{
"repositoryRoot": "/absolute/path/to/my-app"
}Run it from the target repository:
aigent runAigent will:
- Find matching features in
~/.aigent/feature. - Ask which feature to run.
- Start a local status dashboard.
- Run one OpenCode iteration per incomplete task.
- Update
prd.json,progress.txt, andusage.jsonlin the feature folder.
Dashboard
During aigent run, the CLI prints a local dashboard URL. It shows the current task, remaining work, iteration count, token usage, cached tokens, and cost.
Local Fixture
pnpm start:fixture