RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/code-yeongyu/oh-my-openagent

AGENTS.md

packages/pi-goal/AGENTS.md
AGENTS.md

Quality

85/100

Scores the file, not the repository.

Length

542 words

5 headings · 1 code blocks

Repository

67k

— · pushed 0 days ago

Last changed

2 days ago

First indexed 2 days ago.
code-yeongyu/oh-my-openagent/packages/pi-goal/AGENTS.mdRawGitHub
1# pi-goal
2 
3Persistent per-thread goal tracking as a Pi extension, vendored from the standalone
4`code-yeongyu/pi-goal` repository into this monorepo as `@oh-my-opencode/pi-goal`
5(private workspace package, Adapter layer: Pi-harness-coupled).
6 
7Registers the Codex-style `create_goal` / `update_goal` / `get_goal` tools plus the
8`/goal` command, persists one goal per thread to a JSON file under the active session
9directory, renders a Codex-style TUI footer indicator, and re-engages the agent toward
10an active goal via hidden continuation prompts (`pi-goal-continuation` custom messages).
11 
12## Anatomy
13 
14| Path | Purpose |
15|------|---------|
16| `src/index.ts` | Extension entry: tools + `/goal` command + session/agent lifecycle + usage accounting |
17| `src/goal/store.ts` | File persistence: read/write/create/update/clear/accountGoalUsage + status transitions |
18| `src/goal/types.ts` | `Goal`, `GoalStatus` (`active\|paused\|blocked\|budgetLimited\|complete`), store/file/tool types |
19| `src/goal/prompt.ts` | Continuation + budget-limited hidden prompt builders |
20| `src/goal/continuation.ts` | Continuation gating predicates |
21| `src/goal/format.ts` | Tool/UI formatting + tool JSON response snapshots |
22| `src/goal/ui.ts` | Codex-style TUI footer replacement component |
23| `src/goal/command.ts` | `/goal` argument parsing (show/pause/resume/clear/setObjective) |
24| `src/goal/validation.ts` | Objective + token budget validation |
25| `src/goal/errors.ts` | Typed store errors |
26| `test/` | Vendored characterization suite (bun:test; assertions identical to upstream) |
27| `scripts/qa/drive.mjs` | Live QA driver: real pi CLI in RPC mode, isolated `PI_CODING_AGENT_DIR`, scripted mock provider, `--self-test` |
28| `scripts/qa/mock-provider/` | Self-contained scripted provider extension (no network, no keys) |
29 
30## Codex alignment
31 
32The goal tool contract is aligned with codex `codex-rs/ext/goal`:
33 
34- `update_goal` accepts `complete` and `blocked` (codex `spec.rs` enum); `blocked` is a real,
35 model-settable, non-terminal status (resumable via `/goal resume`).
36- `create_goal` replaces only a `complete` goal and otherwise fails with the codex
37 "unfinished goal" message.
38- Tool/parameter descriptions, the `update_goal` error text, and the completion budget report
39 match codex verbatim; `budgetLimited` is preserved when `paused` or `blocked` is requested.
40- The hidden continuation and budget-limit prompts use the codex `templates/goals/*.md`
41 content (`<objective>` tag; the continuation prompt carries the Continuation behavior /
42 Work from evidence / Progress visibility / Fidelity / Completion audit / Blocked audit
43 sections). The budget-limit prompt is queued at most once per goal id.
44- Continuation is not queued after a turn that did not end cleanly (last assistant
45 `stopReason` is `error`, or the last tool result was aborted), mirroring codex's
46 turn-error loop prevention (codex sets the goal `blocked`; pi's harness has no turn-error
47 signal, so it gates the auto-continuation instead).
48- Deliberate deviation: pi omits `usage_limited` (codex sets it from a system
49 `UsageLimitExceeded` turn error, not the model; the Pi harness exposes no such signal).
50 
51## Conventions
52 
53- Vendored source: keep diffs against upstream intentional and reviewable. Tests were
54 converted vitest -> bun:test with byte-identical assertions; the fake clock is anchored
55 at a non-zero epoch because Bun's `setSystemTime(new Date(0))` acts as a reset.
56- Peer deps (`@mariozechner/pi-*`, `typebox`) resolve from the host Pi runtime; pinned
57 devDependencies exist only for typecheck + tests + live QA.
58- This package is not wired into any OpenCode/Codex/omo-senpi component. It ships as a
59 standalone Pi package surface (`pi.extensions` manifest field).
60 
61## QA
62 
63```sh
64bun test packages/pi-goal # unit/characterization gate
65tsgo --noEmit -p packages/pi-goal/tsconfig.json
66node packages/pi-goal/scripts/qa/drive.mjs --self-test
67node packages/pi-goal/scripts/qa/drive.mjs # live pi-harness proof (RPC mode, sandboxed)
68```
69 
70The live driver is the real-harness gate: unit tests alone never prove the extension
71works under pi. Evidence goes to `.omo/evidence/<date>-<slug>/`.
72 

Commands it names

  • bun test packages/pi-goal
  • node packages/pi-goal/scripts/qa/drive.mjs --self-test
  • node packages/pi-goal/scripts/qa/drive.mjs

Sections

  • pi-goal
  • Anatomy
  • Codex alignment
  • Conventions
  • QA

What it covers

testcode-styletesting-strategyagent-behaviour

Stack — with the evidence

typescript

(1.00)

bun

(1.00)

node

(0.95)

vitest

(0.95)

biome

(0.70)

javascript

(0.60)

github-actions

(0.60)

monorepo

(0.50)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
code-yeongyu
Language
—
License
—
Archived
no

All configs in this repo

Also in code-yeongyu/oh-my-openagent

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
code-yeongyu/oh-my-openagentpackages/omo-opencode/src/features/claude-code-agent-loader/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archdeploymentagent-behaviour62/1002 days ago
code-yeongyu/oh-my-openagentpackages/omo-opencode/src/features/claude-code-mcp-loader/AGENTS.md · 67kAGENTS.mdtypescriptbun+5lint-formatarchsecuritydeployment+166/1002 days ago
code-yeongyu/oh-my-openagentpackages/omo-opencode/src/tools/background-task/AGENTS.md · 67kAGENTS.mdtypescriptbun+5arch70/1002 days ago
code-yeongyu/oh-my-openagentscript/AGENTS.md · 67kAGENTS.mdtypescriptbun+5buildtestarchdeployment80/1002 days ago
code-yeongyu/oh-my-openagentpackages/omo-opencode/src/features/claude-code-plugin-loader/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archdeploymentagent-behaviour70/1002 days ago
code-yeongyu/oh-my-openagent.agents/AGENTS.md · 67kAGENTS.mdtypescriptbun+5stylearchtesting-strategydatabase64/1002 days ago
code-yeongyu/oh-my-openagent.opencode/AGENTS.md · 67kAGENTS.mdtypescriptbun+5stylearchdo-not71/1002 days ago
code-yeongyu/oh-my-openagentAGENTS.md · 67kAGENTS.mdtypescriptbun+5setupbuildtestlint-format+1184/1002 days ago
code-yeongyu/oh-my-openagentassets/AGENTS.md · 67kAGENTS.mdtypescriptbun+5buildteststylearch88/1002 days ago
code-yeongyu/oh-my-openagentbin/AGENTS.md · 67kAGENTS.mdtypescriptbun+5teststylearch64/1002 days ago
code-yeongyu/oh-my-openagentpackages/AGENTS.md · 67kAGENTS.mdtypescriptnode+5buildtestlint-formatstyle+383/1002 days ago
code-yeongyu/oh-my-openagentpackages/agents-md-core/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archdependenciesapi48/1002 days ago
code-yeongyu/oh-my-openagentpackages/boulder-state/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archapi48/1002 days ago
code-yeongyu/oh-my-openagentpackages/claude-code-compat-core/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archagent-behaviour56/1002 days ago
code-yeongyu/oh-my-openagentpackages/comment-checker-core/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archdependenciesapi48/1002 days ago
code-yeongyu/oh-my-openagentpackages/delegate-core/AGENTS.md · 67kAGENTS.mdtypescriptbun+5stylearchdependenciesapi60/1002 days ago
code-yeongyu/oh-my-openagentpackages/git-bash-mcp/AGENTS.md · 67kAGENTS.mdtypescriptbun+5buildtestlint-formatarch+182/1002 days ago
code-yeongyu/oh-my-openagentpackages/hashline-core/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archtypesdependenciesapi48/1002 days ago
code-yeongyu/oh-my-openagentpackages/lsp-core/AGENTS.md · 67kAGENTS.mdtypescriptbun+5archmonorepo43/1002 days ago
code-yeongyu/oh-my-openagentpackages/lsp-daemon/AGENTS.md · 67kAGENTS.mdtypescriptnode+5buildtestlint-formatarch+189/100today
Diff against packages/omo-opencode/src/features/claude-code-agent-loader/AGENTS.md Diff against packages/omo-opencode/src/features/claude-code-mcp-loader/AGENTS.md Diff against packages/omo-opencode/src/tools/background-task/AGENTS.md Diff against script/AGENTS.md Diff against packages/omo-opencode/src/features/claude-code-plugin-loader/AGENTS.md Diff against .agents/AGENTS.md Diff against .opencode/AGENTS.md Diff against AGENTS.md Diff against assets/AGENTS.md Diff against bin/AGENTS.md Diff against packages/AGENTS.md Diff against packages/agents-md-core/AGENTS.md Diff against packages/boulder-state/AGENTS.md Diff against packages/claude-code-compat-core/AGENTS.md Diff against packages/comment-checker-core/AGENTS.md Diff against packages/delegate-core/AGENTS.md Diff against packages/git-bash-mcp/AGENTS.md Diff against packages/hashline-core/AGENTS.md Diff against packages/lsp-core/AGENTS.md Diff against packages/lsp-daemon/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
trick77/agents-md-syncAGENTS.md · 2AGENTS.mdtypescriptnode+4setupbuildteststyle+5100/1003 days ago
code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67kAGENTS.mdtypescriptbun+10setupbuildtestlint-format+6100/1002 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack