{"_id":"@booga/banchor","_rev":"2-27dc25bc8407cd697dd9151ebcaba892","name":"@booga/banchor","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.1":{"name":"@booga/banchor","version":"0.1.1","keywords":["cli","agent","prompt","lookup"],"license":"MIT","_id":"@booga/banchor@0.1.1","maintainers":[{"name":"dreaktor","email":"me@dreaktor.com"}],"homepage":"https://github.com/bvasilenko/bAnchor#readme","bugs":{"url":"https://github.com/bvasilenko/bAnchor/issues"},"bin":{"banchor":"bin/banchor.js"},"dist":{"shasum":"ab555acd85a1aab840c6706e6bf1eba0e04b560d","tarball":"https://registry.npmjs.org/@booga/banchor/-/banchor-0.1.1.tgz","fileCount":5,"integrity":"sha512-EomD9n8dBYzjIVR1yg87aVdCAl0CDzj7uolEi35fJ4RRdHYz4pLBxoA3yIfALcBaCTNzgshij+06yZDS+Z8opQ==","signatures":[{"sig":"MEUCIQDl6y8g6/2vE6kR8gc8DkKtR+mT7WDcMgsCIsLdDLdxqgIgbgpa5GcZ6X3xTmZnbCiqVwXLhWaUXP1cb72q7FK1d4g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4932},"gitHead":"f5d80f6f5f42c5918b8951209d767f511fe7987f","scripts":{"postinstall":"node ./bin/install.js"},"_npmUser":{"name":"dreaktor","email":"me@dreaktor.com"},"repository":{"url":"git+https://github.com/bvasilenko/bAnchor.git","type":"git"},"_npmVersion":"10.9.3","description":"Prompt lookup tool. Agent names a task class from a fixed list; banchor returns the prompt for that task class. The prompt tells the agent how to check the task against a stated mission.","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/banchor_0.1.1_1781268549981_0.9585017364056003","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@booga/banchor","version":"0.2.0","description":"Prompt lookup tool. Agent names a task class from a fixed list; banchor returns the prompt for that task class. The prompt tells the agent how to check the task against a stated mission.","bin":{"banchor":"bin/banchor.js"},"scripts":{"postinstall":"node ./bin/install.js"},"keywords":["cli","agent","prompt","lookup"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bvasilenko/bAnchor.git"},"_id":"@booga/banchor@0.2.0","gitHead":"0779064a8c01605a15aaa043478b443c5acc5d60","bugs":{"url":"https://github.com/bvasilenko/bAnchor/issues"},"homepage":"https://github.com/bvasilenko/bAnchor#readme","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-TgaqOGb2I7L09rXLykXc7JPClDd4FIJZoh7RVJ4IKXv2jWPBwpr+iU2sGPasHv7VcvuKsEYY4QJLJYwm5BtK/g==","shasum":"c989eaf89ddfb9f60f06cc0097456c35e23cdf91","tarball":"https://registry.npmjs.org/@booga/banchor/-/banchor-0.2.0.tgz","fileCount":5,"unpackedSize":5896,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBg84UpCxG22YJFWfucu5elpTIrArpWKXhpbOjmxcG5kAiEA9XEons4ECHDy3qz2zkB+NIrujTOb9m5nm/Z4nDWPXLw="}]},"_npmUser":{"name":"dreaktor","email":"me@dreaktor.com"},"directories":{},"maintainers":[{"name":"dreaktor","email":"me@dreaktor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/banchor_0.2.0_1782131837125_0.05805943425289373"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-12T12:49:09.791Z","modified":"2026-06-22T12:37:17.401Z","0.1.1":"2026-06-12T12:49:10.103Z","0.2.0":"2026-06-22T12:37:17.289Z"},"bugs":{"url":"https://github.com/bvasilenko/bAnchor/issues"},"license":"MIT","homepage":"https://github.com/bvasilenko/bAnchor#readme","keywords":["cli","agent","prompt","lookup"],"repository":{"type":"git","url":"git+https://github.com/bvasilenko/bAnchor.git"},"description":"Prompt lookup tool. Agent names a task class from a fixed list; banchor returns the prompt for that task class. The prompt tells the agent how to check the task against a stated mission.","maintainers":[{"name":"dreaktor","email":"me@dreaktor.com"}],"readme":"# banchor\n\nFor agents that drift mid-task. banchor reads the agent's working session against the mission rail (goals, values, anchors declared at session start) and emits UNANCHORED when the next step would drift away from the stated mission. The task taxonomy is closed (7 classes at v0.1); the prompt library that powers anchoring evolves continuously via empirical-lift evaluation, so the same `banchor induct` invocation gets stricter at catching mission drift as the corpus matures.\n\n\nPrompt lookup tool. Agent names a task class from a fixed list; banchor returns the prompt for that task class. The prompt tells the agent how to check the task against a stated mission.\n\nAnchors a task description against a named or filesystem-rooted mission, classifies the task into a typed `TaskClass`, writes the verdict on stdout, exits with a discriminating code so the calling agent can branch.\n\n```\nbanchor induct <task>             classify a task + emit next-step directive; exit 0 / 1 / 2 / 64\nbanchor task-classes              list the 11 supported task-class identifiers\nbanchor init                      scaffold a mission alias file in the current directory\nbanchor update                    self-update to the latest published version\nbanchor tail                      stream recent next-step transcripts\nbanchor explain                   print taxonomy + exit-code reference\n```\n\nExit code contract: `0` task anchored to mission, `1` task NOT anchored, `2` internal error, `64` malformed input.\n\n## Install\n\n```sh\ncargo install --git https://github.com/bvasilenko/bAnchor\n```\n\n## Use\n\n```sh\nbanchor induct \"rename HostContext::L2a to HostContext::CliL2a\" \\\n    --mission ./missions/v0.1-stable.toml\n# stdout: ANCHORED to mission \"v0.1-stable\"; task-class refactor\n# exit: 0\n\nbanchor induct \"rewrite onboarding copy in punchier tone\" \\\n    --mission brand-voice\n# stdout: ANCHORED to alias mission \"brand-voice\"; task-class rewrite\n# exit: 0\n```\n\nThe `--mission <path-or-name>` flag resolves a filesystem path (starts with `/`, `./`, or `../`) or a named alias. Supply evidence with repeatable `--evidence <id>=<value>` flags. Optional flags: `--manifest <path>`, `--json`, `--quiet`, `--reason <text>`.\n\n## Task taxonomy\n\nClosed 11-variant `TaskClass` enum. The taxonomy is fixed at this version; widening lands in a later version.\n\n| Category | Variants |\n|---|---|\n| Engineering | `refactor`, `migration`, `feature`, `bug-fix`, `spike`, `research`, `scaffolding` |\n| Editorial | `draft`, `rewrite`, `localize`, `brand-conform` |\n\n`banchor task-classes` prints the full list.\n\n\n\n## Corpus\n\nThe v0 prompt corpus is hand-authored fixture material. It seeds the 11 task-class directives and will be replaced by an evolved corpus once the evaluation harness runs and produces entries meeting the empirical-lift threshold. Until then every `banchor induct` invocation returns a fixture directive and exits 1 (UNANCHORED), which is the correct signal at this tier.\n\nSet `BSUITE_UPDATE_BASE_URL` to point `banchor update` at a manifest endpoint when one is available.\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}