Skip to content

docs(gitbooks v5): restructure features, simplify subconscious, README polish, default auto-fetch to 20 min#1386

Merged
senamakel merged 16 commits into
tinyhumansai:mainfrom
senamakel:feat/docs-v5
May 9, 2026
Merged

docs(gitbooks v5): restructure features, simplify subconscious, README polish, default auto-fetch to 20 min#1386
senamakel merged 16 commits into
tinyhumansai:mainfrom
senamakel:feat/docs-v5

Conversation

@senamakel
Copy link
Copy Markdown
Member

@senamakel senamakel commented May 9, 2026

Summary

GitBooks + README docs pass, plus a small core default change.

  • Default auto-fetch tick: 5 min → 20 min. TICK_SECONDS 300 → 1200 in src/openhuman/composio/periodic.rs (test upper bound bumped to 3600). All docs updated to match.
  • Restructure GitBooks features.
    • Move `features/auto-fetch.md` under `features/integrations/` (now a sub-page of Third-party Integrations).
    • Move `features/local-ai.md` under `features/model-routing/` (now a sub-page of Automatic Model Routing).
    • Delete the entire `settings-reference/` section (account-and-security, ai-and-skills, automation-and-channels).
    • Update SUMMARY.md, all 18+ cross-links, and the public README's gitbook URLs.
  • Simplify the Subconscious page. Strip code paths, RPC endpoint table, full SQLite schema, and decision-enum identifiers; keep concepts at a high level (tick lifecycle, decisions, two-model split, approval gate, failure handling, config, UI).
  • Rewrite the Developing overview. Regroup pages by intent (Start here / Testing / Shipping / Going deeper / Contributing); fix yarn → pnpm; drop dead `docs/PROMPT_INJECTION_GUARD.md` link.
  • README cleanup. Add a "Context in minutes, not weeks" section contrasting Hermes/OpenClaw cold-start with OpenHuman's connect-and-sync flow. Drop em-dashes throughout. Drop the redundant "One subscription, many providers" bullet. Merge native tools / voice / model routing / local AI into a single "Batteries included" bullet. Combine 118+ integrations + auto-fetch into one bullet. Expand TokenJuice description.
  • Asset cleanup. Remove 29 unreferenced files from `gitbooks/.gitbook/assets/`. Fix the broken V17 image reference in `features/privacy-and-security.md` (period vs em-dash filename mismatch).

Test plan

  • GitBook builds without broken-link warnings.
  • Renamed pages render at their new URLs:
    • `/features/integrations` (index) and `/features/integrations/auto-fetch`
    • `/features/model-routing` (index) and `/features/model-routing/local-ai`
  • Settings Reference section no longer appears in the sidebar.
  • Subconscious page renders cleanly with no dangling code references.
  • V17 Privacy Shield image renders on the Privacy & Security page.
  • `cargo test --manifest-path Cargo.toml` passes (covers `tick_seconds_is_sane_default`).

Summary by CodeRabbit

  • Documentation

    • Restructured feature documentation with improved organization and nested sections
    • Updated auto-fetch sync interval from 5 to 20 minutes
    • Removed outdated settings reference pages
  • Bug Fixes

    • Improved git pre-push hook to properly handle interrupt signals

senamakel and others added 15 commits May 8, 2026 21:54
The runtime code (src/main.rs::resolve_environment, app/src-tauri's
resolve_sentry_environment, cef_profile::default_root_dir_name,
app/src/utils/config.ts) already treats production as the default
when OPENHUMAN_APP_ENV is unset — the only thing pointing new
contributors at staging was .env.example itself.

Comment out OPENHUMAN_APP_ENV / VITE_OPENHUMAN_APP_ENV / BACKEND_URL
/ VITE_BACKEND_URL in .env.example and app/.env.example so a fresh
copy of the example file resolves to production through the runtime
defaults. Uncomment + set staging only when you actually want the
staging backend.

Also fix gitbooks/developing/cloud-deploy.md which incorrectly
documented the default as 'staging'.
The Use Cases pages were thin and duplicated framing already
covered by the feature pages and the Welcome doc. Remove the
directory and the matching SUMMARY.md section.
The chapter-per-file structure under gitbooks/developing/frontend/
and gitbooks/developing/tauri-shell/ was hard to scan and made the
sidebar long. Concatenate each set into one consolidated page with
each former chapter as a top-level section:

- gitbooks/developing/frontend.md  (architecture, state, services,
  providers, pages & routing, components, hooks & utilities)
- gitbooks/developing/tauri-shell.md  (architecture, IPC commands,
  core bridge & helpers)

Strip the per-chapter "Previous / Next" navigation footers since
they no longer make sense, and rewire the few cross-links that
pointed at the old chapter paths.

Update SUMMARY.md, CLAUDE.md, AGENTS.md, and .claude/rules/README.md
to point at the new flat paths.
The Product section duplicated framing already covered by feature
pages — Skills & Integrations re-explained third-party
integrations, Intelligence re-explained the Memory Tree UI,
Messaging Channels was a paragraph that fits inside the
integrations doc, and Cloud Deploy / Subconscious / Architecture
had drifted between Product and Developing.

Net moves:

- features/integrations.md absorbs skills-and-integrations.md and
  messaging-channels.md (new "Messaging channels" + "Skills" +
  "Native voice and tools" sections + a "How connections work"
  status table).
- features/obsidian-wiki/memory-tree.md absorbs intelligence.md
  (new "In the desktop app — the Intelligence tab" section).
- product/architecture.md, platform.md, privacy-and-security.md,
  subconscious.md  -> features/.
- product/cloud-deploy.md -> developing/cloud-deploy.md (it was
  always a contributor doc).
- product/intelligence.md, messaging-channels.md, skills-and-
  integrations.md deleted (content merged).
- gitbooks/product/ directory removed entirely.

Update SUMMARY.md (drop Product section, fold pages into
Features and Developing), README.md (rewire the messaging-
channels / privacy & security links), gitbooks/README.md, the
overview/getting-started + overview/how-it-works cross-links,
and developing/README.md (point Subconscious + high-level
Architecture at the new locations).
…ce em-dashes

- Repoint repo-root references that go up one level too few from
  inside gitbooks/developing/ (../docs -> ../../docs, ../.do ->
  ../../.do, ../.github -> ../../.github, ../src -> ../../src,
  ../docker-compose.yml -> ../../docker-compose.yml).
- Repoint cross-links that survived the frontend/tauri-shell
  flattening: ../frontend/services.md -> frontend.md#services-layer,
  ../ARCHITECTURE.md -> architecture.md, ../src-tauri/01-architecture.md
  -> tauri-shell.md.
- Strip /broken/pages/<id> placeholders that the GitBook UI left
  behind for since-deleted pages (Skills, Conscious Loop, Webview
  Integration, Memory Context Window, Install, Auto-update).
- Drop the SKILL-WORKING-MEMORY paragraph in developing/architecture.md
  (target file deleted).
- Delete duplicate gitbooks/overview/platform.md (only
  features/platform.md is in SUMMARY).
- Reduce em-dashes 311 -> 61 across prose (skip code fences,
  tables, frontmatter, headings, horizontal rules).

After this pass, gitbooks/ has 0 broken internal links and 0
stale GitHub blob/tree links.
…ve content clarity

- Replaced outdated images in README.md and gitbooks/README.md with a new demo image.
- Reformatted the product comparison table for better readability.
- Removed several obsolete screenshot files to streamline assets.
- TICK_SECONDS 300 → 1200 (composio/periodic.rs); bump test upper bound to 3600
- Update README + gitbooks references from 5 min to 20 min
- Add "Memory in minutes, not weeks" section contrasting OpenHuman's connect-and-sync flow with cold-start agents (Hermes, OpenClaw)
- Nest auto-fetch under integrations (features/integrations/auto-fetch.md)
- Nest local-ai under model-routing (features/model-routing/local-ai.md)
- Remove settings-reference section (account-and-security, ai-and-skills, automation-and-channels)
- Strip code/RPC references from subconscious page; keep concepts high-level
- README: replace em-dashes, drop "One subscription, many providers" bullet, merge native tools/voice/routing/local-ai into "Batteries included", combine integrations + auto-fetch into one bullet, expand TokenJuice description with concrete compaction examples
- Update all cross-links to the new paths
…oping overview

- Remove 29 unreferenced files from gitbooks/.gitbook/assets/ (only demo.png, image.png, V17 — Privacy Shield@2x.png, memory-tree-pipeline (1).excalidraw still in use)
- Fix broken V17 image reference in features/privacy-and-security.md (period → em-dash to match the actual filename)
- Rewrite developing/README.md: regroup pages by intent (Start here / Testing / Shipping / Going deeper / Contributing), update yarn → pnpm, drop dead docs/ links
@senamakel senamakel requested a review from a team May 9, 2026 06:11
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 9, 2026

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e42008f3-0f0c-4f8b-9ec0-040f41ee0365

📥 Commits

Reviewing files that changed from the base of the PR and between 0a92015 and 933dc7f.

⛔ Files ignored due to path filters (28)
  • gitbooks/.gitbook/assets/2. How It Works@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/25. Distributed Teams@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/6. Inline Autocomplete@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/9. Skills & Integrations@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V02 — Two Innovations@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V04_The_ANI_Problem@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V05 — Performance Benchmarks@2x (1).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V05 — Performance Benchmarks@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V07_Purkinje_Cell_to_Subconscious@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V08_How_Pieces_Connect@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V09 — Neocortex Hero@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V10_Knowledge_Graph_Visualization@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V11 — Tiered Memory Deep Dive@2x (1) (1).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V11 — Tiered Memory Deep Dive@2x (1) (2).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V11 — Tiered Memory Deep Dive@2x (1).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V11 — Tiered Memory Deep Dive@2x (2).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V11 — Tiered Memory Deep Dive@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V12_Neuroscience_of_Forgetting@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V13_Subconscious_Loop@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V14_Mirror_Test_Concept@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V15 — Three Pillars@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/V16_Data_Flow_Pipeline@2x.png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/image (1) (1).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/image (1).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/image (2).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/image (3).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/image (4).png is excluded by !**/*.png
  • gitbooks/.gitbook/assets/screen.png is excluded by !**/*.png
📒 Files selected for processing (26)
  • .husky/pre-push
  • README.md
  • gitbooks/.gitbook/assets/memory-tree-pipeline.excalidraw
  • gitbooks/README.md
  • gitbooks/SUMMARY.md
  • gitbooks/developing/README.md
  • gitbooks/features/architecture.md
  • gitbooks/features/integrations/README.md
  • gitbooks/features/integrations/auto-fetch.md
  • gitbooks/features/model-routing/README.md
  • gitbooks/features/model-routing/local-ai.md
  • gitbooks/features/native-tools.md
  • gitbooks/features/obsidian-wiki/README.md
  • gitbooks/features/obsidian-wiki/memory-tree-pipeline.md
  • gitbooks/features/obsidian-wiki/memory-tree.md
  • gitbooks/features/platform.md
  • gitbooks/features/privacy-and-security.md
  • gitbooks/features/subconscious.md
  • gitbooks/features/token-compression.md
  • gitbooks/features/voice.md
  • gitbooks/overview/getting-started.md
  • gitbooks/overview/how-it-works.md
  • gitbooks/settings-reference/account-and-security.md
  • gitbooks/settings-reference/ai-and-skills.md
  • gitbooks/settings-reference/automation-and-channels.md
  • src/openhuman/composio/periodic.rs

📝 Walkthrough

Walkthrough

This PR updates the periodic auto-fetch scheduler interval from 5 to 20 minutes in both code and documentation, reorganizes GitBook documentation structure with nested feature sections, removes three legacy settings-reference pages, rewrites subconscious loop documentation from implementation-focused to conceptual, enhances the pre-push Git hook with signal handling, and harmonizes cross-reference paths throughout the feature documentation set.

Changes

Auto-fetch Scheduler Implementation & Cadence Updates

Layer / File(s) Summary
Scheduler Code Implementation
src/openhuman/composio/periodic.rs
TICK_SECONDS increased from 300 to 1200 seconds (5 to 20 minutes); unit test maximum bound updated to 3600 seconds.
Auto-fetch Documentation Cadence Updates
gitbooks/features/integrations/auto-fetch.md, gitbooks/features/integrations/README.md
Auto-fetch scheduler documentation updated to reflect 20-minute tick: cadence descriptions, tradeoff explanations, post-OAuth timing, and documentation path references refreshed throughout.
Feature Documentation Schedule References
gitbooks/features/architecture.md, gitbooks/features/obsidian-wiki/memory-tree.md, gitbooks/features/obsidian-wiki/memory-tree-pipeline.md, gitbooks/features/platform.md, gitbooks/features/token-compression.md
Architecture, platform, memory-tree, and token-compression docs updated to reference 20-minute auto-fetch interval and reorganized documentation paths.
Public README and Overview Schedule Updates
README.md, gitbooks/README.md, gitbooks/overview/getting-started.md, gitbooks/overview/how-it-works.md
Root README, GitBook README, getting-started, and how-it-works documentation updated with 20-minute auto-fetch intervals in user-facing text and schedule-related diagrams.
Cross-Reference Path Harmonization
gitbooks/features/integrations/*.md, gitbooks/features/model-routing/*.md, gitbooks/features/obsidian-wiki/*.md, gitbooks/features/privacy-and-security.md, gitbooks/features/voice.md, gitbooks/features/native-tools.md, gitbooks/overview/getting-started.md, gitbooks/overview/how-it-works.md
Feature and overview documentation cross-references updated throughout to point to reorganized paths: integrations/README.md, model-routing/README.md, model-routing/local-ai.md with relative-path prefixes.

Documentation Architecture & Content Restructuring

Layer / File(s) Summary
Git Hook Signal Handling
.husky/pre-push
Pre-push hook now installs INT/SIGTERM handler via abort() function to immediately kill process group on interrupt with exit code 130.
GitBook Table of Contents Reorganization
gitbooks/SUMMARY.md
"Auto-fetch from Integrations" nested under "Third-party Integrations"; "Local AI (optional)" relocated as subsection under "Automatic Model Routing" with updated path targets.
Legacy Settings Documentation Removal
gitbooks/settings-reference/account-and-security.md, gitbooks/settings-reference/ai-and-skills.md, gitbooks/settings-reference/automation-and-channels.md
Three settings-reference pages entirely removed with all frontmatter, feature descriptions, and subsections.
Developer & Contributing Documentation Rewrite
gitbooks/developing/README.md
Substantially restructured with updated frontmatter, refreshed "Where things live" table, and reorganized navigation: numbered "Start here" list, plus dedicated sections for Testing, Shipping, Going deeper, and Contributing.
Subconscious Loop Conceptual Documentation Rewrite
gitbooks/features/subconscious.md
Completely rewritten from architecture/implementation focus to conceptual task-evaluation system: tick mechanics, task types (system vs user), Skip/Act/Escalate outcomes, approval gates for write-intent tasks, failure handling, and simplified desktop-app configuration/UI descriptions.
Public README Feature & Status Updates
README.md
Early Beta status bolded; feature bullets rewritten with expanded descriptions for UI-first approach, integrations/auto-fetch, memory tree integration, and batteries-included positioning; comparison table updated to 20-minute sync claim.
Asset File Cleanup
gitbooks/.gitbook/assets/memory-tree-pipeline.excalidraw
Removed excalidraw diagram asset no longer referenced in updated documentation structure.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A rabbit hops through twenty minutes now,
Where five-minute ticks once danced,
GitBooks nest so tidy, paths align,
And old settings fade to make room for new—
The warren's memory grows ever richer. 🌿✨


Comment @coderabbitai help to get the list of available commands and usage tips.

Each pnpm step was wrapped in 'set +e; pnpm ...; EXIT=$?; set -e'. When
Ctrl+C killed the running pnpm (exit 130), the capture treated it as a
normal failure and ran the next step. Add an INT/TERM trap that kills the
process group and exits 130 so interrupts actually stop the hook.
@senamakel senamakel merged commit 7204881 into tinyhumansai:main May 9, 2026
12 of 13 checks passed
This was referenced May 9, 2026
AusAgentSmith pushed a commit to AusAgentSmith/openhuman that referenced this pull request May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant