ha-data-stores

ha-data-stores is a skill for Claude Code, Codex from shiwenwen/hope-agent. It costs 115 tokens per session (1,753 once invoked), scanned A, original, MIT.

A map of Hope Agent’s local data stores and a read-only method for inspecting sessions, messages, memory, logs, background jobs, knowledge indexes, and settings.

In plain words
What is it for?
Use it to locate or inspect Hope Agent data and to diagnose stored state when the product’s dedicated query tools are insufficient.
Why use it?
It helps find persisted application data without changing or damaging the local databases.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to locate or inspect Hope Agent data and to diagnose stored state when the product’s dedicated query tools are insufficient.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shiwenwen/hope-agent/ha-data-stores
About the project

Hope Agent is a cross-device personal AI assistant that remembers context, uses tools, and continues working toward goals through dynamically organized workflows. Individuals use it from desktop, web, server, or messaging environments to manage projects, knowledge, designs, and long-running tasks. The catalogue add-ons extend its agent workflows and capabilities.

shiwenwen/hope-agent · 1,860 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shiwenwen/hope-agent --skill ha-data-stores
Clone the repo
git clone --depth 1 https://github.com/shiwenwen/hope-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-data-stores

README.md
[![agentmods](https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-data-stores/github.svg)](https://agentmods.dev/skills/shiwenwen/hope-agent/ha-data-stores)
Your own site
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-data-stores"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-data-stores/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ha-data-stores

Your own site · 80×15
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-data-stores"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-data-stores.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,753 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.01753
Opus 5.5 $0.00046 $0.00701
Sonnet 5.5 $0.00023 $0.00351
Haiku 4.5 $0.00012 $0.00175

Measured 1mo ago against content hash 968069e20d1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ha-data-stores scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ha-data-stores/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hope Agent Data Stores

Use this skill when you need to locate or inspect Hope Agent's persisted local data. Prefer product tools first; use direct SQLite only for diagnostics or ad-hoc analysis that existing tools do not cover.

Priority order

  1. Use dedicated model tools when they answer the question:
    • sessions_search for finding exact details in current or historical chat messages.
    • sessions_history for paginated transcript reading once a session is known.
    • recall_memory / memory_get for user/project/agent memory.
    • note_* / knowledge_recall for attached knowledge spaces.
    • get_settings for AppConfig settings.
    • job_status for background job state visible to the current session.
  2. Use read-only SQLite queries only when a dedicated tool is missing, too coarse, or the task is diagnostic/audit work.
  3. Never mutate app databases directly. Do not run UPDATE, DELETE, INSERT, DROP, CREATE, ALTER, VACUUM, REINDEX, or ATTACH.

Data root

All app-managed data lives under the Hope Agent data root:

  • If HA_DATA_DIR is set: use it exactly.
  • Otherwise: ~/.hope-agent.

Shell helper:

ROOT="${HA_DATA_DIR:-$HOME/.hope-agent}"

Use this helper instead of hard-coding ~/.hope-agent when running queries.

SQLite read-only patterns

Use the sqlite CLI with -readonly:

ROOT="${HA_DATA_DIR:-$HOME/.hope-agent}"
sqlite3 -readonly -cmd ".headers on" -cmd ".mode column" "$ROOT/sessions.db" \
  "SELECT id, title, agent_id, updated_at FROM sessions ORDER BY updated_at DESC LIMIT 10;"

Python fallback:

python3 - <<'PY'
import os, sqlite3
root = os.environ.get("HA_DATA_DIR") or os.path.expanduser("~/.hope-agent")
path = os.path.join(root, "sessions.db")
con = sqlite3.connect(f"file:{path}?mode=ro", uri=True)
for row in con.execute("SELECT id, title, updated_at FROM sessions ORDER BY updated_at DESC LIMIT 10"):
    print(row)
PY

Main stores

Store Path Purpose
Sessions $ROOT/sessions.db Sessions, messages, chat context snapshots, projects, knowledge registry/bindings, channel mappings, subagent runs, tasks, learning events
Memory $ROOT/memory.db Long-term memories, memory FTS/vector data, Dreaming claims/evidence/profile data
Logs $ROOT/logs.db Structured app logs emitted by app_info! / app_warn! / app_error! / app_debug!
Background jobs $ROOT/background_jobs.db Unified background job cache for async tools and subagent/group projections
Cron $ROOT/cron.db Scheduled tasks managed by manage_cron
Wakeups $ROOT/wakeups.db Agent self-scheduled wakeups from schedule_wakeup
Recap $ROOT/recap/recap.db Cached recap/report facets and summaries
Knowledge index $ROOT/knowledge/index.db Rebuildable note/chunk/link/tag search cache; real notes are Markdown files
Canvas $ROOT/canvas/canvas.db Canvas projects and versions
Local model jobs $ROOT/local_model_jobs.db Ollama/local-model install, pull, preload jobs
Local LLM cache $ROOT/local_llm_library_cache.db Cached Ollama Library search/tag metadata

Read the full file on GitHub · 194 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 194 lines · 115 tokens per session scan A 968069e20d1f

Subscribe to this mod's changes

ha-data-stores is a skill published in the GitHub repository shiwenwen/hope-agent (1,860 stars, last pushed yesterday), licensed MIT. It adds 115 tokens to every session and 1,753 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tanstack-ai-memory-redis

Use when wiring redis() from @tanstack/ai-memory/redis in production — covers client setup (ioredis or node-redis via fromNodeRedis), the storage model, client-side ranking limits, and troubleshooting.

TanStack/ai · 52 tokens

memory-generation

A guide for deciding when the assistant should create a memory about something the user explicitly wants remembered or about a useful lesson.

kawayiYokami/P-ai · 44 tokens

self_awareness

Ground self-referential answers in the agent's actual filesystem. Use when the user asks who the agent is, what it can do, what it knows, what it remembers, what it has built, what services are connected, or what rules it follows.

asgeirtj/system_prompts_leaks · 56 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

consolidate-memory

Reflective pass over your memory files — merge duplicates, fix stale facts, prune the index.

asgeirtj/system_prompts_leaks · 24 tokens

article-writer

Multi-style article creation skill. Supports 5 writing styles (deep analysis, practical guide, story-driven, opinion, news brief), including complete workflow: material collection → outline → content → formatting. Activated when users mention "write article", "write post", "create", or "draft".

netease-youdao/LobsterAI · 62 tokens