Works with the AI Agents you already use
ghost
Local-first task tracking, deterministic context pinning, and session handoffs for coding agents.
$5
ghost
Example session with this skill installed
I'm working on an existing Rust project using OpenCode and Claude Code.
Set up Ghost 2.0 as my persistent AI development workflow engine.
I want you to
- Analyze my existing repository and initialize Ghost without overwriting my work.
- Configure Ghost for OpenCode and Claude Code.
- Create a tracked task for implementing authentication.
- Generate a focused context packet so my coding agent only receives relevant information.
- Show me how to verify the implementation with recorded evidence.
- Prepare a handoff so I can switch coding agents or start a new session without losing progress.
Keep everything local, show the commands executed, and clearly distinguish completed work from pending work.
- Read your context and instructions
- Compiled the ghost
Ghost 2.0 — Persistent Development Workflow
Overview
Ghost 2.0 provides a persistent workflow for your existing Rust repository.
It maintains structured project state, tracks implementation tasks, prepares focused context for coding agents, records verification evidence, and supports handoffs between OpenCode and Claude Code.
Ghost is local-first: It does not require an LLM API key, make model calls, or upload your project data.
1. Initialize the project
Run the following from the repository root:
ghost init --adapter opencode --adapter claude
ghost adapters
ghost status
Ghost detects the existing repository and prepares agent-specific project instructions.
Project workflow files
| File | Purpose |
|---|---|
.ghost/state.json | Canonical project state |
STATE.md | Human-readable progress |
.ghost/project.json | Detected repository information |
.ghost/tasks/ | Persistent task records |
.ghost/events.jsonl | Local workflow history |
AGENTS.md | OpenCode instructions |
CLAUDE.md | Claude Code instructions |
Existing generated files are protected against silent overwrites. If Ghost detects a conflict, review the changes before choosing whether to force regeneration.
2. Create a persistent development task
Let's track authentication as an implementation task.
ghost task add "Implement authentication" \
--ref src/ \
--check "cargo test"
Ghost creates a structured task record with a persistent identifier.
For this example, assume the returned identifier is TASK-0001.
Start the task
ghost task start TASK-0001
ghost task show TASK-0001
The task can now be tracked across development sessions.
Task workflow
| Stage | Meaning |
|---|---|
| Backlog | Task created |
| Ready | Prepared for implementation |
| In progress | Active development |
| Verification | Implementation awaiting checks |
| Done | Completed through the documented workflow |
| Blocked | Cannot proceed |
| Cancelled | Work discontinued |
Ghost enforces task-state transitions rather than treating every task as a free-form checklist.
3. Generate focused context
Instead of repeatedly asking an AI agent to inspect the entire repository, generate a task-specific context packet.
ghost context --task TASK-0001 --budget 1200
The packet can include
- Current objective and task references
- Acceptance checks
- Relevant source-file excerpts
- Project decisions and blockers
- Recent changes and verification history
The context is selected deterministically using task references, Git changes, and repository metadata.
Why this matters: Your coding agent receives a more focused starting point, while Ghost retains persistent state outside the conversation.
Actual token savings depend on the project and have not yet been independently benchmarked.
4. Verify implementation with evidence
After the coding agent implements the feature, inspect the intended verification command.
Then run
ghost verify --approve -- cargo test
Ghost records evidence such as the command, execution result, timing, revision information, and source hashes.
Review available verification records
ghost verify --list
If tracked source files change, Ghost can flag previously recorded evidence as stale.
Important: Ghost records what was checked. It does not guarantee that passing tests prove the entire implementation is correct. Verification commands are not sandboxed.
5. Handoff to another AI coding agent
Before ending the session, create a persistent handoff:
ghost handoff \
--note "Authentication task in progress; review verification evidence before continuing"
The handoff records project revision, task information, workflow state, and evidence references.
When returning with another agent or a fresh session:
ghost resume
ghost status
Ghost compares the saved handoff with the current repository revision.
If the revision changed, it reports the handoff as stale instead of silently trusting outdated context.
This helps prevent the next agent from relying on an inaccurate account of previous work.
6. Continue development
The next coding session can use the same Ghost project state.
| Capability | Ghost 2.0 |
|---|---|
| Persistent project state | Supported |
| Structured task tracking | Supported |
| Task-specific context packets | Supported |
| OpenCode integration | Project instructions and commands |
| Claude Code integration | Project instructions and commands |
| Codex integration | Project instructions and file-based next steps |
| Verification evidence | Supported |
| Cross-session handoffs | Supported |
| Automatic LLM execution | Not included |
| Cloud account required | No |
Final Result
Ghost establishes a reusable development workflow around the existing repository.
The project gains
- A durable source of truth for development progress
- Structured tasks with explicit transitions
- Focused context packets for supported coding agents
- Recorded verification evidence
- Revision-aware handoffs between sessions
- Local project files that remain accessible independently of the AI conversation
Next Steps
- Continue implementing the authentication task with your chosen coding agent.
- Run the relevant tests and inspect the evidence.
- Update the task through the supported state transitions.
- Create a handoff before switching sessions or agents.
- Use
ghost statusto review current progress.
Ghost 2.0 — One project. Persistent context. Multiple coding agents.
Connects securely to your tools. The creator never sees your data.
About this skill
Context window bloat and lost instructions between agent sessions break complex coding workflows. When you switch models or start a new chat, the agent loses track of what was tested, what is blocked, and what files actually matter.
This skill installs and drives Ghost, a local CLI tool that manages task state, deterministic context packets, and verification evidence directly in your repository. It ensures your agent follows a disciplined loop of starting a task, recording progress, and generating a handoff snapshot that survives session resets.
What it does
- Task Management: Tracks outcomes, file references, and check commands in a local
.ghost/directory. - Context Pinning: Generates deterministic context packets based on specific tasks and token budgets.
- Verification Evidence: Records local test results and marks them stale if source files change.
- Session Handoffs: Creates snapshots of the current state and pending work to resume in new chats.
- Automated Scaffolding: Generates
AGENTS.md,CLAUDE.md, and project specs for Rust, Python, and Node.
How it works
- Initialize: Run
ghost initto detect your stack and scaffold the local workflow files. - Define: Create a task with
ghost task addspecifying the file references and the success command. - Execute: Start the task and use
ghost contextto pull only the relevant files and state into the agent's view. - Verify: Run
ghost verifyto execute checks and capture local evidence of completion. - Snapshot: Use
ghost handoffto save a notes-based progress report for the next session.
Frameworks & tools
Works with Rust, Python, and Node.js repositories. Supports Linux x86_64, macOS arm64, and macOS x86_64. Requires Cargo if building from source.
Why this beats prompting it yourself
Manual instructions often result in "context drift" where agents ignore previous test failures or hallucinate task status. This skill enforces a CLI-backed source of truth, making the agent's behavior predictable across different models and restarts.
Use cases
- Resuming a complex refactor across multiple chat sessions or IDE restarts.
- Providing proof of work via local verification evidence before committing.
- Managing multi-step migrations where only specific files should be in context.
- Standardizing agent behavior across a team using a shared
.ghost/state.
Known limitations
Does not support Windows. Does not perform git pushes or remote sync. Verification evidence is local and unsigned. Requires user approval for all shell-active commands.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 15 days ago
- Accounts
GitHub
- Software
Python
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.