Skip to content

About

Plugins for gajae-code (gjc) that make an agent's work checkable: test receipts, loopback UI assertions, plan validation, advisory delegation checks and a self-improvement ledger.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

483 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gjc-plugin

CI Release License: MIT

Evidence plugins for gajae-code (gjc) agents: receipts, checks and plans that an agent cannot fake on its own.

A coding agent's own report ("tests pass", "the UI works", "I followed the plan") is a claim. These plugins replace parts of that claim with evidence: test runs recorded as private receipts with source freshness, browser assertions against a real page, plans validated against a fixed contract before they reach a tracker, and advisory second opinions labeled as advisory. Every plugin states what it does not prove, keeps its results in a private store, and installs on its own.

  • Start here: Quick start installs the keyless backplan plugin and runs it.
  • Pick plugins: Choose a plugin lists what each one proves and what it does not.
  • Check the claims: What is verified maps each claim in this README to a command you can run.

Quick start

You need gajae-code (gjc, verified with 0.18.12). Installing a plugin needs no build step: each plugin's generated tool surfaces are committed.

git clone https://github.com/jjongguet/gjc-plugin
cd gjc-plugin
gjc plugin install ./backplan --user
gjc plugin list

Keep this checkout. The install records its absolute path as the plugin's source, and gjc plugin upgrade resolves that path again later; a moved or deleted clone leaves the upgrade pointing at a source that no longer exists (see Troubleshooting).

Start a new gjc session in the clone (tools load when a session starts) and ask:

Run backplan_check with plan_path backplan/examples/valid-plan.json, then with plan_path backplan/examples/invalid-plan.json.

Input Expected result
valid-plan.json backplan_check: ok with a stable digest (184706eb9ed9… for the bundled file) and a tracker-ready issue payload
invalid-plan.json backplan_check: invalid with the missing fields, starting plan.end_state: required, plan.success_criteria: required, plan.project: required

Remove it again with gjc plugin uninstall backplan --user.

To check the same install → call → uninstall path without a model or key, run node scripts/onboarding-smoke.mjs. It installs backplan into a throwaway GJC user root, drives a fresh gjc --print process through a scripted endpoint on 127.0.0.1 that calls backplan_check with both examples, uninstalls the plugin, confirms a fresh process no longer lists it, and prints a JSON report. Your real GJC configuration and plugins are not used. It exits 2 with an actionable message when gjc or Node.js is missing or older than the verified versions.

Choose a plugin

Plugin Use it to It proves It does not prove Setup
backplan Validate a work plan before it reaches a tracker and render tracker-ready payloads The plan meets a fixed contract (observable criteria, scoped issues) and has a stable digest That the plan is wise or that the work gets done None: offline, keyless
verification-receipts Run explicit node:test files as private receipts; recheck that delegated work was followed by covering verification Which named test files ran, their counts, and whether their sources changed since Coverage, correctness of untested code, or that the tests are meaningful Node.js on PATH; keyless (an optional Jev key adds warning-only adequacy notes)
rrsi Store exploration traces and replay deterministic policies (Dream-RSI) What the stored corpus supports under the replay rules, including "insufficient evidence" Online improvement; replay alone is not closed-loop efficacy None: offline, keyless
rea Check the pinned REA CLI and use its workflow skill Whether local Node/npx/Bun fit the pinned rea-agents 6.4.0 The quality of REA's analysis Node.js or Bun; the first npx call downloads rea-agents
egm Run Google's Elephant-Goldfish Model design and review skills, installed natively by gjc, and check that install Whether the installed EGM runtime files match the pinned v0.1.1 release and whether the session settings let the Goldfish reviewer subagents run Review quality, or that reviewers see no host instructions: they start without the parent conversation but still receive SYSTEM.md, RULES.md and always-apply rules gjc 0.20.0 or newer and git; installing EGM clones the pinned tag from GitHub
memory-dream Analyse GJC project memory notes against canonical evidence and produce an advisory correction report Which notes have canonical citations, dead rule:// references, missing paths, an over-budget injection layer, or an advisory Jev consistency verdict That a note is true, that evidence search is complete, that a Jev verdict is authoritative, or that a correction is adopted; every verdict is advisory, and it never edits GJC memory None: deterministic checks are offline and keyless; JEV_ADVISOR_API_KEY or OPENROUTER_API_KEY adds opt-in advisory verdicts (the default is deterministic only until the golden threshold is measured)
jev-advisor Get advisory fast / balanced / strong tier advice before delegated tasks, one-shot artifact checks and an offline metrics report What the decision model returned, or an explicit no-decision Model routing, task quality or correctness; shadow mode by default JEV_ADVISOR_API_KEY or OPENROUTER_API_KEY for advice; plugin_metrics is offline
ui-regression Run one bounded browser scenario against a page you serve on loopback The asserted DOM text and visibility in that run Deployed UI state, visual quality, or flows you did not assert The aside browser CLI with a connected profile and an explicit account
wiki Search a guarded personal wiki and file pending proposals Canonical page matches, with citations That a page is true; it never approves or publishes A personal-wiki checkout with scripts/wiki.py (WIKI_ROOT)
aside-memory Search Aside memory read-only for an explicit account Bounded, quoted historical context That a memory is current or authoritative The aside CLI and an explicit numeric account
lessons Select bounded lessons from a personal-wiki lesson ledger, on demand and as one advisory session-start line; stage owner corrections locally at session end Which active lessons the ledger ranks for a repository, their counters and the exact byte budget spent; which corrections were staged and the exact runnable ledger command for one of them That a lesson is correct or current, that the ledger is complete, that a staged correction is a lesson, or that a lesson authorizes anything A personal-wiki checkout with scripts/lessons.py (GJC_COMPOUND_ROOT → GJC_LESSONS_WIKI, default $HOME/jjongguet/personal-wiki, one chain for both tools) and python3

backplan, verification-receipts, rrsi, rea and egm work for anyone with gjc (egm needs 0.20.0 or newer). jev-advisor needs a decision-model key for its advice. ui-regression, wiki, aside-memory and lessons wrap the maintainer's personal tools; install them only if you run the same tools.

Measured attributes (tiers, counts, durations, journals) are descriptive observations, not quality, routing or causal proof.

Demo

bun run demo drives three offline plugins through their committed tool surfaces, exactly as GJC loads them, under a temporary HOME. It needs no key or network and checks that your real stores are untouched. Output from a real run:

$ backplan_check  (validate a work plan and render Linear-ready payloads)
  status=ok digest=184706eb9ed9… issues=1 project=reuse:docs
  incomplete plan → status=invalid; first errors: plan.end_state: required; plan.success_criteria: required; plan.project: required

$ rrsi  (capture an exploration episode, then replay policies over the store)
  status: storage=missing episodes=0
  capture: attempts=2 episodes=1
  dream: candidate policies=40 corpus attempts=2 thresholds evaluated=false (corpus_below_pass_gate)
  verdict: insufficient evidence at pass-gate size — thresholds not evaluated

$ rea_readiness  (offline readiness of the pinned REA CLI)
  rea_readiness: ready
  pinned rea-agents: 6.4.0; fetch channel: npx
  cli: npx -y [email protected] <command>
  extra input → rea_readiness: invalid_input — this tool accepts exactly {} (no paths or options).

demo: ok (temporary HOME removed; real backplan/rrsi/rea stores unchanged)

The rea_readiness lines depend on the Node/npx/Bun found on your machine. A two-attempt corpus is deliberately too small for the replay thresholds; the tool says so instead of reporting a result.

How it works

flowchart TB
  session["gjc session<br/>agent tool calls · task, subagent and session hooks"]
  subgraph offline["Offline and keyless"]
    direction LR
    bp["backplan"]
    vr["verification-receipts"]
    rr["rrsi"]
    rea["rea"]
    egm["egm"]
  end
  subgraph external["Need extra setup"]
    direction LR
    jev["jev-advisor"]
    ui["ui-regression"]
    personal["wiki · aside-memory"]
  end
  store[("private results<br/>~/.gjc-plugin/ (0700 dirs, 0600 files)")]
  decisions["decision endpoint<br/>(optional key)"]
  tools["Aside CLI · wiki.py"]
  session --> offline
  session --> external
  offline --> store
  external --> store
  jev -. advisory only .-> decisions
  ui -. loopback page .-> tools
  personal -. local CLIs .-> tools
Loading

verification-receipts sends warning-only adequacy questions to the decision endpoint when a key is configured; without one it stays offline.

Each bundle's generated tools/ and hooks/ are self-contained (sources are inlined at build time), so an installed plugin needs no sibling package. GJC owns the installed code; plugins write only to their own directory under ~/.gjc-plugin/.

Requirements

Installing and using a plugin needs only gjc (verified with 0.18.12). Building and testing this repository also needs Bun 1.4.x and Node.js 22 or newer. Maintainers run macOS and CI runs Linux; Windows is untested.

Plugin Surfaces Needs Offline / keyless
verification-receipts 3 tools, 4 hooks Node.js on PATH for the test runner Yes. An optional Jev key adds warning-only adequacy notes.
ui-regression 2 tools The aside CLI with a connected profile and an explicit account; a page you serve on loopback Runs drive a browser; ui_regression_status is offline.
backplan 1 tool, loose skill Nothing for the tool. Rendered issue bodies use Korean section headings; the optional skill registers issues through the maintainer's Linear MCP and trace helper. Yes
jev-advisor 3 tools, 7 hooks JEV_ADVISOR_API_KEY or OPENROUTER_API_KEY for advice and checks Without a key, advice is an explicit no-decision; plugin_metrics is offline.
rrsi 1 tool, 1 hook Nothing Yes
rea 1 tool, loose skill Node.js ^22.19 || ^24.11 || >=26 or Bun; the first npx call downloads rea-agents rea_readiness is offline; the CLI fetch uses the network.
egm 1 tool; EGM's 7 skills and 10 reviewer personas come from GJC's native marketplace install gjc 0.20.0 or newer and git egm_readiness is offline and writes nothing; installing EGM clones the pinned tag from GitHub.
memory-dream 1 tool, 1 session_start hook Nothing for deterministic checks and the report; a Jev key for advisory consistency verdicts Yes. Without a key every evidence-bearing claim is no-decision, never supported; the hook only shows the latest contradicted notes (≤5 lines / 600 B).
wiki 2 tools A personal-wiki checkout with scripts/wiki.py, located by WIKI_ROOT (default $HOME/jjongguet/personal-wiki) Local only
aside-memory 1 tool The aside CLI and an explicit numeric account Network through Aside; no key
lessons 2 tools, 2 hooks (session_start, session_shutdown) A personal-wiki checkout with scripts/lessons.py and python3 on PATH Local only: no network, no key. Selection is read-only and its hook is an advisory log line; the shutdown hook appends at most one 0600 correction line under $GJC_PLUGIN_DATA/lessons/ and never writes to the wiki or a git repository.

Credentials live outside the replaceable installation tree: the process environment, ~/.gjc/agent/jev-advisor/.env, or (credential names only, when no upper layer has one) ~/.gjc/agent/.env. Configuration precedence: layer first, then within a layer JEV_ADVISOR_API_KEY before the provider's own key names; non-secret defaults can come from the tracked ~/.gjc/agent/jev-advisor/settings.env (see jev-advisor/README.md). Never put credentials in source or result records.

Troubleshooting

Symptom Cause and fix
gjc: command not found gajae-code is not installed or not on PATH. Install it from gajae-code; node scripts/onboarding-smoke.mjs reports the missing prerequisite and exits 2.
gjc plugin install refuses because the plugin is already installed Replace it: gjc plugin uninstall <name> --user, then install again.
gjc plugin upgrade fails with The stored source for GJC bundle "<name>" could not be resolved The plugin was installed from a path that no longer exists, for example a temporary worktree or a deleted clone. Reinstall from the checkout you keep: gjc plugin uninstall <name> --user, then gjc plugin install <path> --user.
/skill:egm-review is not recognised GJC registers marketplace skills under the plugin name. Use /skill:egm:egm-review (and egm:egm-<name> for the other six); egm_readiness lists every invocation.
An installed tool is missing from the session Tools and hooks load when a session starts. Start a new gjc process, then check gjc plugin list and gjc plugin doctor.
jev_advise or jev_check returns no_decision with reason disabled No decision-model key is configured. This is the documented keyless behaviour; add JEV_ADVISOR_API_KEY or OPENROUTER_API_KEY to enable advice.
A metrics or journal read fails with store_corrupt after upgrading several plugins An older jev-advisor read records written by a newer verification-receipts. Reinstall jev-advisor first, verification-receipts second, then the rest (install order).
ui_regression_run fails before a page opens The aside CLI is missing or not connected, or no explicit account was passed. ui_regression_status still works offline.
bun run test fails on host smoke guards without a local gjc Run SELF_IMPROVE_SKIP_SMOKE=1 bun run test; the four host smoke guards are then reported as skipped, not passed.
gjc plugin install fails with ✘ Failed to install GJC bundle (unsupported_surface: …) The manifest declares something the bundle runtime cannot preserve: an extra hook field, a non-canonical capability, a mcpServers key it cannot carry, or a Claude Code plugin.json hook shape. Since 0.20.0 the line names the offending field and the accepted set, with the manifest path shortened to <bundle>/…; reduce the manifest to the canonical fields in the observed contract. Under --json the failure path still prints no JSON — read the text line and the exit code.
gjc plugin link prints ✔ Linked <name>, doctor and list show it, but nothing runs Since 0.20.0 link records a linked: true discovery entry, so doctor, list and features accept it instead of reporting it as an orphan. A linked npm-style package still contributes no tools or hooks to a session — only bundle installs register a loadable surface. Install the bundle instead: gjc plugin install <path> --user.
gjc plugin install --dry-run installed the plugin Fixed in 0.20.0: the command prints [dry-run] Would install <name>@<version> (<scope>), writes no bundle directory, no registry.json and no project .gjc, and can be repeated. On 0.19.0 it installed and then reported the plugin as already installed — uninstall and install again.

Local gjc plugin behaviour that looks like a plugin defect is reproduced, with commands and raw output, in docs/gjc-0.20-plugin-cli-verification.md (current binary) and docs/gjc-0.19-plugin-cli-reproduction.md (the historical 0.19.0 measurements). node scripts/check-plugin-cli.mjs re-observes the current contract against the gjc on PATH and skips when none is installed.

Develop and verify

bun run build            # keyless builds for every plugin
bun run build:check      # generated surfaces are in sync with sources (non-mutating)
bun run test             # every test:* step (check-script fixtures, shared tests, plugin suites, self-improve), run concurrently
bun run demo             # keyless end-to-end demo in a temporary HOME
bun run onboarding:smoke # README quick start in a throwaway GJC root (needs gjc)
bun run docs:check       # every relative Markdown link resolves
bun run evidence:check   # committed self-improve evidence has no absolute home paths
bun run policy:check     # the pull-request lane and CI keep their safety properties
bun <plugin>/scripts/verify.ts   # one plugin's suite

Offline suites use disposable repositories and homes with synthetic or disabled transport; no live credential is required. CI runs the offline checks on every push to main. Host and browser smoke commands, and what each one does and does not prove, are in CONTRIBUTING.md.

What is verified

Claim in this README Evidence you can run or read
Generated tools and hooks match their sources bun run build:check, plus the post-build unchanged-tree gate in .github/workflows/ci.yml
Every plugin suite passes offline, without credentials bun run test
The quick start works in a fresh gjc process bun run onboarding:smoke
The demo output above is real bun run demo
The gjc plugin CLI behaves as documented node scripts/check-plugin-cli.mjs (skips without a gjc binary)
CI never runs pull-request code automatically bun run policy:check and .github/workflows/
Self-improvement campaigns and their limits self-improve/evidence/

Nothing in this repository establishes that these plugins improve agent outcomes in general, or that people other than the maintainer need them. ADR 0001 records how such claims are evaluated before they are made.

Private results

All plugin-owned result and state writes go to ~/.gjc-plugin/ (owned 0700 directories and single-link 0600 files; unsafe owners or modes, symlinks, hard links and corrupt inventories fail closed). Inventory, record contents and retention bounds: docs/private-results.md.

Self-improvement loop

self-improve/ is a repository-native loop that proposes edits to this repository's own declared surfaces, checks them with deterministic guards in git archive scratch copies, and records every decision, including every rejection, in an append-only ledger. Measured campaigns and their limits are in self-improve/evidence/. The Harness² comparison is a research proposal, not an installed capability.

Workspace session supervisor

supervisor/ is a repository-native CLI (not a plugin) that collects the local lane sessions and the mini host's checkouts, judges progress with deterministic rules, sends one Discord summary, and can nudge exactly one stalled session. Ten minutes is the default interval; the loop only runs inside a tmux session the operator starts, and there is no kill path.

Nightly code review

nightly-review/ is a repository-native CLI (not a plugin) that reviews the pull requests merged in the last day with several independent reviewer calls — one lens per process, two model families — and then keeps only the findings whose quoted code actually exists in the merged diff. Models propose, a deterministic gate decides, and the file step opens one Linear issue per repo::file::kind — reusing the open ticket when the same file produces new evidence — so the work starts from quoted evidence rather than from a summary. It installs no timer; the loop runs only in the terminal the operator started.

Contributing and security

Issues and pull requests are welcome. Pull-request code never runs automatically: the owner dispatches Validate pull request (owner dispatch) from main with the pull request number and the reviewed head SHA, and a trusted verifier posts a SHA-bound receipt when the checks pass. See CONTRIBUTING.md for the flow, CONTRIBUTING.md for development setup, docs/agent-rules.md for the repository rules, and SECURITY.md to report a vulnerability privately.

License

MIT

About

Plugins for gajae-code (gjc) that make an agent's work checkable: test receipts, loopback UI assertions, plan validation, advisory delegation checks and a self-improvement ledger.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages