Commit 5cd164e
committed
refactor: flagbind batch helpers and convention sweep
Add parallel-slice batch functions to flagbind (BindStringFlagsP,
BindStringFlags, BindBoolFlags, BindBoolFlagsP, BindStringFlagShorts,
BindStringFlagsPDefault) replacing repetitive one-at-a-time flag
registrations across 8 CLI command files.
Convention sweep:
- hub: rename files (entry_validate→validate_entry, errcheck→err_check),
remove const aliases, move magic numbers to config/hub and config/entry,
fix predicate naming (isEOF→eof, isAuthErr→authErr)
- initialize: rename claudecheck→claude_check, details→detail
- steering/types: align docstrings with conventions
- compliance: fix TestNoSecretsInTemplates false positive on YAML keys
- golangci: extend G101 exclusion to all embed/text/ DescKey files
- sysinfo: add missing nolint:gosec for G204 on vm_stat
Spec: specs/flagbind-batch-and-convention-sweep.md
Signed-off-by: Jose Alekhinne <jose@ctx.ist>1 parent 6ba64f0 commit 5cd164e
505 files changed
Lines changed: 19525 additions & 7584 deletions
File tree
- .context
- handover
- docs
- blog
- cli
- home
- operations
- recipes
- reference
- security
- internal
- assets
- claude
- hooks
- skills
- ctx-config
- ctx-doctor
- ctx-journal-enrich-all
- ctx-journal-enrich
- ctx-pause
- commands
- text
- hooks/messages
- block-dangerous-command
- check-ceremony
- check-reminder
- check-resource
- read/lookup
- tpl
- audit
- bootstrap
- cli
- add/cmd/root
- agent/core
- budget
- hub
- backup
- bootstrap
- connection
- cmd
- listen
- publish
- register
- status
- subscribe
- sync
- core
- config
- listen
- publish
- register
- render
- status
- subscribe
- sync
- event
- hub/core
- peer
- server
- status
- initialize
- cmd/root
- core/claude_check
- journal/cmd
- importer
- source
- loop/cmd/root
- message
- cmd
- edit
- list
- reset
- root
- show
- notify
- pad
- cmd
- edit
- tag
- prune
- remind
- resource
- serve
- setup/cmd/root
- stats
- steering/cmd/initcmd
- system
- cmd
- block_dangerous_command
- check_ceremony
- check_hub_sync
- check_reminder
- check_resource
- events
- resources
- core
- ceremony
- hubsync
- provenance
- compliance
- config
- embed
- cmd
- flag
- text
- entry
- flag
- hook
- hub
- steering
- sysinfo
- err
- hub
- reminder
- serve
- exec/sysinfo
- flagbind
- hub
- log/event
- rc
- steering
- sysinfo
- write
- connect
- hub
- initialize
- provenance
- serve
- site
- assets
- javascripts
- stylesheets/modern
- blog
- 2026-01-27-building-ctx-using-ctx
- 2026-02-01-ctx-v0.2.0-the-archaeology-release
- 2026-02-01-refactoring-with-intent
- 2026-02-03-the-attention-budget
- 2026-02-04-skills-that-fight-the-platform
- 2026-02-05-you-cant-import-expertise
- 2026-02-07-the-anatomy-of-a-skill-that-works
- 2026-02-08-not-everything-is-a-skill
- 2026-02-09-defense-in-depth-securing-ai-agents
- 2026-02-12-how-deep-is-too-deep
- 2026-02-14-irc-as-context
- 2026-02-14-parallel-agents-with-worktrees
- 2026-02-15-ctx-v0.3.0-the-discipline-release
- 2026-02-15-eight-ways-a-hook-can-talk
- 2026-02-15-why-zensical
- 2026-02-16-ctx-v0.6.0-the-integration-release
- 2026-02-17-code-is-cheap-judgment-is-not
- 2026-02-17-context-as-infrastructure
- 2026-02-17-parallel-agents-merge-debt-and-the-myth-of-overnight-progress
- 2026-02-17-the-3-1-ratio
- 2026-02-17-when-a-system-starts-explaining-itself
- 2026-02-25-the-homework-problem
- 2026-02-28-the-last-question
- 2026-03-04-agent-memory-is-infrastructure
- 2026-03-23-ctx-v0.8.0-the-architecture-release
- 2026-03-23-we-broke-the-3-1-rule
- 2026-04-02-code-structure-as-an-agent-interface
- 2026-04-06-the-watermelon-rind-anti-pattern
- cli
- bootstrap
- change
- completion
- connection
- connect
- context
- dep
- doctor
- event
- guide
- hub
- init-status
- journal
- loop
- mcp
- memory
- notify
- pad
- pause
- remind
- resource
- resume
- serve
- setup
- site
- skill
- stats
- steering
- system
- trace
- trigger
- watch
- why
- home
- about
- common-workflows
- community
- configuration
- context-files
- contributing
- faq
- first-session
- getting-started
- hub
- is-ctx-right
- joining-a-project
- keeping-ai-honest
- prompting-guide
- repeated-mistakes
- steering
- triggers
- operations
- autonomous-loop
- hub-failure-modes
- hub
- integrations
- migration
- release
- upgrading
- recipes
- architecture-deep-dive
- autonomous-loops
- building-skills
- claude-code-permissions
- configuration-profiles
- context-health
- customizing-hook-messages
- dependency-graph
- design-before-coding
- external-context
- guide-your-agent
- hook-output-patterns
- hook-sequence-diagrams
- hub-cluster
- hub-getting-started
- hub-multi-machine
- hub-overview
- hub-personal
- hub-team
- import-plans
- knowledge-capture
- memory-bridge
- multi-tool-setup
- multilingual-sessions
- parallel-worktrees
- permission-snapshots
- publishing
- scratchpad-sync
- scratchpad-with-claude
- session-archaeology
- session-ceremonies
- session-changes
- session-lifecycle
- session-pause
- session-reminders
- state-maintenance
- steering
- system-hooks-audit
- task-management
- triggers
- troubleshooting
- webhook-notifications
- when-to-use-agent-teams
- reference
- audit-conventions
- comparison
- design-invariants
- scratchpad
- session-journal
- skills
- versions
- security
- agent-security
- hub
- reporting
- thesis
- specs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
122 | 207 | | |
123 | 208 | | |
124 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
30 | 54 | | |
31 | 55 | | |
32 | 56 | | |
| |||
0 commit comments