Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Report a bug in agent-rollback (CLI, MCP server, or Codex hook)
title: "[bug] "
labels: ["bug"]
assignees: []
---

## Describe the bug

A clear and concise description of what the bug is.

## Reproduction

```bash
# minimal steps to reproduce
agent-rollback init
agent-rollback checkpoint "test"
# ...
```

## Expected behavior

What you expected to happen.

## Actual behavior

What actually happened. Include any error output.

## Environment

- agent-rollback version: `agent-rollback --version` (or `npm list -g agent-rollback`)
- Node.js version: `node --version`
- OS: macOS / Linux / WSL — which?
- Codex CLI version (if relevant): `codex --version`

## Additional context

Add any other context (screenshots, terminal recordings, related
issues, etc.) here.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/docs_or_seo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Docs / SEO / Marketing
about: Suggest an improvement to the README, docs, or discoverability
title: "[docs/seo] "
labels: ["documentation", "seo"]
assignees: []
---

## What needs to change?

A clear description. Be specific about which file, section, or
keyword you're referring to.

Examples:
- The "Why" section in the README doesn't mention `claude code undo`
- The `codex checkpoint` H2 is buried under a different name
- The `npm codex undo` SERP shows our package but the description is
not compelling
- Add a comparison table with `pi-rollback`
- Add a backlink to the Codex `app-server` docs

## Why?

What's the user pain? (e.g., "I can't find the tool when I search
`codex undo`")

## Proposed change

Concrete text or code, if you have it.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Feature request
about: Suggest a feature for agent-rollback
title: "[feature] "
labels: ["enhancement"]
assignees: []
---

## Problem

What problem are you trying to solve? A clear and concise description
of the user pain.

## Proposed solution

A clear and concise description of what you want to happen.

## Alternatives considered

Any alternative solutions or features you've considered, and why you
prefer this one.

## Use case

Who benefits from this? What's a concrete workflow it unlocks?

## Scope

Is this a CLI change, a new MCP tool, a hook change, a docs change, or
something else?

## Additional context

Screenshots, mockups, references to similar tools, or any other context
that would help us understand the request.
35 changes: 35 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Pull request
about: Submit a change to agent-rollback
title: ""
---

## What

A clear and concise description of what this PR does.

## Why

Link to the issue it closes, or describe the problem it solves.

## How

Brief technical summary. Architecture-level only; the diff shows the
rest.

## Testing

- [ ] `npm test` passes
- [ ] `npm run check` passes
- [ ] Added a test for the change (or justified why not)
- [ ] Manually verified the flow end-to-end (if user-facing)

## Docs

- [ ] Updated README if user-facing
- [ ] Updated the FAQ if behavior changed
- [ ] Updated CHANGELOG-style commit message

## Risk

What's the risk of merging this? Is the migration story clear?
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
commit-message:
prefix: "deps"
labels:
- "dependencies"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 3
commit-message:
prefix: "ci"
labels:
- "ci"
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
name: Test on Node ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm ci || npm install
- name: Check
run: npm run check
- name: Test
run: npm test

lint:
name: Lint + package sanity
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm install
- name: Verify install script syntax
run: bash -n scripts/install.sh
- name: Dry-run install script
run: bash scripts/install.sh --dry-run --all
- name: Verify JSON files
run: node -e "JSON.parse(require('fs').readFileSync('package.json'))" && node -e "JSON.parse(require('fs').readFileSync('schema.json'))"
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
coverage/
node_modules/
npm-debug.log*
.DS_Store
a.txt
progress.md
skills-lock.json
.research/
skills/
59 changes: 59 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
cff-version: 1.2.0
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
title: agent-rollback
abstract: >-
Git-like undo, revert, and rollback checkpoints for OpenAI
Codex CLI. The agent snapshot layer. A CLI, MCP server, and
Codex hook that captures content-addressed snapshots of your
workspace so you can restore any file — or the whole project
— in one command.
keywords:
- codex
- codex-undo
- codex-revert
- codex-checkpoint
- codex-rollback
- agent-snapshot-layer
- codex-safety-net
- codex-mcp
- mcp-server
- snapshot
- rollback
- undo
- ai-agent
- openai-codex
license: MIT
version: 1.0.1
date-released: 2026-06-11
url: https://github.com/Nainish-Rai/agent-rollback
repository-code: https://github.com/Nainish-Rai/agent-rollback
repository: https://github.com/Nainish-Rai/agent-rollback/issues
authors:
- family-names: Rai
given-names: Nainish
alias: nainish-rai
affiliation: Nainish-Rai
orcid: ''
contact:
- family-names: Rai
given-names: Nainish
email: nraibackup1@gmail.com
- name: GitHub Issues
url: https://github.com/Nainish-Rai/agent-rollback/issues
preferred-citation:
type: software
title: agent-rollback
version: 1.0.1
url: https://github.com/Nainish-Rai/agent-rollback
year: 2026
authors:
- family-names: Rai
given-names: Nainish
alias: nainish-rai
publisher: ''
identifiers:
- type: url
value: https://www.npmjs.com/package/agent-rollback
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic
status, nationality, personal appearance, race, caste, color, religion, or
sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct that could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards
of acceptable behavior and will take appropriate and fair corrective action
in response to any behavior that they deem inappropriate, threatening,
offensive, or harmful.

Community leaders have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, and will communicate reasons
for moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies
when an individual is officially representing the community in public
spaces. Examples of representing our community include using an official
e-mail address, posting via an official social media account, or acting as
an appointed representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[opening an issue](https://github.com/Nainish-Rai/agent-rollback/issues/new).
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of
the reporter of any incident.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
Loading
Loading